STM32H735xx HAL User Manual
|
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. | |
HAL_StatusTypeDef | HAL_SRAM_RegisterCallback (SRAM_HandleTypeDef *hsram, HAL_SRAM_CallbackIDTypeDef CallbackId, pSRAM_CallbackTypeDef pCallback) |
Register a User SRAM Callback To be used instead of the weak (surcharged) predefined callback. | |
HAL_StatusTypeDef | HAL_SRAM_UnRegisterCallback (SRAM_HandleTypeDef *hsram, HAL_SRAM_CallbackIDTypeDef CallbackId) |
Unregister a User SRAM Callback SRAM Callback is redirected to the weak (surcharged) predefined callback. | |
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 instead of the weak (surcharged) predefined callback. | |
void | HAL_SRAM_DMA_XferCpltCallback (MDMA_HandleTypeDef *hmdma) |
DMA transfer complete callback. | |
void | HAL_SRAM_DMA_XferErrorCallback (MDMA_HandleTypeDef *hmdma) |
DMA transfer complete error callback. |
Input Output and memory control functions.
============================================================================== ##### SRAM Input and Output functions ##### ============================================================================== [..] This section provides functions allowing to use and control the SRAM memory
void HAL_SRAM_DMA_XferCpltCallback | ( | MDMA_HandleTypeDef * | hmdma | ) |
DMA transfer complete callback.
hmdma | pointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM module. |
None |
Definition at line 290 of file stm32h7xx_hal_sram.c.
Referenced by HAL_SRAM_Init(), HAL_SRAM_UnRegisterCallback(), SRAM_DMACplt(), and SRAM_DMACpltProt().
void HAL_SRAM_DMA_XferErrorCallback | ( | MDMA_HandleTypeDef * | hmdma | ) |
DMA transfer complete error callback.
hmdma | pointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM module. |
None |
Definition at line 306 of file stm32h7xx_hal_sram.c.
Referenced by HAL_SRAM_Init(), HAL_SRAM_UnRegisterCallback(), and SRAM_DMAError().
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.
hsram | pointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM 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 438 of file stm32h7xx_hal_sram.c.
References HAL_SRAM_STATE_BUSY, HAL_SRAM_STATE_PROTECTED, 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.
hsram | pointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM 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 557 of file stm32h7xx_hal_sram.c.
References HAL_SRAM_STATE_BUSY, HAL_SRAM_STATE_PROTECTED, 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.
hsram | pointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM 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 343 of file stm32h7xx_hal_sram.c.
References HAL_SRAM_STATE_BUSY, HAL_SRAM_STATE_PROTECTED, 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.
hsram | pointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM 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 652 of file stm32h7xx_hal_sram.c.
References HAL_MDMA_Start_IT(), HAL_SRAM_STATE_BUSY, HAL_SRAM_STATE_PROTECTED, HAL_SRAM_STATE_READY, __SRAM_HandleTypeDef::hmdma, SRAM_DMACplt(), SRAM_DMACpltProt(), SRAM_DMAError(), __SRAM_HandleTypeDef::State, __MDMA_HandleTypeDef::XferCpltCallback, and __MDMA_HandleTypeDef::XferErrorCallback.
HAL_StatusTypeDef HAL_SRAM_RegisterCallback | ( | SRAM_HandleTypeDef * | hsram, |
HAL_SRAM_CallbackIDTypeDef | CallbackId, | ||
pSRAM_CallbackTypeDef | pCallback | ||
) |
Register a User SRAM Callback To be used instead of the weak (surcharged) predefined callback.
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 |
status |
Definition at line 745 of file stm32h7xx_hal_sram.c.
References HAL_SRAM_MSP_DEINIT_CB_ID, HAL_SRAM_MSP_INIT_CB_ID, HAL_SRAM_STATE_PROTECTED, HAL_SRAM_STATE_READY, HAL_SRAM_STATE_RESET, __SRAM_HandleTypeDef::MspDeInitCallback, __SRAM_HandleTypeDef::MspInitCallback, and __SRAM_HandleTypeDef::State.
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 instead of the weak (surcharged) predefined callback.
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 |
status |
Definition at line 868 of file stm32h7xx_hal_sram.c.
References __SRAM_HandleTypeDef::DmaXferCpltCallback, __SRAM_HandleTypeDef::DmaXferErrorCallback, HAL_SRAM_DMA_XFER_CPLT_CB_ID, HAL_SRAM_DMA_XFER_ERR_CB_ID, HAL_SRAM_STATE_PROTECTED, HAL_SRAM_STATE_READY, and __SRAM_HandleTypeDef::State.
HAL_StatusTypeDef HAL_SRAM_UnRegisterCallback | ( | SRAM_HandleTypeDef * | hsram, |
HAL_SRAM_CallbackIDTypeDef | CallbackId | ||
) |
Unregister a User SRAM Callback SRAM Callback is redirected to the weak (surcharged) predefined callback.
hsram | : SRAM handle |
CallbackId | : ID of the callback to be unregistered This parameter can be one of the following values:
|
status |
Definition at line 799 of file stm32h7xx_hal_sram.c.
References __SRAM_HandleTypeDef::DmaXferCpltCallback, __SRAM_HandleTypeDef::DmaXferErrorCallback, HAL_SRAM_DMA_XFER_CPLT_CB_ID, HAL_SRAM_DMA_XFER_ERR_CB_ID, HAL_SRAM_DMA_XferCpltCallback(), HAL_SRAM_DMA_XferErrorCallback(), HAL_SRAM_MSP_DEINIT_CB_ID, HAL_SRAM_MSP_INIT_CB_ID, HAL_SRAM_MspDeInit(), HAL_SRAM_MspInit(), HAL_SRAM_STATE_PROTECTED, HAL_SRAM_STATE_READY, HAL_SRAM_STATE_RESET, __SRAM_HandleTypeDef::MspDeInitCallback, __SRAM_HandleTypeDef::MspInitCallback, and __SRAM_HandleTypeDef::State.
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.
hsram | pointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM 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 498 of file stm32h7xx_hal_sram.c.
References HAL_SRAM_STATE_BUSY, 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.
hsram | pointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM 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 605 of file stm32h7xx_hal_sram.c.
References HAL_SRAM_STATE_BUSY, 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.
hsram | pointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM 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 391 of file stm32h7xx_hal_sram.c.
References HAL_SRAM_STATE_BUSY, 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.
hsram | pointer to a SRAM_HandleTypeDef structure that contains the configuration information for SRAM 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 701 of file stm32h7xx_hal_sram.c.
References HAL_MDMA_Start_IT(), HAL_SRAM_STATE_BUSY, HAL_SRAM_STATE_READY, __SRAM_HandleTypeDef::hmdma, SRAM_DMACplt(), SRAM_DMAError(), __SRAM_HandleTypeDef::State, __MDMA_HandleTypeDef::XferCpltCallback, and __MDMA_HandleTypeDef::XferErrorCallback.