OnMostNetState
Valid for: CANoe DEFunction Syntax
Description
TheOnMostNetState() event procedure is called when the network status is changed. oldstate and newstate pass the previous and current network status respectively.
The following network states are defined based on the MOST Specification 2.3.
- < 0: Error code. See Error codes in CAPL functions
- 0: mostNetState_Undefined - Before the first event (shortly after measurement start) the network status is unknown.
- 2: mostNetState_PowerOff - The network interface to the MOST ring is deactivated. The Tx FOT is not emitting any light.
- 3: mostNetState_NetInterfaceInit - The network interface is initializing, e.g. after it has been woken by “light on”.
- 4: mostNetState_ConfigNotOk - The network interface is in normal operating mode (stable lock). On application level the MOST ring is in state ConfigNotOk. ConfigNotOk is entered on device initialization or when the NetworkMaster broadcasts Configuration.Status(NotOk).
- 5: mostNetState_ConfigOk - The network interface is in normal operating mode (stable lock). On application level the MOST ring is in state ConfigOk. ConfigOk is entered when the NetworkMaster broadcasts Configuration.Status(Ok).
Parameters
- oldstate: Old network status.
- newstate: Current network status.