Contains fault generic public functions.
#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
|
struct | FAULT_OBJ_T |
| The Fault object data structure contains a list of elements/variables that are used to detect/check a fault. More...
|
|
|
void | FAULT_Init (FAULT_OBJ_T *faultInput, int16_t threshold, int16_t hysLimit, uint16_t thresholdCnt, uint32_t hysCnt) |
| This function initializes the fault object data structure with the values that required to detect a fault.
|
|
void | FAULT_InitRange (FAULT_OBJ_T *faultInput, int16_t thresholdMin, int16_t hysLimitMin, int16_t thresholdMax, int16_t hysLimitMax, uint16_t thresholdCnt, uint32_t hysCnt) |
| This function initializes the fault object data structure with the values that required to detect a fault at a particular range.
|
|
void | FAULT_SetCounters (FAULT_OBJ_T *faultInput, uint16_t fltThresholdCnt, uint32_t fltHysCnt) |
| This function initializes/sets the fault structure with the counter limits.
|
|
void | FAULT_SetThresholds (FAULT_OBJ_T *faultInput, int16_t fltThreshold, int16_t fltHysLimit) |
| This function initializes/sets the fault structure with the threshold limits.
|
|
bool | FAULT_CheckMax (FAULT_OBJ_T *faultInput, int16_t faultSource, FAULT_CALLBACK callback) |
| This function compares the fault source value with the threshold limits and sets (or) resets the fault active state accordingly.
|
|
bool | FAULT_CheckMin (FAULT_OBJ_T *faultInput, int16_t faultSource, FAULT_CALLBACK callback) |
| This function compares the fault source value with the threshold limits and sets (or) resets the fault active state accordingly.
|
|
bool | FAULT_CheckBit (FAULT_OBJ_T *faultInput, bool faultBit, FAULT_CALLBACK callback) |
|
bool | FAULT_CheckRange (FAULT_OBJ_T *faultInput, int16_t inputValue, FAULT_CALLBACK callback) |
|
◆ FAULT_CALLBACK
typedef void(* FAULT_CALLBACK) (void) |