23 #include "FwSmConstants.h" 24 #include "FwSmConfig.h" 26 #include "FwPrConfig.h" 28 #include "FwPrConstants.h" 45 FwSmDesc_t outFactory1, outFactory2;
49 if (outFactory1 == NULL)
54 if (outFactory1 != outFactory2)
58 if (FwSmCheckRec(outFactory1) != smSuccess)
89 if (outFactory == NULL)
167 if (outCmpArray[i]==NULL)
196 FwSmDesc_t outCmp1, outCmp2, outCmp3;
201 if (outFactory == NULL)
254 FwSmStart(outFactory);
270 FwSmDesc_t outCmp1, outCmp2, outCmp3, outCmp4;
275 if (outFactory == NULL)
Interface through which framework components access the current time.
unsigned short CrFwInstanceId_t
Type used for instance identifiers.
#define CR_FW_OUTFACTORY_MAX_NOF_OUTCMP
The maximum number of OutComponents which may be allocated at any one time.
CrFwTypeId_t CrFwCmpGetTypeId(FwSmDesc_t smDesc)
Return the type identifier of the argument component.
void CrFwCmpInit(FwSmDesc_t smDesc)
Initialize a framework component.
Definition of the Framework Component Data (FCD) Type.
A framework function was called with an illegal type/sub-type/discriminant triplet for an OutComponen...
static FwSmDesc_t outCmp[CR_FW_OUTFACTORY_MAX_NOF_OUTCMP]
The pre-allocated OutComponent instances.
CrFwBool_t CrFwCmpIsInConfigured(FwSmDesc_t smDesc)
Return true if the argument component is in state CONFIGURED.
void CrFwSetAppErrCode(CrFwAppErrCode_t errCode)
Set the value of the application error code (see CrFwGetAppErrCode).
#define CR_FW_HOST_APP_ID
The identifier of the host application.
unsigned char * CrFwPckt_t
Type for packets (see CrFwPckt.h).
CrFwInstanceId_t CrFwCmpGetInstanceId(FwSmDesc_t smDesc)
Return the instance identifier of the argument component.
CrFwPckt_t CrFwPcktMake(CrFwPcktLength_t pcktLength)
Make function for command or report packets.
CrFwPcktLength_t CrFwOutCmpGetLength(FwSmDesc_t smDesc)
Return the length in bytes of the packet to which the OutComponent is serialized. ...
Definition of the OutFactory component.
Interface for creating and accessing a report or command packet.
int CrFwBool_t
Type used for boolean values (1 represent "true" and 0 represents "false").
#define CR_FW_MAX_NOF_PCKTS
The maximum number of packets which can be created with the default packet implementation.
Definition of the OutRegistry Component.
void CrFwPcktRelease(CrFwPckt_t pckt)
Release function for command or report packets.
An OutComponent allocation request has failed (see CrFwOutFactoryMakeOutCmp).
static FwSmDesc_t outFactory
The singleton instance of the OutFactory.
Interface for reporting an error detected by a framework component.
CrFwBool_t CrFwOutFactoryTestCase3()
Test the Reset and Shutdown functions of the OutFactory component.
CrFwDestSrc_t CrFwOutCmpGetSrc(FwSmDesc_t smDesc)
Return the source of the OutComponent.
unsigned short CrFwCounterU2_t
Type used for unsigned integers with a "medium" range.
Definition of the utility functions for the CORDET Framework.
CrFwPcktLength_t CrFwPcktGetMaxLength()
Return the maximum length of a packet in number of bytes.
CrFwOutFactoryPoolIndex_t CrFwOutFactoryGetMaxNOfOutCmp()
Return the maximum number of OutComponents which may be allocated at any one time.
void CrFwCmpReset(FwSmDesc_t smDesc)
Reset a framework component.
CrFwOutFactoryPoolIndex_t CrFwOutFactoryGetNOfAllocatedOutCmp()
Return the number of OutComponents which are currently allocated.
CrFwBool_t CrFwOutFactoryTestCase4()
Test the OutComponent Creation and Release functions of the OutFactory component. ...
Definition of Base Component.
CrFwBool_t CrFwCmpIsStarted(FwSmDesc_t smDesc)
Return true if the state machine of the argument component has been started.
User-modifiable parameters for the OutFactory component (see CrFwOutFactory.h).
void CrFwOutFactoryReleaseOutCmp(FwSmDesc_t outCmpInstance)
Release function for an OutComponent.
The CORDET Framework defines an interface for generating error reports (see CrFwRepErr.h).
CrFwCounterU2_t CrFwPcktGetNOfAllocated()
Return the number of packets which are currently allocated.
FwSmDesc_t CrFwOutFactoryMake()
Factory function for the singleton instance of the OutFactory.
User-modifiable parameters for the OutRegistry component (see CrFwOutRegistry.h). ...
An OutComponent release request has encountered an error (see CrFwOutFactoryReleaseOutCmp).
#define CR_FW_OUTFACTORY_TYPE
Type identifier for the OutFactory component.
CrFwBool_t CrFwOutFactoryTestCase2()
Test the OutComponent creation service in non-nominal situations where the creation fails...
CrFwBool_t CrFwOutFactoryTestCase1()
Test the creation and configuration of the OutFactory singleton component.
void CrFwCmpShutdown(FwSmDesc_t smDesc)
Shutdown a framework component.
No application errors have been detected.
FwSmDesc_t CrFwOutFactoryMakeOutCmp(CrFwServType_t type, CrFwServSubType_t subType, CrFwDiscriminant_t discriminant, CrFwPcktLength_t length)
Make function for an OutComponent.
CrFwAppErrCode_t CrFwGetAppErrCode()
Return the value of the application error code.
CrFwInstanceId_t CrFwOutFactoryGetNOfInstanceId()
Return the number of distinct instance identifiers supported by the OutFactory.
Declaration of the test cases for the OutFactory Component (see CrFwOutFactory.h).