Package frc.lib.lowlevel
Enum Class SparkTap.Frame
- All Implemented Interfaces:
Serializable,Comparable<SparkTap.Frame>,Constable
- Enclosing class:
- SparkTap
Represents the different CAN status frames sent by the Spark Max.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStatus 0 frame (Bus, Power, and Limits).Status 1 frame (Diagnostics and Status).Status 2 frame (Primary Encoder).Status 3 frame (Analog Sensor).Status 4 frame (Alternate Encoder).Status 5 frame (Duty Cycle Absolute Encoder).Status 6 frame (Duty Cycle Absolute Encoder Velocity). -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe internal index of the frame in the memory map. -
Method Summary
Modifier and TypeMethodDescriptionstatic SparkTap.FrameReturns the enum constant of this class with the specified name.static SparkTap.Frame[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
S0
Status 0 frame (Bus, Power, and Limits). -
S1
Status 1 frame (Diagnostics and Status). -
S2
Status 2 frame (Primary Encoder). -
S3
Status 3 frame (Analog Sensor). -
S4
Status 4 frame (Alternate Encoder). -
S5
Status 5 frame (Duty Cycle Absolute Encoder). -
S6
Status 6 frame (Duty Cycle Absolute Encoder Velocity).
-
-
Field Details
-
idx
public final int idxThe internal index of the frame in the memory map.
-
-
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
-