#include <sys/ioctl.h>
#include <linux/i2c.h>
|
#define | I2C_SMBUS 0x0720 /* SMBus-level access */ |
|
#define | I2C_SLAVE 0x0703 /* Change slave address */ |
|
◆ I2C_SLAVE
#define I2C_SLAVE 0x0703 /* Change slave address */ |
◆ I2C_SMBUS
#define I2C_SMBUS 0x0720 /* SMBus-level access */ |
- Todo:
If cross-compiling for ARM on older versions of Ubuntu, note the following files are not the same:
/usr/include/linux/i2c-dev
.h
/usr/arm-linux-gnueabi/include/linux/i2c-dev
.h
To get around this issue, I've copied a few of the necessary i2c_smbus_* functions from the newer file in /usr/include/linux/i2c-dev
.h.