PcanMessage Class

Represents a PCAN message from a CAN or CAN FD capable hardware.

Definition

Namespace: Peak.Can.Basic
Assembly: PCANBasic.NET (in PCANBasic.NET.dll) Version: 4.9.0
C#
public sealed class PcanMessage
Inheritance
Object    PcanMessage

Constructors

PcanMessage Initializes an instance of PcanMessage.

Properties

Data The data associated to the CAN message (CAN DATA[0]..DATA[7], CAN FD DATA[0]..DATA[63]).
DLC The Data Length Code (DLC) of the message (0..15).
ID A 11/29-bit CAN message identifier.
Length The amount of data bytes according to the Data Length Code.
MaxDataLength Maximum amount of data bytes supported by this object
MsgType The kind of CAN frame represented by this object.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToString Builds and returns a string that represents the current CAN message.
(Overrides ObjectToString)

See Also