ChkStart_LINWakeupRetryViolation
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
dword ChkStart_LINWakeupRetryViolation (duration TimeoutAfterWakeup, duration TimeoutAfterThreeWakeups, float Tolerance, dword MaxRetryNum, char[] CaplCallback);dword ChkStart_LINWakeupRetryViolation (duration TimeoutAfterWakeup, duration TimeoutAfterThreeWakeups, float Tolerance, dword MaxRetryNum);dword ChkStart_LINWakeupRetryViolation (dword MaxRetryNum, char[] CaplCallback);dword ChkStart_LINWakeupRetryViolation (dword MaxRetryNum);
Constructor
TestCheck::StartLINWakeupRetryViolationTestCheck::StartLINWakeupRetryViolation (duration TimeoutAfterWakeup, duration TimeoutAfterThreeWakeups, float Tolerance, dword MaxRetryNum, char[] CaplCallback);TestCheck::StartLINWakeupRetryViolation (duration TimeoutAfterWakeup, duration TimeoutAfterThreeWakeups, float Tolerance, dword MaxRetryNum);TestCheck::StartLINWakeupRetryViolation (dword MaxRetryNum, char[] CaplCallback);TestCheck::StartLINWakeupRetryViolation (dword MaxRetryNum);
Description
Checks number of LIN wake-up signals and the time between them. An event will be generated if:- Number of wake-up signals exceeds the specified maximum
- Timeout between two consecutive wake-up signals is out of the specified range.
Parameters
-
TimeoutAfterWakeup
0: Timeout between two consecutive retransmissions shall not be checked\> 0: Timeout between two consecutive retransmissions- Unit: Can be set with ChkConfig_SetPrecision.
- Default: 150 ms.
-
TimeoutAfterThreeWakeups
0: Timeout after each three retransmissions shall not be checked\> 0: Timeout after each three retransmissions- Unit: Can be set with ChkConfig_SetPrecision.
- Default: 1.5 seconds
-
Tolerance
- Allowed tolerance for timeout values
- Value range: [0 .. 100]
- Unit: percents [%]
- Default: 14%.
-
MaxRetryNum
0: Maximum number of retransmissions shall not be checked\> 0: Maximum allowed number of retransmissions
-
CaplCallback
- Name of CAPL callback function to be called on generated event. In simulation nodes this parameter has to be set. In test modules this parameter is optional.
Return Values
- 0: Check could not be created and must not be referenced
- > 0: Check was created successfully and may be referenced using the returned (handle-) value.
Possible Errors
- No parameters to validate
- CAPL callback does not exist