17.8.3.3.1 Code
Add to user application main():
dma_start_transfer_job(&example_resource);
i2c_master_dma_set_transfer(&i2c_master_instance, SLAVE_ADDRESS,
DATA_LENGTH, I2C_TRANSFER_WRITE);
while
(!transfer_is_done) {
/* Wait for transfer done */
}
while
(
true
) {
}