Package com.ctre.phoenix
Enum CANifier.GeneralPin
- All Implemented Interfaces:
Serializable
,Comparable<CANifier.GeneralPin>
,java.lang.constant.Constable
- Enclosing class:
- CANifier
public static enum CANifier.GeneralPin extends Enum<CANifier.GeneralPin>
General IO Pins on the CANifier
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description LIMF
Forward limit pinLIMR
Reverse limit pinQUAD_A
Quadrature A pinQUAD_B
Quadrature B pinQUAD_IDX
Quadrature Idx pinSCL
SCL pinSDA
SDA pinSPI_CLK_PWM0P
SPI_CLK_PWM0 pinSPI_CS
SPI_CS pinSPI_MISO_PWM2P
SPI_MISO_PWM2 pinSPI_MOSI_PWM1P
SPI_MOSI_PWM1 pin -
Field Summary
Fields Modifier and Type Field Description int
value
Value of specified pin -
Method Summary
Modifier and Type Method Description static CANifier.GeneralPin
valueOf(int value)
Gets the GeneralPin of a specified valuestatic CANifier.GeneralPin
valueOf(String name)
Returns the enum constant of this type with the specified name.static CANifier.GeneralPin[]
values()
Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type 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
-