Enum Class DeviceType
- All Implemented Interfaces:
Serializable, Comparable<DeviceType>, Constable
Enumeration of all supported device types.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPhoenix 6 CANcoderPhoenix 6 CANdiPhoenix 6 CANdlePhoenix 6 CANrangePhoenix 6 Pigeon2Phoenix 6 TalonFXSPhoenix 6 TalonFXPigeonIMURibbon PigeonIMUTalonSRXVictorSPX -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DeviceTypevalueOf(int value) Gets DeviceType from specified valuestatic DeviceTypeReturns the enum constant of this class with the specified name.static DeviceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TalonSRXType
TalonSRX -
VictorSPXType
VictorSPX -
PigeonIMUType
PigeonIMU -
RibbonPigeonIMUType
Ribbon PigeonIMU -
P6_TalonFXType
Phoenix 6 TalonFX -
P6_CANcoderType
Phoenix 6 CANcoder -
P6_Pigeon2Type
Phoenix 6 Pigeon2 -
P6_TalonFXSType
Phoenix 6 TalonFXS -
P6_CANrangeType
Phoenix 6 CANrange -
P6_CANdiType
Phoenix 6 CANdi -
P6_CANdleType
Phoenix 6 CANdle
-
-
Field Details
-
value
public final int valueUnique integer value of this DeviceType.
-
-
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
Gets DeviceType from specified value- Parameters:
value- Value of DeviceType- Returns:
- DeviceType of specified value
-