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

NAME

6       i2c_smbus_read_block_data - SMBus “block read” protocol
7

SYNOPSIS

9       s32 i2c_smbus_read_block_data(const struct i2c_client * client,
10                                     u8 command, u8 * values);
11

ARGUMENTS

13       client
14           Handle to slave device
15
16       command
17           Byte interpreted by slave
18
19       values
20           Byte array into which data will be read; big enough to hold the
21           data returned by the slave. SMBus allows at most 32 bytes.
22

DESCRIPTION

24       This executes the SMBus “block read” protocol, returning negative errno
25       else the number of data bytes in the slave's response.
26
27       Note that using this function requires that the client's adapter
28       support the I2C_FUNC_SMBUS_READ_BLOCK_DATA functionality. Not all
29       adapter drivers support this; its emulation through I2C messaging
30       relies on a specific mechanism (I2C_M_RECV_LEN) which may not be
31       implemented.
32
34Kernel Hackers Manual 3.10         June 2019           I2C_SMBUS_READ_BLOCK(9)
Impressum