23 #include "FwSmConfig.h" 24 #include "FwPrConfig.h" 31 #include <CrFwCmpData.h> 43 #define ACK_CREATE_FAIL 99 55 printf(
"CrFwRepInCmdOutcomeCreFail: InCmd had invalid type or no more resources are available\n");
69 unsigned short stepIdentifier;
72 printf(
"########## CrFwRepInCmdOutcome: unexpected outcome report %d for InCommand %d,\n", outcome, instanceId);
73 printf(
" service type %d, service sub-type %d, and discriminant %d\n", servType, servSubType, disc);
74 printf(
"\n>>>\n>>> Result with Code %d: \n", failCode);
79 printf (
"########## CrFwRepInCmdOutcome: Acceptance Failed, Send TM(1,2)\n");
84 printf (
"########## CrFwRepInCmdOutcome: Acceptance Success, Send TM(1,1)\n");
89 printf (
"########## CrFwRepInCmdOutcome: Start Failed, Send TM(1,4)\n");
94 printf (
"########## CrFwRepInCmdOutcome: Start Success, Send TM(1,3)\n");
99 printf (
"########## CrFwRepInCmdOutcome: Progress Failed, Send TM(1,6)\n");
103 stepIdentifier = prDataPrgrAction->stepId;
108 printf (
"########## CrFwRepInCmdOutcome: Progress Success, Send TM(1,5)\n");
111 if (prDataPrgrAction != NULL)
113 stepIdentifier = prDataPrgrAction->stepId;
123 printf (
"########## CrFwRepInCmdOutcome: Termination Failed, Send TM(1,8)\n");
128 printf (
"########## CrFwRepInCmdOutcome: Termination Success, Send TM(1,7)\n");
133 printf (
"########## CrFwRepInCmdOutcome: unknown outcome\n");
140 printf(
"########## failed ...");
143 printf(
"########## success/completed ...");
146 printf(
"########## continue ...");
149 printf(
"########## failed with cause: InCmd is not accepted\n>>> -> leads to action ...");
153 printf(
"########## failed with cause: InCmd can not processed successfully due to timeout\n>>> -> leads to action ...");
157 printf(
"########## unknown\n>>> -> leads to action ...");
FwPrDesc_t getPrDescServTestOnBoardConnPrgr()
Getter for TestOnBoardConnPrgr procedure descriptor.
static CrFwServSubType_t servSubType
Service sub-type.
#define CRPS_REQVERIF_ACC_SUCC
Subtype identifier of the Request Verification Acceptance Successful out-going report packet...
#define CRFW_UNUSED(x)
A macro that can be used to specify that a function parameter is not used.
unsigned char CrFwServSubType_t
Type used for the command or report sub-type.
#define CRPS_REQVERIF_START_SUCC
Subtype identifier of the Request Verification Start Successful out-going report packet.
void CrFwRepInCmdOutcomeCreFail(CrFwRepInCmdOutcome_t outcome, CrFwOutcome_t failCode, CrFwPckt_t pckt)
Report the a "creation failure" outcome for the processing of a packet carrying an InCommand...
unsigned short CrFwInstanceId_t
Type used for instance identifiers.
Definition of the OutFactory component.
Header file to define all service and packet identifiers.
Interface for creating and accessing a report or command packet.
unsigned char CrFwServType_t
Type used for the service type of a command or report.
Header file to define all invariant publicly available constants and types for the CORDET Framework...
#define CRPS_REQVERIF_TERM_SUCC
Subtype identifier of the Request Verification Termination Successful out-going report packet...
void SendReqVerifAccSuccRep(FwSmDesc_t smDesc, uint16_t reqVerifAccSuccType)
Generate a Request Verification Acceptance/Start/Termination Successful out-going report...
static CrFwDiscriminant_t disc
Discriminant.
#define CRPS_REQVERIF_TERM_FAIL
Subtype identifier of the Request Verification Termination Failed out-going report packet...
Interface through which applications can initialize and execute framework PUS extension components...
#define CRPS_REQVERIF_START_FAIL
Subtype identifier of the Request Verification Start Failed out-going report packet.
void CrFwRepInCmdOutcome(CrFwRepInCmdOutcome_t outcome, CrFwInstanceId_t instanceId, CrFwServType_t servType, CrFwServSubType_t servSubType, CrFwDiscriminant_t disc, CrFwOutcome_t failCode, FwSmDesc_t inCmd)
Report the outcome of the processing of an InCommand.
unsigned char CrFwOutcome_t
Type used for the outcome of a check (see CrFwCmpData).
Interface for reporting the outcome of the processing of an InCommand.
unsigned short CrFwDiscriminant_t
Type used for the discriminant of a command or report.
static CrFwServType_t servType
Service type.
CrFwRepInCmdOutcome_t
Enumerated type for the outcome of the processing of an incoming command.
void SendReqVerifPrgrSuccRep(FwSmDesc_t smDesc, CrPsStepId_t stepIdentifier)
Generate a Request Verification Progress Successful out-going report.
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).
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...
static FwSmDesc_t inCmd[CR_FW_INFACTORY_MAX_NOF_INCMD]
The pre-allocated InCommand instances.
Definition of the OutLoader component.
void SendReqVerifCmdFailRep(FwSmDesc_t smDesc, uint16_t reqVerifCmdFailType, CrPsFailCode_t FailureCode)
Generate a Request Verification Start/Termination Failed out-going report.