FW Profile - C1 Implementation
FwDaTempCheck.h File Reference

Definition of the Temperature Failure Detection (FD) Check. More...

Go to the source code of this file.

Macros

#define HW_DEV_TEMP_MAX_NOM   90
 Maximum nominal temperature of the Hardware Device. More...
 
#define HW_DEV_TEMP_CNT_LIMIT   2
 Counter limit for the Temperature FD Check. More...
 

Functions

FwSmDesc_t GetTempCheckSm ()
 Retrieve the descriptor of the Temperature FD Check State Machine. More...
 

Detailed Description

Definition of the Temperature Failure Detection (FD) Check.

This FD Check is encapsulated in a state machine which is derived from the FD Check State Machine. The Temperature Check reports "anomaly detected" if the temperature of the hardware device is above a certain threshold. if the Temperature Check declares a failure, it starts the Temperature Recovery Action Procedure.

Author
Vaclav Cechticky, Alessandro Pasetti

Definition in file FwDaTempCheck.h.

Macro Definition Documentation

#define HW_DEV_TEMP_CNT_LIMIT   2

Counter limit for the Temperature FD Check.

If the temperature FD Check detects an anomaly for longer than HW_DEV_TEMP_CNT_LIMIT cycles, then a failure is declared and the Recovery Action associated to the check is executed.

Definition at line 36 of file FwDaTempCheck.h.

#define HW_DEV_TEMP_MAX_NOM   90

Maximum nominal temperature of the Hardware Device.

If the temperature of the Hardware Device exceeds this limit, the Temperature FD Check declares an anomaly and if the anomaly persists for longer than HW_DEV_TEMP_CNT_LIMIT cycles, the Hardware Device must be switched off.

Definition at line 27 of file FwDaTempCheck.h.

Function Documentation

FwSmDesc_t GetTempCheckSm ( )

Retrieve the descriptor of the Temperature FD Check State Machine.

The Temperature 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 Temperature 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 temperature of the hardware device is above HW_DEV_TEMP_MAX_NOM.
  • The Default Recovery Action (function DefRecoveryAction) is overridden to start the Temperature Recovery Action Procedure.
  • The counter limit cntLimit is set to HW_DEV_TEMP_CNT_LIMIT.

Thus, this FD Check monitors the temperature of the Hardware Device and, if it finds that it is out-of-limits for more than HW_DEV_TEMP_CNT_LIMIT consecutive cycles, it switches off the Hardware Device.

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

Definition at line 38 of file FwDaTempCheck.c.

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