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 value

    • the write operation will shift the value "up" to its proper bit-location and not change or influence other bits in the register

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract N read()
      abstract Unit write(N data)
      abstract Integer getMask()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait