Package com.ctre.phoenix
Enum Class CANifier.GeneralPin
- All Implemented Interfaces:
Serializable
,Comparable<CANifier.GeneralPin>
,Constable
- Enclosing class:
- CANifier
General IO Pins on the CANifier
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionForward limit pinReverse limit pinQuadrature A pinQuadrature B pinQuadrature Idx pinSCL pinSDA pinSPI_CLK_PWM0 pinSPI_CS pinSPI_MISO_PWM2 pinSPI_MOSI_PWM1 pin -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CANifier.GeneralPin
valueOf
(int value) Gets the GeneralPin of a specified valuestatic CANifier.GeneralPin
Returns the enum constant of this class with the specified name.static CANifier.GeneralPin[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
QUAD_IDX
Quadrature Idx pin -
QUAD_B
Quadrature B pin -
QUAD_A
Quadrature A pin -
LIMR
Reverse limit pin -
LIMF
Forward limit pin -
SDA
SDA pin -
SCL
SCL pin -
SPI_CS
SPI_CS pin -
SPI_MISO_PWM2P
SPI_MISO_PWM2 pin -
SPI_MOSI_PWM1P
SPI_MOSI_PWM1 pin -
SPI_CLK_PWM0P
SPI_CLK_PWM0 pin
-
-
Field Details
-
value
Value of specified pin
-
-
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 the GeneralPin of a specified value- Parameters:
value
- integer value of GeneralPin- Returns:
- GeneralPin of specified value
-