CORDET Framework - C2 Implementation
CrPsUserConstants.h
Go to the documentation of this file.
1 
31 #ifndef CRPS_USERCONSTANTS_H_
32 #define CRPS_USERCONSTANTS_H_
33 #include <string.h>
34 
35 typedef uint32_t One_Bit_t;
36 typedef uint32_t Two_Bit_t;
37 typedef uint32_t Three_Bit_t;
38 typedef uint32_t Four_Bit_t;
39 typedef uint32_t Eleven_Bit_t;
40 typedef uint32_t FourTeen_Bit_t;
41 
42 typedef uint32_t ParameterId_t;
43 
44 
46 typedef uint16_t CrPsApid_t;
47 
49 typedef uint32_t CrPsTimeOut_t;
50 
52 typedef uint16_t CrPsDestSrc_t;
53 
55 typedef uint16_t CrPsSeqCtrl_t;
56 
58 typedef uint16_t CrPsFailCode_t;
59 
61 typedef uint32_t CrPsFailData_t;
62 
64 typedef uint32_t CrPsStepId_t;
65 
67 typedef uint16_t CrPsParamId_t;
68 
70 typedef uint8_t CrPsSid_t;
71 
73 typedef uint32_t CrPsCollectInterval_t;
74 
75 /* Type used as a period e.g.(collection period) */
76 typedef uint32_t CrPsPeriod_t;
77 
79 typedef uint32_t CrPsRepNum_t;
80 
82 typedef uint8_t CrPsStatus_t;
83 
85 typedef uint32_t CrPsParamValueU4_t;
86 
87 /* Type used as an unsigned integer value 32 bit */
88 typedef uint32_t CrPsValueU4_t;
89 
91 typedef uint16_t CrPsEid_t;
92 
94 typedef uint32_t CrPsAux_t;
95 
96 /* Type used for Addresses */
97 typedef uint32_t CrPsAddr_t;
98 
99 /* Type used as a Flag e.g.(Enable/Disable) */
100 typedef uint8_t CrPsFlag_t;
101 
102 /* Type used as a Number 16 bit */
103 typedef uint16_t CrPsNumberU2_t;
104 
105 /* Type used for a repetition count */
106 typedef uint16_t CrPsRepetition_t;
107 
108 /* Type used for a 32 bit Number */
109 typedef uint32_t CrPsNumberU4_t;
110 
111 /* Type used for a Group */
112 typedef uint16_t CrPsGroup_t;
113 
114 /* Type used as the Transaction Identifier */
115 typedef uint32_t CrPsTid_t;
116 
117 /* Type used as size of Packets */
118 typedef uint32_t CrPsSize_t;
119 
120 /* Type used for a reason of a failure */
121 typedef uint32_t CrPsFailReason_t;
122 
123 /* Type used as an identifier of the number of parts of a packet */
124 typedef uint16_t CrPsPart_t;
125 
126 /* Type used as the Request ID which are the first 4 bytes of a packet */
127 typedef uint32_t CrPsRid_t;
128 
129 
138 typedef enum
139 {
147 
148 
149 
156 #define CR_FW_MAX_PCKT_LENGTH 1000
157 
158 
159 
160 
161 /* Service 17: Test Service Constants */
163 #define TEST_MAX_APP 10
164 
165 /* Service 3: Housekeeping Constants*/
168 #define HK_N_REP_DEF 5
169 
171 #define HK_MAX_SID 3
172 
174 #define HK_COLLECT_PER 3
175 
178 #define HK_MAX_N_SIMPLE 3
179 
182 #define HK_MAX_N_GR 3
183 
186 #define HK_MAX_REP 3
187 
190 #define HK_MAX_N_REP 3
191 
193 #define HK_MAX_ID 3
194 
196 #define HK_N_SAMP_BUF 3
197 
199 #define HK_N_DEBUG_VAR 3
200 #define HK_MAX_N_ITEMS 3
201 
202 /*Service 5: Event Reporting Constants*/
204 #define EVT_N_EID 5
205 
208 #define EVT_EID {1,2,3,4,5}
209 
212 #define EVT_EID_LEVEL {1,2,3,4,1}
213 
214 /* Number of Large Packet Transfer Buffers available for down- or up-link of large packets */
215 #define LPT_N_BUF 5
216 
217 /* Timeout for Up-Link Packages */
218 #define LPT_UP_TIMEOUT 100
219 
221 /* Generated when an attempt to retrieve a report from the OutFactory has failed */
222 #define OUTFACTORY_FAIL 100
223 
224 /* Generated by InLoader when it receives a report with an invalid destination */
225 #define INLOADER_INV_DEST 101
226 
227 /* Failure Code for a error in the Part Number of a Packet for Service 13 */
228 #define PART_NMB_ERR 131
229 
231 /*Failure code for start action of commands (3,1) and (3,2) when they attempt to create a new report at a time when the RDL is already full */
232 #define VER_FULL_RDL 201
233 
234 /* Failure code for start action of commands (3,1) and (3,2) when their report configuration data violate an RDL constraint of table 9.1 */
235 #define VER_RDL_CONSTR 202
236 
237 /* Failure code for start action of commands (3,1) and (3,2) when attempt to create a new report with a SID which is already in use*/
238 #define VER_SID_IN_USE 203
239 
240 /* Failure code for start action of commands (3,1) and (3,2) when they carry the same data item identifier twice */
241 #define VER_DUPL_DI 204
242 
243 /* Failure code for start actions when they unsuccessfully attempt to create a new report from the OutFactory */
244 #define VER_REP_CR_FD 205
245 
246 /* Failure code for start actions when the Load operation in the OutLoader has failed */
247 #define VER_OUTLOADER_FD 206
248 
249 /* Failure code for multi-instruction start service action 3 of commands when all the SIDs in the command are found to be invalid */
250 #define VER_SID_START_FD 207
251 
252 
253 #define VER_S3S_START_FD 208
254 
256 /* Failure code for start action of a service 5 command when an illegal EID is encountered */
257 #define VER_ILL_SID 211
258 
259 /*Failure code for start action of commands (3,3) and (3,4) when a SID which is enabled is encountered */
260 #define VER_ENABLED_SID 212
261 
263 #define VER_EID_START_FD 221
264 
266 #define VER_ILL_EID 225
267 
268 #define LPT_FAILCODE_NO_FAIL 0
269 #define LPT_FAILCODE_TIME_OUT 1
270 #define EVT_DOWN_ABORT 131
271 
272 
273 
274 #endif /* CRPS_USERCONSTANTS_H_ */
The Inloader acceptance of a component failed (see CrPsRepErr.h)
uint32_t CrPsRepNum_t
Type used for the Repetition Number of a packet.
uint16_t CrPsParamId_t
Type used for the Parameter ID of a packet.
uint32_t CrPsAux_t
Type used for the Auxiliary Data of a packet.
uint16_t CrPsApid_t
Type used for the Application ID of a packet.
uint16_t CrPsDestSrc_t
Type used for the Destination or Source of a packet.
uint16_t CrPsEid_t
Type used for Event Id of a Packet.
uint32_t CrPsStepId_t
Type used for the Step ID of a packet.
The Inloader detects an invalid destination (see CrPsRepErr.h)
uint32_t CrPsCollectInterval_t
Type used for the Collection Interval of a packet.
The Outfactory failed to make the component (see CrPsRepErr.h)
CrPsRepErrCode_t
Identifier for the errors reported through the error reporting interface of CrFwRepErr.h.
uint32_t CrPsFailData_t
Type used for the Failure Data of a packet.
uint32_t CrPsParamValueU4_t
Type used for Parameter Values of unsigned 32bit Integers.
uint16_t CrPsFailCode_t
Type used for the Failure Code of a packet.
uint8_t CrPsSid_t
Type used for the Parameter Report Structure ID of a packet.
uint32_t CrPsTimeOut_t
Type used for the Timeout for packets.
uint8_t CrPsStatus_t
Type used for the Status of a packet.
uint16_t CrPsSeqCtrl_t
Type used for the Sequence Control of a packet.
P&P Software GmbH, Copyright 2012-2013, All Rights Reserved