public enum PCF8591InputChannel extends java.lang.Enum<PCF8591InputChannel> implements ADCChannel
Enum Constant and Description |
---|
CHANNEL_0
Input channel 0.
|
CHANNEL_1
Input channel 1.
|
CHANNEL_2
Input channel 2.
|
CHANNEL_3
Input channel 3.
|
Modifier and Type | Method and Description |
---|---|
byte |
getValue()
Get the address corresponding to the input channel.
|
static PCF8591InputChannel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PCF8591InputChannel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PCF8591InputChannel CHANNEL_0
public static final PCF8591InputChannel CHANNEL_1
public static final PCF8591InputChannel CHANNEL_2
public static final PCF8591InputChannel CHANNEL_3
public static PCF8591InputChannel[] values()
for (PCF8591InputChannel c : PCF8591InputChannel.values()) System.out.println(c);
public static PCF8591InputChannel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic byte getValue()
getValue
in interface ADCChannel