FW Profile - C1 Implementation
FwDaDeltaCheck.c File Reference

Implementation of Delta Failure Detection (FD) Check. More...

Go to the source code of this file.

Functions

FwSmDesc_t GetDeltaCheckSm ()
 Retrieve the descriptor of the Delta FD Check State Machine. More...
 

Detailed Description

Implementation of Delta Failure Detection (FD) Check.

Author
V. Cechticky and A. Pasetti

Definition in file FwDaDeltaCheck.c.

Function Documentation

FwSmDesc_t GetDeltaCheckSm ( )

Retrieve the descriptor of the Delta FD Check State Machine.

The Delta 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 Delta FD Check State Machine is built as an extension of the generic FD Check State Machine (see FwDaFailDetCheck.h) with the following changes:

  • The Default Anomaly Detection Check (function DefAnomalyDetCheck) is overridden to report "anomaly detected" if the current absorbed by the hardware device or its temperature have changed by more than, respectively, HW_DEV_CUR_MAX_DELTA and HW_DEV_TEMP_MAX_DELTA.
  • The Default Recovery Action (function DefRecoveryAction) is overridden to send a command to switch off the Hardware Device.
  • The counter limit cntLimit is set to HW_DEV_DELTA_CNT_LIMIT.

Thus, this FD Check monitors the current absorbed by the Hardware Device and its temperature, if it finds that either has jumped by more than a certain threshold for more than HW_DEV_DELTA_CNT_LIMIT consecutive cycles, it commands the Hardware Device into STANDBY mode.

Returns
the descriptor of the FD Check State Machine or NULL if the state machine could not be created.

Definition at line 64 of file FwDaDeltaCheck.c.

P&P Software GmbH, Copyright 2011, All Rights Reserved