Enum Class S1FloatStateValue

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

The floating state of the Signal 1 input (S1IN).
  • Enum Constant Details

    • FloatDetect

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

      public static final S1FloatStateValue 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 S1FloatStateValue 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 S1FloatStateValue 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 S1FloatStateValue[] 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 S1FloatStateValue 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 S1FloatStateValue valueOf(int value)
      Gets S1FloatStateValue from specified value
      Parameters:
      value - Value of S1FloatStateValue
      Returns:
      S1FloatStateValue of specified value