CORDET Framework - C2 Implementation
cordetfw-examples/src/CrConfigDemoMaster/CrFwRepInCmdOutcome.c
Go to the documentation of this file.
1 
21 #include <stdio.h>
22 #include <stdlib.h>
23 #include <string.h>
24 #include "CrDaConstants.h"
25 /* Include Framework Files */
26 #include "CrFwConstants.h"
27 #include "CrFwRepInCmdOutcome.h"
28 
29 /*-----------------------------------------------------------------------------------------*/
32 
33  printf("CrFwRepInCmdOutcome: unexpected outcome for InCommand %d, service type %d,\n",instanceId,servType);
34  printf(" service sub-type %d, and discriminant %d\n",servSubType,disc);
35 
36 }
37 
38 /*-----------------------------------------------------------------------------------------*/
40 
41  printf("CrFwRepInCmdOutcomeCreFailt: failure to create InCommand component\n");
42 }
43 
unsigned char CrFwServSubType_t
Type used for the command or report sub-type.
unsigned char * CrFwPckt_t
Type for packets (see CrFwPckt.h).
Definition: CrFwConstants.h:38
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.
static CrFwServSubType_t servSubType
Service sub-type.
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...
static CrFwDiscriminant_t disc
Discriminant.
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.
CrFwRepInCmdOutcome_t
Enumerated type for the outcome of the processing of an incoming command.
static CrFwServType_t servType
The InCommand type as computed in the Validity Check.
static FwSmDesc_t inCmd[CR_FW_INFACTORY_MAX_NOF_INCMD]
The pre-allocated InCommand instances.
Definition: CrFwInFactory.c:58
P&P Software GmbH, Copyright 2012-2013, All Rights Reserved