Enum Class UsbPort

java.lang.Object
java.lang.Enum<UsbPort>
com.studica.frc.UsbPort
All Implemented Interfaces:
Serializable, Comparable<UsbPort>, Constable

public enum UsbPort extends Enum<UsbPort>
SystemCore USB ports, by the label printed on the controller.
  • Enum Constant Details

    • USB0

      public static final UsbPort USB0
      USB port 0.
    • USB1

      public static final UsbPort USB1
      USB port 1.
    • USB2

      public static final UsbPort USB2
      USB port 2.
    • USB3

      public static final UsbPort USB3
      USB port 3.
  • Method Details

    • values

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