Package com.revrobotics
Enum CANSparkBase.FaultID
- java.lang.Object
-
- java.lang.Enum<CANSparkBase.FaultID>
-
- com.revrobotics.CANSparkBase.FaultID
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CANSparkBase.FaultID>
- Enclosing class:
- CANSparkBase
public static enum CANSparkBase.FaultID extends java.lang.Enum<CANSparkBase.FaultID>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description kBrownout
kCANRX
kCANTX
kDRVFault
kEEPROMCRC
kHardLimitFwd
kHardLimitRev
kHasReset
kIWDTReset
kMotorFault
kOtherFault
kOvercurrent
kSensorFault
kSoftLimitFwd
kSoftLimitRev
kStall
-
Field Summary
Fields Modifier and Type Field Description int
value
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CANSparkBase.FaultID
fromId(int id)
static CANSparkBase.FaultID
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CANSparkBase.FaultID[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
kBrownout
public static final CANSparkBase.FaultID kBrownout
-
kOvercurrent
public static final CANSparkBase.FaultID kOvercurrent
-
kIWDTReset
public static final CANSparkBase.FaultID kIWDTReset
-
kMotorFault
public static final CANSparkBase.FaultID kMotorFault
-
kSensorFault
public static final CANSparkBase.FaultID kSensorFault
-
kStall
public static final CANSparkBase.FaultID kStall
-
kEEPROMCRC
public static final CANSparkBase.FaultID kEEPROMCRC
-
kCANTX
public static final CANSparkBase.FaultID kCANTX
-
kCANRX
public static final CANSparkBase.FaultID kCANRX
-
kHasReset
public static final CANSparkBase.FaultID kHasReset
-
kDRVFault
public static final CANSparkBase.FaultID kDRVFault
-
kOtherFault
public static final CANSparkBase.FaultID kOtherFault
-
kSoftLimitFwd
public static final CANSparkBase.FaultID kSoftLimitFwd
-
kSoftLimitRev
public static final CANSparkBase.FaultID kSoftLimitRev
-
kHardLimitFwd
public static final CANSparkBase.FaultID kHardLimitFwd
-
kHardLimitRev
public static final CANSparkBase.FaultID kHardLimitRev
-
-
Method Detail
-
values
public static CANSparkBase.FaultID[] 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 (CANSparkBase.FaultID c : CANSparkBase.FaultID.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CANSparkBase.FaultID 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
-
fromId
public static CANSparkBase.FaultID fromId(int id)
-
-