Skip to main content

TestWaitForFrSymbol

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • long TestWaitForFrSymbol (dword aTimeout);
  • long TestWaitForFrSymbol (dword aSymbolType, dword aChannelMask, dword aTimeout);

Description

Waits for the occurrence of a FlexRay symbol on the bus. Should the symbol not occur before the expiration of the time aTimeout, the wait condition is resolved nevertheless. 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 time that should be waited [ms]. (Transmission of 0: no timeout controlling)
  • aSymbolType: Identifies the type of symbol the function will wait for.
    • 0: unknown
    • 1: CAS
    • 2: MTS
    • 3: Wakeup
  • aChannelMask: Identifies the FlexRay channel of the communication controller. A value of 1 will wait for the symbol on channel A, 2 will wait for it on channel B and 3 on any channel (A/B).

Return Values

  • -2: Resume due to constraint violation
  • -1: General error, for example, functionality is not available
  • 0: Resume due to timeout
  • 1: Resume due to event occurred

Example

Note: If you want to wait for the reception or transmission of a wake-up pattern you have to use TestWaitForFrPOCState. The following test program waits for the occurrence of different POC state events and symbols on one FlexRay bus.
More InformationTestJoinFrSymbolEvent