C2xTestWaitForSignalInRange
Valid for: CANoe DEFunction Syntax
long C2xTestWaitForSignalInRange (char* protocolDesignator, char* tokenDesignator, int64 minTokenValue, int64 maxTokenValue, long timeout)// form 1long C2xTestWaitForSignalInRange (char* protocolDesignator, char* tokenDesignator, int64 minTokenValue, int64 maxTokenValue, char* stationName, long timeout)// form 2
Description
Waits for the occurrence of the first Car2x message with a signal that is inside or equals the given limit. Should the message not occur before the expiration of the time aTimeout, the wait condition is resolved nevertheless.Parameters
- protocolDesignator: Protocol designator of the Car2x message that should be awaited.
- tokenDesignator: Token designator of the Car2x message that should be awaited.
- minTokenValue: Lower limit of the value.
- maxTokenValue: Upper limit of the value.
- stationName: Name of the sender station of the Car2x message that should be awaited.
- aTimeout: Maximum time that should be waited [ms]. Transmission of 0: no timeout controlling.
Return Values
- 1: Resume due to event occurred.