public static enum PCF8591.InputMode extends Enum<PCF8591.InputMode>
Enum Constant and 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.
|
Modifier and Type | Method and 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.
|
public static final PCF8591.InputMode FOUR_SINGLE_ENDED_INPUTS
public static final PCF8591.InputMode THREE_DIFFERENTIAL_INPUTS
public static final PCF8591.InputMode SINGLE_ENDED_AND_DIFFERENTIAL_MIXED
public static final PCF8591.InputMode TWO_DIFFERENTIAL_INPUTS
public static PCF8591.InputMode[] values()
for (PCF8591.InputMode c : PCF8591.InputMode.values()) System.out.println(c);
public static PCF8591.InputMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte getControlFlags()
public int getNumPins()
public String getName()
Copyright © 2016–2017 mattjlewis. All rights reserved.