STM32F4xx_HAL_Driver  1.8.3
Input Output and memory control functions

Input Output and memory control functions. More...

+ Collaboration diagram for Input Output and memory control functions:

Functions

HAL_StatusTypeDef HAL_SRAM_Read_8b (SRAM_HandleTypeDef *hsram, uint32_t *pAddress, uint8_t *pDstBuffer, uint32_t BufferSize)
 Reads 8-bit buffer from SRAM memory. More...
 
HAL_StatusTypeDef HAL_SRAM_Write_8b (SRAM_HandleTypeDef *hsram, uint32_t *pAddress, uint8_t *pSrcBuffer, uint32_t BufferSize)
 Writes 8-bit buffer to SRAM memory. More...
 
HAL_StatusTypeDef HAL_SRAM_Read_16b (SRAM_HandleTypeDef *hsram, uint32_t *pAddress, uint16_t *pDstBuffer, uint32_t BufferSize)
 Reads 16-bit buffer from SRAM memory. More...
 
HAL_StatusTypeDef HAL_SRAM_Write_16b (SRAM_HandleTypeDef *hsram, uint32_t *pAddress, uint16_t *pSrcBuffer, uint32_t BufferSize)
 Writes 16-bit buffer to SRAM memory. More...
 
HAL_StatusTypeDef HAL_SRAM_Read_32b (SRAM_HandleTypeDef *hsram, uint32_t *pAddress, uint32_t *pDstBuffer, uint32_t BufferSize)
 Reads 32-bit buffer from SRAM memory. More...
 
HAL_StatusTypeDef HAL_SRAM_Write_32b (SRAM_HandleTypeDef *hsram, uint32_t *pAddress, uint32_t *pSrcBuffer, uint32_t BufferSize)
 Writes 32-bit buffer to SRAM memory. More...
 
HAL_StatusTypeDef HAL_SRAM_Read_DMA (SRAM_HandleTypeDef *hsram, uint32_t *pAddress, uint32_t *pDstBuffer, uint32_t BufferSize)
 Reads a Words data from the SRAM memory using DMA transfer. More...
 
HAL_StatusTypeDef HAL_SRAM_Write_DMA (SRAM_HandleTypeDef *hsram, uint32_t *pAddress, uint32_t *pSrcBuffer, uint32_t BufferSize)
 Writes a Words data buffer to SRAM memory using DMA transfer. More...
 
void HAL_SRAM_DMA_XferCpltCallback (DMA_HandleTypeDef *hdma)
 DMA transfer complete callback. More...
 
void HAL_SRAM_DMA_XferErrorCallback (DMA_HandleTypeDef *hdma)
 DMA transfer complete error callback. More...
 
HAL_StatusTypeDef HAL_SRAM_RegisterCallback (SRAM_HandleTypeDef *hsram, HAL_SRAM_CallbackIDTypeDef CallbackId, pSRAM_CallbackTypeDef pCallback)
 Register a User SRAM Callback To be used to override the weak predefined callback. More...
 
HAL_StatusTypeDef HAL_SRAM_UnRegisterCallback (SRAM_HandleTypeDef *hsram, HAL_SRAM_CallbackIDTypeDef CallbackId)
 Unregister a User SRAM Callback SRAM Callback is redirected to the weak predefined callback. More...
 
HAL_StatusTypeDef HAL_SRAM_RegisterDmaCallback (SRAM_HandleTypeDef *hsram, HAL_SRAM_CallbackIDTypeDef CallbackId, pSRAM_DmaCallbackTypeDef pCallback)
 Register a User SRAM Callback for DMA transfers To be used to override the weak predefined callback. More...
 

Detailed Description

Input Output and memory control functions.

  ==============================================================================
                  ##### SRAM Input and Output functions #####
  ==============================================================================
  [..]
    This section provides functions allowing to use and control the SRAM memory

Function Documentation

◆ HAL_SRAM_DMA_XferCpltCallback()

void HAL_SRAM_DMA_XferCpltCallback ( DMA_HandleTypeDef hdma)

DMA transfer complete callback.

Parameters
hdmapointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM module.
Return values
None

Definition at line 294 of file stm32f4xx_hal_sram.c.

◆ HAL_SRAM_DMA_XferErrorCallback()

void HAL_SRAM_DMA_XferErrorCallback ( DMA_HandleTypeDef hdma)

DMA transfer complete error callback.

Parameters
hdmapointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM module.
Return values
None

Definition at line 310 of file stm32f4xx_hal_sram.c.

◆ HAL_SRAM_Read_16b()

HAL_StatusTypeDef HAL_SRAM_Read_16b ( SRAM_HandleTypeDef hsram,
uint32_t *  pAddress,
uint16_t *  pDstBuffer,
uint32_t  BufferSize 
)

Reads 16-bit buffer from SRAM memory.

Parameters
hsrampointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM module.
pAddressPointer to read start address
pDstBufferPointer to destination buffer
BufferSizeSize of the buffer to read from memory
Return values
HALstatus

Definition at line 442 of file stm32f4xx_hal_sram.c.

◆ HAL_SRAM_Read_32b()

HAL_StatusTypeDef HAL_SRAM_Read_32b ( SRAM_HandleTypeDef hsram,
uint32_t *  pAddress,
uint32_t *  pDstBuffer,
uint32_t  BufferSize 
)

Reads 32-bit buffer from SRAM memory.

