TestGetWaitEventMostPkt
Valid for: CANoe DEFunction Syntax
long TestGetWaitEventMostPkt();long TestGetWaitEventMostPkt(dword aIndex);
Description
If the last (single) wait condition was resolved by a MOST packet event, the first function makes the packet data accessible by the packet API functions normally used within the onMostPkt() event handler, such as mostPktSrcAdr(), mostPktDestAdr(), mostPktGetData() etc. The second function can only be used for “joined events”. The number of the “joined event” (return value of “testJoin…”) is here being used as an index. Once another wait condition is set up in the current test sequence, access to the packet data will be no longer available.Parameters
- aIndex: Number of the “joined event” that was resumed by a MOST packet event. The number corresponds to return value of the “testJoin…” function call, by which the event was added to a joined condition.
Return Values
- 0: Successful data access
- -1: Data access can’t be executed, since the last wait condition was not resolved by a MOST packet event.