17.8.3.3.2 Workflow

  1. Start the DMA transfer job.
    dma_start_transfer_job(&example_resource);
    
  2. Set the auto address length and enable flag.
    i2c_master_dma_set_transfer(&i2c_master_instance, SLAVE_ADDRESS,
            DATA_LENGTH, I2C_TRANSFER_WRITE);
    
  3. Waiting for transfer complete.
    while (!transfer_is_done) {
        /* Wait for transfer done */
    }
    
  4. Enter an infinite loop once transfer complete.
    while (true) {
    }