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);
Declaration of the test cases for the Base Component (see CrFwBaseCmp.h).
Type for the Framework Component Data (FCD).
void CrFwCmpInit(FwSmDesc_t smDesc)
Initialize a framework component.
FwPrDesc_t CrFwCmpGetResetProc()
Retrieve the singleton instance of the CRP.
Definition of the Framework Component Data (FCD) Type.
CrFwBool_t CrFwCmpIsInConfigured(FwSmDesc_t smDesc)
Return true if the argument component is in state CONFIGURED.
CrFwBool_t CrFwCmpIsInCreated(FwSmDesc_t smDesc)
Return true if the argument component is in state CREATED.
int CrFwBool_t
Type used for boolean values (1 represent "true" and 0 represents "false").
FwPrDesc_t resetProc
The Component Reset Procedure (CRP) (see CrFwResetProc.h).
Dummy Component Execution Procedure (CEP) for the Base Component.
CrFwBool_t CrFwCmpIsInInitialized(FwSmDesc_t smDesc)
Return true if the argument component is in state INITIALIZED.
CrFwBool_t CrFwBaseCmpTestCase1()
Test the transitions in the Base Component state machine and its Initialization and Reset Procedures...
FwPrDesc_t execProc
The Component Execution Procedure (CEP) (see CrFwBaseCmp.h).
FwSmDesc_t CrFwBaseCmpMake()
Retrieve the singleton instance of the Base State Machine.
void CrFwCmpReset(FwSmDesc_t smDesc)
Reset a framework component.
FwPrDesc_t CrFwBaseCmpGetDummyExecProc()
Retrieve the singleton instance of the Dummy CEP.
Definition of Base Component.
CrFwBool_t CrFwCmpIsStarted(FwSmDesc_t smDesc)
Return true if the state machine of the argument component has been started.
Header file to define all user-configurable constants and types for the CORDET Framework (the non-con...
Component Initialization Procedure (CIP) for the Base Component.
void CrFwCmpShutdown(FwSmDesc_t smDesc)
Shutdown a framework component.
FwPrDesc_t CrFwCmpGetInitProc()
Retrieve the singleton instance of the CIP.
Component Reset Procedure (CRP) for the Base Component.
FwPrDesc_t initProc
The Component Initialization Procedure (CIP) (see CrFwInitProc.h).