Struct i2c_master_packet

Structure to be used when transferring I2C master packets.

Table 1. Members
Type Name Description
uint16_t address

Address to slave device

uint8_t * data

Data array containing all data to be transferred

uint16_t data_length

Length of data array

bool high_speed

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

uint8_t hs_master_code

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

bool ten_bit_address

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