#define __swi_end(number, func, call)
#define __swi_begin(number)
int(* i2c_msg)(I2C_MSG *)
Callback, which will be called at the end of the transfer.
uint8_t chip_addr
7-bit address.
int size
Size of the data for reading or writing.
short nRegister
ID of SMBUS register.
void * data
Reading buffer (i2c_receive) or data for sending (i2c_transfer).
int i2c_receive(I2C_MSG *msg)
Write data to the I2C device (SMBUS).
int i2c_transfer(I2C_MSG *msg)
Read data from the I2C device (SMBUS).