Package com.ctre.phoenix
Enum Class CANifierStatusFrame
- All Implemented Interfaces:
Serializable
,Comparable<CANifierStatusFrame>
,Constable
Status frames for CANifier
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGeneral status 1General status 2PWM0 inputPWM1 inputPWM2 inputPWM3 inputMiscelaneous status -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CANifierStatusFrame
valueOf
(int value) Get the CANifier Status frame from a specified valuestatic CANifierStatusFrame
Returns the enum constant of this class with the specified name.static CANifierStatusFrame[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Status_1_General
General status 1 -
Status_2_General
General status 2 -
Status_3_PwmInputs0
PWM0 input -
Status_4_PwmInputs1
PWM1 input -
Status_5_PwmInputs2
PWM2 input -
Status_6_PwmInputs3
PWM3 input -
Status_8_Misc
Miscelaneous status
-
-
Field Details
-
value
Value of CANifier status frame
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
Get the CANifier Status frame from a specified value- Parameters:
value
- integer value of CANifier status frame- Returns:
- CANifier status frame of specified value
-