STM32H735xx HAL User Manual
|
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. | |
HAL_StatusTypeDef | HAL_SDRAM_RegisterCallback (SDRAM_HandleTypeDef *hsdram, HAL_SDRAM_CallbackIDTypeDef CallbackId, pSDRAM_CallbackTypeDef pCallback) |
Register a User SDRAM Callback To be used instead of the weak (surcharged) predefined callback. | |
HAL_StatusTypeDef | HAL_SDRAM_UnRegisterCallback (SDRAM_HandleTypeDef *hsdram, HAL_SDRAM_CallbackIDTypeDef CallbackId) |
Unregister a User SDRAM Callback SDRAM Callback is redirected to the weak (surcharged) predefined callback. | |
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 instead of the weak (surcharged) predefined callback. |
Input Output and memory control functions.
============================================================================== ##### SDRAM Input and Output functions ##### ============================================================================== [..] This section provides functions allowing to use and control the 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.
hsdram | pointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module. |
pAddress | Pointer to read start address |
pDstBuffer | Pointer to destination buffer |
BufferSize | Size of the buffer to read from memory |
HAL | status |
Definition at line 476 of file stm32h7xx_hal_sdram.c.
References HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_READY, HAL_SDRAM_STATE_WRITE_PROTECTED, 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.
hsdram | pointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module. |
pAddress | Pointer to read start address |
pDstBuffer | Pointer to destination buffer |
BufferSize | Size of the buffer to read from memory |
HAL | status |
Definition at line 595 of file stm32h7xx_hal_sdram.c.
References HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_READY, HAL_SDRAM_STATE_WRITE_PROTECTED, 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.
hsdram | pointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module. |
pAddress | Pointer to read start address |
pDstBuffer | Pointer to destination buffer |
BufferSize | Size of the buffer to read from memory |
HAL | status |
Definition at line 373 of file stm32h7xx_hal_sdram.c.
References HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_READY, HAL_SDRAM_STATE_WRITE_PROTECTED, 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.
hsdram | pointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module. |
pAddress | Pointer to read start address |
pDstBuffer | Pointer to destination buffer |
BufferSize | Size of the buffer to read from memory |
HAL | status |
Definition at line 698 of file stm32h7xx_hal_sdram.c.
References HAL_MDMA_Start_IT(), HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_READY, HAL_SDRAM_STATE_WRITE_PROTECTED, __SDRAM_HandleTypeDef::hmdma, SDRAM_DMACplt(), SDRAM_DMACpltProt(), SDRAM_DMAError(), __SDRAM_HandleTypeDef::State, __MDMA_HandleTypeDef::XferCpltCallback, and __MDMA_HandleTypeDef::XferErrorCallback.
HAL_StatusTypeDef HAL_SDRAM_RegisterCallback | ( | SDRAM_HandleTypeDef * | hsdram, |
HAL_SDRAM_CallbackIDTypeDef | CallbackId, | ||
pSDRAM_CallbackTypeDef | pCallback | ||
) |
Register a User SDRAM Callback To be used instead of the weak (surcharged) predefined callback.
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 |
status |
Definition at line 800 of file stm32h7xx_hal_sdram.c.
References HAL_SDRAM_MSP_DEINIT_CB_ID, HAL_SDRAM_MSP_INIT_CB_ID, HAL_SDRAM_REFRESH_ERR_CB_ID, HAL_SDRAM_STATE_READY, HAL_SDRAM_STATE_RESET, HAL_SDRAM_STATE_WRITE_PROTECTED, __SDRAM_HandleTypeDef::MspDeInitCallback, __SDRAM_HandleTypeDef::MspInitCallback, __SDRAM_HandleTypeDef::RefreshErrorCallback, and __SDRAM_HandleTypeDef::State.
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 instead of the weak (surcharged) predefined callback.
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 |
status |
Definition at line 946 of file stm32h7xx_hal_sdram.c.
References __SDRAM_HandleTypeDef::DmaXferCpltCallback, __SDRAM_HandleTypeDef::DmaXferErrorCallback, HAL_SDRAM_DMA_XFER_CPLT_CB_ID, HAL_SDRAM_DMA_XFER_ERR_CB_ID, HAL_SDRAM_STATE_READY, HAL_SDRAM_STATE_WRITE_PROTECTED, and __SDRAM_HandleTypeDef::State.
HAL_StatusTypeDef HAL_SDRAM_UnRegisterCallback | ( | SDRAM_HandleTypeDef * | hsdram, |
HAL_SDRAM_CallbackIDTypeDef | CallbackId | ||
) |
Unregister a User SDRAM Callback SDRAM Callback is redirected to the weak (surcharged) predefined callback.
hsdram | : SDRAM handle |
CallbackId | : ID of the callback to be unregistered This parameter can be one of the following values:
|
status |
Definition at line 874 of file stm32h7xx_hal_sdram.c.
References __SDRAM_HandleTypeDef::DmaXferCpltCallback, __SDRAM_HandleTypeDef::DmaXferErrorCallback, HAL_SDRAM_DMA_XFER_CPLT_CB_ID, HAL_SDRAM_DMA_XFER_ERR_CB_ID, HAL_SDRAM_DMA_XferCpltCallback(), HAL_SDRAM_DMA_XferErrorCallback(), HAL_SDRAM_MSP_DEINIT_CB_ID, HAL_SDRAM_MSP_INIT_CB_ID, HAL_SDRAM_MspDeInit(), HAL_SDRAM_MspInit(), HAL_SDRAM_REFRESH_ERR_CB_ID, HAL_SDRAM_RefreshErrorCallback(), HAL_SDRAM_STATE_READY, HAL_SDRAM_STATE_RESET, HAL_SDRAM_STATE_WRITE_PROTECTED, __SDRAM_HandleTypeDef::MspDeInitCallback, __SDRAM_HandleTypeDef::MspInitCallback, __SDRAM_HandleTypeDef::RefreshErrorCallback, and __SDRAM_HandleTypeDef::State.
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.
hsdram | pointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module. |
pAddress | Pointer to write start address |
pSrcBuffer | Pointer to source buffer to write |
BufferSize | Size of the buffer to write to memory |
HAL | status |
Definition at line 536 of file stm32h7xx_hal_sdram.c.
References HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_READY, 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.
hsdram | pointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module. |
pAddress | Pointer to write start address |
pSrcBuffer | Pointer to source buffer to write |
BufferSize | Size of the buffer to write to memory |
HAL | status |
Definition at line 647 of file stm32h7xx_hal_sdram.c.
References HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_READY, 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.
hsdram | pointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module. |
pAddress | Pointer to write start address |
pSrcBuffer | Pointer to source buffer to write |
BufferSize | Size of the buffer to write to memory |
HAL | status |
Definition at line 425 of file stm32h7xx_hal_sdram.c.
References HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_READY, 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.
hsdram | pointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module. |
pAddress | Pointer to write start address |
pSrcBuffer | Pointer to source buffer to write |
BufferSize | Size of the buffer to write to memory |
HAL | status |
Definition at line 751 of file stm32h7xx_hal_sdram.c.
References HAL_MDMA_Start_IT(), HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_READY, __SDRAM_HandleTypeDef::hmdma, SDRAM_DMACplt(), SDRAM_DMAError(), __SDRAM_HandleTypeDef::State, __MDMA_HandleTypeDef::XferCpltCallback, and __MDMA_HandleTypeDef::XferErrorCallback.