TestWaitForMostStableLock
Valid for: CANoe DEFunction Syntax
Description
The function waits until the expiration of the time aTimeout for the occurrence of a LightLock event indicating “stable lock” state. A LightLock event with a “stable lock” state is generated when a “light & Lock” state lasts uninterrupted at the hardware for a period of time equal or longer than tLock (see MOST specification). Note: Consider to set always the appropriate bus context in a multibus environment before the function is called. Further information on site MultiBus Environment.Parameters
- aTimeout: Maximum wait time [ms] (Specification of 0: no timeout controlling)
Return Values
- -2: Resume due to constraint violation
- -1: General error, f.e., functionality is not available
- 0: Resume due to timeout
- 1: Resume based on occurred event