Skip to content

NmtCommandReceivedEventArgs Class

Argument type for the NmtCommandReceived event: a decoded incoming NMT master command.

public sealed class NmtCommandReceivedEventArgs : System.EventArgs

Inheritance ObjectEventArgs → NmtCommandReceivedEventArgs

Constructors

NmtCommandReceivedEventArgs(NmtCommand, byte) Constructor

Constructs a new event.

public NmtCommandReceivedEventArgs(CanKit.Pro.CANopen.Nmt.NmtCommand command, byte targetNodeId);

Parameters

command NmtCommand

targetNodeId Byte

Properties

NmtCommandReceivedEventArgs.Command Property

Command specifier (byte 0 of the NMT frame).

public CanKit.Pro.CANopen.Nmt.NmtCommand Command { get; }

Property Value

NmtCommand

NmtCommandReceivedEventArgs.TargetNodeId Property

Target node-id (byte 1); 0 means broadcast to all nodes.

public byte TargetNodeId { get; }

Property Value

Byte