Package com.ctre.phoenix
Enum CANifierStatusFrame
- All Implemented Interfaces:
Serializable
,Comparable<CANifierStatusFrame>
,java.lang.constant.Constable
public enum CANifierStatusFrame extends Enum<CANifierStatusFrame>
Status frames for CANifier
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description Status_1_General
General status 1Status_2_General
General status 2Status_3_PwmInputs0
PWM0 inputStatus_4_PwmInputs1
PWM1 inputStatus_5_PwmInputs2
PWM2 inputStatus_6_PwmInputs3
PWM3 inputStatus_8_Misc
Miscelaneous status -
Field Summary
Fields Modifier and Type Field Description int
value
Value of CANifier status frame -
Method Summary
Modifier and Type Method Description static CANifierStatusFrame
valueOf(int value)
Get the CANifier Status frame from a specified valuestatic CANifierStatusFrame
valueOf(String name)
Returns the enum constant of this type with the specified name.static CANifierStatusFrame[]
values()
Returns an array containing the constants of this enum type, 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 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 CANifier Status frame from a specified value- Parameters:
value
- integer value of CANifier status frame- Returns:
- CANifier status frame of specified value
-