标签: i2c
在下面的ioctl调用中,如果我在第三个参数中传递I2C地址,为什么必须将I2C_SLAVE作为第二个参数传递?
ioctl
I2C_SLAVE
#define I2C_SLAVE 0x0703 /* Use this slave address */ ... int addr = 0x40; /* The I2C address */ ... if (ioctl(file, I2C_SLAVE, addr) < 0) { ... }