Functions | |
dma_id_t | app_dma_init (app_dma_params_t *p_params, app_dma_evt_handler_t evt_handler) |
Initialize the APP DMA DRIVER according to the specified parameters in the app_dma_params_t and app_dma_evt_handler_t. More... | |
uint16_t | app_dma_deinit (dma_id_t ins_id) |
De-initialize the APP ADC DRIVER peripheral. More... | |
uint16_t | app_dma_start (dma_id_t id, uint32_t src_address, uint32_t dst_address, uint32_t data_length) |
Start the DMA Transfer. More... | |
dma_handle_t * | app_dma_get_handle (dma_id_t id) |
Return the DMA handle. More... | |
uint16_t app_dma_deinit | ( | dma_id_t | ins_id | ) |
De-initialize the APP ADC DRIVER peripheral.
[in] | ins_id | Deinitialize DMA channel for a specific ID. |
dma_handle_t* app_dma_get_handle | ( | dma_id_t | id | ) |
Return the DMA handle.
[in] | id | DMA Channel ID. |
dma_id_t app_dma_init | ( | app_dma_params_t * | p_params, |
app_dma_evt_handler_t | evt_handler | ||
) |
Initialize the APP DMA DRIVER according to the specified parameters in the app_dma_params_t and app_dma_evt_handler_t.
[in] | p_params | Pointer to app_dma_params_t parameter which contains the configuration information for the specified DMA module. |
[in] | evt_handler | DMA user callback function. |
uint16_t app_dma_start | ( | dma_id_t | id, |
uint32_t | src_address, | ||
uint32_t | dst_address, | ||
uint32_t | data_length | ||
) |
Start the DMA Transfer.
[in] | id | DMA channel id. |
[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. |