![]() |
AVR SD Safety Framework 1.0.0
|
Implements APIs for the Power Manager Diagnostics. More...
#include <stdbool.h>#include <stdint.h>#include <define_error_flags.h>#include <driver_errctrl.h>#include <driver_slpctrl.h>#include <midware_power_manager_diag.h>#include <midware_shared_diag_private.h>#include <xc.h>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. | |
Functions | |
| errFlag_t | MW_DiagVmonOverBegin (void) |
| Starts error injection diagnostic to detect faults in the VMON overvoltage detector. | |
| bool | MW_IsDiagVmonOverDone (void) |
| Checks if the VMON overvoltage error injection has been completed. | |
| errFlag_t | MW_DiagVmonOverEnd (void) |
| Completes error injection diagnostic to detect faults in the VMON overvoltage detector. | |
| errFlag_t | MW_DiagVmonUnderBegin (void) |
| Starts error injection diagnostic to detect faults in the VMON undervoltage detector. | |
| bool | MW_IsDiagVmonUnderDone (void) |
| Checks if the VMON undervoltage error injection has been completed. | |
| errFlag_t | MW_DiagVmonUnderEnd (void) |
| Completes error injection diagnostic to detect faults in the VMON undervoltage detector. | |
| bool | MW_IsDiagVmonOngoing (void) |
| Checks whether a VMON error injection diagnostic is ongoing. | |
Implements APIs for the Power Manager Diagnostics.
| #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.