public static enum AMSColorSensor.Gain extends java.lang.Enum<AMSColorSensor.Gain>
Enum Constant and Description |
---|
GAIN_1 |
GAIN_16 |
GAIN_4 |
GAIN_64 |
MASK |
UNKNOWN |
Modifier and Type | Field and Description |
---|---|
byte |
bVal |
Modifier and Type | Method and Description |
---|---|
static AMSColorSensor.Gain |
fromByte(byte byteVal) |
static AMSColorSensor.Gain |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AMSColorSensor.Gain[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AMSColorSensor.Gain UNKNOWN
public static final AMSColorSensor.Gain GAIN_1
public static final AMSColorSensor.Gain GAIN_4
public static final AMSColorSensor.Gain GAIN_16
public static final AMSColorSensor.Gain GAIN_64
public static final AMSColorSensor.Gain MASK
public static AMSColorSensor.Gain[] values()
for (AMSColorSensor.Gain c : AMSColorSensor.Gain.values()) System.out.println(c);
public static AMSColorSensor.Gain 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 static AMSColorSensor.Gain fromByte(byte byteVal)