Input and Output operation functions.
More...
Input and Output 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()
Abort the DMA Transfer.
- Parameters
-
[in] | p_dma | Pointer to a DMA handle which contains the configuration information for the specified DMA Channel. |
- Return values
-
◆ hal_dma_abort_it()
Aborts the DMA Transfer in Interrupt mode.
- Parameters
-
[in] | p_dma | Pointer to a DMA handle which contains the configuration information for the specified DMA Channel. |
- Return values
-
◆ hal_dma_poll_for_transfer()
Polling for transfer complete.
- Parameters
-
[in] | p_dma | Pointer to a DMA handle which contains the configuration information for the specified DMA Channel. |
[in] | timeout | Timeout duration. |
- Return values
-
◆ hal_dma_start()
Start the DMA Transfer.
- Parameters
-
[in] | p_dma | Pointer to a DMA handle which contains the configuration information for the specified DMA Channel. |
[in] | src_address | The source memory Buffer address |
[in] | dst_address | The destination memory Buffer address |
[in] | data_length | The length of data to be transferred from source to destination, ranging between 0 and 4095. |
- Return values
-
◆ hal_dma_start_it()
hal_status_t hal_dma_start_it |
( |
dma_handle_t * |
p_dma, |
|
|
uint32_t |
src_address, |
|
|
uint32_t |
dst_address, |
|
|
uint32_t |
data_length |
|
) |
| |
Start the DMA Transfer with interrupt enabled.
- Parameters
-
[in] | p_dma | Pointer to a DMA handle which contains the configuration information for the specified DMA Channel. |
[in] | src_address | The source memory Buffer address |
[in] | dst_address | The destination memory Buffer address |
[in] | data_length | The length of data to be transferred from source to destination, ranging between 0 and 4095. |
- Return values
-