Crate i2c_linux_sys
source · [−]Modules
Structs
To determine what functionality is present
an I2C transaction segment beginning with START
This is the structure as used in the I2C_RDWR
ioctl call
Data for SMBus Messages
This is the structure as used in the I2C_SMBUS ioctl call
Enums
i2c_smbus_xfer
read or write markers
SMBus transaction types (size parameter in the above functions)
Constants
Get the adapter functionality mask
I2C_M_NOSTART
I2C_M_IGNORE_NAK
etc.
SMBus 2.0
I2C-like block xfer
w/ 1-byte reg. addr.
if I2C_FUNC_PROTOCOL_MANGLING
if I2C_FUNC_NOSTART
if I2C_FUNC_PROTOCOL_MANGLING
read data, from slave to master
length will be first received byte
if I2C_FUNC_PROTOCOL_MANGLING
if I2C_FUNC_PROTOCOL_MANGLING
this is a ten bit chip address
!= 0 to use PEC with SMBus
Combined R/W transfer (one STOP only)
number of times a device address should be polled when not acknowledging
Use this slave address
Use this slave address, even if it is already in use by a driver!
SMBus transfer
As specified in SMBus standard
SMBus 2.0
0 for 7 bit addrs, != 0 for 10 bit
set timeout in units of 10 ms
Functions
I2C_FUNCS
I2C_PEC
I2C_RETRIES
I2C_SLAVE
and I2C_SLAVE_FORCE
I2C_TENBIT
I2C_TIMEOUT