Package com.ctre.phoenix6.signals
Enum Class S1FloatStateValue
- All Implemented Interfaces:
Serializable
,Comparable<S1FloatStateValue>
,java.lang.constant.Constable
The floating state of the Signal 1 input (S1IN).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe input will pull in the direction of the last measured state.The input will attempt to detect when it is floating.The input will be pulled high when not loaded by an outside device.The input will be pulled low when not loaded by an outside device. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic S1FloatStateValue
valueOf
(int value) Gets S1FloatStateValue from specified valuestatic S1FloatStateValue
Returns the enum constant of this class with the specified name.static S1FloatStateValue[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FloatDetect
The input will attempt to detect when it is floating. This is enabled by default. -
PullHigh
The input will be pulled high when not loaded by an outside device. This is useful for NPN-style devices. -
PullLow
The input will be pulled low when not loaded by an outside device. This is useful for PNP-style devices. -
BusKeeper
The input will pull in the direction of the last measured state. This may be useful for devices that can enter into a high-Z tri-state.
-
-
Field Details
-
value
-
-
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 S1FloatStateValue from specified value- Parameters:
value
- Value of S1FloatStateValue- Returns:
- S1FloatStateValue of specified value
-