Enum Class TPCANType

java.lang.Object
java.lang.Enum<TPCANType>
peak.can.basic.TPCANType
All Implemented Interfaces:
Serializable, Comparable<TPCANType>, Constable

public enum TPCANType extends Enum<TPCANType>
Represents a PCAN device Since 5.0, only Plug'n play hardware are supported.
  • Enum Constant Details

    • PCAN_TYPE_NONE

      public static final TPCANType PCAN_TYPE_NONE
      Undefined, unknown or not selected PCAN type value
  • Method Details

    • values

      public static TPCANType[] 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 TPCANType 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
    • getValue

      public byte getValue()
      The identifier of the CAN hardware type
      Returns:
      Identifier of the CAN hardware type