I/O operation functions
More...
|
HAL_StatusTypeDef | HAL_DMA_Start (DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength) |
| Starts the DMA Transfer. More...
|
|
HAL_StatusTypeDef | HAL_DMA_Start_IT (DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength) |
| Start the DMA Transfer with interrupt enabled. More...
|
|
HAL_StatusTypeDef | HAL_DMA_Abort (DMA_HandleTypeDef *hdma) |
| Aborts the DMA Transfer. More...
|
|
HAL_StatusTypeDef | HAL_DMA_Abort_IT (DMA_HandleTypeDef *hdma) |
| Aborts the DMA Transfer in Interrupt mode. More...
|
|
HAL_StatusTypeDef | HAL_DMA_PollForTransfer (DMA_HandleTypeDef *hdma, HAL_DMA_LevelCompleteTypeDef CompleteLevel, uint32_t Timeout) |
| Polling for transfer complete. More...
|
|
void | HAL_DMA_IRQHandler (DMA_HandleTypeDef *hdma) |
| Handles DMA interrupt request. More...
|
|
HAL_StatusTypeDef | HAL_DMA_CleanCallbacks (DMA_HandleTypeDef *hdma) |
|
HAL_StatusTypeDef | HAL_DMA_RegisterCallback (DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID, void(*pCallback)(DMA_HandleTypeDef *_hdma)) |
| Register callbacks. More...
|
|
HAL_StatusTypeDef | HAL_DMA_UnRegisterCallback (DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID) |
| UnRegister callbacks. More...
|
|
I/O operation functions
===============================================================================
##### IO operation functions #####
===============================================================================
[..] This section provides functions allowing to:
(+) Configure the source, destination address and data length and Start DMA transfer
(+) Configure the source, destination address and data length and
Start DMA transfer with interrupt
(+) Abort DMA transfer
(+) Poll for transfer complete
(+) Handle DMA interrupt request
◆ HAL_DMA_Abort()
Aborts the DMA Transfer.
- Parameters
-
hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Stream. |
- Note
- After disabling a DMA Stream, a check for wait until the DMA Stream is effectively disabled is added. If a Stream is disabled while a data transfer is ongoing, the current data will be transferred and the Stream will be effectively disabled only after the transfer of this single data is finished.
- Return values
-
Definition at line 513 of file stm32f4xx_hal_dma.c.
◆ HAL_DMA_Abort_IT()
Aborts the DMA Transfer in Interrupt mode.
- Parameters
-
hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Stream. |
- Return values
-
Definition at line 580 of file stm32f4xx_hal_dma.c.
◆ HAL_DMA_IRQHandler()
Handles DMA interrupt request.
- Parameters
-
hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Stream.
|
- Return values
-
Definition at line 746 of file stm32f4xx_hal_dma.c.
◆ HAL_DMA_PollForTransfer()
Polling for transfer complete.
- Parameters
-
hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Stream. |
CompleteLevel | Specifies the DMA level complete. |
- Note
- The polling mode is kept in this version for legacy. it is recommended to use the IT model instead. This model could be used for debug purpose.
-
The HAL_DMA_PollForTransfer API cannot be used in circular and double buffering mode (automatic circular mode).
- Parameters
-
- Return values
-
Definition at line 610 of file stm32f4xx_hal_dma.c.
◆ HAL_DMA_RegisterCallback()
Register callbacks.
- Parameters
-
hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Stream. |
CallbackID | User Callback identifier a DMA_HandleTypeDef structure as parameter. |
pCallback | pointer to private callback function which has pointer to a DMA_HandleTypeDef structure as parameter. |
- Return values
-
Definition at line 967 of file stm32f4xx_hal_dma.c.
◆ HAL_DMA_Start()
HAL_StatusTypeDef HAL_DMA_Start |
( |
DMA_HandleTypeDef * |
hdma, |
|
|
uint32_t |
SrcAddress, |
|
|
uint32_t |
DstAddress, |
|
|
uint32_t |
DataLength |
|
) |
| |
Starts the DMA Transfer.
- Parameters
-
hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Stream. |
SrcAddress | The source memory Buffer address |
DstAddress | The destination memory Buffer address |
DataLength | The length of data to be transferred from source to destination |
- Return values
-
Definition at line 407 of file stm32f4xx_hal_dma.c.
◆ HAL_DMA_Start_IT()
HAL_StatusTypeDef HAL_DMA_Start_IT |
( |
DMA_HandleTypeDef * |
hdma, |
|
|
uint32_t |
SrcAddress, |
|
|
uint32_t |
DstAddress, |
|
|
uint32_t |
DataLength |
|
) |
| |
Start the DMA Transfer with interrupt enabled.
- Parameters
-
hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Stream.
|
SrcAddress | The source memory Buffer address |
DstAddress | The destination memory Buffer address |
DataLength | The length of data to be transferred from source to destination |
- Return values
-
Definition at line 451 of file stm32f4xx_hal_dma.c.
◆ HAL_DMA_UnRegisterCallback()
UnRegister callbacks.
- Parameters
-
hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA Stream. |
CallbackID | User Callback identifier a HAL_DMA_CallbackIDTypeDef ENUM as parameter. |
- Return values
-
Definition at line 1029 of file stm32f4xx_hal_dma.c.