Package com.ctre.phoenix
Enum CANifier.LEDChannel
- All Implemented Interfaces:
Serializable
,Comparable<CANifier.LEDChannel>
,java.lang.constant.Constable
- Enclosing class:
- CANifier
public static enum CANifier.LEDChannel extends Enum<CANifier.LEDChannel>
Enum for the LED Output Channels
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description LEDChannelA
LED Channel ALEDChannelB
LED Channel BLEDChannelC
LED Channel C -
Field Summary
Fields Modifier and Type Field Description int
value
Value of LEDChannel -
Method Summary
Modifier and Type Method Description static CANifier.LEDChannel
valueOf(int value)
Get the LED Channel from a specified valuestatic CANifier.LEDChannel
valueOf(String name)
Returns the enum constant of this type with the specified name.static CANifier.LEDChannel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LEDChannelA
LED Channel A -
LEDChannelB
LED Channel B -
LEDChannelC
LED Channel C
-
-
Field Details
-
value
Value of LEDChannel
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
Get the LED Channel from a specified value- Parameters:
value
- integer value to get LEDChannel from- Returns:
- LEDChannel of specified value
-