blob: 0cea1a644647b5beaeb4d57f46564657b6314568 [file] [log] [blame]
Lev Walkin8aed40c2017-07-26 18:50:04 -07001
2/*** <<< INCLUDES [A-noc] >>> ***/
3
4#include <NativeInteger.h>
5
6/*** <<< TYPE-DECLS [A-noc] >>> ***/
7
8typedef long A_noc_t;
9
10/*** <<< FUNC-DECLS [A-noc] >>> ***/
11
12extern asn_TYPE_descriptor_t asn_DEF_A_noc;
13asn_struct_free_f A_noc_free;
14asn_struct_print_f A_noc_print;
15asn_constr_check_f A_noc_constraint;
16ber_type_decoder_f A_noc_decode_ber;
17der_type_encoder_f A_noc_encode_der;
18xer_type_decoder_f A_noc_decode_xer;
19xer_type_encoder_f A_noc_encode_xer;
20oer_type_decoder_f A_noc_decode_oer;
21oer_type_encoder_f A_noc_encode_oer;
22
23/*** <<< CODE [A-noc] >>> ***/
24
Lev Walkin8aed40c2017-07-26 18:50:04 -070025/*
26 * This type is implemented using NativeInteger,
27 * so here we adjust the DEF accordingly.
28 */
Lev Walkin8aed40c2017-07-26 18:50:04 -070029
30/*** <<< STAT-DEFS [A-noc] >>> ***/
31
32static const ber_tlv_tag_t asn_DEF_A_noc_tags_1[] = {
33 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
34};
35asn_TYPE_descriptor_t asn_DEF_A_noc = {
36 "A-noc",
37 "A-noc",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080038 &asn_OP_NativeInteger,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080039 NativeInteger_constraint,
Lev Walkin8aed40c2017-07-26 18:50:04 -070040 asn_DEF_A_noc_tags_1,
41 sizeof(asn_DEF_A_noc_tags_1)
42 /sizeof(asn_DEF_A_noc_tags_1[0]), /* 1 */
43 asn_DEF_A_noc_tags_1, /* Same as above */
44 sizeof(asn_DEF_A_noc_tags_1)
45 /sizeof(asn_DEF_A_noc_tags_1[0]), /* 1 */
46 0, /* No OER visible constraints */
47 0, /* No PER visible constraints */
48 0, 0, /* No members */
49 0 /* No specifics */
50};
51
52
Lev Walkin5861e8a2017-07-31 20:27:05 -070053/*** <<< INCLUDES [B-0-0] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -070054
55#include <NativeInteger.h>
56
Lev Walkin5861e8a2017-07-31 20:27:05 -070057/*** <<< TYPE-DECLS [B-0-0] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -070058
Lev Walkin5861e8a2017-07-31 20:27:05 -070059typedef long B_0_0_t;
Lev Walkin8aed40c2017-07-26 18:50:04 -070060
Lev Walkin5861e8a2017-07-31 20:27:05 -070061/*** <<< FUNC-DECLS [B-0-0] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -070062
Lev Walkin5861e8a2017-07-31 20:27:05 -070063extern asn_TYPE_descriptor_t asn_DEF_B_0_0;
64asn_struct_free_f B_0_0_free;
65asn_struct_print_f B_0_0_print;
66asn_constr_check_f B_0_0_constraint;
67ber_type_decoder_f B_0_0_decode_ber;
68der_type_encoder_f B_0_0_encode_der;
69xer_type_decoder_f B_0_0_decode_xer;
70xer_type_encoder_f B_0_0_encode_xer;
71oer_type_decoder_f B_0_0_decode_oer;
72oer_type_encoder_f B_0_0_encode_oer;
Lev Walkin8aed40c2017-07-26 18:50:04 -070073
Lev Walkin5861e8a2017-07-31 20:27:05 -070074/*** <<< CODE [B-0-0] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -070075
76int
Lev Walkin5861e8a2017-07-31 20:27:05 -070077B_0_0_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin8aed40c2017-07-26 18:50:04 -070078 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
79 long value;
80
81 if(!sptr) {
82 ASN__CTFAIL(app_key, td, sptr,
83 "%s: value not given (%s:%d)",
84 td->name, __FILE__, __LINE__);
85 return -1;
86 }
87
88 value = *(const long *)sptr;
89
90 if((value == 0)) {
91 /* Constraint check succeeded */
92 return 0;
93 } else {
94 ASN__CTFAIL(app_key, td, sptr,
95 "%s: constraint failed (%s:%d)",
96 td->name, __FILE__, __LINE__);
97 return -1;
98 }
99}
100
101/*
102 * This type is implemented using NativeInteger,
103 * so here we adjust the DEF accordingly.
104 */
Lev Walkin8aed40c2017-07-26 18:50:04 -0700105
Lev Walkin5861e8a2017-07-31 20:27:05 -0700106/*** <<< CTDEFS [B-0-0] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700107
Lev Walkin5861e8a2017-07-31 20:27:05 -0700108static asn_oer_constraints_t asn_OER_type_B_0_0_constr_1 GCC_NOTUSED = {
Lev Walkin8041fe82017-08-02 10:39:01 -0700109 { 1, 1 } /* (0..0) */,
110 -1};
Lev Walkin8aed40c2017-07-26 18:50:04 -0700111
Lev Walkin5861e8a2017-07-31 20:27:05 -0700112/*** <<< STAT-DEFS [B-0-0] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700113
Lev Walkin5861e8a2017-07-31 20:27:05 -0700114static const ber_tlv_tag_t asn_DEF_B_0_0_tags_1[] = {
Lev Walkin8aed40c2017-07-26 18:50:04 -0700115 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
116};
Lev Walkin5861e8a2017-07-31 20:27:05 -0700117asn_TYPE_descriptor_t asn_DEF_B_0_0 = {
118 "B-0-0",
119 "B-0-0",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800120 &asn_OP_NativeInteger,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700121 B_0_0_constraint,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700122 asn_DEF_B_0_0_tags_1,
123 sizeof(asn_DEF_B_0_0_tags_1)
124 /sizeof(asn_DEF_B_0_0_tags_1[0]), /* 1 */
125 asn_DEF_B_0_0_tags_1, /* Same as above */
126 sizeof(asn_DEF_B_0_0_tags_1)
127 /sizeof(asn_DEF_B_0_0_tags_1[0]), /* 1 */
128 &asn_OER_type_B_0_0_constr_1,
Lev Walkin8aed40c2017-07-26 18:50:04 -0700129 0, /* No PER visible constraints */
130 0, 0, /* No members */
131 0 /* No specifics */
132};
133
134
Lev Walkin5861e8a2017-07-31 20:27:05 -0700135/*** <<< INCLUDES [C-1-2] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700136
137#include <NativeInteger.h>
138
Lev Walkin5861e8a2017-07-31 20:27:05 -0700139/*** <<< TYPE-DECLS [C-1-2] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700140
Lev Walkin5861e8a2017-07-31 20:27:05 -0700141typedef long C_1_2_t;
Lev Walkin8aed40c2017-07-26 18:50:04 -0700142
Lev Walkin5861e8a2017-07-31 20:27:05 -0700143/*** <<< FUNC-DECLS [C-1-2] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700144
Lev Walkin5861e8a2017-07-31 20:27:05 -0700145extern asn_TYPE_descriptor_t asn_DEF_C_1_2;
146asn_struct_free_f C_1_2_free;
147asn_struct_print_f C_1_2_print;
148asn_constr_check_f C_1_2_constraint;
149ber_type_decoder_f C_1_2_decode_ber;
150der_type_encoder_f C_1_2_encode_der;
151xer_type_decoder_f C_1_2_decode_xer;
152xer_type_encoder_f C_1_2_encode_xer;
153oer_type_decoder_f C_1_2_decode_oer;
154oer_type_encoder_f C_1_2_encode_oer;
Lev Walkin8aed40c2017-07-26 18:50:04 -0700155
Lev Walkin5861e8a2017-07-31 20:27:05 -0700156/*** <<< CODE [C-1-2] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700157
158int
Lev Walkin5861e8a2017-07-31 20:27:05 -0700159C_1_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin8aed40c2017-07-26 18:50:04 -0700160 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
161 long value;
162
163 if(!sptr) {
164 ASN__CTFAIL(app_key, td, sptr,
165 "%s: value not given (%s:%d)",
166 td->name, __FILE__, __LINE__);
167 return -1;
168 }
169
170 value = *(const long *)sptr;
171
Lev Walkin5861e8a2017-07-31 20:27:05 -0700172 if((value >= 1 && value <= 2)) {
Lev Walkin8aed40c2017-07-26 18:50:04 -0700173 /* Constraint check succeeded */
174 return 0;
175 } else {
176 ASN__CTFAIL(app_key, td, sptr,
177 "%s: constraint failed (%s:%d)",
178 td->name, __FILE__, __LINE__);
179 return -1;
180 }
181}
182
183/*
184 * This type is implemented using NativeInteger,
185 * so here we adjust the DEF accordingly.
186 */
Lev Walkin8aed40c2017-07-26 18:50:04 -0700187
Lev Walkin5861e8a2017-07-31 20:27:05 -0700188/*** <<< CTDEFS [C-1-2] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700189
Lev Walkin5861e8a2017-07-31 20:27:05 -0700190static asn_oer_constraints_t asn_OER_type_C_1_2_constr_1 GCC_NOTUSED = {
Lev Walkin8041fe82017-08-02 10:39:01 -0700191 { 1, 1 } /* (1..2) */,
192 -1};
Lev Walkin8aed40c2017-07-26 18:50:04 -0700193
Lev Walkin5861e8a2017-07-31 20:27:05 -0700194/*** <<< STAT-DEFS [C-1-2] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700195
Lev Walkin5861e8a2017-07-31 20:27:05 -0700196static const ber_tlv_tag_t asn_DEF_C_1_2_tags_1[] = {
Lev Walkin8aed40c2017-07-26 18:50:04 -0700197 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
198};
Lev Walkin5861e8a2017-07-31 20:27:05 -0700199asn_TYPE_descriptor_t asn_DEF_C_1_2 = {
200 "C-1-2",
201 "C-1-2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800202 &asn_OP_NativeInteger,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700203 C_1_2_constraint,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700204 asn_DEF_C_1_2_tags_1,
205 sizeof(asn_DEF_C_1_2_tags_1)
206 /sizeof(asn_DEF_C_1_2_tags_1[0]), /* 1 */
207 asn_DEF_C_1_2_tags_1, /* Same as above */
208 sizeof(asn_DEF_C_1_2_tags_1)
209 /sizeof(asn_DEF_C_1_2_tags_1[0]), /* 1 */
210 &asn_OER_type_C_1_2_constr_1,
Lev Walkin8aed40c2017-07-26 18:50:04 -0700211 0, /* No PER visible constraints */
212 0, 0, /* No members */
213 0 /* No specifics */
214};
215
216
217/*** <<< INCLUDES [D-inv] >>> ***/
218
219#include <NativeInteger.h>
220
221/*** <<< TYPE-DECLS [D-inv] >>> ***/
222
223typedef long D_inv_t;
224
225/*** <<< FUNC-DECLS [D-inv] >>> ***/
226
227extern asn_TYPE_descriptor_t asn_DEF_D_inv;
228asn_struct_free_f D_inv_free;
229asn_struct_print_f D_inv_print;
230asn_constr_check_f D_inv_constraint;
231ber_type_decoder_f D_inv_decode_ber;
232der_type_encoder_f D_inv_encode_der;
233xer_type_decoder_f D_inv_decode_xer;
234xer_type_encoder_f D_inv_encode_xer;
235oer_type_decoder_f D_inv_decode_oer;
236oer_type_encoder_f D_inv_encode_oer;
237
238/*** <<< CODE [D-inv] >>> ***/
239
240int
241D_inv_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
242 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
243 long value;
244
245 if(!sptr) {
246 ASN__CTFAIL(app_key, td, sptr,
247 "%s: value not given (%s:%d)",
248 td->name, __FILE__, __LINE__);
249 return -1;
250 }
251
252 value = *(const long *)sptr;
253
254 if((value >= 0 && value <= 10)) {
255 /* Constraint check succeeded */
256 return 0;
257 } else {
258 ASN__CTFAIL(app_key, td, sptr,
259 "%s: constraint failed (%s:%d)",
260 td->name, __FILE__, __LINE__);
261 return -1;
262 }
263}
264
265/*
266 * This type is implemented using NativeInteger,
267 * so here we adjust the DEF accordingly.
268 */
Lev Walkin8aed40c2017-07-26 18:50:04 -0700269
270/*** <<< CTDEFS [D-inv] >>> ***/
271
272static asn_oer_constraints_t asn_OER_type_D_inv_constr_1 GCC_NOTUSED = {
Lev Walkin8041fe82017-08-02 10:39:01 -0700273 { 0, 0 },
274 -1};
Lev Walkin8aed40c2017-07-26 18:50:04 -0700275
276/*** <<< STAT-DEFS [D-inv] >>> ***/
277
278static const ber_tlv_tag_t asn_DEF_D_inv_tags_1[] = {
279 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
280};
281asn_TYPE_descriptor_t asn_DEF_D_inv = {
282 "D-inv",
283 "D-inv",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800284 &asn_OP_NativeInteger,
Lev Walkin8aed40c2017-07-26 18:50:04 -0700285 D_inv_constraint,
Lev Walkin8aed40c2017-07-26 18:50:04 -0700286 asn_DEF_D_inv_tags_1,
287 sizeof(asn_DEF_D_inv_tags_1)
288 /sizeof(asn_DEF_D_inv_tags_1[0]), /* 1 */
289 asn_DEF_D_inv_tags_1, /* Same as above */
290 sizeof(asn_DEF_D_inv_tags_1)
291 /sizeof(asn_DEF_D_inv_tags_1[0]), /* 1 */
292 &asn_OER_type_D_inv_constr_1,
293 0, /* No PER visible constraints */
294 0, 0, /* No members */
295 0 /* No specifics */
296};
297
298
Lev Walkin5861e8a2017-07-31 20:27:05 -0700299/*** <<< INCLUDES [E-2-5] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700300
301#include <NativeInteger.h>
302
Lev Walkin5861e8a2017-07-31 20:27:05 -0700303/*** <<< TYPE-DECLS [E-2-5] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700304
Lev Walkin5861e8a2017-07-31 20:27:05 -0700305typedef long E_2_5_t;
Lev Walkin8aed40c2017-07-26 18:50:04 -0700306
Lev Walkin5861e8a2017-07-31 20:27:05 -0700307/*** <<< FUNC-DECLS [E-2-5] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700308
Lev Walkin5861e8a2017-07-31 20:27:05 -0700309extern asn_TYPE_descriptor_t asn_DEF_E_2_5;
310asn_struct_free_f E_2_5_free;
311asn_struct_print_f E_2_5_print;
312asn_constr_check_f E_2_5_constraint;
313ber_type_decoder_f E_2_5_decode_ber;
314der_type_encoder_f E_2_5_encode_der;
315xer_type_decoder_f E_2_5_decode_xer;
316xer_type_encoder_f E_2_5_encode_xer;
317oer_type_decoder_f E_2_5_decode_oer;
318oer_type_encoder_f E_2_5_encode_oer;
Lev Walkin8aed40c2017-07-26 18:50:04 -0700319
Lev Walkin5861e8a2017-07-31 20:27:05 -0700320/*** <<< CODE [E-2-5] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700321
322int
Lev Walkin5861e8a2017-07-31 20:27:05 -0700323E_2_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin8aed40c2017-07-26 18:50:04 -0700324 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
325 long value;
326
327 if(!sptr) {
328 ASN__CTFAIL(app_key, td, sptr,
329 "%s: value not given (%s:%d)",
330 td->name, __FILE__, __LINE__);
331 return -1;
332 }
333
334 value = *(const long *)sptr;
335
336 if((value >= 2 && value <= 5)) {
337 /* Constraint check succeeded */
338 return 0;
339 } else {
340 ASN__CTFAIL(app_key, td, sptr,
341 "%s: constraint failed (%s:%d)",
342 td->name, __FILE__, __LINE__);
343 return -1;
344 }
345}
346
347/*
348 * This type is implemented using NativeInteger,
349 * so here we adjust the DEF accordingly.
350 */
Lev Walkin8aed40c2017-07-26 18:50:04 -0700351
Lev Walkin5861e8a2017-07-31 20:27:05 -0700352/*** <<< CTDEFS [E-2-5] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700353
Lev Walkin5861e8a2017-07-31 20:27:05 -0700354static asn_oer_constraints_t asn_OER_type_E_2_5_constr_1 GCC_NOTUSED = {
Lev Walkin8041fe82017-08-02 10:39:01 -0700355 { 1, 1 } /* (2..5) */,
356 -1};
Lev Walkin8aed40c2017-07-26 18:50:04 -0700357
Lev Walkin5861e8a2017-07-31 20:27:05 -0700358/*** <<< STAT-DEFS [E-2-5] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700359
Lev Walkin5861e8a2017-07-31 20:27:05 -0700360static const ber_tlv_tag_t asn_DEF_E_2_5_tags_1[] = {
Lev Walkin8aed40c2017-07-26 18:50:04 -0700361 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
362};
Lev Walkin5861e8a2017-07-31 20:27:05 -0700363asn_TYPE_descriptor_t asn_DEF_E_2_5 = {
364 "E-2-5",
365 "E-2-5",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800366 &asn_OP_NativeInteger,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700367 E_2_5_constraint,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700368 asn_DEF_E_2_5_tags_1,
369 sizeof(asn_DEF_E_2_5_tags_1)
370 /sizeof(asn_DEF_E_2_5_tags_1[0]), /* 1 */
371 asn_DEF_E_2_5_tags_1, /* Same as above */
372 sizeof(asn_DEF_E_2_5_tags_1)
373 /sizeof(asn_DEF_E_2_5_tags_1[0]), /* 1 */
374 &asn_OER_type_E_2_5_constr_1,
Lev Walkin8aed40c2017-07-26 18:50:04 -0700375 0, /* No PER visible constraints */
376 0, 0, /* No members */
377 0 /* No specifics */
378};
379
380
381/*** <<< INCLUDES [F-inv] >>> ***/
382
383#include <NativeInteger.h>
384
385/*** <<< TYPE-DECLS [F-inv] >>> ***/
386
387typedef long F_inv_t;
388
389/*** <<< FUNC-DECLS [F-inv] >>> ***/
390
391extern asn_TYPE_descriptor_t asn_DEF_F_inv;
392asn_struct_free_f F_inv_free;
393asn_struct_print_f F_inv_print;
394asn_constr_check_f F_inv_constraint;
395ber_type_decoder_f F_inv_decode_ber;
396der_type_encoder_f F_inv_encode_der;
397xer_type_decoder_f F_inv_decode_xer;
398xer_type_encoder_f F_inv_encode_xer;
399oer_type_decoder_f F_inv_decode_oer;
400oer_type_encoder_f F_inv_encode_oer;
401
402/*** <<< CODE [F-inv] >>> ***/
403
404int
405F_inv_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
406 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
407 long value;
408
409 if(!sptr) {
410 ASN__CTFAIL(app_key, td, sptr,
411 "%s: value not given (%s:%d)",
412 td->name, __FILE__, __LINE__);
413 return -1;
414 }
415
416 value = *(const long *)sptr;
417
418 if((value >= 2 && value <= 5)) {
419 /* Constraint check succeeded */
420 return 0;
421 } else {
422 ASN__CTFAIL(app_key, td, sptr,
423 "%s: constraint failed (%s:%d)",
424 td->name, __FILE__, __LINE__);
425 return -1;
426 }
427}
428
429/*
430 * This type is implemented using NativeInteger,
431 * so here we adjust the DEF accordingly.
432 */
Lev Walkin8aed40c2017-07-26 18:50:04 -0700433
434/*** <<< CTDEFS [F-inv] >>> ***/
435
436static asn_oer_constraints_t asn_OER_type_F_inv_constr_1 GCC_NOTUSED = {
Lev Walkin8041fe82017-08-02 10:39:01 -0700437 { 1, 1 } /* (0..10) */,
438 -1};
Lev Walkin8aed40c2017-07-26 18:50:04 -0700439
440/*** <<< STAT-DEFS [F-inv] >>> ***/
441
442static const ber_tlv_tag_t asn_DEF_F_inv_tags_1[] = {
443 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
444};
445asn_TYPE_descriptor_t asn_DEF_F_inv = {
446 "F-inv",
447 "F-inv",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800448 &asn_OP_NativeInteger,
Lev Walkin8aed40c2017-07-26 18:50:04 -0700449 F_inv_constraint,
Lev Walkin8aed40c2017-07-26 18:50:04 -0700450 asn_DEF_F_inv_tags_1,
451 sizeof(asn_DEF_F_inv_tags_1)
452 /sizeof(asn_DEF_F_inv_tags_1[0]), /* 1 */
453 asn_DEF_F_inv_tags_1, /* Same as above */
454 sizeof(asn_DEF_F_inv_tags_1)
455 /sizeof(asn_DEF_F_inv_tags_1[0]), /* 1 */
456 &asn_OER_type_F_inv_constr_1,
457 0, /* No PER visible constraints */
458 0, 0, /* No members */
459 0 /* No specifics */
460};
461
462
Lev Walkin5861e8a2017-07-31 20:27:05 -0700463/*** <<< INCLUDES [G-3-3] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700464
465#include <NativeInteger.h>
466
Lev Walkin5861e8a2017-07-31 20:27:05 -0700467/*** <<< TYPE-DECLS [G-3-3] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700468
Lev Walkin5861e8a2017-07-31 20:27:05 -0700469typedef long G_3_3_t;
Lev Walkin8aed40c2017-07-26 18:50:04 -0700470
Lev Walkin5861e8a2017-07-31 20:27:05 -0700471/*** <<< FUNC-DECLS [G-3-3] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700472
Lev Walkin5861e8a2017-07-31 20:27:05 -0700473extern asn_TYPE_descriptor_t asn_DEF_G_3_3;
474asn_struct_free_f G_3_3_free;
475asn_struct_print_f G_3_3_print;
476asn_constr_check_f G_3_3_constraint;
477ber_type_decoder_f G_3_3_decode_ber;
478der_type_encoder_f G_3_3_encode_der;
479xer_type_decoder_f G_3_3_decode_xer;
480xer_type_encoder_f G_3_3_encode_xer;
481oer_type_decoder_f G_3_3_decode_oer;
482oer_type_encoder_f G_3_3_encode_oer;
Lev Walkin8aed40c2017-07-26 18:50:04 -0700483
Lev Walkin5861e8a2017-07-31 20:27:05 -0700484/*** <<< CODE [G-3-3] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700485
486int
Lev Walkin5861e8a2017-07-31 20:27:05 -0700487G_3_3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin8aed40c2017-07-26 18:50:04 -0700488 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
489 long value;
490
491 if(!sptr) {
492 ASN__CTFAIL(app_key, td, sptr,
493 "%s: value not given (%s:%d)",
494 td->name, __FILE__, __LINE__);
495 return -1;
496 }
497
498 value = *(const long *)sptr;
499
500 if((value == 3)) {
501 /* Constraint check succeeded */
502 return 0;
503 } else {
504 ASN__CTFAIL(app_key, td, sptr,
505 "%s: constraint failed (%s:%d)",
506 td->name, __FILE__, __LINE__);
507 return -1;
508 }
509}
510
511/*
512 * This type is implemented using NativeInteger,
513 * so here we adjust the DEF accordingly.
514 */
Lev Walkin8aed40c2017-07-26 18:50:04 -0700515
Lev Walkin5861e8a2017-07-31 20:27:05 -0700516/*** <<< CTDEFS [G-3-3] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700517
Lev Walkin5861e8a2017-07-31 20:27:05 -0700518static asn_oer_constraints_t asn_OER_type_G_3_3_constr_1 GCC_NOTUSED = {
Lev Walkin8041fe82017-08-02 10:39:01 -0700519 { 1, 1 } /* (3..3) */,
520 -1};
Lev Walkin8aed40c2017-07-26 18:50:04 -0700521
Lev Walkin5861e8a2017-07-31 20:27:05 -0700522/*** <<< STAT-DEFS [G-3-3] >>> ***/
Lev Walkin8aed40c2017-07-26 18:50:04 -0700523
Lev Walkin5861e8a2017-07-31 20:27:05 -0700524static const ber_tlv_tag_t asn_DEF_G_3_3_tags_1[] = {
Lev Walkin8aed40c2017-07-26 18:50:04 -0700525 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
526};
Lev Walkin5861e8a2017-07-31 20:27:05 -0700527asn_TYPE_descriptor_t asn_DEF_G_3_3 = {
528 "G-3-3",
529 "G-3-3",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800530 &asn_OP_NativeInteger,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700531 G_3_3_constraint,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700532 asn_DEF_G_3_3_tags_1,
533 sizeof(asn_DEF_G_3_3_tags_1)
534 /sizeof(asn_DEF_G_3_3_tags_1[0]), /* 1 */
535 asn_DEF_G_3_3_tags_1, /* Same as above */
536 sizeof(asn_DEF_G_3_3_tags_1)
537 /sizeof(asn_DEF_G_3_3_tags_1[0]), /* 1 */
538 &asn_OER_type_G_3_3_constr_1,
539 0, /* No PER visible constraints */
540 0, 0, /* No members */
541 0 /* No specifics */
542};
543
544
545/*** <<< INCLUDES [H-4-5] >>> ***/
546
547#include <NativeInteger.h>
548
549/*** <<< TYPE-DECLS [H-4-5] >>> ***/
550
551typedef long H_4_5_t;
552
553/*** <<< FUNC-DECLS [H-4-5] >>> ***/
554
555extern asn_TYPE_descriptor_t asn_DEF_H_4_5;
556asn_struct_free_f H_4_5_free;
557asn_struct_print_f H_4_5_print;
558asn_constr_check_f H_4_5_constraint;
559ber_type_decoder_f H_4_5_decode_ber;
560der_type_encoder_f H_4_5_encode_der;
561xer_type_decoder_f H_4_5_decode_xer;
562xer_type_encoder_f H_4_5_encode_xer;
563oer_type_decoder_f H_4_5_decode_oer;
564oer_type_encoder_f H_4_5_encode_oer;
565
566/*** <<< CODE [H-4-5] >>> ***/
567
568int
569H_4_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
570 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
571 long value;
572
573 if(!sptr) {
574 ASN__CTFAIL(app_key, td, sptr,
575 "%s: value not given (%s:%d)",
576 td->name, __FILE__, __LINE__);
577 return -1;
578 }
579
580 value = *(const long *)sptr;
581
582 if((value >= 4 && value <= 5)) {
583 /* Constraint check succeeded */
584 return 0;
585 } else {
586 ASN__CTFAIL(app_key, td, sptr,
587 "%s: constraint failed (%s:%d)",
588 td->name, __FILE__, __LINE__);
589 return -1;
590 }
591}
592
593/*
594 * This type is implemented using NativeInteger,
595 * so here we adjust the DEF accordingly.
596 */
Lev Walkin5861e8a2017-07-31 20:27:05 -0700597
598/*** <<< CTDEFS [H-4-5] >>> ***/
599
600static asn_oer_constraints_t asn_OER_type_H_4_5_constr_1 GCC_NOTUSED = {
Lev Walkin8041fe82017-08-02 10:39:01 -0700601 { 1, 1 } /* (4..5) */,
602 -1};
Lev Walkin5861e8a2017-07-31 20:27:05 -0700603
604/*** <<< STAT-DEFS [H-4-5] >>> ***/
605
606static const ber_tlv_tag_t asn_DEF_H_4_5_tags_1[] = {
607 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
608};
609asn_TYPE_descriptor_t asn_DEF_H_4_5 = {
610 "H-4-5",
611 "H-4-5",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800612 &asn_OP_NativeInteger,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700613 H_4_5_constraint,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700614 asn_DEF_H_4_5_tags_1,
615 sizeof(asn_DEF_H_4_5_tags_1)
616 /sizeof(asn_DEF_H_4_5_tags_1[0]), /* 1 */
617 asn_DEF_H_4_5_tags_1, /* Same as above */
618 sizeof(asn_DEF_H_4_5_tags_1)
619 /sizeof(asn_DEF_H_4_5_tags_1[0]), /* 1 */
620 &asn_OER_type_H_4_5_constr_1,
621 0, /* No PER visible constraints */
622 0, 0, /* No members */
623 0 /* No specifics */
624};
625
626
Lev Walkin0c686452017-09-07 22:59:36 -0700627/*** <<< INCLUDES [I-1-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700628
629#include <NativeInteger.h>
630
Lev Walkin0c686452017-09-07 22:59:36 -0700631/*** <<< TYPE-DECLS [I-1-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700632
Lev Walkin0c686452017-09-07 22:59:36 -0700633typedef long I_1_5_t;
Lev Walkin5861e8a2017-07-31 20:27:05 -0700634
Lev Walkin0c686452017-09-07 22:59:36 -0700635/*** <<< FUNC-DECLS [I-1-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700636
Lev Walkin0c686452017-09-07 22:59:36 -0700637extern asn_TYPE_descriptor_t asn_DEF_I_1_5;
638asn_struct_free_f I_1_5_free;
639asn_struct_print_f I_1_5_print;
640asn_constr_check_f I_1_5_constraint;
641ber_type_decoder_f I_1_5_decode_ber;
642der_type_encoder_f I_1_5_encode_der;
643xer_type_decoder_f I_1_5_decode_xer;
644xer_type_encoder_f I_1_5_encode_xer;
645oer_type_decoder_f I_1_5_decode_oer;
646oer_type_encoder_f I_1_5_encode_oer;
Lev Walkin5861e8a2017-07-31 20:27:05 -0700647
Lev Walkin0c686452017-09-07 22:59:36 -0700648/*** <<< CODE [I-1-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700649
650int
Lev Walkin0c686452017-09-07 22:59:36 -0700651I_1_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700652 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
653 long value;
654
655 if(!sptr) {
656 ASN__CTFAIL(app_key, td, sptr,
657 "%s: value not given (%s:%d)",
658 td->name, __FILE__, __LINE__);
659 return -1;
660 }
661
662 value = *(const long *)sptr;
663
Lev Walkin0c686452017-09-07 22:59:36 -0700664 if((value >= 1 && value <= 5)) {
Lev Walkin5861e8a2017-07-31 20:27:05 -0700665 /* Constraint check succeeded */
666 return 0;
667 } else {
668 ASN__CTFAIL(app_key, td, sptr,
669 "%s: constraint failed (%s:%d)",
670 td->name, __FILE__, __LINE__);
671 return -1;
672 }
673}
674
675/*
676 * This type is implemented using NativeInteger,
677 * so here we adjust the DEF accordingly.
678 */
Lev Walkin5861e8a2017-07-31 20:27:05 -0700679
Lev Walkin0c686452017-09-07 22:59:36 -0700680/*** <<< CTDEFS [I-1-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700681
Lev Walkin0c686452017-09-07 22:59:36 -0700682static asn_oer_constraints_t asn_OER_type_I_1_5_constr_1 GCC_NOTUSED = {
683 { 1, 1 } /* (1..5) */,
Lev Walkin8041fe82017-08-02 10:39:01 -0700684 -1};
Lev Walkin5861e8a2017-07-31 20:27:05 -0700685
Lev Walkin0c686452017-09-07 22:59:36 -0700686/*** <<< STAT-DEFS [I-1-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700687
Lev Walkin0c686452017-09-07 22:59:36 -0700688static const ber_tlv_tag_t asn_DEF_I_1_5_tags_1[] = {
Lev Walkin5861e8a2017-07-31 20:27:05 -0700689 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
690};
Lev Walkin0c686452017-09-07 22:59:36 -0700691asn_TYPE_descriptor_t asn_DEF_I_1_5 = {
692 "I-1-5",
693 "I-1-5",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800694 &asn_OP_NativeInteger,
Lev Walkin0c686452017-09-07 22:59:36 -0700695 I_1_5_constraint,
696 asn_DEF_I_1_5_tags_1,
697 sizeof(asn_DEF_I_1_5_tags_1)
698 /sizeof(asn_DEF_I_1_5_tags_1[0]), /* 1 */
699 asn_DEF_I_1_5_tags_1, /* Same as above */
700 sizeof(asn_DEF_I_1_5_tags_1)
701 /sizeof(asn_DEF_I_1_5_tags_1[0]), /* 1 */
702 &asn_OER_type_I_1_5_constr_1,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700703 0, /* No PER visible constraints */
704 0, 0, /* No members */
705 0 /* No specifics */
706};
707
708
Lev Walkin0c686452017-09-07 22:59:36 -0700709/*** <<< INCLUDES [J-4-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700710
711#include <NativeInteger.h>
712
Lev Walkin0c686452017-09-07 22:59:36 -0700713/*** <<< TYPE-DECLS [J-4-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700714
Lev Walkin0c686452017-09-07 22:59:36 -0700715typedef long J_4_5_t;
Lev Walkin5861e8a2017-07-31 20:27:05 -0700716
Lev Walkin0c686452017-09-07 22:59:36 -0700717/*** <<< FUNC-DECLS [J-4-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700718
Lev Walkin0c686452017-09-07 22:59:36 -0700719extern asn_TYPE_descriptor_t asn_DEF_J_4_5;
720asn_struct_free_f J_4_5_free;
721asn_struct_print_f J_4_5_print;
722asn_constr_check_f J_4_5_constraint;
723ber_type_decoder_f J_4_5_decode_ber;
724der_type_encoder_f J_4_5_encode_der;
725xer_type_decoder_f J_4_5_decode_xer;
726xer_type_encoder_f J_4_5_encode_xer;
727oer_type_decoder_f J_4_5_decode_oer;
728oer_type_encoder_f J_4_5_encode_oer;
Lev Walkin5861e8a2017-07-31 20:27:05 -0700729
Lev Walkin0c686452017-09-07 22:59:36 -0700730/*** <<< CODE [J-4-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700731
732int
Lev Walkin0c686452017-09-07 22:59:36 -0700733J_4_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700734 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
735 long value;
736
737 if(!sptr) {
738 ASN__CTFAIL(app_key, td, sptr,
739 "%s: value not given (%s:%d)",
740 td->name, __FILE__, __LINE__);
741 return -1;
742 }
743
744 value = *(const long *)sptr;
745
746 if((value >= 4 && value <= 5)) {
747 /* Constraint check succeeded */
748 return 0;
749 } else {
750 ASN__CTFAIL(app_key, td, sptr,
751 "%s: constraint failed (%s:%d)",
752 td->name, __FILE__, __LINE__);
753 return -1;
754 }
755}
756
757/*
758 * This type is implemented using NativeInteger,
759 * so here we adjust the DEF accordingly.
760 */
Lev Walkin5861e8a2017-07-31 20:27:05 -0700761
Lev Walkin0c686452017-09-07 22:59:36 -0700762/*** <<< CTDEFS [J-4-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700763
Lev Walkin0c686452017-09-07 22:59:36 -0700764static asn_oer_constraints_t asn_OER_type_J_4_5_constr_1 GCC_NOTUSED = {
765 { 1, 1 } /* (4..5) */,
Lev Walkin8041fe82017-08-02 10:39:01 -0700766 -1};
Lev Walkin5861e8a2017-07-31 20:27:05 -0700767
Lev Walkin0c686452017-09-07 22:59:36 -0700768/*** <<< STAT-DEFS [J-4-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700769
Lev Walkin0c686452017-09-07 22:59:36 -0700770static const ber_tlv_tag_t asn_DEF_J_4_5_tags_1[] = {
Lev Walkin5861e8a2017-07-31 20:27:05 -0700771 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
772};
Lev Walkin0c686452017-09-07 22:59:36 -0700773asn_TYPE_descriptor_t asn_DEF_J_4_5 = {
774 "J-4-5",
775 "J-4-5",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800776 &asn_OP_NativeInteger,
Lev Walkin0c686452017-09-07 22:59:36 -0700777 J_4_5_constraint,
778 asn_DEF_J_4_5_tags_1,
779 sizeof(asn_DEF_J_4_5_tags_1)
780 /sizeof(asn_DEF_J_4_5_tags_1[0]), /* 1 */
781 asn_DEF_J_4_5_tags_1, /* Same as above */
782 sizeof(asn_DEF_J_4_5_tags_1)
783 /sizeof(asn_DEF_J_4_5_tags_1[0]), /* 1 */
784 &asn_OER_type_J_4_5_constr_1,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700785 0, /* No PER visible constraints */
786 0, 0, /* No members */
787 0 /* No specifics */
788};
789
790
Lev Walkin0c686452017-09-07 22:59:36 -0700791/*** <<< INCLUDES [K-1-4] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700792
793#include <NativeInteger.h>
794
Lev Walkin0c686452017-09-07 22:59:36 -0700795/*** <<< TYPE-DECLS [K-1-4] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700796
Lev Walkin0c686452017-09-07 22:59:36 -0700797typedef long K_1_4_t;
Lev Walkin5861e8a2017-07-31 20:27:05 -0700798
Lev Walkin0c686452017-09-07 22:59:36 -0700799/*** <<< FUNC-DECLS [K-1-4] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700800
Lev Walkin0c686452017-09-07 22:59:36 -0700801extern asn_TYPE_descriptor_t asn_DEF_K_1_4;
802asn_struct_free_f K_1_4_free;
803asn_struct_print_f K_1_4_print;
804asn_constr_check_f K_1_4_constraint;
805ber_type_decoder_f K_1_4_decode_ber;
806der_type_encoder_f K_1_4_encode_der;
807xer_type_decoder_f K_1_4_decode_xer;
808xer_type_encoder_f K_1_4_encode_xer;
809oer_type_decoder_f K_1_4_decode_oer;
810oer_type_encoder_f K_1_4_encode_oer;
Lev Walkin5861e8a2017-07-31 20:27:05 -0700811
Lev Walkin0c686452017-09-07 22:59:36 -0700812/*** <<< CODE [K-1-4] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700813
814int
Lev Walkin0c686452017-09-07 22:59:36 -0700815K_1_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700816 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
817 long value;
818
819 if(!sptr) {
820 ASN__CTFAIL(app_key, td, sptr,
821 "%s: value not given (%s:%d)",
822 td->name, __FILE__, __LINE__);
823 return -1;
824 }
825
826 value = *(const long *)sptr;
827
Lev Walkin0c686452017-09-07 22:59:36 -0700828 if((value >= 1 && value <= 4)) {
Lev Walkin5861e8a2017-07-31 20:27:05 -0700829 /* Constraint check succeeded */
830 return 0;
831 } else {
832 ASN__CTFAIL(app_key, td, sptr,
833 "%s: constraint failed (%s:%d)",
834 td->name, __FILE__, __LINE__);
835 return -1;
836 }
837}
838
839/*
840 * This type is implemented using NativeInteger,
841 * so here we adjust the DEF accordingly.
842 */
Lev Walkin5861e8a2017-07-31 20:27:05 -0700843
Lev Walkin0c686452017-09-07 22:59:36 -0700844/*** <<< CTDEFS [K-1-4] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700845
Lev Walkin0c686452017-09-07 22:59:36 -0700846static asn_oer_constraints_t asn_OER_type_K_1_4_constr_1 GCC_NOTUSED = {
847 { 1, 1 } /* (1..4) */,
Lev Walkin8041fe82017-08-02 10:39:01 -0700848 -1};
Lev Walkin5861e8a2017-07-31 20:27:05 -0700849
Lev Walkin0c686452017-09-07 22:59:36 -0700850/*** <<< STAT-DEFS [K-1-4] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -0700851
Lev Walkin0c686452017-09-07 22:59:36 -0700852static const ber_tlv_tag_t asn_DEF_K_1_4_tags_1[] = {
Lev Walkin5861e8a2017-07-31 20:27:05 -0700853 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
854};
Lev Walkin0c686452017-09-07 22:59:36 -0700855asn_TYPE_descriptor_t asn_DEF_K_1_4 = {
856 "K-1-4",
857 "K-1-4",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800858 &asn_OP_NativeInteger,
Lev Walkin0c686452017-09-07 22:59:36 -0700859 K_1_4_constraint,
860 asn_DEF_K_1_4_tags_1,
861 sizeof(asn_DEF_K_1_4_tags_1)
862 /sizeof(asn_DEF_K_1_4_tags_1[0]), /* 1 */
863 asn_DEF_K_1_4_tags_1, /* Same as above */
864 sizeof(asn_DEF_K_1_4_tags_1)
865 /sizeof(asn_DEF_K_1_4_tags_1[0]), /* 1 */
866 &asn_OER_type_K_1_4_constr_1,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700867 0, /* No PER visible constraints */
868 0, 0, /* No members */
869 0 /* No specifics */
870};
871
872
873/*** <<< INCLUDES [L-0-5] >>> ***/
874
875#include <NativeInteger.h>
876
877/*** <<< TYPE-DECLS [L-0-5] >>> ***/
878
879typedef long L_0_5_t;
880
881/*** <<< FUNC-DECLS [L-0-5] >>> ***/
882
883extern asn_TYPE_descriptor_t asn_DEF_L_0_5;
884asn_struct_free_f L_0_5_free;
885asn_struct_print_f L_0_5_print;
886asn_constr_check_f L_0_5_constraint;
887ber_type_decoder_f L_0_5_decode_ber;
888der_type_encoder_f L_0_5_encode_der;
889xer_type_decoder_f L_0_5_decode_xer;
890xer_type_encoder_f L_0_5_encode_xer;
891oer_type_decoder_f L_0_5_decode_oer;
892oer_type_encoder_f L_0_5_encode_oer;
893
894/*** <<< CODE [L-0-5] >>> ***/
895
896int
897L_0_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
898 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
899 long value;
900
901 if(!sptr) {
902 ASN__CTFAIL(app_key, td, sptr,
903 "%s: value not given (%s:%d)",
904 td->name, __FILE__, __LINE__);
905 return -1;
906 }
907
908 value = *(const long *)sptr;
909
910 if(((value == 0) || (value == 5))) {
911 /* Constraint check succeeded */
912 return 0;
913 } else {
914 ASN__CTFAIL(app_key, td, sptr,
915 "%s: constraint failed (%s:%d)",
916 td->name, __FILE__, __LINE__);
917 return -1;
918 }
919}
920
921/*
922 * This type is implemented using NativeInteger,
923 * so here we adjust the DEF accordingly.
924 */
Lev Walkin5861e8a2017-07-31 20:27:05 -0700925
926/*** <<< CTDEFS [L-0-5] >>> ***/
927
928static asn_oer_constraints_t asn_OER_type_L_0_5_constr_1 GCC_NOTUSED = {
Lev Walkin8041fe82017-08-02 10:39:01 -0700929 { 1, 1 } /* (0..5) */,
930 -1};
Lev Walkin5861e8a2017-07-31 20:27:05 -0700931
932/*** <<< STAT-DEFS [L-0-5] >>> ***/
933
934static const ber_tlv_tag_t asn_DEF_L_0_5_tags_1[] = {
935 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
936};
937asn_TYPE_descriptor_t asn_DEF_L_0_5 = {
938 "L-0-5",
939 "L-0-5",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800940 &asn_OP_NativeInteger,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700941 L_0_5_constraint,
Lev Walkin5861e8a2017-07-31 20:27:05 -0700942 asn_DEF_L_0_5_tags_1,
943 sizeof(asn_DEF_L_0_5_tags_1)
944 /sizeof(asn_DEF_L_0_5_tags_1[0]), /* 1 */
945 asn_DEF_L_0_5_tags_1, /* Same as above */
946 sizeof(asn_DEF_L_0_5_tags_1)
947 /sizeof(asn_DEF_L_0_5_tags_1[0]), /* 1 */
948 &asn_OER_type_L_0_5_constr_1,
949 0, /* No PER visible constraints */
950 0, 0, /* No members */
951 0 /* No specifics */
952};
953
954
955/*** <<< INCLUDES [M-inv] >>> ***/
956
957#include <NativeInteger.h>
958
959/*** <<< TYPE-DECLS [M-inv] >>> ***/
960
961typedef long M_inv_t;
962
963/*** <<< FUNC-DECLS [M-inv] >>> ***/
964
965extern asn_TYPE_descriptor_t asn_DEF_M_inv;
966asn_struct_free_f M_inv_free;
967asn_struct_print_f M_inv_print;
968asn_constr_check_f M_inv_constraint;
969ber_type_decoder_f M_inv_decode_ber;
970der_type_encoder_f M_inv_encode_der;
971xer_type_decoder_f M_inv_decode_xer;
972xer_type_encoder_f M_inv_encode_xer;
973oer_type_decoder_f M_inv_decode_oer;
974oer_type_encoder_f M_inv_encode_oer;
975
976/*** <<< CODE [M-inv] >>> ***/
977
978int
979M_inv_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
980 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
981 long value;
982
983 if(!sptr) {
984 ASN__CTFAIL(app_key, td, sptr,
985 "%s: value not given (%s:%d)",
986 td->name, __FILE__, __LINE__);
987 return -1;
988 }
989
990 value = *(const long *)sptr;
991
Lev Walkin0c686452017-09-07 22:59:36 -0700992 if((value >= 0 && value <= 5)) {
Lev Walkin5861e8a2017-07-31 20:27:05 -0700993 /* Constraint check succeeded */
994 return 0;
995 } else {
996 ASN__CTFAIL(app_key, td, sptr,
997 "%s: constraint failed (%s:%d)",
998 td->name, __FILE__, __LINE__);
999 return -1;
1000 }
1001}
1002
1003/*
1004 * This type is implemented using NativeInteger,
1005 * so here we adjust the DEF accordingly.
1006 */
Lev Walkin5861e8a2017-07-31 20:27:05 -07001007
1008/*** <<< CTDEFS [M-inv] >>> ***/
1009
1010static asn_oer_constraints_t asn_OER_type_M_inv_constr_1 GCC_NOTUSED = {
Lev Walkin8041fe82017-08-02 10:39:01 -07001011 { 0, 0 },
1012 -1};
Lev Walkin5861e8a2017-07-31 20:27:05 -07001013
1014/*** <<< STAT-DEFS [M-inv] >>> ***/
1015
1016static const ber_tlv_tag_t asn_DEF_M_inv_tags_1[] = {
1017 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1018};
1019asn_TYPE_descriptor_t asn_DEF_M_inv = {
1020 "M-inv",
1021 "M-inv",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001022 &asn_OP_NativeInteger,
Lev Walkin5861e8a2017-07-31 20:27:05 -07001023 M_inv_constraint,
Lev Walkin5861e8a2017-07-31 20:27:05 -07001024 asn_DEF_M_inv_tags_1,
1025 sizeof(asn_DEF_M_inv_tags_1)
1026 /sizeof(asn_DEF_M_inv_tags_1[0]), /* 1 */
1027 asn_DEF_M_inv_tags_1, /* Same as above */
1028 sizeof(asn_DEF_M_inv_tags_1)
1029 /sizeof(asn_DEF_M_inv_tags_1[0]), /* 1 */
1030 &asn_OER_type_M_inv_constr_1,
1031 0, /* No PER visible constraints */
1032 0, 0, /* No members */
1033 0 /* No specifics */
1034};
1035
1036
Lev Walkin0c686452017-09-07 22:59:36 -07001037/*** <<< INCLUDES [N-0-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -07001038
1039#include <NativeInteger.h>
1040
Lev Walkin0c686452017-09-07 22:59:36 -07001041/*** <<< TYPE-DECLS [N-0-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -07001042
Lev Walkin0c686452017-09-07 22:59:36 -07001043typedef long N_0_5_t;
Lev Walkin5861e8a2017-07-31 20:27:05 -07001044
Lev Walkin0c686452017-09-07 22:59:36 -07001045/*** <<< FUNC-DECLS [N-0-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -07001046
Lev Walkin0c686452017-09-07 22:59:36 -07001047extern asn_TYPE_descriptor_t asn_DEF_N_0_5;
1048asn_struct_free_f N_0_5_free;
1049asn_struct_print_f N_0_5_print;
1050asn_constr_check_f N_0_5_constraint;
1051ber_type_decoder_f N_0_5_decode_ber;
1052der_type_encoder_f N_0_5_encode_der;
1053xer_type_decoder_f N_0_5_decode_xer;
1054xer_type_encoder_f N_0_5_encode_xer;
1055oer_type_decoder_f N_0_5_decode_oer;
1056oer_type_encoder_f N_0_5_encode_oer;
Lev Walkin5861e8a2017-07-31 20:27:05 -07001057
Lev Walkin0c686452017-09-07 22:59:36 -07001058/*** <<< CODE [N-0-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -07001059
1060int
Lev Walkin0c686452017-09-07 22:59:36 -07001061N_0_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin5861e8a2017-07-31 20:27:05 -07001062 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
1063 long value;
1064
1065 if(!sptr) {
1066 ASN__CTFAIL(app_key, td, sptr,
1067 "%s: value not given (%s:%d)",
1068 td->name, __FILE__, __LINE__);
1069 return -1;
1070 }
1071
1072 value = *(const long *)sptr;
1073
1074 if((value >= 0 && value <= 5)) {
1075 /* Constraint check succeeded */
1076 return 0;
1077 } else {
1078 ASN__CTFAIL(app_key, td, sptr,
1079 "%s: constraint failed (%s:%d)",
1080 td->name, __FILE__, __LINE__);
1081 return -1;
1082 }
1083}
1084
1085/*
1086 * This type is implemented using NativeInteger,
1087 * so here we adjust the DEF accordingly.
1088 */
Lev Walkin5861e8a2017-07-31 20:27:05 -07001089
Lev Walkin0c686452017-09-07 22:59:36 -07001090/*** <<< CTDEFS [N-0-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -07001091
Lev Walkin0c686452017-09-07 22:59:36 -07001092static asn_oer_constraints_t asn_OER_type_N_0_5_constr_1 GCC_NOTUSED = {
1093 { 1, 1 } /* (0..5) */,
Lev Walkin8041fe82017-08-02 10:39:01 -07001094 -1};
Lev Walkin5861e8a2017-07-31 20:27:05 -07001095
Lev Walkin0c686452017-09-07 22:59:36 -07001096/*** <<< STAT-DEFS [N-0-5] >>> ***/
Lev Walkin5861e8a2017-07-31 20:27:05 -07001097
Lev Walkin0c686452017-09-07 22:59:36 -07001098static const ber_tlv_tag_t asn_DEF_N_0_5_tags_1[] = {
Lev Walkin5861e8a2017-07-31 20:27:05 -07001099 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1100};
Lev Walkin0c686452017-09-07 22:59:36 -07001101asn_TYPE_descriptor_t asn_DEF_N_0_5 = {
1102 "N-0-5",
1103 "N-0-5",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001104 &asn_OP_NativeInteger,
Lev Walkin0c686452017-09-07 22:59:36 -07001105 N_0_5_constraint,
1106 asn_DEF_N_0_5_tags_1,
1107 sizeof(asn_DEF_N_0_5_tags_1)
1108 /sizeof(asn_DEF_N_0_5_tags_1[0]), /* 1 */
1109 asn_DEF_N_0_5_tags_1, /* Same as above */
1110 sizeof(asn_DEF_N_0_5_tags_1)
1111 /sizeof(asn_DEF_N_0_5_tags_1[0]), /* 1 */
1112 &asn_OER_type_N_0_5_constr_1,
Lev Walkin5861e8a2017-07-31 20:27:05 -07001113 0, /* No PER visible constraints */
1114 0, 0, /* No members */
1115 0 /* No specifics */
1116};
1117
1118
1119/*** <<< INCLUDES [O-inv] >>> ***/
1120
1121#include <NativeInteger.h>
1122
1123/*** <<< TYPE-DECLS [O-inv] >>> ***/
1124
1125typedef long O_inv_t;
1126
1127/*** <<< FUNC-DECLS [O-inv] >>> ***/
1128
1129extern asn_TYPE_descriptor_t asn_DEF_O_inv;
1130asn_struct_free_f O_inv_free;
1131asn_struct_print_f O_inv_print;
1132asn_constr_check_f O_inv_constraint;
1133ber_type_decoder_f O_inv_decode_ber;
1134der_type_encoder_f O_inv_encode_der;
1135xer_type_decoder_f O_inv_decode_xer;
1136xer_type_encoder_f O_inv_encode_xer;
1137oer_type_decoder_f O_inv_decode_oer;
1138oer_type_encoder_f O_inv_encode_oer;
1139
1140/*** <<< CODE [O-inv] >>> ***/
1141
1142int
1143O_inv_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
1144 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
1145 long value;
1146
1147 if(!sptr) {
1148 ASN__CTFAIL(app_key, td, sptr,
1149 "%s: value not given (%s:%d)",
1150 td->name, __FILE__, __LINE__);
1151 return -1;
1152 }
1153
1154 value = *(const long *)sptr;
1155
1156 if((value >= 0 && value <= 5)) {
1157 /* Constraint check succeeded */
1158 return 0;
1159 } else {
1160 ASN__CTFAIL(app_key, td, sptr,
1161 "%s: constraint failed (%s:%d)",
1162 td->name, __FILE__, __LINE__);
1163 return -1;
1164 }
1165}
1166
1167/*
1168 * This type is implemented using NativeInteger,
1169 * so here we adjust the DEF accordingly.
1170 */
Lev Walkin5861e8a2017-07-31 20:27:05 -07001171
1172/*** <<< CTDEFS [O-inv] >>> ***/
1173
1174static asn_oer_constraints_t asn_OER_type_O_inv_constr_1 GCC_NOTUSED = {
Lev Walkin8041fe82017-08-02 10:39:01 -07001175 { 0, 0 },
1176 -1};
Lev Walkin5861e8a2017-07-31 20:27:05 -07001177
1178/*** <<< STAT-DEFS [O-inv] >>> ***/
1179
1180static const ber_tlv_tag_t asn_DEF_O_inv_tags_1[] = {
1181 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1182};
1183asn_TYPE_descriptor_t asn_DEF_O_inv = {
1184 "O-inv",
1185 "O-inv",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001186 &asn_OP_NativeInteger,
Lev Walkin5861e8a2017-07-31 20:27:05 -07001187 O_inv_constraint,
Lev Walkin5861e8a2017-07-31 20:27:05 -07001188 asn_DEF_O_inv_tags_1,
1189 sizeof(asn_DEF_O_inv_tags_1)
1190 /sizeof(asn_DEF_O_inv_tags_1[0]), /* 1 */
1191 asn_DEF_O_inv_tags_1, /* Same as above */
1192 sizeof(asn_DEF_O_inv_tags_1)
1193 /sizeof(asn_DEF_O_inv_tags_1[0]), /* 1 */
1194 &asn_OER_type_O_inv_constr_1,
Lev Walkin8aed40c2017-07-26 18:50:04 -07001195 0, /* No PER visible constraints */
1196 0, 0, /* No members */
1197 0 /* No specifics */
1198};
1199
Lev Walkin0c686452017-09-07 22:59:36 -07001200
1201/*** <<< INCLUDES [EConstr] >>> ***/
1202
1203#include <NativeInteger.h>
1204
1205/*** <<< TYPE-DECLS [EConstr] >>> ***/
1206
1207typedef long EConstr_t;
1208
1209/*** <<< FUNC-DECLS [EConstr] >>> ***/
1210
1211extern asn_TYPE_descriptor_t asn_DEF_EConstr;
1212asn_struct_free_f EConstr_free;
1213asn_struct_print_f EConstr_print;
1214asn_constr_check_f EConstr_constraint;
1215ber_type_decoder_f EConstr_decode_ber;
1216der_type_encoder_f EConstr_encode_der;
1217xer_type_decoder_f EConstr_decode_xer;
1218xer_type_encoder_f EConstr_encode_xer;
1219oer_type_decoder_f EConstr_decode_oer;
1220oer_type_encoder_f EConstr_encode_oer;
1221
1222/*** <<< CODE [EConstr] >>> ***/
1223
1224int
1225EConstr_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
1226 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
1227 long value;
1228
1229 if(!sptr) {
1230 ASN__CTFAIL(app_key, td, sptr,
1231 "%s: value not given (%s:%d)",
1232 td->name, __FILE__, __LINE__);
1233 return -1;
1234 }
1235
1236 value = *(const long *)sptr;
1237
1238 if((value >= 1 && value <= 5)) {
1239 /* Constraint check succeeded */
1240 return 0;
1241 } else {
1242 ASN__CTFAIL(app_key, td, sptr,
1243 "%s: constraint failed (%s:%d)",
1244 td->name, __FILE__, __LINE__);
1245 return -1;
1246 }
1247}
1248
1249/*
1250 * This type is implemented using NativeInteger,
1251 * so here we adjust the DEF accordingly.
1252 */
1253
1254/*** <<< CTDEFS [EConstr] >>> ***/
1255
1256static asn_oer_constraints_t asn_OER_type_EConstr_constr_1 GCC_NOTUSED = {
1257 { 0, 0 },
1258 -1};
1259
1260/*** <<< STAT-DEFS [EConstr] >>> ***/
1261
1262static const ber_tlv_tag_t asn_DEF_EConstr_tags_1[] = {
1263 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1264};
1265asn_TYPE_descriptor_t asn_DEF_EConstr = {
1266 "EConstr",
1267 "EConstr",
1268 &asn_OP_NativeInteger,
1269 EConstr_constraint,
1270 asn_DEF_EConstr_tags_1,
1271 sizeof(asn_DEF_EConstr_tags_1)
1272 /sizeof(asn_DEF_EConstr_tags_1[0]), /* 1 */
1273 asn_DEF_EConstr_tags_1, /* Same as above */
1274 sizeof(asn_DEF_EConstr_tags_1)
1275 /sizeof(asn_DEF_EConstr_tags_1[0]), /* 1 */
1276 &asn_OER_type_EConstr_constr_1,
1277 0, /* No PER visible constraints */
1278 0, 0, /* No members */
1279 0 /* No specifics */
1280};
1281
1282
1283/*** <<< INCLUDES [FConstr] >>> ***/
1284
1285#include <NativeInteger.h>
1286
1287/*** <<< TYPE-DECLS [FConstr] >>> ***/
1288
1289typedef long FConstr_t;
1290
1291/*** <<< FUNC-DECLS [FConstr] >>> ***/
1292
1293extern asn_TYPE_descriptor_t asn_DEF_FConstr;
1294asn_struct_free_f FConstr_free;
1295asn_struct_print_f FConstr_print;
1296asn_constr_check_f FConstr_constraint;
1297ber_type_decoder_f FConstr_decode_ber;
1298der_type_encoder_f FConstr_encode_der;
1299xer_type_decoder_f FConstr_decode_xer;
1300xer_type_encoder_f FConstr_encode_xer;
1301oer_type_decoder_f FConstr_decode_oer;
1302oer_type_encoder_f FConstr_encode_oer;
1303
1304/*** <<< CODE [FConstr] >>> ***/
1305
1306int
1307FConstr_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
1308 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
1309 long value;
1310
1311 if(!sptr) {
1312 ASN__CTFAIL(app_key, td, sptr,
1313 "%s: value not given (%s:%d)",
1314 td->name, __FILE__, __LINE__);
1315 return -1;
1316 }
1317
1318 value = *(const long *)sptr;
1319
1320 if((value >= 0 && value <= 4)) {
1321 /* Constraint check succeeded */
1322 return 0;
1323 } else {
1324 ASN__CTFAIL(app_key, td, sptr,
1325 "%s: constraint failed (%s:%d)",
1326 td->name, __FILE__, __LINE__);
1327 return -1;
1328 }
1329}
1330
1331/*
1332 * This type is implemented using NativeInteger,
1333 * so here we adjust the DEF accordingly.
1334 */
1335
1336/*** <<< CTDEFS [FConstr] >>> ***/
1337
1338static asn_oer_constraints_t asn_OER_type_FConstr_constr_1 GCC_NOTUSED = {
1339 { 1, 1 } /* (0..4) */,
1340 -1};
1341
1342/*** <<< STAT-DEFS [FConstr] >>> ***/
1343
1344static const ber_tlv_tag_t asn_DEF_FConstr_tags_1[] = {
1345 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1346};
1347asn_TYPE_descriptor_t asn_DEF_FConstr = {
1348 "FConstr",
1349 "FConstr",
1350 &asn_OP_NativeInteger,
1351 FConstr_constraint,
1352 asn_DEF_FConstr_tags_1,
1353 sizeof(asn_DEF_FConstr_tags_1)
1354 /sizeof(asn_DEF_FConstr_tags_1[0]), /* 1 */
1355 asn_DEF_FConstr_tags_1, /* Same as above */
1356 sizeof(asn_DEF_FConstr_tags_1)
1357 /sizeof(asn_DEF_FConstr_tags_1[0]), /* 1 */
1358 &asn_OER_type_FConstr_constr_1,
1359 0, /* No PER visible constraints */
1360 0, 0, /* No members */
1361 0 /* No specifics */
1362};
1363