
看例子,是操作 0x00-0xFF 的字节,若想操作 0xFF后面的字节,如何操作?
__u8 buf = mem_addr & 0x0ff;
r = i2c_smbus_access(e->fd, I2C_SMBUS_WRITE, buf, I2C_SMBUS_BYTE, NULL);;
若有了解的帮忙指点下
-------------
/* Some IOCTL commands are defined in <linux/i2c.h> */
/* Note: 10-bit addresses are NOT supported! */
/* This is the structure as used in the I2C_SMBUS ioctl call */
struct i2c_smbus_ioctl_data {
__u8 read_write;
__u8 command;
__u32 size;
union i2c_smbus_data *data;
};
??不支持0xFF后面的字节的操作