TestWaitForMostPkt
Valid for: CANoe DEFunction Syntax
long TestWaitForMostPkt(long aSourceAddress, long aDestinationAddress, char aPktDataDesc[], long aInstanceID, dword aTimeout);long TestWaitForMostPkt(long aSourceAddress, long aDestinationAddress, char aPktDataDesc[], dword aTimeout);long TestWaitForMostPkt(char aPktDataDesc[], long aInstanceID, dword aTimeout);long TestWaitForMostPkt(char aPktDataDesc[], dword aTimeout);
Description
Waits for the occurrence of the specified MOST packet. Should the event not occur before the expiration of the time aTimeout, the wait condition is resolved nevertheless. Note: Note, that the first and third signatures are exclusively suited to set up wait conditions for packets having function catalog format, whereas the other signatures also allow the definition of raw packets.Parameters
- aSourceAddress: Source address
- aDestinationAddress: Target address
-
aPktDataDesc: String containing a symbolic or numeric description of the packet data. Following formats are allowed:
<Raw data byte description\><FBlock\>.<Instance\>.<Function\>.<OpType\><FBlock\>.<Instance\>.<Function\>.<OpType\>(<Raw data byte description\>)<FBlock\>.<Instance\>.<Function\>.<OpType\> (<High Protocol frame description\>)
- aInstanceId: Numeric value of InstanceID
- aTimeout: Timeout in milliseconds
Return Values
- -6: Parse Error; on specification of a packet description string, that can’t be resolved with the XML function catalog or that is flawed
- -2: Resume based on constraint violation
- -1: General error e.g. the functionality is not available
- 0: Resume based on timeout
- 1: Resume based on occurred event