protected void selectBusSlave ( final I2CDevice device ) throws IOException { final int addr = device . getAddress ( ) ; if ( lastAddress != addr ) { lastAddress = addr ; file . ioctl ( I2CConstants . I2C_SLAVE , addr & 0xFF ) ; } }
Selects the slave device if not already selected on this bus . Uses SharedSecrets to get the POSIX file descriptor and runs the required ioctl s via JNI .