7.8.1.2.2 Workflow
- Start the DMA transfer job with the allocated DMA resource and transfer descriptor.
dma_start_transfer_job(&example_resource);
- Set the software trigger for the DMA channel. This can be done before or after the DMA job is started. Note that all transfers needs a trigger to start.
dma_trigger_transfer(&example_resource);
- Waiting for the setting of the transfer done flag.
while
(!transfer_is_done) {
/* Wait for transfer done */
}