Enum Class SerialPort.Port

java.lang.Object
java.lang.Enum<SerialPort.Port>
org.wpilib.hardware.bus.SerialPort.Port
All Implemented Interfaces:
Serializable, Comparable<SerialPort.Port>, Constable
Enclosing class:
SerialPort

public static enum SerialPort.Port extends Enum<SerialPort.Port>
Serial port.
  • Enum Constant Details

    • ONBOARD

      public static final SerialPort.Port ONBOARD
      Onboard serial port on the roboRIO.
    • MXP

      public static final SerialPort.Port MXP
      MXP (roboRIO MXP) serial port.
    • USB

      public static final SerialPort.Port USB
      USB serial port (same as USB1).
    • USB_1

      public static final SerialPort.Port USB_1
      USB serial port 1.
    • USB_2

      public static final SerialPort.Port USB_2
      USB serial port 2.
  • Field Details

    • value

      public final int value
      Port value.
  • Method Details

    • values

      public static SerialPort.Port[] 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 SerialPort.Port 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