Document API IEC60730 Library
|
Header file list of test cases for the verification operate functions in system_clock module. More...
Functions | |
void | test_sl_iec60730_test_clock_tick_timer_test_disable (void) |
void | test_sl_iec60730_test_clock_tick_count_in_bound (void) |
void | test_sl_iec60730_test_clock_tick_count_out_bound (void) |
void | test_sl_iec60730_sys_clock_count_reset (void) |
void | test_sl_iec60730_test_clock_tick_test_clock_multiplier (void) |
void | test_sl_iec60730_get_number_test_timer_tick (void) |
Header file list of test cases for the verification operate functions in system_clock module.
IEC60730 System Clock Unit Tests
These test cases run unit tests to check the operation of the functions in system_clock module.
Hardware setup:
void test_sl_iec60730_get_number_test_timer_tick | ( | void | ) |
Public Check sl_iec60730_get_number_test_timer_tick() operate
Check if the number of times the function sl_iec60730_test_clock_tick() has been called is the same as the value received from the function sl_iec60730_get_number_test_timer_tick().
void test_sl_iec60730_sys_clock_count_reset | ( | void | ) |
Public Check sl_iec60730_test_clock_tick() operate
If sl_iec60730_timer_test_control equals SL_IEC60730_TIMER_TEST_ENABLE. Call function sl_iec60730_sys_clock_count_tick() to increase the value of variable sl_iec60730_sys_clock_count. If the sl_iec60730_sys_clock_count value is within the check boundary value. Then call function sl_iec60730_sys_clock_count_reset() to reset variable sl_iec60730_sys_clock_count. Function sl_iec60730_safe_state() will be called.
void test_sl_iec60730_test_clock_tick_count_in_bound | ( | void | ) |
Public Check sl_iec60730_test_clock_tick() operate
If sl_iec60730_timer_test_control equals SL_IEC60730_TIMER_TEST_ENABLE. Call function sl_iec60730_sys_clock_count_tick() to increase the value of variable sl_iec60730_sys_clock_count. If the sl_iec60730_sys_clock_count value is within the check boundary value. Function sl_iec60730_safe_state() will not be called.
void test_sl_iec60730_test_clock_tick_count_out_bound | ( | void | ) |
Public Check sl_iec60730_test_clock_tick() operate
If sl_iec60730_timer_test_control equals SL_IEC60730_TIMER_TEST_ENABLE. Call function sl_iec60730_sys_clock_count_tick() to increase the value of variable sl_iec60730_sys_clock_count. If the sl_iec60730_sys_clock_count value is out of range the check boundary value. Function sl_iec60730_safe_state() will be called.
void test_sl_iec60730_test_clock_tick_test_clock_multiplier | ( | void | ) |
Public Check sl_iec60730_test_clock_tick() operate
The number of function sl_iec60730_test_clock_tick() calls is greater than the default value and variable sl_iec60730_sys_clock_count value is within the check boundary value each time call. Function sl_iec60730_program_counter_test() will be called.
void test_sl_iec60730_test_clock_tick_timer_test_disable | ( | void | ) |
Public Check sl_iec60730_test_clock_tick() operate
If sl_iec60730_timer_test_control equals SL_IEC60730_TIMER_TEST_DISABLE. Function sl_iec60730_safe_state() will be called.