21 #include "FwSmConstants.h"
22 #include "FwSmConfig.h"
24 #include "FwPrConfig.h"
26 #include "FwPrConstants.h"
39 FwPrDesc_t initProc, resetProc, execProc;
48 if (FwPrIsStarted(initProc) == 1)
52 if (FwPrIsStarted(resetProc) == 1)
56 if (FwPrIsStarted(execProc) == 1)
63 FwSmSetData(baseCmp, &baseCmpData);
64 FwPrSetData(initProc, &baseCmpData);
65 FwPrSetData(resetProc, &baseCmpData);
68 if (FwSmCheck(baseCmp) != smSuccess)
70 if (FwPrCheck(initProc) != prSuccess)
72 if (FwPrCheck(resetProc) != prSuccess)
74 if (FwPrCheck(execProc) != prSuccess)
99 FwSmSetData(baseCmp, NULL);
CrFwBool_t CrFwCmpIsStarted(FwSmDesc_t smDesc)
Return true if the state machine of the argument component has been started.
void CrFwCmpInit(FwSmDesc_t smDesc)
Initialize a framework component.
CrFwBool_t CrFwCmpIsInInitialized(FwSmDesc_t smDesc)
Return true if the argument component is in state INITIALIZED.
void CrFwCmpShutdown(FwSmDesc_t smDesc)
Shutdown a framework component.
CrFwBool_t CrFwCmpIsInConfigured(FwSmDesc_t smDesc)
Return true if the argument component is in state CONFIGURED.
void CrFwCmpReset(FwSmDesc_t smDesc)
Reset a framework component.
CrFwBool_t CrFwCmpIsInCreated(FwSmDesc_t smDesc)
Return true if the argument component is in state CREATED.
FwSmDesc_t CrFwBaseCmpMake()
Retrieve the singleton instance of the Base State Machine.
Definition of Base Component.
CrFwBool_t CrFwBaseCmpTestCase1()
Test the transitions in the Base Component state machine and its Initialization and Reset Procedures.
Declaration of the test cases for the Base Component (see CrFwBaseCmp.h).
Definition of the Framework Component Data (FCD) Type.
int CrFwBool_t
Type used for boolean values (1 represent "true" and 0 represents "false").
FwPrDesc_t CrFwBaseCmpGetDummyExecProc()
Retrieve the singleton instance of the Dummy CEP.
Dummy Component Execution Procedure (CEP) for the Base Component.
FwPrDesc_t CrFwCmpGetInitProc()
Retrieve the singleton instance of the CIP.
Component Initialization Procedure (CIP) for the Base Component.
FwPrDesc_t CrFwCmpGetResetProc()
Retrieve the singleton instance of the CRP.
Component Reset Procedure (CRP) for the Base Component.
Header file to define all user-configurable constants and types for the CORDET Framework (the non-con...
Type for the Framework Component Data (FCD).
FwPrDesc_t initProc
The Component Initialization Procedure (CIP) (see CrFwInitProc.h).
FwPrDesc_t resetProc
The Component Reset Procedure (CRP) (see CrFwResetProc.h).
FwPrDesc_t execProc
The Component Execution Procedure (CEP) (see CrFwBaseCmp.h).