17.6.1.3 Struct i2c_master_packet

Structure to be used when transferring I2C master packets.

Table 17-3. Members
TypeNameDescription
uint16_taddress

Address to slave device

uint8_t *data

Data array containing all data to be transferred

uint16_tdata_length

Length of data array

boolhigh_speed

Use high speed transfer. Set to false if the feature is not supported by the device

uint8_ths_master_code

High speed mode master code (0000 1XXX), valid when high_speed is true

boolten_bit_address

Use 10-bit addressing. Set to false if the feature is not supported by the device