![]() |
FuSa 8-Bit Libraries Safety Framework
|
Go to the source code of this file.
Enumerations | |
| enum | persistentFlag_t { PFLAG_ERRINJ_ONGOING , PFLAG_CPU_INJ_FAULT , PFLAG_WDT_INJ_FAULT , PFLAG_SWDT_INJ_FAULT , PFLAG_IO_FLOAT_FAULT , PFLAG_MAX } |
| Enum for persistent flags used to store data between non-POR/BOR device resets. More... | |
| enum | persistentVal_t { PVAL_ERRID_REASON , PVAL_RESET_REASON , PVAL_ERRINJ_REASON , PVAL_MAX } |
| Enum for persistent values used to store data between non-POR/BOR device resets. More... | |
| enum | eccAllOnes_t { ECC_ALL_ONES_NONE = 0U , ECC_ALL_ONES_ALL , ECC_ALL_ONES_DATA1 , ECC_ALL_ONES_DATA2 , ECC_ALL_ONES_MAX } |
| Type defines for available "ECC all ones" (ECCALL1) options. More... | |
Functions | |
| errFlag_t | MW_GetClearBusError (void) |
| Reads and clears the flag indicating an error in the Bus Matrix. | |
| errFlag_t | MW_GetClearCpuDataParityError (void) |
| Reads and clears the flag indicating a data bus parity error in the CPU. | |
| errFlag_t | MW_GetClearCpuInstrParityError (void) |
| Reads and clears the flag indicating a instruction bus parity error in the CPU. | |
| errFlag_t | MW_GetClearCpuOpcodeError (void) |
| Reads and clears the flag indicating an illegal opcode error in the CPU. | |
| errFlag_t | MW_GetClearRamStackError (void) |
| Reads and clears the flag indicating a stack pointer limit error in SRAM. | |
| errFlag_t | MW_GetClearRamEccCompError (void) |
| Reads and clears the flag indicating a ECC comparator error in the RAM controller. | |
| errFlag_t | MW_GetClearRamEcc1Error (void) |
| Reads and clears the flag indicating an ECC single-bit error in SRAM. | |
| errFlag_t | MW_GetClearRamEcc2Error (void) |
| Reads and clears the flag indicating an ECC multi-bit error in SRAM. | |
| errFlag_t | MW_GetClearRamParityError (void) |
| Reads and clears the flag indicating a bus parity error detected in the RAM controller. | |
| errFlag_t | MW_GetClearNvmEccCompError (void) |
| Reads and clears the flag indicating a ECC comparator error in the NVM controller. | |
| errFlag_t | MW_GetClearNvmFlashEcc1Error (void) |
| Reads and clears the flag indicating a ECC single-bit error in Flash. | |
| errFlag_t | MW_GetClearNvmFlashEcc2Error (void) |
| Reads and clears the flag indicating a ECC multi-bit error in Flash. | |
| errFlag_t | MW_GetClearNvmParityError (void) |
| Reads and clears the flag indicating a bus parity error detected in the NVM controller. | |
| errFlag_t | MW_GetClearNvmEepromEcc1Error (void) |
| Reads and clears the flag indicating an ECC single-bit error in EEPROM. | |
| errFlag_t | MW_GetClearNvmEepromEcc2Error (void) |
| Reads and clears the flag indicating an ECC multi-bit error in EEPROM. | |
| errFlag_t | MW_SetNvmEccAllOnes (eccAllOnes_t config) |
| Sets ECC all Ones (ECCALL1) scheme. | |
| errFlag_t | MW_SetRamStackLimit (uint16_t splimAddr, bool lockEnable) |
| Sets the Stack Pointer Limit value and optionally locks the value to prevent modification. | |
| void | MW_StorePersistentFlag (persistentFlag_t flagType, bool flag) |
| Stores two redundant boolean flags in General Purpose Registers (GPR) for perserving data between resets. | |
| void | MW_StorePersistentVal (persistentVal_t valueType, uint8_t value) |
| Stores a value in General Purpose Registers (GPR) for perserving data between resets. | |
| bool | MW_GetPersistentFlag (persistentFlag_t flagType) |
| Reads two redundant bits for each boolean flags in General Purpose Registers (GPR) that is stored for preserving data between resets. | |
| uint8_t | MW_GetPersistentVal (persistentVal_t valueType) |
| Reads a value in General Purpose Registers (GPR) that is stored for preserving data between resets. | |
| bool | MW_IsPersistentFlagsCorrupt (void) |
| Compares two redundant bits for each boolean flags in General Purpose Registers (GPR) and checks if any of the flags are corrupted. | |
| bool | MW_IsPersistentValsCorrupt (void) |
| Checks if any of the stored persistent values are corrupted. | |
| void | MW_ClearPersistentFlags (void) |
| Clears all stored persistent flags in GPR. | |
| void | MW_ClearPersistentVals (void) |
| Clears all stored persistent values in GPR. | |