Package com.thethriftybot.devices
Enum Class ThriftyNova.IOMask
- All Implemented Interfaces:
Serializable,Comparable<ThriftyNova.IOMask>,Constable
- Enclosing class:
ThriftyNova
IO mask bits for the motor controller.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlternate quad index sensor.Forward limit switch.Quadrature encoder A signal.Quadrature encoder B signal.Quad index sensor.Reverse limit switch. -
Method Summary
Modifier and TypeMethodDescriptionintgetMask()Gets the mask value.static ThriftyNova.IOMaskReturns the enum constant of this class with the specified name.static ThriftyNova.IOMask[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FWD_LIMIT
Forward limit switch. -
QUAD_INDEX
Quad index sensor. -
REV_LIMIT
Reverse limit switch. -
ALT_QUAD_INDEX
Alternate quad index sensor. -
QUAD_A
Quadrature encoder A signal. -
QUAD_B
Quadrature encoder B signal.
-
-
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
-
getMask
public int getMask()Gets the mask value.- Returns:
- The mask value.
-