Package crackers.kobots.devices
Interface I2CSubRegister
-
- All Implemented Interfaces:
public interface I2CSubRegister<N extends Number>
Creates a read/write sub-register (e.g. bit-mapped values). The values read/write are based on a bit-mask - e.g. this will extract and write only a subset of a register value. This is for those occasions that an I2C register contains multiple values.
the
read
operation will shift the value "down" to provide the valuethe
write
operation will shift the value "up" to its proper bit-location and not change or influence other bits in the register