|
STM32L4xx_HAL_Driver
1.14.0
|
Multibuffer functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_SDEx_ConfigDMAMultiBuffer (SD_HandleTypeDef *hsd, uint32_t *pDataBuffer0, uint32_t *pDataBuffer1, uint32_t BufferSize) |
| Configure DMA Dual Buffer mode. The Data transfer is managed by an Internal DMA. More... | |
| HAL_StatusTypeDef | HAL_SDEx_ReadBlocksDMAMultiBuffer (SD_HandleTypeDef *hsd, uint32_t BlockAdd, uint32_t NumberOfBlocks) |
| Reads block(s) from a specified address in a card. The received Data will be stored in Buffer0 and Buffer1. Buffer0, Buffer1 and BufferSize need to be configured by function HAL_SDEx_ConfigDMAMultiBuffer before call this function. More... | |
| HAL_StatusTypeDef | HAL_SDEx_WriteBlocksDMAMultiBuffer (SD_HandleTypeDef *hsd, uint32_t BlockAdd, uint32_t NumberOfBlocks) |
| Write block(s) to a specified address in a card. The transfered Data are stored in Buffer0 and Buffer1. Buffer0, Buffer1 and BufferSize need to be configured by function HAL_SDEx_ConfigDMAMultiBuffer before call this function. More... | |
| HAL_StatusTypeDef | HAL_SDEx_ChangeDMABuffer (SD_HandleTypeDef *hsd, HAL_SDEx_DMABuffer_MemoryTypeDef Buffer, uint32_t *pDataBuffer) |
| Change the DMA Buffer0 or Buffer1 address on the fly. More... | |
| void | HAL_SDEx_Read_DMADoubleBuffer0CpltCallback (SD_HandleTypeDef *hsd) |
| Read DMA Buffer 0 Transfer completed callbacks. More... | |
| void | HAL_SDEx_Read_DMADoubleBuffer1CpltCallback (SD_HandleTypeDef *hsd) |
| Read DMA Buffer 1 Transfer completed callbacks. More... | |
| void | HAL_SDEx_Write_DMADoubleBuffer0CpltCallback (SD_HandleTypeDef *hsd) |
| Write DMA Buffer 0 Transfer completed callbacks. More... | |
| void | HAL_SDEx_Write_DMADoubleBuffer1CpltCallback (SD_HandleTypeDef *hsd) |
| Write DMA Buffer 1 Transfer completed callbacks. More... | |
Multibuffer functions.
==============================================================================
##### Multibuffer functions #####
==============================================================================
[..]
This section provides functions allowing to configure the multibuffer mode and start read and write
multibuffer mode for SD HAL driver. | HAL_StatusTypeDef HAL_SDEx_ChangeDMABuffer | ( | SD_HandleTypeDef * | hsd, |
| HAL_SDEx_DMABuffer_MemoryTypeDef | Buffer, | ||
| uint32_t * | pDataBuffer | ||
| ) |
Change the DMA Buffer0 or Buffer1 address on the fly.
| hsd | pointer to a SD_HandleTypeDef structure. |
| Buffer | the buffer to be changed, This parameter can be one of the following values: SD_DMA_BUFFER0 or SD_DMA_BUFFER1 |
| pDataBuffer | The new address |
| HAL | status |
Definition at line 342 of file stm32l4xx_hal_sd_ex.c.
| HAL_StatusTypeDef HAL_SDEx_ConfigDMAMultiBuffer | ( | SD_HandleTypeDef * | hsd, |
| uint32_t * | pDataBuffer0, | ||
| uint32_t * | pDataBuffer1, | ||
| uint32_t | BufferSize | ||
| ) |
Configure DMA Dual Buffer mode. The Data transfer is managed by an Internal DMA.
| hsd | SD handle |
| pDataBuffer0 | Pointer to the buffer0 that will contain/receive the transfered data |
| pDataBuffer1 | Pointer to the buffer1 that will contain/receive the transfered data |
| BufferSize | Size of Buffer0 in Blocks. Buffer0 and Buffer1 must have the same size. |
| HAL | status |
Definition at line 132 of file stm32l4xx_hal_sd_ex.c.
| __weak void HAL_SDEx_Read_DMADoubleBuffer0CpltCallback | ( | SD_HandleTypeDef * | hsd | ) |
Read DMA Buffer 0 Transfer completed callbacks.
| hsd | SD handle |
| None |
Definition at line 363 of file stm32l4xx_hal_sd_ex.c.
| __weak void HAL_SDEx_Read_DMADoubleBuffer1CpltCallback | ( | SD_HandleTypeDef * | hsd | ) |
Read DMA Buffer 1 Transfer completed callbacks.
| hsd | SD handle |
| None |
Definition at line 378 of file stm32l4xx_hal_sd_ex.c.
| HAL_StatusTypeDef HAL_SDEx_ReadBlocksDMAMultiBuffer | ( | SD_HandleTypeDef * | hsd, |
| uint32_t | BlockAdd, | ||
| uint32_t | NumberOfBlocks | ||
| ) |
Reads block(s) from a specified address in a card. The received Data will be stored in Buffer0 and Buffer1. Buffer0, Buffer1 and BufferSize need to be configured by function HAL_SDEx_ConfigDMAMultiBuffer before call this function.
| hsd | SD handle |
| BlockAdd | Block Address from where data is to be read |
| NumberOfBlocks | Total number of blocks to read |
| HAL | status |
Definition at line 156 of file stm32l4xx_hal_sd_ex.c.
| __weak void HAL_SDEx_Write_DMADoubleBuffer0CpltCallback | ( | SD_HandleTypeDef * | hsd | ) |
Write DMA Buffer 0 Transfer completed callbacks.
| hsd | SD handle |
| None |
Definition at line 393 of file stm32l4xx_hal_sd_ex.c.
| __weak void HAL_SDEx_Write_DMADoubleBuffer1CpltCallback | ( | SD_HandleTypeDef * | hsd | ) |
Write DMA Buffer 1 Transfer completed callbacks.
| hsd | SD handle |
| None |
Definition at line 408 of file stm32l4xx_hal_sd_ex.c.
| HAL_StatusTypeDef HAL_SDEx_WriteBlocksDMAMultiBuffer | ( | SD_HandleTypeDef * | hsd, |
| uint32_t | BlockAdd, | ||
| uint32_t | NumberOfBlocks | ||
| ) |
Write block(s) to a specified address in a card. The transfered Data are stored in Buffer0 and Buffer1. Buffer0, Buffer1 and BufferSize need to be configured by function HAL_SDEx_ConfigDMAMultiBuffer before call this function.
| hsd | SD handle |
| BlockAdd | Block Address from where data is to be read |
| NumberOfBlocks | Total number of blocks to read |
| HAL | status |
Definition at line 249 of file stm32l4xx_hal_sd_ex.c.