PcanMessage(UInt32, Byte, MessageTypeXL, UInt16, Byte, UInt32, Boolean, Boolean, Byte) Constructor

Initializes an instance of PcanMessage for representing a CAN XL frame.

Definition

Namespace: Peak.Can.Basic
Assembly: PCANBasic.NET (in PCANBasic.NET.dll) Version: 5.1.0
C#
public PcanMessage(
	uint pid,
	byte vcid = 0,
	MessageTypeXL msgType = MessageTypeXL.Standard,
	ushort dlc = 0,
	byte sdt = 0,
	uint af = 0,
	bool rrs = false,
	bool sec = false,
	byte[] data = null
)

Parameters

pid  UInt32
The priority ID (physical layer) (0..0x7FF).
vcid  Byte  (Optional)
The virtual CAN network ID.
msgType  MessageTypeXL  (Optional)
The type of the message.
dlc  UInt16  (Optional)
The Data Length Code (DLC) of the message (0..2047).
sdt  Byte  (Optional)
The service Data unit(SDU) protocol Type.
af  UInt32  (Optional)
The acceptance Field, SDU - specific high - layer ID.
rrs  Boolean  (Optional)
The Remote Request Substitution flag (0..1).
sec  Boolean  (Optional)
The Simple Extended Content flag (0..1).
data  Byte  (Optional)
The data of the message (DATA[0]..DATA[2047]).

See Also