public static enum Tsl2671Proximity.ReceiverDiode extends java.lang.Enum<Tsl2671Proximity.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 Tsl2671Proximity.ReceiverDiode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Tsl2671Proximity.ReceiverDiode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Tsl2671Proximity.ReceiverDiode CHANNEL_0
public static final Tsl2671Proximity.ReceiverDiode CHANNEL_1
public static final Tsl2671Proximity.ReceiverDiode BOTH
public static Tsl2671Proximity.ReceiverDiode[] values()
for (Tsl2671Proximity.ReceiverDiode c : Tsl2671Proximity.ReceiverDiode.values()) System.out.println(c);
public static Tsl2671Proximity.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