TestWaitForMostNetState
Valid for: CANoe DEFunction Syntax
Description
The function waits until the expiration of the time aTimeout for a transfer of the MOST NetState from the state aOldState into the state aNewState. 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
-
aOldState: Expected initial state of the NetState. The following values are allowed:
0: MostNetState_Undefined2: MostNetState_PowerOff3: MostNetState_NetInterfaceInit4: MostNetState_ConfigNotOk5: MostNetState_ConfigOk-1: Wildcard, any NetState state
- aNewState: Expected new state of the NetState. The value range corresponds to that of aOldState Parameters.
- aTimeout: Maximum time that should be waited [ms] (Transmission of 0: no timeout monitoring)
Return Values
-2: Resume based on Constraint Violation-1: General error e.g. the functionality is not available0: Resume based on Timeout1: Resume based on occurred event