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