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(), adp_interface_read_response(), adp_interface_send(), at30tse_eeprom_read(), at30tse_eeprom_write(), at30tse_read_register(), at30tse_set_register_pointer(), at30tse_write_register(), bno055_i2c_bus_init(), main(), 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(), adp_interface_read_response(), bno055_i2c_bus_read(), bno055_i2c_bus_write(), i2c_master_read_bytes(), i2c_master_write_bytes(), main(), 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(), adp_interface_read_response(), bno055_i2c_bus_read(), bno055_i2c_bus_write(), i2c_master_read_bytes(), i2c_master_write_bytes(), and main().
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(), _i2c_master_write_packet(), and bno055_i2c_bus_init().