Package peak.can.basic
Enum TPCANMessageType
- All Implemented Interfaces:
Serializable
,Comparable<TPCANMessageType>
,java.lang.constant.Constable
Represents the type of a PCAN message
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe PCAN message represents a FD bit rate switch (CAN data at a higher bitrate)The PCAN message represents an error frameThe PCAN message represents a FD error state indicator(CAN FD transmitter was error active)The PCAN message is a CAN Extended Frame (29-bit identifier)The PCAN message represents a FD frame in terms of CiA SpecsThe PCAN message is a CAN Remote-Transfer-Request FrameThe PCAN message is a CAN Standard Frame (11-bit identifier)The PCAN message represents a PCAN status message -
Method Summary
Modifier and TypeMethodDescriptionbyte
getValue()
The value of the message typestatic byte
getValue
(EnumSet<TPCANMessageType> type) Gets the value of an EnumSetstatic TPCANMessageType
Returns the enum constant of this type with the specified name.static TPCANMessageType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PCAN_MESSAGE_STANDARD
The PCAN message is a CAN Standard Frame (11-bit identifier) -
PCAN_MESSAGE_RTR
The PCAN message is a CAN Remote-Transfer-Request Frame -
PCAN_MESSAGE_EXTENDED
The PCAN message is a CAN Extended Frame (29-bit identifier) -
PCAN_MESSAGE_FD
The PCAN message represents a FD frame in terms of CiA Specs -
PCAN_MESSAGE_BRS
The PCAN message represents a FD bit rate switch (CAN data at a higher bitrate) -
PCAN_MESSAGE_ESI
The PCAN message represents a FD error state indicator(CAN FD transmitter was error active) -
PCAN_MESSAGE_ERRFRAME
The PCAN message represents an error frame -
PCAN_MESSAGE_STATUS
The PCAN message represents a PCAN status message
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public byte getValue()The value of the message type- Returns:
- Value of the message type
-
getValue
Gets the value of an EnumSet- Parameters:
type
- collection of TPCANMessageType- Returns:
- value of the EnumSet
-