PcanMessage(UInt32, MessageType, Byte, Byte, Boolean) Constructor

Initializes an instance of PcanMessage for representing a CAN CC or CAN FD frame.

Definition

Namespace: Peak.Can.Basic
Assembly: PCANBasic.NET (in PCANBasic.NET.dll) Version: 5.1.0
C#
public PcanMessage(
	uint id = 0,
	MessageType msgType = MessageType.Standard,
	byte dlc = 0,
	byte[] data = null,
	bool isFD = false
)

Parameters

id  UInt32  (Optional)
The 11/29-bit CAN identifier.
msgType  MessageType  (Optional)
The type of the message.
dlc  Byte  (Optional)
The Data Length Code (DLC) of the message (0..15)
data  Byte  (Optional)
The data associated to the message. If null, data default values are used (0).
isFD  Boolean  (Optional)
If the data of the message may contain more than 8 bytes (CAN FD).

See Also