Document API IEC60730 Library
Functions

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)
 

Detailed Description

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:

Function Documentation

◆ test_sl_iec60730_safety_check_error_occur()

void test_sl_iec60730_safety_check_error_occur ( void  )

Public Check sl_iec60730_safety_check_error_occur() operate

Returns
None.

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.

◆ test_sl_iec60730_safety_check_reset_error()

void test_sl_iec60730_safety_check_reset_error ( void  )

Public Check sl_iec60730_safety_check_reset_error() operate

Returns
None.

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.