PcanMessage(UInt32, Byte, MessageTypeXL, UInt16, Byte, UInt32, Boolean, Boolean, Byte) Constructor
Initializes an instance of
PcanMessage for representing a CAN XL frame.
Namespace: Peak.Can.BasicAssembly: PCANBasic.NET (in PCANBasic.NET.dll) Version: 5.1.0
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
)
Public Sub New (
pid As UInteger,
Optional vcid As Byte = 0,
Optional msgType As MessageTypeXL = MessageTypeXL.Standard,
Optional dlc As UShort = 0,
Optional sdt As Byte = 0,
Optional af As UInteger = 0,
Optional rrs As Boolean = false,
Optional sec As Boolean = false,
Optional data As Byte() = Nothing
)
public:
PcanMessage(
unsigned int pid,
unsigned char vcid = 0,
MessageTypeXL msgType = MessageTypeXL::Standard,
unsigned short dlc = 0,
unsigned char sdt = 0,
unsigned int af = 0,
bool rrs = false,
bool sec = false,
array<unsigned char>^ data = nullptr
)
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]).