Linux Kernel
3.7.1
|
i2c_smbus_xfer - execute SMBus protocol operations : Handle to I2C bus : Address of SMBus slave on that bus : I2C_CLIENT_* flags (usually zero or I2C_CLIENT_PEC) : I2C_SMBUS_READ or I2C_SMBUS_WRITE : Byte interpreted by slave, for protocols which use such bytes to execute, such as I2C_SMBUS_PROC_CALL : Data to be read or written
This executes an SMBus protocol operation, and returns a negative errno code else zero on success.