Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
TestJoinLinSyncErrorEvent
Valid for: CANoe DE • CANoe4SW DE
Function Syntax
long TestJoinLinSyncErrorEvent()
Description
Adds an event of type synchronisation error to the set of joined events. This is a non-blocking function.
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
—
Return Values
- -3: error while adding the specified event to the set of joined events
- -1: general error, e.g. functionality is not available
- > 0: number of the newly joined event
Example
testcase tcTFS_waitForLINHeader(int frameId)
{
long eventIndex;
testJoinLinHeaderEvent(frameId);
testJoinLinWakeupEvent();
testJoinLinSyncErrorEvent();
eventIndex = testWaitForAnyJoinedEvent(5000);
switch (eventIndex)
{
case 1:
testStepPass("Validation", "LIN Header for FrameId=0x%X occurred", frameId);
break;
case 2:
testStepFail("Validation", "LIN Wakeup signal occurred");
break;
case 3:
testStepFail("Validation", "LIN Sync error occurred");
break;
default:
testStepFail("Validation", "Internal error! Unexpected event (return code %d) on waiting for any LIN event", eventIndex);
}
}
TestGetWaitLinSyncErrorData • TestWaitForLinSyncError • TestWaitForAllJoinedEvents • TestWaitForAnyJoinedEvent