FuSa 8-Bit Libraries Safety Framework
Loading...
Searching...
No Matches
midware_clock_manager_diag.c File Reference

Implements APIs for the Clock Manager Diagnostics. More...

#include <stdbool.h>
#include <stdint.h>
#include <driver_clkctrl.h>
#include <driver_errctrl.h>
#include <midware_clock_manager_diag.h>
#include <midware_shared_diag_private.h>
#include <xc.h>

Go to the source code of this file.

Macros

#define CRITICAL_CH_CONFIG   ((uint8_t)ERRCTRL_FLOAT_bm | (uint8_t)ERRCTRL_ERRLVL_CRITICAL_gc)
 Default to maximum criticality and float I/O in case of erroneously restoring with default backup values.
#define CFD_RESET_CONFIG   0U
 Default reset value of CFD CTRLA register in case of erroneously restoring with default backup values.

Functions

errFlag_t MW_DiagClockCfd0Begin (void)
 Starts error injection diagnostic to detect faults in the Clock Failure Detection 0 (CFD0) monitor.
errFlag_t MW_DiagClockCfd0End (void)
 Completes error injection diagnostic to detect faults in the CFD0 monitor.
bool MW_IsDiagCfd0Ongoing (void)
 Checks if the CFD0 error injection is ongoing.
errFlag_t MW_DiagClockCfd1Begin (void)
 Starts error injection diagnostic to detect faults in the Clock Failure Detection 1 (CFD1) monitor.
errFlag_t MW_DiagClockCfd1End (void)
 Completes error injection diagnostic to detect faults in the CFD1 monitor.
bool MW_IsDiagCfd1Ongoing (void)
 Checks if the CFD1 error injection is ongoing.
errFlag_t MW_DiagClockCfm0 (void)
 Performs error injection diagnostic to detect faults in the Clock Frequency Measure 0 (CFM0) monitor.
errFlag_t MW_DiagClockCfm1 (void)
 Performs error injection diagnostic to detect faults in the Clock Frequency Measure 1 (CFM1) monitor.

Detailed Description

Implements APIs for the Clock Manager Diagnostics.

Definition in file midware_clock_manager_diag.c.