1I2C_SMBUS_XFER(9)           I2C and SMBus Subsystem          I2C_SMBUS_XFER(9)
2
3
4

NAME

6       i2c_smbus_xfer - execute SMBus protocol operations
7

SYNOPSIS

9       s32 i2c_smbus_xfer(struct i2c_adapter * adapter, u16 addr,
10                          unsigned short flags, char read_write, u8 command,
11                          int protocol, union i2c_smbus_data * data);
12

ARGUMENTS

14       adapter
15           Handle to I2C bus
16
17       addr
18           Address of SMBus slave on that bus
19
20       flags
21           I2C_CLIENT_* flags (usually zero or I2C_CLIENT_PEC)
22
23       read_write
24           I2C_SMBUS_READ or I2C_SMBUS_WRITE
25
26       command
27           Byte interpreted by slave, for protocols which use such bytes
28
29       protocol
30           SMBus protocol operation to execute, such as I2C_SMBUS_PROC_CALL
31
32       data
33           Data to be read or written
34

DESCRIPTION

36       This executes an SMBus protocol operation, and returns a negative errno
37       code else zero on success.
38
40Kernel Hackers Manual 3.10         June 2019                 I2C_SMBUS_XFER(9)
Impressum