CORDET Framework - C2 Implementation
cordetfw/pustests/config/CrFwUserConstants.h
1 
27 #ifndef CRFW_USERCONSTANTS_H_
28 #define CRFW_USERCONSTANTS_H_
29 
30 #include "FwPrConstants.h"
31 
33 typedef unsigned short CrFwInstanceId_t;
34 
36 typedef unsigned short int CrFwTypeId_t;
37 
39 typedef unsigned char CrFwOutcome_t;
40 
42 typedef unsigned int CrFwSeqCnt_t;
43 
45 typedef unsigned char CrFwServType_t;
46 
48 typedef unsigned char CrFwServSubType_t;
49 
51 typedef unsigned char CrFwGroup_t;
52 
54 typedef unsigned char CrFwDestSrc_t;
55 
57 typedef unsigned short CrFwDiscriminant_t;
58 
60 typedef unsigned short CrFwTrackingIndex_t;
61 
63 typedef unsigned short CrFwCmdRepKindIndex_t;
64 
66 typedef unsigned int CrFwCmdRepKindKey_t;
67 
72 typedef unsigned char CrFwOutFactoryPoolIndex_t;
73 
78 typedef unsigned char CrFwInFactoryPoolIndex_t;
79 
81 typedef unsigned char CrFwCounterU1_t;
82 
84 typedef signed char CrFwCounterS1_t;
85 
87 typedef unsigned short CrFwCounterU2_t;
88 
90 typedef uint32_t CrFwCounterU4_t;
91 
93 typedef unsigned short int CrFwPcktLength_t;
94 
96 typedef unsigned char CrFwPcktVersion_t;
97 
102 typedef unsigned char CrFwPcktSeqFlags_t;
103 
105 typedef unsigned short CrFwPcktCrc_t;
106 
107 
119 typedef enum {
123  crInStreamPQFull =3,
125  crInStreamSCErr =4,
133  crInLoaderInvDest = 8,
135  crInLoaderAccFail = 9,
137  crOutStreamIllGroup = 10,
139  crInStreamIllGroup = 11,
143  crInLoaderCreFail = 13,
145  crInLoaderLdFail = 14
147 
164 typedef enum {
166  crNoAppErr = 0,
168  crNotOutStream = 1,
170  crOutStreamIllId = 2,
184  crPcktRelErr = 6,
186  crNotInStream = 7,
188  crInStreamIllId = 8,
190  crNotOutCmp = 9,
194  crOutCmpRelErr = 11,
196  crIllServType = 12,
198  crIllServSubType = 13,
200  crIllDiscriminant = 14,
202  crIllOutCmpType = 15,
204  crIllOutCmpKind = 16,
206  crOutManagerIllId = 17,
208  crIllInCmdKind = 18,
212  crIllInRepKind = 20,
216  crInRepRelErr = 22,
218  crInCmdRelErr = 23,
220  crInManagerIllId = 24
222 
227 #define CR_FW_MAX_NOF_PCKTS 20
228 
230 #define CR_FW_HOST_APP_ID 10
231 
235 #define CR_FW_CLIENT_APP2 60
236 
242 #define CR_FW_CLIENT_GRD_PUS 0
243 
253 #define CR_FW_CLIENT_GRD 1
254 
259 #define CR_FW_CLIENT_HK_STRG 21
260 
265 #define CR_FW_CLIENT_OBC 12
266 
268 #define CR_FW_NBITS_APP_ID 11
269 
271 #define CR_FW_MAX_SERV_TYPE 100
272 
274 #define CR_FW_MAX_SERV_SUBTYPE 150
275 
277 #define CR_FW_MAX_DISCRIMINANT 50
278 
279 /* PCAT values */
280 #define CR_FW_PCAT_SEM_TC 0x0C
281 #define CR_FW_PCAT_SEM_TM 0x01
282 
283 #define CR_FW_PCAT_DPU_TC 0x0C
284 #define CR_FW_PCAT_DPU_TM_OTHER 0x02
285 #define CR_FW_PCAT_DPU_TM_SERV1_5_6 0x01
286 #define CR_FW_PCAT_DPU_TM_SERV13 0x04
287 #define CR_FW_PCAT_DPU_TM_SERV196 0x03
288 
289 
291 typedef struct CrFwTimeStamp
292 {
293  unsigned char t[6];
295 
296 #endif /* CRFW_USERCONSTANTS_H_ */
A framework function has been called with an illegal OutManager identifier.
An InReport could not be created due to insufficient resources or illegal type/sub-type/discriminant...
unsigned short CrFwTrackingIndex_t
Type for the index used to track the state of a component.
A framework function was called with an illegal service type.
Allocation request for a packet for an InCommand has failed (see CrFwInFactoryMakeInCmd).
A packet allocation request has failed (see CrFwPcktMake).
A framework function was called with an illegal service sub-type.
unsigned char CrFwServSubType_t
Type used for the command or report sub-type.
An InReport release request has encountered an error (see CrFwInFactoryReleaseInRep).
unsigned char CrFwGroup_t
Type used for the destination or source group of a packet.
An OutComponent has an invalid destination (see CrFwOutCmp.h)
unsigned int CrFwCmdRepKindKey_t
Type for the component kind key in CrFwInFactory.c and CrFwOutFactory.c.
An InReport or InCommand has failed its acceptance check.
An InStream function was called on an object which is not an InStream.
The Pending Command/Report List (PCRL) of an InManager is full (see CrFwInManager.h)
unsigned short CrFwInstanceId_t
Type used for instance identifiers.
unsigned char CrFwOutFactoryPoolIndex_t
Type for the index in the pool of pre-allocated OutComponents in the OutFactory (see CrFwOutFactory...
unsigned short int CrFwTypeId_t
Type used for the identifier of a component type.
An InCommand release request has encountered an error (see CrFwInFactoryReleaseInCmd).
A framework function has been called with an illegal OutStream identifier.
unsigned char CrFwDestSrc_t
Type used for the command or report destination and source.
An OutComponent allocation request has failed (see CrFwOutFactoryMakeOutCmp).
A framework function has been called with a source attribute which is not associated to any InStream...
A framework function has been called with an illegal InManager identifier.
An OutComponent release request has encountered an error (see CrFwOutFactoryReleaseOutCmp).
unsigned char CrFwServType_t
Type used for the service type of a command or report.
Allocation request for an InReport has failed (see CrFwInFactoryMakeInRep).
unsigned short CrFwCmdRepKindIndex_t
Type for the index of a command or report kind.
An OutComponent function was called on an object which is not an OutComponent.
An InReport could not be loaded in its InManager.
An OutStream function was called on an object which is not an OutStream.
Type used for the time stamp of a command or report.
A framework function has been called with an illegal InStream identifier.
The InLoader has retrieved a packet with an invalid destination (see CrFwInLoader.h)
unsigned short int CrFwPcktLength_t
Type for the packet length.
CrFwRepErrCode_t
Identifier for the errors reported through the error reporting interface of CrFwRepErr.h.
unsigned char CrFwInFactoryPoolIndex_t
Type for the index in the pool of pre-allocated incoming components in the InFactory (see CrFwInFacto...
The packet queue of an InStream is full (see CrFwInStream.h)
The Pending OutComponent List (POCL) of an OutManager is full (see CrFwOutManager.h)
unsigned char CrFwOutcome_t
Type used for the outcome of a check (see CrFwCmpData).
A framework function was called with an illegal type/sub-type/discriminant triplet for an InReport...
A framework function was called with an illegal type/sub-type/discriminant triplet for an OutComponen...
A framework function was called with an illegal type/sub-type pair for an OutComponent.
unsigned short CrFwDiscriminant_t
Type used for the discriminant of a command or report.
The packet queue of an OutStream is full (see CrFwOutStream.h)
CrFwAppErrCode_t
Application error code for the framework components.
A framework function was called with an illegal type/sub-type/discriminant triplet for an InCommand...
An incoming command or report has an illegal group.
signed char CrFwCounterS1_t
Type used for signed integers with a "short" range.
An OutStream cannot buffer an out-going packet because no more packets are available (see CrFwOutStre...
A framework function was called with an illegal discriminant.
An InStream has encountered a sequence counter error (see CrFwInStream.h)
A packet release request has encountered an error (see CrFwPcktRelease).
No application errors have been detected.
unsigned char CrFwCounterU1_t
Type used for unsigned integers with a "short" range.
A framework function has been called with a destination attribute which is not associated to any OutS...
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.
unsigned int CrFwTimeStamp_t
Type used for the time stamp of a command or report.
P&P Software GmbH, Copyright 2012-2013, All Rights Reserved