Package com.revrobotics
Enum REVLibError
- java.lang.Object
-
- java.lang.Enum<REVLibError>
-
- com.revrobotics.REVLibError
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<REVLibError>
public enum REVLibError extends java.lang.Enum<REVLibError>
-
-
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 REVLibError
fromInt(int id)
static REVLibError
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static REVLibError[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
kOk
public static final REVLibError kOk
-
kError
public static final REVLibError kError
-
kTimeout
public static final REVLibError kTimeout
-
kNotImplemented
public static final REVLibError kNotImplemented
-
kHALError
public static final REVLibError kHALError
-
kCantFindFirmware
public static final REVLibError kCantFindFirmware
-
kFirmwareTooOld
public static final REVLibError kFirmwareTooOld
-
kFirmwareTooNew
public static final REVLibError kFirmwareTooNew
-
kParamInvalidID
public static final REVLibError kParamInvalidID
-
kParamMismatchType
public static final REVLibError kParamMismatchType
-
kParamAccessMode
public static final REVLibError kParamAccessMode
-
kParamInvalid
public static final REVLibError kParamInvalid
-
kParamNotImplementedDeprecated
public static final REVLibError kParamNotImplementedDeprecated
-
kFollowConfigMismatch
public static final REVLibError kFollowConfigMismatch
-
kInvalid
public static final REVLibError kInvalid
-
kSetpointOutOfRange
public static final REVLibError kSetpointOutOfRange
-
kUnknown
public static final REVLibError kUnknown
-
kCANDisconnected
public static final REVLibError kCANDisconnected
-
kDuplicateCANId
public static final REVLibError kDuplicateCANId
-
kInvalidCANId
public static final REVLibError kInvalidCANId
-
kSparkMaxDataPortAlreadyConfiguredDifferently
public static final REVLibError kSparkMaxDataPortAlreadyConfiguredDifferently
-
-
Method Detail
-
values
public static REVLibError[] 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 (REVLibError c : REVLibError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static REVLibError 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 REVLibError fromInt(int id)
-
-