Enum Class TPCANMessageTypeXL

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

public enum TPCANMessageTypeXL extends Enum<TPCANMessageTypeXL>
Represents the type of a PCAN XL message
  • Enum Constant Details

    • PCAN_MESSAGE_STANDARD

      public static final TPCANMessageTypeXL PCAN_MESSAGE_STANDARD
      The PCAN message is a CAN Standard Frame (11-bit identifier)
    • PCAN_MESSAGE_RTR

      public static final TPCANMessageTypeXL PCAN_MESSAGE_RTR
      The PCAN message is a CAN Remote-Transfer-Request Frame
    • PCAN_MESSAGE_EXTENDED

      public static final TPCANMessageTypeXL PCAN_MESSAGE_EXTENDED
      The PCAN message is a CAN Extended Frame (29-bit identifier)
    • PCAN_MESSAGE_FD

      public static final TPCANMessageTypeXL PCAN_MESSAGE_FD
      The PCAN message represents a FD frame in terms of CiA Specs
    • PCAN_MESSAGE_BRS

      public static final TPCANMessageTypeXL PCAN_MESSAGE_BRS
      The PCAN message represents a FD bit rate switch (CAN data at a higher bitrate)
    • PCAN_MESSAGE_ESI

      public static final TPCANMessageTypeXL PCAN_MESSAGE_ESI
      The PCAN message represents a FD error state indicator(CAN FD transmitter was error active)
    • PCAN_MESSAGE_ERRFRAME

      public static final TPCANMessageTypeXL PCAN_MESSAGE_ERRFRAME
      The PCAN message represents an error frame
    • PCAN_MESSAGE_STATUS

      public static final TPCANMessageTypeXL PCAN_MESSAGE_STATUS
      The PCAN message represents a PCAN status message
    • PCAN_MESSAGE_XL

      public static final TPCANMessageTypeXL PCAN_MESSAGE_XL
      The PCAN message represents a XL frame in terms of CiA Specs
    • PCAN_MESSAGE_PROTOCOL_EXCEPTION

      public static final TPCANMessageTypeXL PCAN_MESSAGE_PROTOCOL_EXCEPTION
      The PCAN message represents a protocol exception from CAN core
    • PCAN_MESSAGE_ERROR_NOTIFICATION

      public static final TPCANMessageTypeXL PCAN_MESSAGE_ERROR_NOTIFICATION
      The PCAN message represents an error notification from CAN core
  • Method Details

    • values

      public static TPCANMessageTypeXL[] 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 TPCANMessageTypeXL 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 short getValue()
      The value of the message type
      Returns:
      Value of the message type
    • getValue

      public static short getValue(EnumSet<TPCANMessageTypeXL> type)
      Gets the value of an EnumSet
      Parameters:
      type - collection of TPCANMessageType
      Returns:
      value of the EnumSet