STM32F439xx HAL User Manual
Functions
Input and Output functions
SRAM Exported Functions

Input Output and memory control functions. More...

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.
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.
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.
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.
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.
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.
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.
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.

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_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 360 of file stm32f4xx_hal_sram.c.

References HAL_SRAM_STATE_BUSY, HAL_SRAM_STATE_READY, and SRAM_HandleTypeDef::State.

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 438 of file stm32f4xx_hal_sram.c.

References HAL_SRAM_STATE_BUSY, HAL_SRAM_STATE_READY, and SRAM_HandleTypeDef::State.

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 282 of file stm32f4xx_hal_sram.c.

References HAL_SRAM_STATE_BUSY, HAL_SRAM_STATE_READY, and SRAM_HandleTypeDef::State.

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 512 of file stm32f4xx_hal_sram.c.

References HAL_DMA_Start_IT(), HAL_SRAM_DMA_XferCpltCallback(), HAL_SRAM_DMA_XferErrorCallback(), HAL_SRAM_STATE_BUSY, HAL_SRAM_STATE_READY, SRAM_HandleTypeDef::hdma, SRAM_HandleTypeDef::State, __DMA_HandleTypeDef::XferCpltCallback, and __DMA_HandleTypeDef::XferErrorCallback.

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 396 of file stm32f4xx_hal_sram.c.

References HAL_SRAM_STATE_BUSY, HAL_SRAM_STATE_PROTECTED, HAL_SRAM_STATE_READY, and SRAM_HandleTypeDef::State.

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 472 of file stm32f4xx_hal_sram.c.

References HAL_SRAM_STATE_BUSY, HAL_SRAM_STATE_PROTECTED, HAL_SRAM_STATE_READY, and SRAM_HandleTypeDef::State.

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 318 of file stm32f4xx_hal_sram.c.

References HAL_SRAM_STATE_BUSY, HAL_SRAM_STATE_PROTECTED, HAL_SRAM_STATE_READY, and SRAM_HandleTypeDef::State.

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 545 of file stm32f4xx_hal_sram.c.

References HAL_DMA_Start_IT(), HAL_SRAM_DMA_XferCpltCallback(), HAL_SRAM_DMA_XferErrorCallback(), HAL_SRAM_STATE_BUSY, HAL_SRAM_STATE_PROTECTED, HAL_SRAM_STATE_READY, SRAM_HandleTypeDef::hdma, SRAM_HandleTypeDef::State, __DMA_HandleTypeDef::XferCpltCallback, and __DMA_HandleTypeDef::XferErrorCallback.