PcanMessage(UInt32, MessageType, Byte, Byte, Boolean) Constructor
Initializes an instance of
PcanMessage for representing a CAN CC or CAN FD frame.
Namespace: Peak.Can.BasicAssembly: PCANBasic.NET (in PCANBasic.NET.dll) Version: 5.1.0
public PcanMessage(
uint id = 0,
MessageType msgType = MessageType.Standard,
byte dlc = 0,
byte[] data = null,
bool isFD = false
)
Public Sub New (
Optional id As UInteger = 0,
Optional msgType As MessageType = MessageType.Standard,
Optional dlc As Byte = 0,
Optional data As Byte() = Nothing,
Optional isFD As Boolean = false
)
public:
PcanMessage(
unsigned int id = 0,
MessageType msgType = MessageType::Standard,
unsigned char dlc = 0,
array<unsigned char>^ data = nullptr,
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).