I2C master packet for read/write.
Structure to be used when transferring I2C master packets.
#include <i2c_master.h>
Data Fields | |
uint16_t | address |
Address to slave device. More... | |
uint8_t * | data |
Data array containing all data to be transferred. More... | |
uint16_t | data_length |
Length of data array. More... | |
bool | high_speed |
Use high speed transfer. More... | |
uint8_t | hs_master_code |
High speed mode master code (0000 1XXX), valid when high_speed is true. More... | |
bool | ten_bit_address |
Use 10-bit addressing. More... | |
uint16_t i2c_master_packet::address |
Address to slave device.
Referenced by _i2c_master_read_packet(), _i2c_master_write_packet(), run_i2c_full_speed_test(), and run_i2c_master_transfer_test().
uint8_t* i2c_master_packet::data |
Data array containing all data to be transferred.
Referenced by _i2c_master_read_packet(), _i2c_master_write_packet(), i2c_master_read_bytes(), i2c_master_write_bytes(), run_i2c_full_speed_test(), and run_i2c_master_transfer_test().
uint16_t i2c_master_packet::data_length |
Length of data array.
Referenced by _i2c_master_read_packet(), _i2c_master_write_packet(), i2c_master_read_bytes(), and i2c_master_write_bytes().
bool i2c_master_packet::high_speed |
Use high speed transfer.
Set to false if the feature is not supported by the device
Referenced by _i2c_master_read_packet(), and _i2c_master_write_packet().
uint8_t i2c_master_packet::hs_master_code |
High speed mode master code (0000 1XXX), valid when high_speed is true.
Referenced by _i2c_master_read_packet(), and _i2c_master_write_packet().
bool i2c_master_packet::ten_bit_address |
Use 10-bit addressing.
Set to false if the feature is not supported by the device
Referenced by _i2c_master_read_packet(), and _i2c_master_write_packet().