7.8.1.2.2 Workflow

  1. Start the DMA transfer job with the allocated DMA resource and transfer descriptor.
    dma_start_transfer_job(&example_resource);
    
  2. 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);
    
  3. Waiting for the setting of the transfer done flag.
    while (!transfer_is_done) {
        /* Wait for transfer done */
    }