OnMostPktFragment
Valid for: CANoe DEFunction Syntax
Description
The event procedureOnMostPktFragment is called when the spy detects an incomplete transmission on the Packet Data channel.
The following functions are available for evaluating the event:
-
long mostEventChannel()Returns the channel of the packet event. -
long mostEventTime()Returns the time stamp of the event (Units: 10 µs). -
float mostEventTimeNs()Returns the time stamp of the event (Units: 1 ns). -
long mostEventOrigTime()Returns the hardware generated time stamp of the event (Units: 10 µs). -
long mostPktFragmentDlc()Number of transported data bytes. -
long mostPktFragmentGetData(byte[] buffer, long cnt)Tries to copy cnt data bytes to a provided buffer. Returns the actual number of copied bytes.
-
long mostPktFragmentSrcAdr(), long mostPktFragmentDestAdr()Returns the source or destination address. -
long mostPktFragmentAck()Returns the acknowledge code. -
long mostPktFragmentPAck()Returns the preemptive acknowledge from the potential packet receiver(s) to the packet transmitter. -
long mostPktFragmentPIndex()Returns the packet index. The packet index increments by one per message from a node. -
dword mostPktFragmentCRC()Returns the CRC value. -
long mostPktFragmentCAck()Returns the CRC acknowledge code. -
long mostPktFragmentAnnouncedDlc()Returns the announced data length at start of transmission. In general, the announced length is not equal to the actual number of transmitted data bytes for fragments.