Skip to main content

TestWaitForMostSBC

Valid for: CANoe DE

Function Syntax

long TestWaitForMostSBC(long aValue, unsigned long aTimeout);

Description

The function waits for the expiration of the time aTimeout for the occurrence of the MOST event of a change of the value of the Synchronous Bandwidth Control (SBC) Register. 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

  • aValue: Expected value of the Synchronous Bandwidth Control Registers that should be in the MOST event. The specification -1 (wildcard) stands for any values.
  • 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 available
  • 0: Resume based on Timeout
  • 1: Resume based on occurred event

Example

TestWaitForMostNodeAdrTestWaitForMostGroupAdrTestWaitForMostNPR • TestWaitForMostSBC • TestWaitForMostNetState