J1939TpDatagram Struct¶
One fully reassembled J1939 multi-packet PDU as delivered by IJ1939TpChannel. Carries the transport-service context every J1939 application layer needs to route the message: the PGN of the announced data, the source address of the transmitter, the destination address (0xFF for BAM, the local address for TP.CM), and whether it was carried by TP.BAM or TP.CM.
Constructors¶
J1939TpDatagram(uint, byte, byte, J1939TpKind, byte[]) Constructor¶
Creates a new J1939TpDatagram.
public J1939TpDatagram(uint pgn, byte sourceAddress, byte destinationAddress, CanKit.Pro.J1939Tp.J1939TpKind kind, byte[] payload);
Parameters¶
pgn UInt32
sourceAddress Byte
destinationAddress Byte
kind J1939TpKind
Properties¶
J1939TpDatagram.DestinationAddress Property¶
Destination address (0xFF for BAM; local SA for TP.CM).
Property Value¶
J1939TpDatagram.Kind Property¶
Which J1939-21 §5.10 transport flavor delivered the PDU.
Property Value¶
J1939TpDatagram.Payload Property¶
The reassembled payload bytes (owned by the receiver; not aliased to any frame buffer).
Property Value¶
J1939TpDatagram.Pgn Property¶
The J1939 data PGN announced by the transport session (from RTS/BAM bytes 5..7).
Property Value¶
J1939TpDatagram.SourceAddress Property¶
Source address of the transmitting node.