43 #include "CrFwRepErrStub.h" 46 #define CR_FW_ERR_REP_ARRAY_SIZE 100 49 #define CR_FW_ERR_REP_PAR_SIZE 12 114 diese Funktion gibts bereits in der src
CrPsRepErr.c
225 errRepArray[
errRepPos].
par[2]*(65536)+errRepArray[errRepPos].par[3]*(16777216));
231 errRepArray[
errRepPos].
par[6]*(65536)+errRepArray[errRepPos].par[7]*(16777216));
248 printf(
"CrFwRepErrPckt: error %d generated by component %d of type %d\n",errCode,instanceId,typeId);
257 printf(
"CrFwRepErrRep: error %d generated by component %d of type %d\n",errCode,instanceId,typeId);
static CrFwCounterU2_t errRepPos
The position in the error report array at which the next error report will be written.
CrFwDestSrc_t CrFwRepErrStubGetDest(CrFwCounterU2_t errRepPos)
Return the destination associated to the error report at position errRepPos.
void CrFwRepErrGroup(CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId, CrFwGroup_t group)
Report an error which has one single parameter attached to it representing a command or report group...
CrFwCounterU4_t i
CrPsCmd5EidStart function definitions.
CrFwInstanceId_t CrFwRepErrStubGetInstanceId(CrFwCounterU2_t errRepPos)
Return the type identifier of the error report at position errRepPos.
#define CRFW_UNUSED(x)
A macro that can be used to specify that a function parameter is not used.
void CrFwRepErrInstanceIdAndDest(CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId, CrFwInstanceId_t secondaryInstanceId, CrFwDestSrc_t dest)
Report an error which has two parameters attached to it representing the instance identifier of a com...
unsigned char CrFwGroup_t
Type used for the destination or source group of a packet.
unsigned short CrFwInstanceId_t
Type used for instance identifiers.
FwSmDesc_t rep
CrPsCmd3s9Prgr function definitions.
unsigned short int CrFwTypeId_t
Type used for the identifier of a component type.
unsigned char CrFwDestSrc_t
Type used for the command or report destination and source.
CrFwInstanceId_t CrFwRepErrStubGetSecondatyInstanceId(CrFwCounterU2_t errRepPos)
Return the secondary instance identifier associated to the error report at position errRepPos...
CrFwSeqCnt_t CrFwRepErrStubGetExpSeqCnt(CrFwCounterU2_t errRepPos)
Return the expected sequence counter associated to the error report at position errRepPos.
CrFwRepErrCode_t errCode
The error code.
void CrFwRepErrDestSrc(CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId, CrFwDestSrc_t destSrc)
Report an error which has one single parameter attached to it representing a command or report destin...
CrFwCounterU1_t par[CR_FW_ERR_REP_PAR_SIZE]
The parameters associated to the error report.
Header file to define all invariant publicly available constants and types for the CORDET Framework...
The structure for an error report.
void CrFwRepErrPckt(CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId, CrFwPckt_t pckt)
Report an error which has one parameter attached to it representing a command or report packet...
Interface for reporting an error detected by a framework component.
void CrFwRepErrInstanceIdAndOutcome(CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId, CrFwInstanceId_t secondaryInstanceId, CrFwOutcome_t outcome)
Report an error which has two parameters attached to it representing the instance identifier of a com...
CrFwRepErrCode_t
Identifier for the errors reported through the error reporting interface of CrFwRepErr.h.
CrFwRepErrCode_t CrFwRepErrStubGetErrCode(CrFwCounterU2_t errRepPos)
Return the error code of the error report at position errRepPos.
CrFwSeqCnt_t CrFwRepErrStubGetActualSeqCnt(CrFwCounterU2_t errRepPos)
Return the actual sequence counter associated to the error report at position errRepPos.
CrFwInstanceId_t instanceId
The instance identifier of the component which generates the error report.
#define CR_FW_ERR_REP_PAR_SIZE
The size in number of bytes of the parameter part of an error report.
unsigned char CrFwOutcome_t
Type used for the outcome of a check (see CrFwCmpData).
static CrFwDestSrc_t dest
Destination.
void CrPsRepErr(CrPsRepErrCode_t errCode, CrFwServType_t repType, CrFwServSubType_t repSubType, CrFwDiscriminant_t repDiscriminant)
Report an error which has no parameters attached to it.
static CrFwErrRep_t errRepArray[CR_FW_ERR_REP_ARRAY_SIZE]
The error report array.
void CrFwRepErrSeqCnt(CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId, CrFwSeqCnt_t expSeqCnt, CrFwSeqCnt_t actSeqCnt)
Report an error which has two parameters attached to it representing expected and actual sequence cou...
char * CrFwPckt_t
Type for packets (see CrFwPckt.h).
void CrFwRepErr(CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId)
Report an error which has no parameters attached to it.
CrFwOutcome_t CrFwRepErrStubGetOutcome(CrFwCounterU2_t errRepPos)
Return the outcome associated to the error report at position errRepPos.
CrFwTypeId_t typeId
The type identifier of the component which generates the error report.
void CrFwRepErrRep(CrFwRepErrCode_t errCode, CrFwTypeId_t typeId, CrFwInstanceId_t instanceId, FwSmDesc_t rep)
Report an error which has one parameter attached to it representing an report component.
#define CR_FW_ERR_REP_ARRAY_SIZE
The size of the error report array.
CrFwCounterU1_t * CrFwRepErrStubGetParArray(CrFwCounterU2_t errRepPos)
Return the array holding the parameters associated to the error report at position errRepPos...
unsigned char CrFwCounterU1_t
Type used for unsigned integers with a "short" range.
CrFwCounterU2_t CrFwRepErrStubGetPos()
Return the position in the error report array at which the next error report will be written...
unsigned short CrFwCounterU2_t
Type used for unsigned integers with a "medium" range.
unsigned int CrFwSeqCnt_t
Type used for the sequence counter of commands or reports.
CrFwTypeId_t CrFwRepErrStubGetTypeId(CrFwCounterU2_t errRepPos)
Return the type identifier of the error report at position errRepPos.
void CrFwRepErrStubReset()
Reset the error reporting interface.