Scroll to navigation

I2C_SMBUS_XFER(9) I2C and SMBus Subsystem I2C_SMBUS_XFER(9)

NAME

i2c_smbus_xfer - execute SMBus protocol operations

SYNOPSIS

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);

ARGUMENTS

adapter
Handle to I2C bus
addr
Address of SMBus slave on that bus
flags
I2C_CLIENT_* flags (usually zero or I2C_CLIENT_PEC)
read_write
I2C_SMBUS_READ or I2C_SMBUS_WRITE
command
Byte interpreted by slave, for protocols which use such bytes
protocol
SMBus protocol operation to execute, such as I2C_SMBUS_PROC_CALL
data
Data to be read or written

DESCRIPTION

This executes an SMBus protocol operation, and returns a negative errno code else zero on success.

COPYRIGHT

May 2018 Kernel Hackers Manual 3.16