42 #define CR_FW_INCMD_OUTCOME_REP_ARRAY_SIZE 10 112 return inCmdOutcomeRepArray[repPos].
outcome;
117 return inCmdOutcomeRepArray[repPos].
failCode;
122 return inCmdOutcomeRepArray[repPos].
instanceId;
127 return inCmdOutcomeRepArray[repPos].
servType;
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...
CrFwServType_t CrFwPcktGetServType(CrFwPckt_t pckt)
Return the service type of the command or report encapsulated in a packet.
CrFwDiscriminant_t CrFwPcktGetDiscriminant(CrFwPckt_t pckt)
Return the discriminant of the command or report encapsulated in a packet.
CrFwInstanceId_t CrFwPcktGetCmdRepId(CrFwPckt_t pckt)
Return the command or report identifier of the command or report encapsulated in a packet...
unsigned char CrFwServSubType_t
Type used for the command or report sub-type.
unsigned char * CrFwPckt_t
Type for packets (see CrFwPckt.h).
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...
The CORDET Framework defines an interface for reporting the outcome of an InCommand (see CrFwRepInCmd...
unsigned short CrFwInstanceId_t
Type used for instance identifiers.
Interface for creating and accessing a report or command packet.
CrFwOutcome_t failCode
The failure code (only meaningful for failure outcomes)
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...
CrFwRepInCmdOutcome_t outcome
The outcome of the InCommand.
static CrFwDiscriminant_t disc
Discriminant.
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.
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.
CrFwServSubType_t CrFwRepInCmdOutcomeStubGetServSubType(CrFwCounterU2_t repPos)
Return the service sub-type of the InCommand Outcome Report at position repPos.
FwSmDesc_t inCmd
The inCmd where the error occurred (NB: this is a pointer!)
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.
CrFwServType_t servType
The service type of the InCommand whose outcome is being reported.
CrFwServSubType_t CrFwPcktGetServSubType(CrFwPckt_t pckt)
Return the service sub-type of the command or report encapsulated in a packet.
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 CrFwServType_t servType
The InCommand type as computed in the Validity Check.
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 FwSmDesc_t inCmd[CR_FW_INFACTORY_MAX_NOF_INCMD]
The pre-allocated InCommand instances.
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.