Module diozero.core

Class I2CDeviceInterface.Command

java.lang.Object
com.diozero.api.I2CDeviceInterface.Command
Direct Known Subclasses:
I2CDeviceInterface.ReadCommand, I2CDeviceInterface.WriteCommand
Enclosing interface:
I2CDeviceInterface

public abstract static class I2CDeviceInterface.Command extends Object
  • Constructor Details

    • Command

      public Command(Optional<Integer> registerAddress, int flags, byte[] data)
  • Method Details

    • getRegisterAddress

      public Optional<Integer> getRegisterAddress()
    • getFlags

      public int getFlags()
    • getData

      public byte[] getData()
    • getLength

      public int getLength()
    • isRead

      public boolean isRead()
    • isWrite

      public boolean isWrite()