public static enum ProximityTsl2671.ReceiverDiode extends java.lang.Enum<ProximityTsl2671.ReceiverDiode>
Enum Constant and Description |
---|
BOTH
Use both photodiodes
|
CHANNEL_0
Use the channel 0 diode, which is responsive to both visible and infrared light
|
CHANNEL_1
Use the channel 1 diode, which is responsive primarily to infrared light
|
Modifier and Type | Method and Description |
---|---|
static ProximityTsl2671.ReceiverDiode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProximityTsl2671.ReceiverDiode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProximityTsl2671.ReceiverDiode CHANNEL_0
public static final ProximityTsl2671.ReceiverDiode CHANNEL_1
public static final ProximityTsl2671.ReceiverDiode BOTH
public static ProximityTsl2671.ReceiverDiode[] values()
for (ProximityTsl2671.ReceiverDiode c : ProximityTsl2671.ReceiverDiode.values()) System.out.println(c);
public static ProximityTsl2671.ReceiverDiode 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 null