|
STM32L4xx_HAL_Driver
1.14.0
|
Multibuffer functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_MMCEx_ConfigDMAMultiBuffer (MMC_HandleTypeDef *hmmc, 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_MMCEx_ReadBlocksDMAMultiBuffer (MMC_HandleTypeDef *hmmc, 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_MMCEx_ConfigDMAMultiBuffer before call this function. More... | |
| HAL_StatusTypeDef | HAL_MMCEx_WriteBlocksDMAMultiBuffer (MMC_HandleTypeDef *hmmc, 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_MMCEx_ConfigDMAMultiBuffer before call this function. More... | |
| HAL_StatusTypeDef | HAL_MMCEx_ChangeDMABuffer (MMC_HandleTypeDef *hmmc, HAL_MMCEx_DMABuffer_MemoryTypeDef Buffer, uint32_t *pDataBuffer) |
| Change the DMA Buffer0 or Buffer1 address on the fly. More... | |
| __weak void | HAL_MMCEx_Read_DMADoubleBuffer0CpltCallback (MMC_HandleTypeDef *hmmc) |
| Read DMA Buffer 0 Transfer completed callbacks. More... | |
| __weak void | HAL_MMCEx_Read_DMADoubleBuffer1CpltCallback (MMC_HandleTypeDef *hmmc) |
| Read DMA Buffer 1 Transfer completed callbacks. More... | |
| __weak void | HAL_MMCEx_Write_DMADoubleBuffer0CpltCallback (MMC_HandleTypeDef *hmmc) |
| Write DMA Buffer 0 Transfer completed callbacks. More... | |
| __weak void | HAL_MMCEx_Write_DMADoubleBuffer1CpltCallback (MMC_HandleTypeDef *hmmc) |
| 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 MMC HAL driver. | HAL_StatusTypeDef HAL_MMCEx_ChangeDMABuffer | ( | MMC_HandleTypeDef * | hmmc, |
| HAL_MMCEx_DMABuffer_MemoryTypeDef | Buffer, | ||
| uint32_t * | pDataBuffer | ||
| ) |
Change the DMA Buffer0 or Buffer1 address on the fly.
| hmmc | pointer to a MMC_HandleTypeDef structure. |
| Buffer | the buffer to be changed, This parameter can be one of the following values: MMC_DMA_BUFFER0 or MMC_DMA_BUFFER1 |
| pDataBuffer | The new address |
| HAL | status |
Definition at line 271 of file stm32l4xx_hal_mmc_ex.c.
| HAL_StatusTypeDef HAL_MMCEx_ConfigDMAMultiBuffer | ( | MMC_HandleTypeDef * | hmmc, |
| uint32_t * | pDataBuffer0, | ||
| uint32_t * | pDataBuffer1, | ||
| uint32_t | BufferSize | ||
| ) |
Configure DMA Dual Buffer mode. The Data transfer is managed by an Internal DMA.
| hmmc | MMC 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 85 of file stm32l4xx_hal_mmc_ex.c.
| __weak void HAL_MMCEx_Read_DMADoubleBuffer0CpltCallback | ( | MMC_HandleTypeDef * | hmmc | ) |
Read DMA Buffer 0 Transfer completed callbacks.
| hmmc | MMC handle |
| None |
Definition at line 292 of file stm32l4xx_hal_mmc_ex.c.
| __weak void HAL_MMCEx_Read_DMADoubleBuffer1CpltCallback | ( | MMC_HandleTypeDef * | hmmc | ) |
Read DMA Buffer 1 Transfer completed callbacks.
| hmmc | MMC handle |
| None |
Definition at line 307 of file stm32l4xx_hal_mmc_ex.c.
| HAL_StatusTypeDef HAL_MMCEx_ReadBlocksDMAMultiBuffer | ( | MMC_HandleTypeDef * | hmmc, |
| 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_MMCEx_ConfigDMAMultiBuffer before call this function.
| hmmc | MMC handle |
| BlockAdd | Block Address from where data is to be read |
| NumberOfBlocks | Total number of blocks to read |
| HAL | status |
Definition at line 109 of file stm32l4xx_hal_mmc_ex.c.
| __weak void HAL_MMCEx_Write_DMADoubleBuffer0CpltCallback | ( | MMC_HandleTypeDef * | hmmc | ) |
Write DMA Buffer 0 Transfer completed callbacks.
| hmmc | MMC handle |
| None |
Definition at line 322 of file stm32l4xx_hal_mmc_ex.c.
| __weak void HAL_MMCEx_Write_DMADoubleBuffer1CpltCallback | ( | MMC_HandleTypeDef * | hmmc | ) |
Write DMA Buffer 1 Transfer completed callbacks.
| hmmc | MMC handle |
| None |
Definition at line 337 of file stm32l4xx_hal_mmc_ex.c.
| HAL_StatusTypeDef HAL_MMCEx_WriteBlocksDMAMultiBuffer | ( | MMC_HandleTypeDef * | hmmc, |
| 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_MMCEx_ConfigDMAMultiBuffer before call this function.
| hmmc | MMC handle |
| BlockAdd | Block Address from where data is to be read |
| NumberOfBlocks | Total number of blocks to read |
| HAL | status |
Definition at line 189 of file stm32l4xx_hal_mmc_ex.c.