Rechercher une page de manuel
i2c_smbus_read_block_data
Langue: en
Version: June 2009 (debian - 07/07/09)
Section: 9 (Appels noyau Linux)
NAME
i2c_smbus_read_block_data - SMBus block read requestSYNOPSIS
- s32 i2c_smbus_read_block_data(struct i2c_client * client, u8 command, u8 * values);
ARGUMENTS
client
- Handle to slave device
command
- Command byte issued to let the slave know what data should be returned
values
- Byte array into which data will be read; big enough to hold the data returned by the slave. SMBus allows at most 32 bytes.
DESCRIPTION
Returns the number of bytes read in the slave's response, else a negative number to indicate some kind of error.
Note that using this function requires that the client's adapter support the I2C_FUNC_SMBUS_READ_BLOCK_DATA functionality. Not all adapter drivers support this; its emulation through I2C messaging relies on a specific mechanism (I2C_M_RECV_LEN) which may not be implemented.
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre