FW Profile - C1 Implementation
FwDaTempRecAction.h File Reference

Definition of the Temperature Failure Recovery Action (RA). More...

Go to the source code of this file.

Macros

#define TEMP_REC_ACTION_ID   1
 Identifier of the Temperature Recovery Action. More...
 
#define TEMP_REC_ACTION_N1   4
 Number of wait cycles between the command sending the Hardware Device to Stand-By and the check on the temperature.
 
#define TEMP_REC_ACTION_T1   50
 Temperature threshold for the Temperature Recovery Action. More...
 

Functions

FwPrDesc_t GetTempRecActionPr ()
 Retrieve the descriptor of the Temperature Recovery Action Procedure. More...
 

Detailed Description

Definition of the Temperature Failure Recovery Action (RA).

This RA is encapsulated in a procedure which first commands the Hardware Device into SBY and then checks whether the temperature is below a safe threshold. If this is so, the device is commanded back into operational mode; otherwise it is switched off(see figure below).

TempRecAction.png
Author
Vaclav Cechticky, Alessandro Pasetti

Definition in file FwDaTempRecAction.h.

Macro Definition Documentation

#define TEMP_REC_ACTION_ID   1

Identifier of the Temperature Recovery Action.

Definition at line 22 of file FwDaTempRecAction.h.

#define TEMP_REC_ACTION_T1   50

Temperature threshold for the Temperature Recovery Action.

If the temperature of the HW Device is found to be below this thresholds, the HW Device is commanded back into operational mode; otherwise, it is switched off.

Definition at line 36 of file FwDaTempRecAction.h.

Function Documentation

FwPrDesc_t GetTempRecActionPr ( )

Retrieve the descriptor of the Temperature Recovery Action Procedure.

The Temperature Recovery Action Procedure is a singleton. The first time this function is called, it creates and configures the procedure descriptor. Subsequently, it always returns the same descriptor.

This procedure performs the following actions:

  • It commands the Hardware Device into Stand-By Mode
  • It waits TEMP_REC_ACT_N1 cycles
  • It checks the temperature and, if it finds that it is below TEMP_REC_ACTION_T1, it commands the HW Device back into operational mode; otherwise it switches it off.
Returns
the procedure descriptor or NULL if the procedure could not be created.

Definition at line 61 of file FwDaTempRecAction.c.

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