Parameters
hsrampointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM module.
pAddressPointer to read start address
pDstBufferPointer to destination buffer
BufferSizeSize of the buffer to read from memory
Return values
HALstatus

Definition at line 561 of file stm32f4xx_hal_sram.c.

◆ HAL_SRAM_Read_8b()

HAL_StatusTypeDef HAL_SRAM_Read_8b ( SRAM_HandleTypeDef hsram,
uint32_t *  pAddress,
uint8_t *  pDstBuffer,
uint32_t  BufferSize 
)

Reads 8-bit buffer from SRAM memory.

Parameters
hsrampointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM module.
pAddressPointer to read start address
pDstBufferPointer to destination buffer
BufferSizeSize of the buffer to read from memory
Return values
HALstatus

Definition at line 347 of file stm32f4xx_hal_sram.c.

◆ HAL_SRAM_Read_DMA()

HAL_StatusTypeDef HAL_SRAM_Read_DMA ( SRAM_HandleTypeDef hsram,
uint32_t *  pAddress,
uint32_t *  pDstBuffer,
uint32_t  BufferSize 
)

Reads a Words data from the SRAM memory using DMA transfer.

Parameters
hsrampointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM module.
pAddressPointer to read start address
pDstBufferPointer to destination buffer
BufferSizeSize of the buffer to read from memory
Return values
HALstatus

Definition at line 656 of file stm32f4xx_hal_sram.c.

◆ HAL_SRAM_RegisterCallback()

HAL_StatusTypeDef HAL_SRAM_RegisterCallback ( SRAM_HandleTypeDef hsram,
HAL_SRAM_CallbackIDTypeDef  CallbackId,
pSRAM_CallbackTypeDef  pCallback 
)

Register a User SRAM Callback To be used to override the weak predefined callback.

Parameters
hsram: SRAM handle
CallbackId: ID of the callback to be registered This parameter can be one of the following values:
pCallback: pointer to the Callback function
Return values
status

Definition at line 749 of file stm32f4xx_hal_sram.c.

◆ HAL_SRAM_RegisterDmaCallback()

HAL_StatusTypeDef HAL_SRAM_RegisterDmaCallback ( SRAM_HandleTypeDef hsram,
HAL_SRAM_CallbackIDTypeDef  CallbackId,
pSRAM_DmaCallbackTypeDef  pCallback 
)

Register a User SRAM Callback for DMA transfers To be used to override the weak predefined callback.

Parameters
hsram: SRAM handle
CallbackId: ID of the callback to be registered This parameter can be one of the following values:
pCallback: pointer to the Callback function
Return values
status

Definition at line 862 of file stm32f4xx_hal_sram.c.

◆ HAL_SRAM_UnRegisterCallback()

HAL_StatusTypeDef HAL_SRAM_UnRegisterCallback ( SRAM_HandleTypeDef hsram,
HAL_SRAM_CallbackIDTypeDef  CallbackId 
)

Unregister a User SRAM Callback SRAM Callback is redirected to the weak predefined callback.

Parameters
hsram: SRAM handle
CallbackId: ID of the callback to be unregistered This parameter can be one of the following values:
Return values
status

Definition at line 798 of file stm32f4xx_hal_sram.c.

◆ HAL_SRAM_Write_16b()

HAL_StatusTypeDef HAL_SRAM_Write_16b ( SRAM_HandleTypeDef hsram,
uint32_t *  pAddress,
uint16_t *  pSrcBuffer,
uint32_t  BufferSize 
)

Writes 16-bit buffer to SRAM memory.

Parameters
hsrampointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM module.
pAddressPointer to write start address
pSrcBufferPointer to source buffer to write
BufferSizeSize of the buffer to write to memory
Return values
HALstatus

Definition at line 502 of file stm32f4xx_hal_sram.c.

◆ HAL_SRAM_Write_32b()

HAL_StatusTypeDef HAL_SRAM_Write_32b ( SRAM_HandleTypeDef hsram,
uint32_t *  pAddress,
uint32_t *  pSrcBuffer,
uint32_t  BufferSize 
)

Writes 32-bit buffer to SRAM memory.

Parameters
hsrampointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM module.
pAddressPointer to write start address
pSrcBufferPointer to source buffer to write
BufferSizeSize of the buffer to write to memory
Return values
HALstatus

Definition at line 609 of file stm32f4xx_hal_sram.c.

◆ HAL_SRAM_Write_8b()

HAL_StatusTypeDef HAL_SRAM_Write_8b ( SRAM_HandleTypeDef hsram,
uint32_t *  pAddress,
uint8_t *  pSrcBuffer,
uint32_t  BufferSize 
)

Writes 8-bit buffer to SRAM memory.

Parameters
hsrampointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM module.
pAddressPointer to write start address
pSrcBufferPointer to source buffer to write
BufferSizeSize of the buffer to write to memory
Return values
HALstatus

Definition at line 395 of file stm32f4xx_hal_sram.c.

◆ HAL_SRAM_Write_DMA()

HAL_StatusTypeDef HAL_SRAM_Write_DMA ( SRAM_HandleTypeDef hsram,
uint32_t *  pAddress,
uint32_t *  pSrcBuffer,
uint32_t  BufferSize 
)

Writes a Words data buffer to SRAM memory using DMA transfer.

Parameters
hsrampointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM module.
pAddressPointer to write start address
pSrcBufferPointer to source buffer to write
BufferSizeSize of the buffer to write to memory
Return values
HALstatus

Definition at line 705 of file stm32f4xx_hal_sram.c.