i2c_smbus_xfer — execute SMBus protocol operations
s32 i2c_smbus_xfer ( | struct i2c_adapter * adapter, |
| u16 addr, | |
| unsigned short flags, | |
| char read_write, | |
| u8 command, | |
| int protocol, | |
union i2c_smbus_data * data); |
adapterHandle to I2C bus
addrAddress of SMBus slave on that bus
flagsI2C_CLIENT_* flags (usually zero or I2C_CLIENT_PEC)
read_writeI2C_SMBUS_READ or I2C_SMBUS_WRITE
commandByte interpreted by slave, for protocols which use such bytes
protocolSMBus protocol operation to execute, such as I2C_SMBUS_PROC_CALL
dataData to be read or written