FW Profile - C1 Implementation
FwDaCurRecAction.h File Reference

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

Go to the source code of this file.

Macros

#define CUR_REC_ACTION_ID   1
 Identifier of the Current Recovery Action. More...
 
#define CUR_REC_ACTION_N1   4
 Number of wait cycles between the command sending the Hardware Device to Stand-By and the command switching it off.
 

Functions

FwPrDesc_t GetCurRecActionPr ()
 Retrieve the descriptor of the Current Recovery Action Procedure. More...
 

Detailed Description

Definition of the Current Failure Recovery Action (RA).

This RA is encapsulated in a procedure which first commands the Hardware Device into SBY and then switches it off (see figure below).

CurRecAction.png
Author
Vaclav Cechticky, Alessandro Pasetti

Definition in file FwDaCurRecAction.h.

Macro Definition Documentation

#define CUR_REC_ACTION_ID   1

Identifier of the Current Recovery Action.

Definition at line 20 of file FwDaCurRecAction.h.

Function Documentation

FwPrDesc_t GetCurRecActionPr ( )

Retrieve the descriptor of the Current Recovery Action Procedure.

The Current 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 CUR_REC_ACT_N1 cycles
  • It switches off the Hardware Device.
Returns
the procedure descriptor or NULL if the procedure could not be created.

Definition at line 48 of file FwDaCurRecAction.c.

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