Enum Class S2FloatStateValue

java.lang.Object
java.lang.Enum<S2FloatStateValue>
com.ctre.phoenix6.signals.S2FloatStateValue
All Implemented Interfaces:
Serializable, Comparable<S2FloatStateValue>, java.lang.constant.Constable

The floating state of the Signal 2 input (S2IN).
  • Enum Constant Details

    • FloatDetect

      public static final S2FloatStateValue FloatDetect
      The input will attempt to detect when it is floating. This is enabled by default.
    • PullHigh

      public static final S2FloatStateValue PullHigh
      The input will be pulled high when not loaded by an outside device. This is useful for NPN-style devices.
    • PullLow

      public static final S2FloatStateValue PullLow
      The input will be pulled low when not loaded by an outside device. This is useful for PNP-style devices.
    • BusKeeper

      public static final S2FloatStateValue 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

      public final int value
  • Method Details

    • values

      public static S2FloatStateValue[] 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

      public static S2FloatStateValue valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • valueOf

      public static S2FloatStateValue valueOf(int value)
      Gets S2FloatStateValue from specified value
      Parameters:
      value - Value of S2FloatStateValue
      Returns:
      S2FloatStateValue of specified value