Package com.diozero.devices
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 Summary
Enum Constants Enum Constant Description FOUR_SINGLE_ENDED_INPUTS
SINGLE_ENDED_AND_DIFFERENTIAL_MIXED
Channel 0=AIN0, Channel 1=AIN1, Channel 2=AIN2-AIN3.THREE_DIFFERENTIAL_INPUTS
Channel 0=AIN0-AIN3, Channel 1=AIN1-AIN3, Channel 2=AIN2-AIN3.TWO_DIFFERENTIAL_INPUTS
Channel 0=AIN0-AIN1, Channel 1=AIN2-AIN3.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getControlFlags()
String
getName()
int
getNumPins()
static PCF8591.InputMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static PCF8591.InputMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException
- if the argument is null
-
getControlFlags
public byte getControlFlags()
-
getNumPins
public int getNumPins()
-
getName
public String getName()
-
-