Class CanMessage
- Namespace
- nanoFramework.Device.Can
- Assembly
- nanoFramework.Device.Can.dll
CAN message.
public class CanMessage
- Inheritance
-
CanMessage
- Inherited Members
- Extension Methods
Constructors
CanMessage(uint, CanMessageIdType, CanMessageFrameType, byte[])
Creates a CAN message.
public CanMessage(uint id, CanMessageIdType identifierType, CanMessageFrameType frameType, byte[] message)
Parameters
id
uintidentifierType
CanMessageIdTypeframeType
CanMessageFrameTypemessage
byte[]
Properties
FrameType
Message frame type.
public CanMessageFrameType FrameType { get; set; }
Property Value
Id
Message ID (SID or EID format, depending on IdentifierType).
public uint Id { get; set; }
Property Value
IdentifierType
Message identifier type.
public CanMessageIdType IdentifierType { get; set; }
Property Value
Message
Message data.
public byte[] Message { get; set; }
Property Value
- byte[]
Remarks
Maximum lenght of data buffer is 8.
Exceptions
- ArgumentOutOfRangeException
If the message buffer exceeds the maximum allowed lenght.