17.6.3.4.1 Function i2c_master_dma_set_transfer()

Set I2C for DMA transfer with slave address and transfer size.

void i2c_master_dma_set_transfer( struct i2c_master_module *const module, uint16_t addr, uint8_t length, enum i2c_transfer_direction direction)

This function will set the slave address, transfer size and enable the auto transfer mode for DMA.

Table 17-30. Parameters
Data directionParameter nameDescription

[in, out]

module

Pointer to the driver instance to lock

[in]

addr

I2C slave address

[in]

length

I2C transfer length with DMA

[in]

direction

I2C transfer direction