27 #include <CrFwCmpData.h> 31 #include <FwPrConfig.h> 32 #include <FwSmConfig.h> 49 FwPrDesc_t prDescServReqVerifPcktReroutFail, prDescServReqVerifPcktAccFail;
50 FwPrDesc_t prDescServReqVerifCmdVerSucc, prDescServReqVerifCmdVerFail;
51 FwPrDesc_t prDescServReqVerifCmdPrgrSucc, prDescServReqVerifCmdPrgrFail;
64 if (FwPrCheck(prDescServReqVerifPcktReroutFail) != prSuccess)
73 if (FwPrCheck(prDescServReqVerifPcktAccFail) != prSuccess)
82 if (FwPrCheck(prDescServReqVerifCmdVerSucc) != prSuccess)
91 if (FwPrCheck(prDescServReqVerifCmdVerFail) != prSuccess)
100 if (FwPrCheck(prDescServReqVerifCmdPrgrSucc) != prSuccess)
109 if (FwPrCheck(prDescServReqVerifCmdPrgrFail) != prSuccess)
133 return prDescServReqVerifPcktReroutFail;
141 return prDescServReqVerifPcktAccFail;
149 return prDescServReqVerifCmdVerSucc;
157 return prDescServReqVerifCmdVerFail;
165 return prDescServReqVerifCmdPrgrSucc;
173 return prDescServReqVerifCmdPrgrFail;
191 inPckt = inSpecificData->
pckt;
212 prData.smDesc = smDesc;
213 prData.ushortParam1 = reqVerifAccSuccType;
214 FwPrSetData(prDescServReqVerifCmdVerSucc, &prData);
215 FwPrRun(prDescServReqVerifCmdVerSucc);
229 prData.smDesc = smDesc;
230 prData.ushortParam1 = FailureCode;
231 FwPrSetData(prDescServReqVerifPcktAccFail, &prData);
232 FwPrRun(prDescServReqVerifPcktAccFail);
245 prData.smDesc = smDesc;
246 prData.ushortParam1 = FailureCode;
247 prData.ushortParam2 = reqVerifCmdFailType;
248 FwPrSetData(prDescServReqVerifCmdVerFail, &prData);
249 FwPrRun(prDescServReqVerifCmdVerFail);
269 inPckt = inSpecificData->
pckt;
275 prData.smDesc = smDesc;
276 prData.ushortParam1 = stepIdentifier;
277 FwPrSetData(prDescServReqVerifCmdPrgrSucc, &prData);
278 FwPrRun(prDescServReqVerifCmdPrgrSucc);
292 prData.smDesc = smDesc;
293 prData.ushortParam1 = stepIdentifier;
294 prData.ushortParam2 = FailureCode;
295 FwPrSetData(prDescServReqVerifCmdPrgrFail, &prData);
296 FwPrRun(prDescServReqVerifCmdPrgrFail);
309 prData.smDesc = smDesc;
310 prData.ushortParam1 = FailureCode;
311 FwPrSetData(prDescServReqVerifPcktReroutFail, &prData);
312 FwPrRun(prDescServReqVerifPcktReroutFail);
void initDpServReqVerif(void)
Initialises ServReqVerif.
Type for the Framework Component Data (FCD).
#define CRPS_REQVERIF_ACC_SUCC
Subtype identifier of the Request Verification Acceptance Successful out-going report packet...
FwPrDesc_t CrPsPcktAccFailCreate(void *prData)
Create a new procedure descriptor.
Create one instance of the CrPsPcktAccFail procedure.
CrFwBool_t CrFwPcktIsTermAck(CrFwPckt_t pckt)
Return the acknowledge level for command termination for the command encapsulated in the packet...
FwPrDesc_t CrPsCmdVerFailCreate(void *prData)
Create a new procedure descriptor.
#define CRPS_REQVERIF_START_SUCC
Subtype identifier of the Request Verification Start Successful out-going report packet.
FwPrDesc_t getPrDescServReqVerifCmdPrgrFail()
Getter for ReqVerifCmdPrgrFail procedure descriptor.
Definition of the OutFactory component.
CrFwPckt_t pckt
Packet holding the InCommand.
Header file to define all service and packet identifiers.
FwPrDesc_t CrPsCmdPrgrSuccCreate(void *prData)
Create a new procedure descriptor.
FwPrDesc_t CrPsCmdPrgrFailCreate(void *prData)
Create a new procedure descriptor.
Interface for creating and accessing a report or command packet.
FwPrDesc_t getPrDescServReqVerifCmdPrgrSucc()
Getter for ReqVerifCmdPrgrSucc procedure descriptor.
int CrFwBool_t
Type used for boolean values (1 represent "true" and 0 represents "false").
Create one instance of the CrPsCmdPrgrSucc procedure.
FwPrDesc_t CrPsCmdVerSuccCreate(void *prData)
Create a new procedure descriptor.
#define CRPS_REQVERIF_TERM_SUCC
Subtype identifier of the Request Verification Termination Successful out-going report packet...
uint32_t CrPsStepId_t
Type used for the Step ID of a packet.
void SendReqVerifAccSuccRep(FwSmDesc_t smDesc, uint16_t reqVerifAccSuccType)
Generate a Request Verification Acceptance/Start/Termination Successful out-going report...
void SendReqVerifPcktReroutFailRep(FwSmDesc_t smDesc, CrPsFailCode_t FailureCode)
Generate a Request Verification Package Rerouting Failed out-going report.
Interface for accessing data pool items.
CrFwBool_t CrFwPcktIsProgressAck(CrFwPckt_t pckt)
Return the acknowledge level for command progress for the command encapsulated in the packet...
FwPrDesc_t CrPsPcktReroutingFailCreate(void *prData)
Create a new procedure descriptor.
void * cmpSpecificData
Derived data which are specific to each type of framework component.
FwPrDesc_t getPrDescServReqVerifCmdVerFail()
Getter for ReqVerifCmdVerFail procedure descriptor.
uint16_t CrPsFailCode_t
Type used for the Failure Code of a packet.
void SendReqVerifPrgrSuccRep(FwSmDesc_t smDesc, CrPsStepId_t stepIdentifier)
Generate a Request Verification Progress Successful out-going report.
Create one instance of the CrPsCmdPrgrFail procedure.
void SendReqVerifPrgrFailRep(FwSmDesc_t smDesc, CrPsStepId_t stepIdentifier, CrPsFailCode_t FailureCode)
Generate a Request Verification Progress Failed out-going report.
char * CrFwPckt_t
Type for packets (see CrFwPckt.h).
CrFwBool_t CrFwPcktIsAcceptAck(CrFwPckt_t pckt)
Return the acknowledge level for command acceptance for the command encapsulated in the packet...
Create one instance of the CrPsCmdVerSucc procedure.
void SendReqVerifAccFailRep(FwSmDesc_t smDesc, CrPsFailCode_t FailureCode)
Generate a Request Verification Acceptance Failed out-going report.
Interface through which applications can initialize and execute framework PUS extension components...
int CrPsInitServReqVerif()
Initialization of CORDET Framework PUS Extension components.
FwPrDesc_t getPrDescServReqVerifPcktAccFail()
Getter for ReqVerifPcktAccFail procedure descriptor.
Type for the data describing an InCommand.
CrFwBool_t CrFwPcktIsStartAck(CrFwPckt_t pckt)
Return the acknowledge level for command start for the command encapsulated in the packet...
Interface for accessing data pool items.
Create one instance of the CrPsPcktReroutingFail procedure.
Definition of the OutLoader component.
FwPrDesc_t getPrDescServReqVerifCmdVerSucc()
Getter for ReqVerifCmdVerSucc procedure descriptor.
FwPrDesc_t getPrDescServReqVerifPcktReroutFail()
Getter for ReqVerifPcktReroutFail procedure descriptor.
Create one instance of the CrPsCmdVerFail procedure.
void SendReqVerifCmdFailRep(FwSmDesc_t smDesc, uint16_t reqVerifCmdFailType, CrPsFailCode_t FailureCode)
Generate a Request Verification Start/Termination Failed out-going report.
void CrPsExecServReqVerif()
Execution of CORDET Framework PUS Extension components.