Document API IEC60730 Library
|
Header file list of test cases for the verification operate function sl_iec60730_safety_check_reset_error() and sl_iec60730_safety_check_error_occur(). More...
Functions | |
void | test_sl_iec60730_safety_check_error_occur (void) |
void | test_sl_iec60730_safety_check_reset_error (void) |
Header file list of test cases for the verification operate function sl_iec60730_safety_check_reset_error() and sl_iec60730_safety_check_error_occur().
IEC60730 Safety Check Unit Tests
These test cases run unit tests to check the operation of the function sl_iec60730_safety_check_reset_error() and sl_iec60730_safety_check_error_occur()
Hardware setup:
void test_sl_iec60730_safety_check_error_occur | ( | void | ) |
Public Check sl_iec60730_safety_check_error_occur() operate
If iec60730_safety_check.error value get from sl_iec60730_safety_check_get_error() equal error passed in via function sl_iec60730_safety_check_error_occur(). Then test case is pass.
void test_sl_iec60730_safety_check_reset_error | ( | void | ) |
Public Check sl_iec60730_safety_check_reset_error() operate
If iec60730_safety_check.error and iec60730_safety_check.number_error value get from sl_iec60730_safety_check_get_error() is 0. Then test case is pass.