Package com.revrobotics
Enum ColorSensorV3.LEDCurrent
- java.lang.Object
-
- java.lang.Enum<ColorSensorV3.LEDCurrent>
-
- com.revrobotics.ColorSensorV3.LEDCurrent
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ColorSensorV3.LEDCurrent>
- Enclosing class:
- ColorSensorV3
public static enum ColorSensorV3.LEDCurrent extends java.lang.Enum<ColorSensorV3.LEDCurrent>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description kPulse100mA
kPulse10mA
kPulse125mA
kPulse25mA
kPulse2mA
kPulse50mA
kPulse5mA
kPulse75mA
-
Field Summary
Fields Modifier and Type Field Description byte
bVal
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ColorSensorV3.LEDCurrent
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ColorSensorV3.LEDCurrent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
kPulse2mA
public static final ColorSensorV3.LEDCurrent kPulse2mA
-
kPulse5mA
public static final ColorSensorV3.LEDCurrent kPulse5mA
-
kPulse10mA
public static final ColorSensorV3.LEDCurrent kPulse10mA
-
kPulse25mA
public static final ColorSensorV3.LEDCurrent kPulse25mA
-
kPulse50mA
public static final ColorSensorV3.LEDCurrent kPulse50mA
-
kPulse75mA
public static final ColorSensorV3.LEDCurrent kPulse75mA
-
kPulse100mA
public static final ColorSensorV3.LEDCurrent kPulse100mA
-
kPulse125mA
public static final ColorSensorV3.LEDCurrent kPulse125mA
-
-
Method Detail
-
values
public static ColorSensorV3.LEDCurrent[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ColorSensorV3.LEDCurrent c : ColorSensorV3.LEDCurrent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColorSensorV3.LEDCurrent valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-