Modules§
Structs§
- Flags
- Functionality
- To determine what functionality is present
- i2c_msg
- an I2C transaction segment beginning with START
- i2c_
rdwr_ ioctl_ data - This is the structure as used in the
I2C_RDWR
ioctl call - i2c_
smbus_ data - Data for SMBus Messages
- i2c_
smbus_ ioctl_ data - This is the structure as used in the I2C_SMBUS ioctl call
Enums§
- Smbus
Read Write i2c_smbus_xfer
read or write markers- Smbus
Transaction - SMBus transaction types (size parameter in the above functions)
Constants§
- I2C_
FUNCS - Get the adapter functionality mask
- I2C_
FUNC_ 10BIT_ ADDR - I2C_
FUNC_ I2C - I2C_
FUNC_ NOSTART I2C_M_NOSTART
- I2C_
FUNC_ PROTOCOL_ MANGLING I2C_M_IGNORE_NAK
etc.- I2C_
FUNC_ SLAVE - I2C_
FUNC_ SMBUS_ BLOCK_ DATA - I2C_
FUNC_ SMBUS_ BLOCK_ PROC_ CALL - SMBus 2.0
- I2C_
FUNC_ SMBUS_ BYTE - I2C_
FUNC_ SMBUS_ BYTE_ DATA - I2C_
FUNC_ SMBUS_ EMUL - I2C_
FUNC_ SMBUS_ HOST_ NOTIFY - I2C_
FUNC_ SMBUS_ I2C_ BLOCK - I2C_
FUNC_ SMBUS_ PEC - I2C_
FUNC_ SMBUS_ PROC_ CALL - I2C_
FUNC_ SMBUS_ QUICK - I2C_
FUNC_ SMBUS_ READ_ BLOCK_ DATA - I2C_
FUNC_ SMBUS_ READ_ BYTE - I2C_
FUNC_ SMBUS_ READ_ BYTE_ DATA - I2C_
FUNC_ SMBUS_ READ_ I2C_ BLOCK - I2C-like block xfer
- I2C_
FUNC_ SMBUS_ READ_ WORD_ DATA - I2C_
FUNC_ SMBUS_ WORD_ DATA - I2C_
FUNC_ SMBUS_ WRITE_ BLOCK_ DATA - I2C_
FUNC_ SMBUS_ WRITE_ BYTE - I2C_
FUNC_ SMBUS_ WRITE_ BYTE_ DATA - I2C_
FUNC_ SMBUS_ WRITE_ I2C_ BLOCK - w/ 1-byte reg. addr.
- I2C_
FUNC_ SMBUS_ WRITE_ WORD_ DATA - I2C_
M_ IGNORE_ NAK - if
I2C_FUNC_PROTOCOL_MANGLING
- I2C_
M_ NOSTART - if
I2C_FUNC_NOSTART
- I2C_
M_ NO_ RD_ ACK - if
I2C_FUNC_PROTOCOL_MANGLING
- I2C_
M_ RD - read data, from slave to master
- I2C_
M_ RECV_ LEN - length will be first received byte
- I2C_
M_ REV_ DIR_ ADDR - if
I2C_FUNC_PROTOCOL_MANGLING
- I2C_
M_ STOP - if
I2C_FUNC_PROTOCOL_MANGLING
- I2C_
M_ TEN - this is a ten bit chip address
- I2C_PEC
- != 0 to use PEC with SMBus
- I2C_
RDWR - Combined R/W transfer (one STOP only)
- I2C_
RDWR_ IOCTL_ MAX_ MSGS - I2C_
RETRIES - number of times a device address should be polled when not acknowledging
- I2C_
SLAVE - Use this slave address
- I2C_
SLAVE_ FORCE - Use this slave address, even if it is already in use by a driver!
- I2C_
SMBUS - SMBus transfer
- I2C_
SMBUS_ BLOCK_ DATA - I2C_
SMBUS_ BLOCK_ MAX - As specified in SMBus standard
- I2C_
SMBUS_ BLOCK_ PROC_ CALL - SMBus 2.0
- I2C_
SMBUS_ BYTE - I2C_
SMBUS_ BYTE_ DATA - I2C_
SMBUS_ I2C_ BLOCK_ BROKEN - I2C_
SMBUS_ I2C_ BLOCK_ DATA - I2C_
SMBUS_ PROC_ CALL - I2C_
SMBUS_ QUICK - I2C_
SMBUS_ READ - I2C_
SMBUS_ WORD_ DATA - I2C_
SMBUS_ WRITE - I2C_
TENBIT - 0 for 7 bit addrs, != 0 for 10 bit
- I2C_
TIMEOUT - set timeout in units of 10 ms
Functions§
- i2c_
get_ functionality I2C_FUNCS
- i2c_pec
I2C_PEC
- i2c_
rdwr ⚠ I2C_RDWR
- i2c_
set_ retries I2C_RETRIES
- i2c_
set_ slave_ address I2C_SLAVE
andI2C_SLAVE_FORCE
- i2c_
set_ slave_ address_ 10bit I2C_TENBIT
- i2c_
set_ timeout_ ms I2C_TIMEOUT
- i2c_
smbus ⚠ I2C_SMBUS
- i2c_
smbus_ block_ process_ call - i2c_
smbus_ process_ call - i2c_
smbus_ read_ block_ data - i2c_
smbus_ read_ byte - i2c_
smbus_ read_ byte_ data - i2c_
smbus_ read_ i2c_ block_ data - i2c_
smbus_ read_ word_ data - i2c_
smbus_ write_ block_ data - i2c_
smbus_ write_ byte - i2c_
smbus_ write_ byte_ data - i2c_
smbus_ write_ i2c_ block_ data - i2c_
smbus_ write_ quick - i2c_
smbus_ write_ word_ data