CORDET Framework - C2 Implementation
cordetfw/pustests/config/CrFwRepInCmdOutcome.c
1 
38 #include <stdlib.h>
39 /* Include Framework Files */
40 #include "CrFwConstants.h"
41 #include "CrFwRepInCmdOutcome.h"
42 /* Include Configuration Files */
43 #include "CrFwRepInCmdOutcomeStub.h"
44 
46 #define CR_FW_INCMD_OUTCOME_REP_ARRAY_SIZE 30
47 
49 typedef struct {
51  CrFwRepInCmdOutcome_t outcome;
53  CrFwOutcome_t failCode;
59  CrFwDiscriminant_t discriminant;
61  CrFwInstanceId_t instanceId;
63 
66 
70 
71 /*-----------------------------------------------------------------------------------------*/
73  return inCmdOutcomeRepPos;
74 }
75 
76 /*-----------------------------------------------------------------------------------------*/
79 }
80 
81 /*-----------------------------------------------------------------------------------------*/
83  return inCmdOutcomeRepArray[repPos].outcome;
84 }
85 
86 /*-----------------------------------------------------------------------------------------*/
88  return inCmdOutcomeRepArray[repPos].failCode;
89 }
90 
91 /*-----------------------------------------------------------------------------------------*/
93  return inCmdOutcomeRepArray[repPos].instanceId;
94 }
95 
96 /*-----------------------------------------------------------------------------------------*/
98  return inCmdOutcomeRepArray[repPos].servType;
99 }
100 
101 /*-----------------------------------------------------------------------------------------*/
103  return inCmdOutcomeRepArray[repPos].servSubType;
104 }
105 
106 /*-----------------------------------------------------------------------------------------*/
108  return inCmdOutcomeRepArray[repPos].discriminant;
109 }
110 
void CrFwRepInCmdOutcomeStubReset()
Reset the InCommand Outcome Reporting interface.
CrFwCounterU2_t CrFwRepInCmdOutcomeStubGetPos()
Return the position in the InCommand Outcome Report array at which the next outcome report will be wr...
static CrFwServSubType_t servSubType
Service sub-type.
unsigned char CrFwServSubType_t
Type used for the command or report sub-type.
unsigned short CrFwInstanceId_t
Type used for instance identifiers.
CrFwOutcome_t failCode
The failure code (only meaningful for failure outcomes)
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...
CrFwRepInCmdOutcome_t outcome
The outcome of the InCommand.
CrFwRepInCmdOutcome_t CrFwRepInCmdOutcomeStubGetOutcome(CrFwCounterU2_t repPos)
Return the outcome of the InCommand Outcome Report at position repPos.
CrFwInstanceId_t CrFwRepInCmdOutcomeStubGetInstanceId(CrFwCounterU2_t repPos)
Return the instance identifier of the InCommand Outcome Report at position repPos.
CrFwServSubType_t servSubType
The service sub-type of the InCommand whose outcome is being reported.
CrFwServSubType_t CrFwRepInCmdOutcomeStubGetServSubType(CrFwCounterU2_t repPos)
Return the service sub-type of the InCommand Outcome Report at position repPos.
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.
The structure for an InCommand Outcome Report.
static CrFwServType_t servType
Service type.
CrFwServType_t servType
The service type of the InCommand whose outcome is being reported.
CrFwRepInCmdOutcome_t
Enumerated type for the outcome of the processing of an incoming command.
CrFwDiscriminant_t discriminant
The discriminant of the InCommand whose outcome is being reported.
static CrFwCounterU2_t inCmdOutcomeRepPos
The position in the InCommand Outcome Report array at which the next InCommand Outcome Report will be...
CrFwServType_t CrFwRepInCmdOutcomeStubGetServType(CrFwCounterU2_t repPos)
Return the service type of the InCommand Outcome Report at position repPos.
CrFwDiscriminant_t CrFwRepInCmdOutcomeStubGetDiscriminant(CrFwCounterU2_t repPos)
Return the discriminant of the InCommand Outcome Report at position repPos.
static CrFwInCmdOutcomeRep_t inCmdOutcomeRepArray[CR_FW_INCMD_OUTCOME_REP_ARRAY_SIZE]
The InCommand Outcome Report array.
#define CR_FW_INCMD_OUTCOME_REP_ARRAY_SIZE
The size of the InCommand Outcome Report array.
unsigned short CrFwCounterU2_t
Type used for unsigned integers with a "medium" range.
CrFwOutcome_t CrFwRepInCmdOutcomeStubGetFailCode(CrFwCounterU2_t repPos)
Return the failure code of the InCommand Outcome Report at position repPos.
CrFwInstanceId_t instanceId
The instance identifier of the InCommand whose outcome is being reported.
P&P Software GmbH, Copyright 2012-2013, All Rights Reserved