Document API IEC60730 Library
Functions

When incorrect behavior is detected, this state prevents further execution. More...

Functions

void sl_iec60730_safe_state (sl_iec60730_test_failure_t failure)
 

Detailed Description

When incorrect behavior is detected, this state prevents further execution.

The Safe State function must be written by the OEM to configure the system to prevent any potential negative effects from occurring. GPIOs and communications channels must be configured appropriately.

Once any configuration is complete, the function loops to restart the watchdog. This prevents any resets until the end-user power-cycles the device.

Function Documentation

◆ sl_iec60730_safe_state()

void sl_iec60730_safe_state ( sl_iec60730_test_failure_t  failure)

public IEC60730 Safe State

Parameters
failureEnum with the failing test, can be preserved for debug. See sl_iec60730_test_failure_t
Returns
Never.

When a validation failure is detected, the Safe State function is executed to prevent further system failures.

Note
This is an example; an OEM must fully implement this according to their system needs.