CORDET Framework - C2 Implementation
CrFwUserConstants.h
Go to the documentation of this file.
1 
21 #ifndef CRFW_USERCONSTANTS_H_
22 #define CRFW_USERCONSTANTS_H_
23 
24 #include "FwPrConstants.h"
25 
27 typedef unsigned short CrFwInstanceId_t;
28 
30 typedef unsigned short int CrFwTypeId_t;
31 
33 typedef unsigned char CrFwOutcome_t;
34 
36 typedef unsigned int CrFwSeqCnt_t;
37 
39 typedef unsigned int CrFwTypeCnt_t;
40 
42 typedef float CrFwTime_t;
43 
45 typedef unsigned int CrFwTimeStamp_t;
46 
48 typedef unsigned short CrFwProgressStepId_t;
49 
51 typedef unsigned short CrFwExecStepId_t;
52 
56 typedef unsigned int CrFwTimeCyc_t;
57 
59 typedef unsigned char CrFwServType_t;
60 
62 typedef unsigned char CrFwServSubType_t;
63 
65 typedef unsigned char CrFwGroup_t;
66 
68 typedef unsigned char CrFwDestSrc_t;
69 
71 typedef unsigned short CrFwCrc_t;
72 
74 typedef unsigned short CrFwDiscriminant_t;
75 
77 typedef unsigned short CrFwTrackingIndex_t;
78 
80 typedef unsigned short CrFwCmdRepKindIndex_t;
81 
83 typedef unsigned int CrFwDestTypeKey_t;
84 
86 typedef unsigned int CrFwCmdRepKindKey_t;
87 
92 typedef unsigned char CrFwOutFactoryPoolIndex_t;
93 
98 typedef unsigned char CrFwInFactoryPoolIndex_t;
99 
101 typedef unsigned char CrFwCounterU1_t;
102 
104 typedef signed char CrFwCounterS1_t;
105 
107 typedef unsigned short CrFwCounterU2_t;
108 
110 typedef unsigned int CrFwCounterU3_t;
111 
113 typedef unsigned short int CrFwPcktLength_t;
114 
126 typedef enum {
152  crInLoaderLdFail = 14
154 
171 typedef enum {
227  crInManagerIllId = 24
229 
235 #define CR_FW_MAX_NOF_PCKTS 12
236 
238 #define CR_FW_HOST_APP_ID 10
239 
245 #define CR_FW_NBITS_APP_ID 4
246 
254 #define CR_FW_MAX_SERV_TYPE 100
255 
263 #define CR_FW_MAX_SERV_SUBTYPE 20
264 
272 #define CR_FW_MAX_DISCRIMINANT 50
273 
275 #define CR_FW_MAX_DEST 20
276 
277 #endif /* CRFW_USERCONSTANTS_H_ */
unsigned char CrFwOutcome_t
Type used for the outcome of a check (see CrFwCmpData).
unsigned short CrFwProgressStepId_t
Type for the Progress Step Identifier of an InCommand.
unsigned int CrFwCounterU3_t
Type used for unsigned integers with a "long" range.
unsigned short int CrFwTypeId_t
Type used for the identifier of a component type.
unsigned int CrFwTimeStamp_t
Type used for the time stamp of a command or report.
signed char CrFwCounterS1_t
Type used for signed integers with a "short" range.
unsigned short CrFwExecStepId_t
Type for the counter of execution progress steps.
float CrFwTime_t
Type used for the application time.
unsigned int CrFwSeqCnt_t
Type used for the sequence counter of commands or reports.
unsigned char CrFwServType_t
Type used for the service type of a command or report.
unsigned int CrFwTimeCyc_t
Type used for the number of elapsed cycles.
unsigned char CrFwInFactoryPoolIndex_t
Type for the index in the pool of pre-allocated incoming components in the InFactory (see CrFwInFacto...
unsigned char CrFwDestSrc_t
Type used for the command or report destination and source.
unsigned short CrFwCounterU2_t
Type used for unsigned integers with a "medium" range.
unsigned short CrFwDiscriminant_t
Type used for the discriminant of a command or report.
unsigned char CrFwCounterU1_t
Type used for unsigned integers with a "short" range.
unsigned short CrFwCmdRepKindIndex_t
Type for the index of a command or report kind.
unsigned short int CrFwPcktLength_t
Type for the packet length.
unsigned int CrFwTypeCnt_t
Type used for the type counter of commands or reports.
unsigned char CrFwGroup_t
Type used for the destination or source group of a packet.
CrFwRepErrCode_t
Identifier for the errors reported through the error reporting interface of CrFwRepErr....
@ crOutStreamNoMorePckt
An OutStream cannot buffer an out-going packet because no more packets are available (see CrFwOutStre...
@ crOutManagerPoclFull
The Pending OutComponent List (POCL) of an OutManager is full (see CrFwOutManager....
@ crInLoaderAccFail
An InReport has failed its validity check.
@ crInLoaderInvDest
The InLoader has retrieved a packet with an invalid destination (see CrFwInLoader....
@ crInStreamSCErr
An InStream has encountered a sequence counter error (see CrFwInStream.h)
@ crOutStreamIllGroup
An OutComponent has an illegal group.
@ crOutCmpSendPcktInvDest
An OutComponent has an invalid destination (see CrFwOutCmp.h)
@ crInStreamIllGroup
An incoming command or report has an illegal group.
@ crInManagerPcrlFull
The Pending Command/Report List (PCRL) of an InManager is full (see CrFwInManager....
@ crInStreamPQFull
The packet queue of an InStream is full (see CrFwInStream.h)
@ crInLoaderLdFail
An InReport could not be loaded in its InManager.
@ crOutStreamPQFull
The packet queue of an OutStream is full (see CrFwOutStream.h)
@ crInLoaderCreFail
An InReport could not be created due to insufficient resources or illegal type/sub-type/discriminant.
unsigned char CrFwOutFactoryPoolIndex_t
Type for the index in the pool of pre-allocated OutComponents in the OutFactory (see CrFwOutFactory....
unsigned short CrFwCrc_t
Type used for the CRC field in a packet.
unsigned int CrFwDestTypeKey_t
Type for the destination type key in CrFwOutStream.c.
CrFwAppErrCode_t
Application error code for the framework components.
@ crIllOutCmpType
A framework function was called with an illegal type/sub-type pair for an OutComponent.
@ crInStreamUndefDest
A framework function has been called with a source attribute which is not associated to any InStream.
@ crNotInStream
An InStream function was called on an object which is not an InStream.
@ crIllInRepKind
A framework function was called with an illegal type/sub-type/discriminant triplet for an InReport.
@ crInCmdAllocationFail
Allocation request for a packet for an InCommand has failed (see CrFwInFactoryMakeInCmd).
@ crNotOutCmp
An OutComponent function was called on an object which is not an OutComponent.
@ crInManagerIllId
A framework function has been called with an illegal InManager identifier.
@ crNoAppErr
No application errors have been detected.
@ crInStreamIllId
A framework function has been called with an illegal InStream identifier.
@ crIllDiscriminant
A framework function was called with an illegal discriminant.
@ crInRepAllocationFail
Allocation request for an InReport has failed (see CrFwInFactoryMakeInRep).
@ crOutStreamUndefDest
A framework function has been called with a destination attribute which is not associated to any OutS...
@ crIllInCmdKind
A framework function was called with an illegal type/sub-type/discriminant triplet for an InCommand.
@ crPcktAllocationFail
A packet allocation request has failed (see CrFwPcktMake).
@ crOutStreamIllId
A framework function has been called with an illegal OutStream identifier.
@ crOutManagerIllId
A framework function has been called with an illegal OutManager identifier.
@ crOutCmpRelErr
An OutComponent release request has encountered an error (see CrFwOutFactoryReleaseOutCmp).
@ crPcktRelErr
A packet release request has encountered an error (see CrFwPcktRelease).
@ crIllOutCmpKind
A framework function was called with an illegal type/sub-type/discriminant triplet for an OutComponen...
@ crInRepRelErr
An InReport release request has encountered an error (see CrFwInFactoryReleaseInRep).
@ crIllServSubType
A framework function was called with an illegal service sub-type.
@ crInCmdRelErr
An InCommand release request has encountered an error (see CrFwInFactoryReleaseInCmd).
@ crNotOutStream
An OutStream function was called on an object which is not an OutStream.
@ crOutCmpAllocationFail
An OutComponent allocation request has failed (see CrFwOutFactoryMakeOutCmp).
@ crIllServType
A framework function was called with an illegal service type.
unsigned short CrFwTrackingIndex_t
Type for the index used to track the state of a component.
unsigned short CrFwInstanceId_t
Type used for instance identifiers.
unsigned char CrFwServSubType_t
Type used for the command or report sub-type.
unsigned int CrFwCmdRepKindKey_t
Type for the component kind key in CrFwInFactory.c and CrFwOutFactory.c.
P&P Software GmbH, Copyright 2012-2013, All Rights Reserved