Skip to main content
Open topic with navigation CAPL Functions » MOST » mostGetNceType

mostGetNceType

Valid for: CANoe DE

Function Syntax

long mostGetNceType();

Description

Returns the type of network change event (NCE) (when changing the MPR register). Note: This function can only be called within the OnMostMPR() event procedure.

Parameters

Return Values

  • < 0: NCE-. The absolute value corresponds to the number of devices which closed their bypass.
  • 0: No information available (e.g. first MPR register event, the function was not called in the OnMostMPR() event procedure).
  • > 0: NCE+. The value corresponds to the number of devices which opened their bypass.

Example