Package com.revrobotics
Enum CANError
- java.lang.Object
-
- java.lang.Enum<CANError>
-
- com.revrobotics.CANError
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description int
value
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CANError
fromInt(int id)
static CANError
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CANError[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
kOk
public static final CANError kOk
-
kError
public static final CANError kError
-
kTimeout
public static final CANError kTimeout
-
kNotImplmented
public static final CANError kNotImplmented
-
kHALError
public static final CANError kHALError
-
kCantFindFirmware
public static final CANError kCantFindFirmware
-
kFirmwareTooOld
public static final CANError kFirmwareTooOld
-
kFirmwareTooNew
public static final CANError kFirmwareTooNew
-
kParamInvalidID
public static final CANError kParamInvalidID
-
kParamMismatchType
public static final CANError kParamMismatchType
-
kParamAccessMode
public static final CANError kParamAccessMode
-
kParamInvalid
public static final CANError kParamInvalid
-
kParamNotImplementedDeprecated
public static final CANError kParamNotImplementedDeprecated
-
kFollowConfigMismatch
public static final CANError kFollowConfigMismatch
-
kInvalid
public static final CANError kInvalid
-
kSetpointOutOfRange
public static final CANError kSetpointOutOfRange
-
-
Method Detail
-
values
public static CANError[] 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 (CANError c : CANError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CANError 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
-
fromInt
public static CANError fromInt(int id)
-
-