Package com.ctre.phoenix
Enum CANifier.PWMChannel
- All Implemented Interfaces:
Serializable
,Comparable<CANifier.PWMChannel>
,java.lang.constant.Constable
- Enclosing class:
- CANifier
public static enum CANifier.PWMChannel extends Enum<CANifier.PWMChannel>
Enum for the PWM Input Channels
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description PWMChannel0
PWM Channel 0PWMChannel1
PWM Channel 1PWMChannel2
PWM Channel 2PWMChannel3
PWM Channel 3 -
Field Summary
Fields Modifier and Type Field Description int
value
Value of PWM Channel -
Method Summary
Modifier and Type Method Description static CANifier.PWMChannel
valueOf(int value)
Get the PWM Channel from a specified valuestatic CANifier.PWMChannel
valueOf(String name)
Returns the enum constant of this type with the specified name.static CANifier.PWMChannel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PWMChannel0
PWM Channel 0 -
PWMChannel1
PWM Channel 1 -
PWMChannel2
PWM Channel 2 -
PWMChannel3
PWM Channel 3
-
-
Field Details
-
value
Value of PWM Channel
-
-
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
Get the PWM Channel from a specified value- Parameters:
value
- integer value to get pwm channel from- Returns:
- PWM Channel of specified value
-