accessing ioctl - address shift ?
After device file is opened for read / write the
ioctl is accessed this way
ioctl(FileDescriptor, I2C_SLAVE, address);
The I2C spec calls for 8 bits format where the actual I2C device address could be shifted to MSByte and "write" bit of zero value thus becomes LSBit.
It is not clear if ioctl should be modified to follow the spec for write
ioctl(FileDescriptor, I2C_SLAVE, address << 1 );
|