The following shows an example of SDL RTI API usage by the application to set up the RTI as a watchdog and usage of the various APIs. Events can be monitored by enabling the events in the associated ESM instance.
UC1:
RTI Example Test Application
RTI_Test_init: Init MCU ESM complete
RTI Example code UC-1 started
DWWD configured to 100 percent window size
DWWD is configured for 10000 ms time-out
RTI DWWD proper servicing test running.
Please wait for max 10000 ms.
RTI DWWD proper servicing test successful.
RTI permanent failure test running.
DWWD will generate interrupt after 10 seconds
Wait for 10 sec for interrupt to be generated by DWWD.
RTI Window End time violation test successful.
Test Name: RTI EXAMPLE TEST PASSED
All tests have passed.
UC2:
RTI Example Test Application
RTI_Test_init: Init MCU ESM complete
RTI Example code UC-2 started
DWWD configured to 50 percent window size
DWWD is configured for 10000 ms time-out
RTI DWWD proper servicing test running.
Please wait for max 10000 ms.
RTI DWWD proper servicing test successful.
RTI permanent failure test running.
DWWD will generate interrupt after 10 seconds
Wait for 10 sec for interrupt to be generated by DWWD.
RTI Window End time violation test successful.
Test Name: RTI EXAMPLE TEST PASSED
All tests have passed.
UC3:
RTI Example Test Application
RTI_Test_init: Init MCU ESM complete
RTI Example code UC-3 started
DWWD configured to 50 percent window size
DWWD is configured for 10000 ms time-out
RTI DWWD Early Trigger violation test running.
Servicing before the window open.
RTI DWWD Early Trigger violation test successful.
Test Name: RTI EXAMPLE TEST PASSED
All tests have passed.
UC4:
RTI Example Test Application
RTI_Test_init: Init MCU ESM complete
RTI Example code UC-4 started
DWWD configured to 50 percent window size
DWWD is configured for 10000 ms time-out
DWWD will generate interrupt after 10 seconds
Waiting for window to expire
Wait for 10 sec for interrupt to be generated by DWWD.
RTI Late trigger servicing test running.
Re-Opening the window to service after previous feed
RTI Late trigger servicing test successful.
Test Name: RTI EXAMPLE TEST PASSED
All tests have passed.