CORDET Framework - C2 Implementation
cordetfw-examples/src/CrConfigDemoMaster/CrFwUserConstants.h
Go to the documentation of this file.
1 
25 #ifndef CRFW_USERCONSTANTS_H_
26 #define CRFW_USERCONSTANTS_H_
27 
28 #include "CrMaConstants.h"
29 #include "FwPrConstants.h"
30 
32 typedef unsigned short CrFwInstanceId_t;
33 
35 typedef unsigned short int CrFwTypeId_t;
36 
38 typedef unsigned char CrFwOutcome_t;
39 
41 typedef unsigned int CrFwSeqCnt_t;
42 
44 typedef float CrFwTime_t;
45 
47 typedef unsigned int CrFwTimeStamp_t;
48 
52 typedef unsigned int CrFwTimeCyc_t;
53 
55 typedef unsigned char CrFwServType_t;
56 
58 typedef unsigned char CrFwServSubType_t;
59 
61 typedef unsigned char CrFwGroup_t;
62 
64 typedef unsigned char CrFwDestSrc_t;
65 
67 typedef unsigned short CrFwDiscriminant_t;
68 
70 typedef unsigned short CrFwTrackingIndex_t;
71 
73 typedef unsigned short CrFwCmdRepKindIndex_t;
74 
76 typedef unsigned int CrFwCmdRepKindKey_t;
77 
82 typedef unsigned char CrFwOutFactoryPoolIndex_t;
83 
88 typedef unsigned char CrFwInFactoryPoolIndex_t;
89 
91 typedef unsigned char CrFwCounterU1_t;
92 
94 typedef signed char CrFwCounterS1_t;
95 
97 typedef unsigned short CrFwCounterU2_t;
98 
100 typedef unsigned short int CrFwPcktLength_t;
101 
110 typedef enum {
138 
152 typedef enum {
210 
215 #define CR_FW_MAX_NOF_PCKTS 12
216 
218 #define CR_FW_HOST_APP_ID 1
219 
221 #define CR_FW_NBITS_APP_ID 4
222 
224 #define CR_FW_MAX_SERV_TYPE 64
225 
227 #define CR_FW_MAX_SERV_SUBTYPE 4
228 
230 #define CR_FW_MAX_DISCRIMINANT 1
231 
232 #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.
unsigned int CrFwTimeCyc_t
Type used for the number of elapsed cycles.
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.
float CrFwTime_t
Type used for the application time.
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.
Header file to define constants and types for the Master Application of the CORDET Demo...
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