Enum PCF8591.InputMode

java.lang.Object
java.lang.Enum<PCF8591.InputMode>
com.diozero.devices.PCF8591.InputMode
All Implemented Interfaces:
Serializable, Comparable<PCF8591.InputMode>
Enclosing class:
PCF8591

public static enum PCF8591.InputMode
extends Enum<PCF8591.InputMode>
  • Enum Constant Details

    • FOUR_SINGLE_ENDED_INPUTS

      public static final PCF8591.InputMode FOUR_SINGLE_ENDED_INPUTS
    • THREE_DIFFERENTIAL_INPUTS

      public static final PCF8591.InputMode THREE_DIFFERENTIAL_INPUTS
      Channel 0=AIN0-AIN3, Channel 1=AIN1-AIN3, Channel 2=AIN2-AIN3.
    • SINGLE_ENDED_AND_DIFFERENTIAL_MIXED

      public static final PCF8591.InputMode SINGLE_ENDED_AND_DIFFERENTIAL_MIXED
      Channel 0=AIN0, Channel 1=AIN1, Channel 2=AIN2-AIN3.
    • TWO_DIFFERENTIAL_INPUTS

      public static final PCF8591.InputMode TWO_DIFFERENTIAL_INPUTS
      Channel 0=AIN0-AIN1, Channel 1=AIN2-AIN3.
  • Method Details

    • values

      public static PCF8591.InputMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PCF8591.InputMode valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getControlFlags

      public byte getControlFlags()
    • getNumPins

      public int getNumPins()
    • getName

      public String getName()