OnMostMsgFragment
CAPL Functions » MOST » OnMostMsgFragment Valid for: CANoe DEFunction Syntax
Description
The event procedureOnMostMsgFragment is called when the spy detects an incomplete transmission on the Control 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 mostMsgFragmentDlc()- Number of transported data bytes.
-
long mostMsgFragmentGetData(byte[] buffer, long cnt)- Tries to copy cnt data bytes to a provided buffer. Returns the actual number of copied bytes.
-
long mostMsgFragmentSrcAdr(), long mostMsgFragmentDestAdr()- Returns the source or destination address.
-
long mostMsgFragmentAck()- Returns the acknowledge code.
-
long mostMsgFragmentPAck()- Returns the preemptive acknowledge from the potential packet receiver(s) to the packet transmitter.
-
long mostMsgFragmentPriority()- Returns the message priority.
-
long mostMsgFragmentPIndex()- Returns the packet index. The packet index increments by one per message from a node.
-
dword mostMsgFragmentCRC()- Returns the CRC value.
-
long mostMsgFragmentCAck()- Returns the CRC acknowledge code.
-
long mostMsgFragmentAnnouncedDlc()- 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.