blob: 62fc5b1e8ee90c58be35ab69d706f71235a46916 [file] [log] [blame]
Lev Walkinffe79f42010-10-25 00:10:34 -07001
2/*** <<< INCLUDES [Enum1] >>> ***/
3
4#include <ENUMERATED.h>
5
6/*** <<< DEPS [Enum1] >>> ***/
7
8typedef enum Enum1 {
9 Enum1_red = 0,
10 Enum1_green = 1,
11 Enum1_blue = 4,
12 Enum1_alpha = 5
13 /*
14 * Enumeration is extensible
15 */
16} e_Enum1;
17
18/*** <<< TYPE-DECLS [Enum1] >>> ***/
19
20typedef ENUMERATED_t Enum1_t;
21
22/*** <<< FUNC-DECLS [Enum1] >>> ***/
23
24extern asn_TYPE_descriptor_t asn_DEF_Enum1;
25asn_struct_free_f Enum1_free;
26asn_struct_print_f Enum1_print;
27asn_constr_check_f Enum1_constraint;
28ber_type_decoder_f Enum1_decode_ber;
29der_type_encoder_f Enum1_encode_der;
30xer_type_decoder_f Enum1_decode_xer;
31xer_type_encoder_f Enum1_encode_xer;
32
33/*** <<< CODE [Enum1] >>> ***/
34
Lev Walkinffe79f42010-10-25 00:10:34 -070035/*
36 * This type is implemented using ENUMERATED,
37 * so here we adjust the DEF accordingly.
38 */
Lev Walkinffe79f42010-10-25 00:10:34 -070039
40/*** <<< STAT-DEFS [Enum1] >>> ***/
41
Lev Walkina7591b52014-10-12 18:37:35 -070042static const asn_INTEGER_enum_map_t asn_MAP_Enum1_value2enum_1[] = {
Lev Walkinffe79f42010-10-25 00:10:34 -070043 { 0, 3, "red" },
44 { 1, 5, "green" },
45 { 4, 4, "blue" },
46 { 5, 5, "alpha" }
47 /* This list is extensible */
48};
Lev Walkina7591b52014-10-12 18:37:35 -070049static const unsigned int asn_MAP_Enum1_enum2value_1[] = {
Lev Walkinffe79f42010-10-25 00:10:34 -070050 3, /* alpha(5) */
51 2, /* blue(4) */
52 1, /* green(1) */
53 0 /* red(0) */
54 /* This list is extensible */
55};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080056static const asn_INTEGER_specifics_t asn_SPC_Enum1_specs_1 = {
Lev Walkinffe79f42010-10-25 00:10:34 -070057 asn_MAP_Enum1_value2enum_1, /* "tag" => N; sorted by tag */
58 asn_MAP_Enum1_enum2value_1, /* N => "tag"; sorted by N */
59 4, /* Number of elements in the maps */
60 5, /* Extensions before this member */
61 1, /* Strict enumeration */
62 0, /* Native long size */
63 0
64};
Lev Walkina7591b52014-10-12 18:37:35 -070065static const ber_tlv_tag_t asn_DEF_Enum1_tags_1[] = {
Lev Walkinffe79f42010-10-25 00:10:34 -070066 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
67};
68asn_TYPE_descriptor_t asn_DEF_Enum1 = {
69 "Enum1",
70 "Enum1",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080071 &asn_OP_ENUMERATED,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080072 ENUMERATED_constraint,
Lev Walkinffe79f42010-10-25 00:10:34 -070073 asn_DEF_Enum1_tags_1,
74 sizeof(asn_DEF_Enum1_tags_1)
75 /sizeof(asn_DEF_Enum1_tags_1[0]), /* 1 */
76 asn_DEF_Enum1_tags_1, /* Same as above */
77 sizeof(asn_DEF_Enum1_tags_1)
78 /sizeof(asn_DEF_Enum1_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +040079 0, /* No OER visible constraints */
Lev Walkinffe79f42010-10-25 00:10:34 -070080 0, /* No PER visible constraints */
81 0, 0, /* Defined elsewhere */
82 &asn_SPC_Enum1_specs_1 /* Additional specs */
83};
84
85
86/*** <<< INCLUDES [Enum2] >>> ***/
87
88#include <ENUMERATED.h>
89
90/*** <<< DEPS [Enum2] >>> ***/
91
92typedef enum Enum2 {
93 Enum2_red = 0,
94 Enum2_green = 1,
95 Enum2_blue = 45,
96 Enum2_orange = 23,
97 Enum2_alpha = 46,
98 /*
99 * Enumeration is extensible
100 */
101 Enum2_beta = 12,
102 Enum2_gamma = 103
103} e_Enum2;
104
105/*** <<< TYPE-DECLS [Enum2] >>> ***/
106
107typedef ENUMERATED_t Enum2_t;
108
109/*** <<< FUNC-DECLS [Enum2] >>> ***/
110
111extern asn_TYPE_descriptor_t asn_DEF_Enum2;
112asn_struct_free_f Enum2_free;
113asn_struct_print_f Enum2_print;
114asn_constr_check_f Enum2_constraint;
115ber_type_decoder_f Enum2_decode_ber;
116der_type_encoder_f Enum2_encode_der;
117xer_type_decoder_f Enum2_decode_xer;
118xer_type_encoder_f Enum2_encode_xer;
119
120/*** <<< CODE [Enum2] >>> ***/
121
Lev Walkinffe79f42010-10-25 00:10:34 -0700122/*
123 * This type is implemented using ENUMERATED,
124 * so here we adjust the DEF accordingly.
125 */
Lev Walkinffe79f42010-10-25 00:10:34 -0700126
127/*** <<< STAT-DEFS [Enum2] >>> ***/
128
Lev Walkina7591b52014-10-12 18:37:35 -0700129static const asn_INTEGER_enum_map_t asn_MAP_Enum2_value2enum_1[] = {
Lev Walkinffe79f42010-10-25 00:10:34 -0700130 { 0, 3, "red" },
131 { 1, 5, "green" },
132 { 12, 4, "beta" },
133 { 23, 6, "orange" },
134 { 45, 4, "blue" },
135 { 46, 5, "alpha" },
136 { 103, 5, "gamma" }
137 /* This list is extensible */
138};
Lev Walkina7591b52014-10-12 18:37:35 -0700139static const unsigned int asn_MAP_Enum2_enum2value_1[] = {
Lev Walkinffe79f42010-10-25 00:10:34 -0700140 5, /* alpha(46) */
141 2, /* beta(12) */
142 4, /* blue(45) */
143 6, /* gamma(103) */
144 1, /* green(1) */
145 3, /* orange(23) */
146 0 /* red(0) */
147 /* This list is extensible */
148};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800149static const asn_INTEGER_specifics_t asn_SPC_Enum2_specs_1 = {
Lev Walkinffe79f42010-10-25 00:10:34 -0700150 asn_MAP_Enum2_value2enum_1, /* "tag" => N; sorted by tag */
151 asn_MAP_Enum2_enum2value_1, /* N => "tag"; sorted by N */
152 7, /* Number of elements in the maps */
153 6, /* Extensions before this member */
154 1, /* Strict enumeration */
155 0, /* Native long size */
156 0
157};
Lev Walkina7591b52014-10-12 18:37:35 -0700158static const ber_tlv_tag_t asn_DEF_Enum2_tags_1[] = {
Lev Walkinffe79f42010-10-25 00:10:34 -0700159 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
160};
161asn_TYPE_descriptor_t asn_DEF_Enum2 = {
162 "Enum2",
163 "Enum2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800164 &asn_OP_ENUMERATED,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800165 ENUMERATED_constraint,
Lev Walkinffe79f42010-10-25 00:10:34 -0700166 asn_DEF_Enum2_tags_1,
167 sizeof(asn_DEF_Enum2_tags_1)
168 /sizeof(asn_DEF_Enum2_tags_1[0]), /* 1 */
169 asn_DEF_Enum2_tags_1, /* Same as above */
170 sizeof(asn_DEF_Enum2_tags_1)
171 /sizeof(asn_DEF_Enum2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400172 0, /* No OER visible constraints */
Lev Walkinffe79f42010-10-25 00:10:34 -0700173 0, /* No PER visible constraints */
174 0, 0, /* Defined elsewhere */
175 &asn_SPC_Enum2_specs_1 /* Additional specs */
176};
177
178
179/*** <<< INCLUDES [Enum3] >>> ***/
180
181#include <ENUMERATED.h>
182
183/*** <<< DEPS [Enum3] >>> ***/
184
185typedef enum Enum3 {
186 Enum3_a = 0,
187 Enum3_b = 3,
188 /*
189 * Enumeration is extensible
190 */
191 Enum3_c = 1
192} e_Enum3;
193
194/*** <<< TYPE-DECLS [Enum3] >>> ***/
195
196typedef ENUMERATED_t Enum3_t;
197
198/*** <<< FUNC-DECLS [Enum3] >>> ***/
199
200extern asn_TYPE_descriptor_t asn_DEF_Enum3;
201asn_struct_free_f Enum3_free;
202asn_struct_print_f Enum3_print;
203asn_constr_check_f Enum3_constraint;
204ber_type_decoder_f Enum3_decode_ber;
205der_type_encoder_f Enum3_encode_der;
206xer_type_decoder_f Enum3_decode_xer;
207xer_type_encoder_f Enum3_encode_xer;
208
209/*** <<< CODE [Enum3] >>> ***/
210
Lev Walkinffe79f42010-10-25 00:10:34 -0700211/*
212 * This type is implemented using ENUMERATED,
213 * so here we adjust the DEF accordingly.
214 */
Lev Walkinffe79f42010-10-25 00:10:34 -0700215
216/*** <<< STAT-DEFS [Enum3] >>> ***/
217
Lev Walkina7591b52014-10-12 18:37:35 -0700218static const asn_INTEGER_enum_map_t asn_MAP_Enum3_value2enum_1[] = {
Lev Walkinffe79f42010-10-25 00:10:34 -0700219 { 0, 1, "a" },
220 { 1, 1, "c" },
221 { 3, 1, "b" }
222 /* This list is extensible */
223};
Lev Walkina7591b52014-10-12 18:37:35 -0700224static const unsigned int asn_MAP_Enum3_enum2value_1[] = {
Lev Walkinffe79f42010-10-25 00:10:34 -0700225 0, /* a(0) */
226 2, /* b(3) */
227 1 /* c(1) */
228 /* This list is extensible */
229};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800230static const asn_INTEGER_specifics_t asn_SPC_Enum3_specs_1 = {
Lev Walkinffe79f42010-10-25 00:10:34 -0700231 asn_MAP_Enum3_value2enum_1, /* "tag" => N; sorted by tag */
232 asn_MAP_Enum3_enum2value_1, /* N => "tag"; sorted by N */
233 3, /* Number of elements in the maps */
234 3, /* Extensions before this member */
235 1, /* Strict enumeration */
236 0, /* Native long size */
237 0
238};
Lev Walkina7591b52014-10-12 18:37:35 -0700239static const ber_tlv_tag_t asn_DEF_Enum3_tags_1[] = {
Lev Walkinffe79f42010-10-25 00:10:34 -0700240 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
241};
242asn_TYPE_descriptor_t asn_DEF_Enum3 = {
243 "Enum3",
244 "Enum3",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800245 &asn_OP_ENUMERATED,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800246 ENUMERATED_constraint,
Lev Walkinffe79f42010-10-25 00:10:34 -0700247 asn_DEF_Enum3_tags_1,
248 sizeof(asn_DEF_Enum3_tags_1)
249 /sizeof(asn_DEF_Enum3_tags_1[0]), /* 1 */
250 asn_DEF_Enum3_tags_1, /* Same as above */
251 sizeof(asn_DEF_Enum3_tags_1)
252 /sizeof(asn_DEF_Enum3_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400253 0, /* No OER visible constraints */
Lev Walkinffe79f42010-10-25 00:10:34 -0700254 0, /* No PER visible constraints */
255 0, 0, /* Defined elsewhere */
256 &asn_SPC_Enum3_specs_1 /* Additional specs */
257};
258
259
260/*** <<< INCLUDES [Enum4] >>> ***/
261
262#include <ENUMERATED.h>
263
264/*** <<< DEPS [Enum4] >>> ***/
265
266typedef enum Enum4 {
267 Enum4_a = 0,
268 Enum4_b = 1,
269 /*
270 * Enumeration is extensible
271 */
272 Enum4_c = 3,
273 Enum4_d = 4
274} e_Enum4;
275
276/*** <<< TYPE-DECLS [Enum4] >>> ***/
277
278typedef ENUMERATED_t Enum4_t;
279
280/*** <<< FUNC-DECLS [Enum4] >>> ***/
281
282extern asn_TYPE_descriptor_t asn_DEF_Enum4;
283asn_struct_free_f Enum4_free;
284asn_struct_print_f Enum4_print;
285asn_constr_check_f Enum4_constraint;
286ber_type_decoder_f Enum4_decode_ber;
287der_type_encoder_f Enum4_encode_der;
288xer_type_decoder_f Enum4_decode_xer;
289xer_type_encoder_f Enum4_encode_xer;
290
291/*** <<< CODE [Enum4] >>> ***/
292
Lev Walkinffe79f42010-10-25 00:10:34 -0700293/*
294 * This type is implemented using ENUMERATED,
295 * so here we adjust the DEF accordingly.
296 */
Lev Walkinffe79f42010-10-25 00:10:34 -0700297
298/*** <<< STAT-DEFS [Enum4] >>> ***/
299
Lev Walkina7591b52014-10-12 18:37:35 -0700300static const asn_INTEGER_enum_map_t asn_MAP_Enum4_value2enum_1[] = {
Lev Walkinffe79f42010-10-25 00:10:34 -0700301 { 0, 1, "a" },
302 { 1, 1, "b" },
303 { 3, 1, "c" },
304 { 4, 1, "d" }
305 /* This list is extensible */
306};
Lev Walkina7591b52014-10-12 18:37:35 -0700307static const unsigned int asn_MAP_Enum4_enum2value_1[] = {
Lev Walkinffe79f42010-10-25 00:10:34 -0700308 0, /* a(0) */
309 1, /* b(1) */
310 2, /* c(3) */
311 3 /* d(4) */
312 /* This list is extensible */
313};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800314static const asn_INTEGER_specifics_t asn_SPC_Enum4_specs_1 = {
Lev Walkinffe79f42010-10-25 00:10:34 -0700315 asn_MAP_Enum4_value2enum_1, /* "tag" => N; sorted by tag */
316 asn_MAP_Enum4_enum2value_1, /* N => "tag"; sorted by N */
317 4, /* Number of elements in the maps */
318 3, /* Extensions before this member */
319 1, /* Strict enumeration */
320 0, /* Native long size */
321 0
322};
Lev Walkina7591b52014-10-12 18:37:35 -0700323static const ber_tlv_tag_t asn_DEF_Enum4_tags_1[] = {
Lev Walkinffe79f42010-10-25 00:10:34 -0700324 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
325};
326asn_TYPE_descriptor_t asn_DEF_Enum4 = {
327 "Enum4",
328 "Enum4",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800329 &asn_OP_ENUMERATED,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800330 ENUMERATED_constraint,
Lev Walkinffe79f42010-10-25 00:10:34 -0700331 asn_DEF_Enum4_tags_1,
332 sizeof(asn_DEF_Enum4_tags_1)
333 /sizeof(asn_DEF_Enum4_tags_1[0]), /* 1 */
334 asn_DEF_Enum4_tags_1, /* Same as above */
335 sizeof(asn_DEF_Enum4_tags_1)
336 /sizeof(asn_DEF_Enum4_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400337 0, /* No OER visible constraints */
Lev Walkinffe79f42010-10-25 00:10:34 -0700338 0, /* No PER visible constraints */
339 0, 0, /* Defined elsewhere */
340 &asn_SPC_Enum4_specs_1 /* Additional specs */
341};
342
343
344/*** <<< INCLUDES [Enum5] >>> ***/
345
346#include <ENUMERATED.h>
347
348/*** <<< DEPS [Enum5] >>> ***/
349
350typedef enum Enum5 {
351 Enum5_a = 0,
352 Enum5_z = 25,
353 /*
354 * Enumeration is extensible
355 */
356 Enum5_d = 26
357} e_Enum5;
358
359/*** <<< TYPE-DECLS [Enum5] >>> ***/
360
361typedef ENUMERATED_t Enum5_t;
362
363/*** <<< FUNC-DECLS [Enum5] >>> ***/
364
365extern asn_TYPE_descriptor_t asn_DEF_Enum5;
366asn_struct_free_f Enum5_free;
367asn_struct_print_f Enum5_print;
368asn_constr_check_f Enum5_constraint;
369ber_type_decoder_f Enum5_decode_ber;
370der_type_encoder_f Enum5_encode_der;
371xer_type_decoder_f Enum5_decode_xer;
372xer_type_encoder_f Enum5_encode_xer;
373
374/*** <<< CODE [Enum5] >>> ***/
375
Lev Walkinffe79f42010-10-25 00:10:34 -0700376/*
377 * This type is implemented using ENUMERATED,
378 * so here we adjust the DEF accordingly.
379 */
Lev Walkinffe79f42010-10-25 00:10:34 -0700380
381/*** <<< STAT-DEFS [Enum5] >>> ***/
382
Lev Walkina7591b52014-10-12 18:37:35 -0700383static const asn_INTEGER_enum_map_t asn_MAP_Enum5_value2enum_1[] = {
Lev Walkinffe79f42010-10-25 00:10:34 -0700384 { 0, 1, "a" },
385 { 25, 1, "z" },
386 { 26, 1, "d" }
387 /* This list is extensible */
388};
Lev Walkina7591b52014-10-12 18:37:35 -0700389static const unsigned int asn_MAP_Enum5_enum2value_1[] = {
Lev Walkinffe79f42010-10-25 00:10:34 -0700390 0, /* a(0) */
391 2, /* d(26) */
392 1 /* z(25) */
393 /* This list is extensible */
394};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800395static const asn_INTEGER_specifics_t asn_SPC_Enum5_specs_1 = {
Lev Walkinffe79f42010-10-25 00:10:34 -0700396 asn_MAP_Enum5_value2enum_1, /* "tag" => N; sorted by tag */
397 asn_MAP_Enum5_enum2value_1, /* N => "tag"; sorted by N */
398 3, /* Number of elements in the maps */
399 3, /* Extensions before this member */
400 1, /* Strict enumeration */
401 0, /* Native long size */
402 0
403};
Lev Walkina7591b52014-10-12 18:37:35 -0700404static const ber_tlv_tag_t asn_DEF_Enum5_tags_1[] = {
Lev Walkinffe79f42010-10-25 00:10:34 -0700405 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
406};
407asn_TYPE_descriptor_t asn_DEF_Enum5 = {
408 "Enum5",
409 "Enum5",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800410 &asn_OP_ENUMERATED,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800411 ENUMERATED_constraint,
Lev Walkinffe79f42010-10-25 00:10:34 -0700412 asn_DEF_Enum5_tags_1,
413 sizeof(asn_DEF_Enum5_tags_1)
414 /sizeof(asn_DEF_Enum5_tags_1[0]), /* 1 */
415 asn_DEF_Enum5_tags_1, /* Same as above */
416 sizeof(asn_DEF_Enum5_tags_1)
417 /sizeof(asn_DEF_Enum5_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400418 0, /* No OER visible constraints */
Lev Walkinffe79f42010-10-25 00:10:34 -0700419 0, /* No PER visible constraints */
420 0, 0, /* Defined elsewhere */
421 &asn_SPC_Enum5_specs_1 /* Additional specs */
422};
423