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

Input Output and memory control functions. More...

Functions

HAL_StatusTypeDef HAL_SDRAM_Read_8b (SDRAM_HandleTypeDef *hsdram, uint32_t *pAddress, uint8_t *pDstBuffer, uint32_t BufferSize)
 Reads 8-bit data buffer from the SDRAM memory.
HAL_StatusTypeDef HAL_SDRAM_Write_8b (SDRAM_HandleTypeDef *hsdram, uint32_t *pAddress, uint8_t *pSrcBuffer, uint32_t BufferSize)
 Writes 8-bit data buffer to SDRAM memory.
HAL_StatusTypeDef HAL_SDRAM_Read_16b (SDRAM_HandleTypeDef *hsdram, uint32_t *pAddress, uint16_t *pDstBuffer, uint32_t BufferSize)
 Reads 16-bit data buffer from the SDRAM memory.
HAL_StatusTypeDef HAL_SDRAM_Write_16b (SDRAM_HandleTypeDef *hsdram, uint32_t *pAddress, uint16_t *pSrcBuffer, uint32_t BufferSize)
 Writes 16-bit data buffer to SDRAM memory.
HAL_StatusTypeDef HAL_SDRAM_Read_32b (SDRAM_HandleTypeDef *hsdram, uint32_t *pAddress, uint32_t *pDstBuffer, uint32_t BufferSize)
 Reads 32-bit data buffer from the SDRAM memory.
HAL_StatusTypeDef HAL_SDRAM_Write_32b (SDRAM_HandleTypeDef *hsdram, uint32_t *pAddress, uint32_t *pSrcBuffer, uint32_t BufferSize)
 Writes 32-bit data buffer to SDRAM memory.
HAL_StatusTypeDef HAL_SDRAM_Read_DMA (SDRAM_HandleTypeDef *hsdram, uint32_t *pAddress, uint32_t *pDstBuffer, uint32_t BufferSize)
 Reads a Words data from the SDRAM memory using DMA transfer.
HAL_StatusTypeDef HAL_SDRAM_Write_DMA (SDRAM_HandleTypeDef *hsdram, uint32_t *pAddress, uint32_t *pSrcBuffer, uint32_t BufferSize)
 Writes a Words data buffer to SDRAM memory using DMA transfer.

Detailed Description

Input Output and memory control functions.

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

Function Documentation

HAL_StatusTypeDef HAL_SDRAM_Read_16b ( SDRAM_HandleTypeDef hsdram,
uint32_t *  pAddress,
uint16_t *  pDstBuffer,
uint32_t  BufferSize 
)

Reads 16-bit data buffer from the SDRAM memory.

Parameters:
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module.
pAddressPointer to read start address
pDstBufferPointer to destination buffer
BufferSizeSize of the buffer to read from memory
Return values:
HALstatus

Definition at line 394 of file stm32f4xx_hal_sdram.c.

References HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_PRECHARGED, and SDRAM_HandleTypeDef::State.

HAL_StatusTypeDef HAL_SDRAM_Read_32b ( SDRAM_HandleTypeDef hsdram,
uint32_t *  pAddress,
uint32_t *  pDstBuffer,
uint32_t  BufferSize 
)

Reads 32-bit data buffer from the SDRAM memory.

Parameters:
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module.
pAddressPointer to read start address
pDstBufferPointer to destination buffer
BufferSizeSize of the buffer to read from memory
Return values:
HALstatus

Definition at line 477 of file stm32f4xx_hal_sdram.c.

References HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_PRECHARGED, and SDRAM_HandleTypeDef::State.

HAL_StatusTypeDef HAL_SDRAM_Read_8b ( SDRAM_HandleTypeDef hsdram,
uint32_t *  pAddress,
uint8_t *  pDstBuffer,
uint32_t  BufferSize 
)

Reads 8-bit data buffer from the SDRAM memory.

Parameters:
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module.
pAddressPointer to read start address
pDstBufferPointer to destination buffer
BufferSizeSize of the buffer to read from memory
Return values:
HALstatus

Definition at line 311 of file stm32f4xx_hal_sdram.c.

References HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_PRECHARGED, and SDRAM_HandleTypeDef::State.

HAL_StatusTypeDef HAL_SDRAM_Read_DMA ( SDRAM_HandleTypeDef hsdram,
uint32_t *  pAddress,
uint32_t *  pDstBuffer,
uint32_t  BufferSize 
)

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

Parameters:
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module.
pAddressPointer to read start address
pDstBufferPointer to destination buffer
BufferSizeSize of the buffer to read from memory
Return values:
HALstatus

Definition at line 560 of file stm32f4xx_hal_sdram.c.

References HAL_DMA_Start_IT(), HAL_SDRAM_DMA_XferCpltCallback(), HAL_SDRAM_DMA_XferErrorCallback(), HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_PRECHARGED, SDRAM_HandleTypeDef::hdma, SDRAM_HandleTypeDef::State, __DMA_HandleTypeDef::XferCpltCallback, and __DMA_HandleTypeDef::XferErrorCallback.

HAL_StatusTypeDef HAL_SDRAM_Write_16b ( SDRAM_HandleTypeDef hsdram,
uint32_t *  pAddress,
uint16_t *  pSrcBuffer,
uint32_t  BufferSize 
)

Writes 16-bit data buffer to SDRAM memory.

Parameters:
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM 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 434 of file stm32f4xx_hal_sdram.c.

References HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_PRECHARGED, HAL_SDRAM_STATE_WRITE_PROTECTED, and SDRAM_HandleTypeDef::State.

HAL_StatusTypeDef HAL_SDRAM_Write_32b ( SDRAM_HandleTypeDef hsdram,
uint32_t *  pAddress,
uint32_t *  pSrcBuffer,
uint32_t  BufferSize 
)

Writes 32-bit data buffer to SDRAM memory.

Parameters:
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM 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 517 of file stm32f4xx_hal_sdram.c.

References HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_PRECHARGED, HAL_SDRAM_STATE_WRITE_PROTECTED, and SDRAM_HandleTypeDef::State.

HAL_StatusTypeDef HAL_SDRAM_Write_8b ( SDRAM_HandleTypeDef hsdram,
uint32_t *  pAddress,
uint8_t *  pSrcBuffer,
uint32_t  BufferSize 
)

Writes 8-bit data buffer to SDRAM memory.

Parameters:
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM 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 351 of file stm32f4xx_hal_sdram.c.

References HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_PRECHARGED, HAL_SDRAM_STATE_WRITE_PROTECTED, and SDRAM_HandleTypeDef::State.

HAL_StatusTypeDef HAL_SDRAM_Write_DMA ( SDRAM_HandleTypeDef hsdram,
uint32_t *  pAddress,
uint32_t *  pSrcBuffer,
uint32_t  BufferSize 
)

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

Parameters:
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM 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 601 of file stm32f4xx_hal_sdram.c.

References HAL_DMA_Start_IT(), HAL_SDRAM_DMA_XferCpltCallback(), HAL_SDRAM_DMA_XferErrorCallback(), HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_PRECHARGED, HAL_SDRAM_STATE_WRITE_PROTECTED, SDRAM_HandleTypeDef::hdma, SDRAM_HandleTypeDef::State, __DMA_HandleTypeDef::XferCpltCallback, and __DMA_HandleTypeDef::XferErrorCallback.