Enum PCF8591.InputMode

    • Enum Constant Detail

      • 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 Detail

      • values

        public static PCF8591.InputMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PCF8591.InputMode c : PCF8591.InputMode.values())
            System.out.println(c);
        
        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()