23 #include "FwSmConstants.h" 24 #include "FwSmConfig.h" 26 #include "FwPrConfig.h" 28 #include "FwPrConstants.h" 45 FwSmDesc_t inFactory1, inFactory2;
49 if (inFactory1 == NULL)
54 if (inFactory1 != inFactory2)
58 if (FwSmCheckRec(inFactory1) != smSuccess)
101 if (inFactory == NULL)
156 if (inCmdArray[i]==NULL)
190 FwSmDesc_t inCmd1, inCmd2, inCmd3;
195 if (inFactory == NULL)
270 FwSmStart(inFactory);
287 FwSmDesc_t inCmd1, inCmd2, inCmd3;
292 if (inFactory == NULL)
364 if (inFactory == NULL)
419 if (inRepArray[i]==NULL)
453 FwSmDesc_t inRep1, inRep2, inRep3;
458 if (inFactory == NULL)
532 FwSmStart(inFactory);
549 FwSmDesc_t inRep1, inRep2, inRep3;
554 if (inFactory == NULL)
Interface through which framework components access the current time.
A framework function was called with an illegal type/sub-type/discriminant triplet for an InCommand...
CrFwBool_t CrFwInFactoryTestCase6()
Test the InReport part of the Reset and Shutdown functions of the InFactory component.
CrFwTypeId_t CrFwCmpGetTypeId(FwSmDesc_t smDesc)
Return the type identifier of the argument component.
void CrFwCmpInit(FwSmDesc_t smDesc)
Initialize a framework component.
CrFwBool_t CrFwInFactoryTestCase3()
Test the InCommand part of the Reset and Shutdown functions of the InFactory component.
Definition of the Framework Component Data (FCD) Type.
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).
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.
static FwSmDesc_t inFactory
The singleton instance of the InFactory.
User-modifiable parameters for the InFactory component (see CrFwInFactory.h).
#define CR_FW_INFACTORY_MAX_NOF_INREP
The maximum number of InReports which may be allocated at any one time.
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").
A framework function was called with an illegal type/sub-type/discriminant triplet for an InReport...
Allocation request for an InReport has failed (see CrFwInFactoryMakeInRep).
void CrFwPcktSetCmdRepId(CrFwPckt_t pckt, CrFwInstanceId_t id)
Set the command or report identifier in the command or report encapsulated in a packet.
void CrFwPcktRelease(CrFwPckt_t pckt)
Release function for command or report packets.
Definition of the InRegistry Component.
#define CR_FW_INFACTORY_TYPE
Type identifier for the InFactory component.
An InReport release request has encountered an error (see CrFwInFactoryReleaseInRep).
Declaration of the test cases for the InFactory Component (see CrFwInFactory.h).
Interface for reporting an error detected by a framework component.
unsigned short CrFwCounterU2_t
Type used for unsigned integers with a "medium" range.
void CrFwPcktSetServSubType(CrFwPckt_t pckt, CrFwServSubType_t servSubType)
Set the service sub-type of the command or report encapsulated in a packet.
CrFwBool_t CrFwInFactoryTestCase4()
Test the InCommand part of the Release function of the InFactory component.
Definition of the InFactory component.
static FwSmDesc_t inRep[CR_FW_INFACTORY_MAX_NOF_INREP]
The pre-allocated InReport instances.
Definition of the utility functions for the CORDET Framework.
CrFwBool_t CrFwInFactoryTestCase1()
Test the creation and configuration of the InFactory singleton component.
void CrFwCmpReset(FwSmDesc_t smDesc)
Reset a framework component.
CrFwInFactoryPoolIndex_t CrFwInFactoryGetMaxNOfInCmd()
Return the maximum number of InCommands which may be allocated at any one time.
void CrFwPcktSetServType(CrFwPckt_t pckt, CrFwServType_t servType)
Set the service type of the command or report encapsulated in a packet.
void CrFwInFactoryReleaseInRep(FwSmDesc_t inRepInstance)
Release function for an InReport.
Definition of Base Component.
CrFwBool_t CrFwCmpIsStarted(FwSmDesc_t smDesc)
Return true if the state machine of the argument component has been started.
FwSmDesc_t CrFwInFactoryMake()
Factory function for the singleton instance of the InFactory.
CrFwBool_t CrFwInFactoryTestCase7()
Test the InReport part of the Release function of the InFactory component.
The CORDET Framework defines an interface for generating error reports (see CrFwRepErr.h).
void CrFwInFactoryReleaseInCmd(FwSmDesc_t inCmdInstance)
Release function for an InCommand.
CrFwCounterU2_t CrFwPcktGetNOfAllocated()
Return the number of packets which are currently allocated.
User-modifiable parameters for the OutRegistry component (see CrFwOutRegistry.h). ...
FwSmDesc_t CrFwInFactoryMakeInRep(CrFwPckt_t pckt)
Make function for a component encapsulating an incoming report (InReport).
CrFwInFactoryPoolIndex_t CrFwInFactoryGetNOfAllocatedInCmd()
Return the number of InCommands which are currently allocated.
CrFwBool_t CrFwInFactoryTestCase5()
Test the InReport creation service in non-nominal situations where the creation fails.
static FwSmDesc_t inCmd[CR_FW_INFACTORY_MAX_NOF_INCMD]
The pre-allocated InCommand instances.
CrFwInFactoryPoolIndex_t CrFwInFactoryGetNOfAllocatedInRep()
Return the number of InReports which are currently allocated.
void CrFwCmpShutdown(FwSmDesc_t smDesc)
Shutdown a framework component.
void CrFwPcktSetDiscriminant(CrFwPckt_t pckt, CrFwDiscriminant_t discriminant)
Set the discriminant of the command or report encapsulated in a packet.
No application errors have been detected.
Allocation request for a packet for an InCommand has failed (see CrFwInFactoryMakeInCmd).
FwSmDesc_t CrFwInFactoryMakeInCmd(CrFwPckt_t pckt)
Make function for a component encapsulating an incoming command (InCommand).
#define CR_FW_INFACTORY_MAX_NOF_INCMD
The maximum number of components representing an incoming command which may be allocated at any one t...
CrFwAppErrCode_t CrFwGetAppErrCode()
Return the value of the application error code.
An InCommand release request has encountered an error (see CrFwInFactoryReleaseInCmd).
CrFwBool_t CrFwInFactoryTestCase2()
Test the InCommand creation service in non-nominal situations where the creation fails.
CrFwInFactoryPoolIndex_t CrFwInFactoryGetMaxNOfInRep()
Return the maximum number of InReports which may be allocated at any one time.