FW Profile - C1 Implementation
|
Implementation of Current Failure Detection (FD) Check. More...
Go to the source code of this file.
Functions | |
FwSmDesc_t | GetCurCheckSm () |
Retrieve the descriptor of the Current FD Check State Machine. More... | |
Implementation of Current Failure Detection (FD) Check.
Definition in file FwDaCurCheck.c.
FwSmDesc_t GetCurCheckSm | ( | ) |
Retrieve the descriptor of the Current FD Check State Machine.
The Current FD Check State Machine is a singleton. The first time this function is called, it creates and configures the state machine descriptor. Subsequently, it always returns the same descriptor.
The Current FD Check State Machine is built as an extension of the generic FD Check State Machine (see FwDaFailDetCheck.h
) with the following changes:
DefAnomalyDetCheck
) is overridden to report "anomaly detected" if the current absorbed by the hardware device is above HW_DEV_CUR_MAX_NOM.DefRecoveryAction
) is overridden to send a switch-off command to the Hardware Device.cntLimit
is set to HW_DEV_CUR_CNT_LIMIT.Thus, this FD Check monitors the current absorbed by the Hardware Device and, if it finds that it is out-of-limits for more than HW_DEV_CUR_CNT_LIMIT consecutive cycles, it switches off the Hardware Device.
Definition at line 39 of file FwDaCurCheck.c.