Package com.diozero.devices
Enum 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
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 Details
-
FOUR_SINGLE_ENDED_INPUTS
-
THREE_DIFFERENTIAL_INPUTS
Channel 0=AIN0-AIN3, Channel 1=AIN1-AIN3, Channel 2=AIN2-AIN3. -
SINGLE_ENDED_AND_DIFFERENTIAL_MIXED
Channel 0=AIN0, Channel 1=AIN1, Channel 2=AIN2-AIN3. -
TWO_DIFFERENTIAL_INPUTS
Channel 0=AIN0-AIN1, Channel 1=AIN2-AIN3.
-
-
Method Details
-
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
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
-