STM32F4xx_HAL_Driver  1.8.3
Input and Output functions

Input Output and memory control functions. More...

+ Collaboration diagram for Input and Output functions:

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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
HAL_StatusTypeDef HAL_SDRAM_RegisterCallback (SDRAM_HandleTypeDef *hsdram, HAL_SDRAM_CallbackIDTypeDef CallbackId, pSDRAM_CallbackTypeDef pCallback)
 Register a User SDRAM Callback To be used to override the weak predefined callback. More...
 
HAL_StatusTypeDef HAL_SDRAM_UnRegisterCallback (SDRAM_HandleTypeDef *hsdram, HAL_SDRAM_CallbackIDTypeDef CallbackId)
 Unregister a User SDRAM Callback SDRAM Callback is redirected to the weak predefined callback. More...
 
HAL_StatusTypeDef HAL_SDRAM_RegisterDmaCallback (SDRAM_HandleTypeDef *hsdram, HAL_SDRAM_CallbackIDTypeDef CallbackId, pSDRAM_DmaCallbackTypeDef pCallback)
 Register a User SDRAM Callback for DMA transfers To be used to override the weak predefined callback. More...
 

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_SDRAM_Read_16b()

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 480 of file stm32f4xx_hal_sdram.c.

◆ HAL_SDRAM_Read_32b()

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 599 of file stm32f4xx_hal_sdram.c.

◆ HAL_SDRAM_Read_8b()

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 377 of file stm32f4xx_hal_sdram.c.

◆ HAL_SDRAM_Read_DMA()

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 702 of file stm32f4xx_hal_sdram.c.

◆ HAL_SDRAM_RegisterCallback()

HAL_StatusTypeDef HAL_SDRAM_RegisterCallback ( SDRAM_HandleTypeDef hsdram,
HAL_SDRAM_CallbackIDTypeDef  CallbackId,
pSDRAM_CallbackTypeDef  pCallback 
)

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

Parameters
hsdram: SDRAM 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 804 of file stm32f4xx_hal_sdram.c.

◆ HAL_SDRAM_RegisterDmaCallback()

HAL_StatusTypeDef HAL_SDRAM_RegisterDmaCallback ( SDRAM_HandleTypeDef hsdram,
HAL_SDRAM_CallbackIDTypeDef  CallbackId,
pSDRAM_DmaCallbackTypeDef  pCallback 
)

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

Parameters
hsdram: SDRAM 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 940 of file stm32f4xx_hal_sdram.c.

◆ HAL_SDRAM_UnRegisterCallback()

HAL_StatusTypeDef HAL_SDRAM_UnRegisterCallback ( SDRAM_HandleTypeDef hsdram,
HAL_SDRAM_CallbackIDTypeDef  CallbackId 
)

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

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

Definition at line 873 of file stm32f4xx_hal_sdram.c.

◆ HAL_SDRAM_Write_16b()

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 540 of file stm32f4xx_hal_sdram.c.

◆ HAL_SDRAM_Write_32b()

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 651 of file stm32f4xx_hal_sdram.c.

◆ HAL_SDRAM_Write_8b()

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 429 of file stm32f4xx_hal_sdram.c.

◆ HAL_SDRAM_Write_DMA()

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 755 of file stm32f4xx_hal_sdram.c.