blob: 4727e083b54133a963411a21eddf20ba27e5e4b5 [file] [log] [blame]
Lev Walkina00d6b32006-03-21 03:40:38 +00001
2/*** <<< INCLUDES [SIGNED] >>> ***/
3
4#include <REAL.h>
5#include <constr_SEQUENCE.h>
6#include <INTEGER.h>
7#include <constr_SET.h>
8
9/*** <<< DEPS [SIGNED] >>> ***/
10
11
12/*
13 * Method of determining the components presence
14 */
15typedef enum signed_PR {
16 signed_PR_a, /* Member a is present */
17} signed_PR;
18
19/*** <<< TYPE-DECLS [SIGNED] >>> ***/
20
21typedef struct SIGNED_16P0 {
22 REAL_t Signed;
23
24 /* Context for parsing across buffer boundaries */
25 asn_struct_ctx_t _asn_ctx;
26} SIGNED_16P0_t;
27typedef struct SIGNED_16P1 {
28 struct Signed {
29 INTEGER_t a;
30
31 /* Presence bitmask: ASN_SET_ISPRESENT(psigned, signed_PR_x) */
32 unsigned int _presence_map
33 [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
34
35 /* Context for parsing across buffer boundaries */
36 asn_struct_ctx_t _asn_ctx;
37 } Signed;
38
39 /* Context for parsing across buffer boundaries */
40 asn_struct_ctx_t _asn_ctx;
41} SIGNED_16P1_t;
42
43/*** <<< FUNC-DECLS [SIGNED] >>> ***/
44
45extern asn_TYPE_descriptor_t asn_DEF_SIGNED_16P0;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080046extern asn_SEQUENCE_specifics_t asn_SPC_SIGNED_16P0_specs_1;
47extern asn_TYPE_member_t asn_MBR_SIGNED_16P0_1[1];
Lev Walkina00d6b32006-03-21 03:40:38 +000048extern asn_TYPE_descriptor_t asn_DEF_SIGNED_16P1;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080049extern asn_SEQUENCE_specifics_t asn_SPC_SIGNED_16P1_specs_3;
50extern asn_TYPE_member_t asn_MBR_SIGNED_16P1_3[1];
Lev Walkina00d6b32006-03-21 03:40:38 +000051
52/*** <<< STAT-DEFS [SIGNED] >>> ***/
53
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080054asn_TYPE_member_t asn_MBR_SIGNED_16P0_1[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +000055 { ATF_NOFLAGS, 0, offsetof(struct SIGNED_16P0, Signed),
56 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
57 .tag_mode = 0,
58 .type = &asn_DEF_REAL,
59 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040060 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkina00d6b32006-03-21 03:40:38 +000061 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
62 .default_value = 0,
63 .name = "signed"
64 },
65};
Lev Walkina7591b52014-10-12 18:37:35 -070066static const ber_tlv_tag_t asn_DEF_SIGNED_16P0_tags_1[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +000067 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
68};
Lev Walkina7591b52014-10-12 18:37:35 -070069static const asn_TYPE_tag2member_t asn_MAP_SIGNED_16P0_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -070070 { (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), 0, 0, 0 } /* signed */
Lev Walkina00d6b32006-03-21 03:40:38 +000071};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080072asn_SEQUENCE_specifics_t asn_SPC_SIGNED_16P0_specs_1 = {
Lev Walkina00d6b32006-03-21 03:40:38 +000073 sizeof(struct SIGNED_16P0),
74 offsetof(struct SIGNED_16P0, _asn_ctx),
75 asn_MAP_SIGNED_16P0_tag2el_1,
76 1, /* Count of tags in the map */
77 0, 0, 0, /* Optional elements (not needed) */
78 -1, /* Start extensions */
79 -1 /* Stop extensions */
80};
81asn_TYPE_descriptor_t asn_DEF_SIGNED_16P0 = {
82 "SIGNED",
83 "SIGNED",
84 SEQUENCE_free,
85 SEQUENCE_print,
86 SEQUENCE_constraint,
87 SEQUENCE_decode_ber,
88 SEQUENCE_encode_der,
89 SEQUENCE_decode_xer,
90 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -070091 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +040092 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkina00d6b32006-03-21 03:40:38 +000093 0, /* Use generic outmost tag fetcher */
94 asn_DEF_SIGNED_16P0_tags_1,
95 sizeof(asn_DEF_SIGNED_16P0_tags_1)
96 /sizeof(asn_DEF_SIGNED_16P0_tags_1[0]), /* 1 */
97 asn_DEF_SIGNED_16P0_tags_1, /* Same as above */
98 sizeof(asn_DEF_SIGNED_16P0_tags_1)
99 /sizeof(asn_DEF_SIGNED_16P0_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400100 0, /* No OER visible constraints */
Lev Walkina00d6b32006-03-21 03:40:38 +0000101 0, /* No PER visible constraints */
102 asn_MBR_SIGNED_16P0_1,
103 1, /* Elements count */
104 &asn_SPC_SIGNED_16P0_specs_1 /* Additional specs */
105};
106
107static asn_TYPE_member_t asn_MBR_signed_4[] = {
108 { ATF_NOFLAGS, 0, offsetof(struct Signed, a),
109 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
110 .tag_mode = 0,
111 .type = &asn_DEF_INTEGER,
112 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400113 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkina00d6b32006-03-21 03:40:38 +0000114 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
115 .default_value = 0,
116 .name = "a"
117 },
118};
Lev Walkina7591b52014-10-12 18:37:35 -0700119static const ber_tlv_tag_t asn_DEF_signed_tags_4[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000120 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
121};
Lev Walkina7591b52014-10-12 18:37:35 -0700122static const asn_TYPE_tag2member_t asn_MAP_signed_tag2el_4[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700123 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* a */
Lev Walkina00d6b32006-03-21 03:40:38 +0000124};
Lev Walkina7591b52014-10-12 18:37:35 -0700125static const uint8_t asn_MAP_signed_mmap_4[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000126 (1 << 7)
127};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800128static
129asn_SET_specifics_t asn_SPC_signed_specs_4 = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000130 sizeof(struct Signed),
131 offsetof(struct Signed, _asn_ctx),
132 offsetof(struct Signed, _presence_map),
133 asn_MAP_signed_tag2el_4,
134 1, /* Count of tags in the map */
135 asn_MAP_signed_tag2el_4, /* Same as above */
136 1, /* Count of tags in the CXER map */
137 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700138 (const unsigned int *)asn_MAP_signed_mmap_4 /* Mandatory elements map */
Lev Walkina00d6b32006-03-21 03:40:38 +0000139};
140static /* Use -fall-defs-global to expose */
141asn_TYPE_descriptor_t asn_DEF_signed_4 = {
142 "signed",
143 "signed",
144 SET_free,
145 SET_print,
146 SET_constraint,
147 SET_decode_ber,
148 SET_encode_der,
149 SET_decode_xer,
150 SET_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700151 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400152 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkina00d6b32006-03-21 03:40:38 +0000153 0, /* Use generic outmost tag fetcher */
154 asn_DEF_signed_tags_4,
155 sizeof(asn_DEF_signed_tags_4)
156 /sizeof(asn_DEF_signed_tags_4[0]), /* 1 */
157 asn_DEF_signed_tags_4, /* Same as above */
158 sizeof(asn_DEF_signed_tags_4)
159 /sizeof(asn_DEF_signed_tags_4[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400160 0, /* No OER visible constraints */
Lev Walkina00d6b32006-03-21 03:40:38 +0000161 0, /* No PER visible constraints */
162 asn_MBR_signed_4,
163 1, /* Elements count */
164 &asn_SPC_signed_specs_4 /* Additional specs */
165};
166
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800167asn_TYPE_member_t asn_MBR_SIGNED_16P1_3[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000168 { ATF_NOFLAGS, 0, offsetof(struct SIGNED_16P1, Signed),
169 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
170 .tag_mode = 0,
171 .type = &asn_DEF_signed_4,
172 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400173 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkina00d6b32006-03-21 03:40:38 +0000174 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
175 .default_value = 0,
176 .name = "signed"
177 },
178};
Lev Walkina7591b52014-10-12 18:37:35 -0700179static const ber_tlv_tag_t asn_DEF_SIGNED_16P1_tags_3[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000180 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
181};
Lev Walkina7591b52014-10-12 18:37:35 -0700182static const asn_TYPE_tag2member_t asn_MAP_SIGNED_16P1_tag2el_3[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700183 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* signed */
Lev Walkina00d6b32006-03-21 03:40:38 +0000184};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800185asn_SEQUENCE_specifics_t asn_SPC_SIGNED_16P1_specs_3 = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000186 sizeof(struct SIGNED_16P1),
187 offsetof(struct SIGNED_16P1, _asn_ctx),
188 asn_MAP_SIGNED_16P1_tag2el_3,
189 1, /* Count of tags in the map */
190 0, 0, 0, /* Optional elements (not needed) */
191 -1, /* Start extensions */
192 -1 /* Stop extensions */
193};
194asn_TYPE_descriptor_t asn_DEF_SIGNED_16P1 = {
195 "SIGNED",
196 "SIGNED",
197 SEQUENCE_free,
198 SEQUENCE_print,
199 SEQUENCE_constraint,
200 SEQUENCE_decode_ber,
201 SEQUENCE_encode_der,
202 SEQUENCE_decode_xer,
203 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700204 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400205 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkina00d6b32006-03-21 03:40:38 +0000206 0, /* Use generic outmost tag fetcher */
207 asn_DEF_SIGNED_16P1_tags_3,
208 sizeof(asn_DEF_SIGNED_16P1_tags_3)
209 /sizeof(asn_DEF_SIGNED_16P1_tags_3[0]), /* 1 */
210 asn_DEF_SIGNED_16P1_tags_3, /* Same as above */
211 sizeof(asn_DEF_SIGNED_16P1_tags_3)
212 /sizeof(asn_DEF_SIGNED_16P1_tags_3[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400213 0, /* No OER visible constraints */
Lev Walkina00d6b32006-03-21 03:40:38 +0000214 0, /* No PER visible constraints */
215 asn_MBR_SIGNED_16P1_3,
216 1, /* Elements count */
217 &asn_SPC_SIGNED_16P1_specs_3 /* Additional specs */
218};
219
220
221/*** <<< INCLUDES [SignedREAL] >>> ***/
222
Lev Walkin22b5ed42006-09-13 02:51:20 +0000223#include "SIGNED.h"
Lev Walkina00d6b32006-03-21 03:40:38 +0000224
225/*** <<< TYPE-DECLS [SignedREAL] >>> ***/
226
227typedef SIGNED_16P0_t SignedREAL_t;
228
229/*** <<< FUNC-DECLS [SignedREAL] >>> ***/
230
231extern asn_TYPE_descriptor_t asn_DEF_SignedREAL;
232asn_struct_free_f SignedREAL_free;
233asn_struct_print_f SignedREAL_print;
234asn_constr_check_f SignedREAL_constraint;
235ber_type_decoder_f SignedREAL_decode_ber;
236der_type_encoder_f SignedREAL_encode_der;
237xer_type_decoder_f SignedREAL_decode_xer;
238xer_type_encoder_f SignedREAL_encode_xer;
239
240/*** <<< CODE [SignedREAL] >>> ***/
241
Lev Walkina00d6b32006-03-21 03:40:38 +0000242/*
243 * This type is implemented using SIGNED_16P0,
244 * so here we adjust the DEF accordingly.
245 */
Lev Walkina00d6b32006-03-21 03:40:38 +0000246
247/*** <<< STAT-DEFS [SignedREAL] >>> ***/
248
Lev Walkina7591b52014-10-12 18:37:35 -0700249static const ber_tlv_tag_t asn_DEF_SignedREAL_tags_1[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000250 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
251};
252asn_TYPE_descriptor_t asn_DEF_SignedREAL = {
253 "SignedREAL",
254 "SignedREAL",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800255 SEQUENCE_free,
256 SEQUENCE_print,
257 SEQUENCE_constraint,
258 SEQUENCE_decode_ber,
259 SEQUENCE_encode_der,
260 SEQUENCE_decode_xer,
261 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700262 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400263 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkina00d6b32006-03-21 03:40:38 +0000264 0, /* Use generic outmost tag fetcher */
265 asn_DEF_SignedREAL_tags_1,
266 sizeof(asn_DEF_SignedREAL_tags_1)
267 /sizeof(asn_DEF_SignedREAL_tags_1[0]), /* 1 */
268 asn_DEF_SignedREAL_tags_1, /* Same as above */
269 sizeof(asn_DEF_SignedREAL_tags_1)
270 /sizeof(asn_DEF_SignedREAL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400271 0, /* No OER visible constraints */
Lev Walkina00d6b32006-03-21 03:40:38 +0000272 0, /* No PER visible constraints */
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800273 asn_MBR_SIGNED_16P0_1,
274 1, /* Elements count */
275 &asn_SPC_SIGNED_16P0_specs_1 /* Additional specs */
Lev Walkina00d6b32006-03-21 03:40:38 +0000276};
277
278
279/*** <<< INCLUDES [SignedSET] >>> ***/
280
Lev Walkin22b5ed42006-09-13 02:51:20 +0000281#include "SIGNED.h"
Lev Walkina00d6b32006-03-21 03:40:38 +0000282
283/*** <<< TYPE-DECLS [SignedSET] >>> ***/
284
285typedef SIGNED_16P1_t SignedSET_t;
286
287/*** <<< FUNC-DECLS [SignedSET] >>> ***/
288
289extern asn_TYPE_descriptor_t asn_DEF_SignedSET;
290asn_struct_free_f SignedSET_free;
291asn_struct_print_f SignedSET_print;
292asn_constr_check_f SignedSET_constraint;
293ber_type_decoder_f SignedSET_decode_ber;
294der_type_encoder_f SignedSET_encode_der;
295xer_type_decoder_f SignedSET_decode_xer;
296xer_type_encoder_f SignedSET_encode_xer;
297
298/*** <<< CODE [SignedSET] >>> ***/
299
Lev Walkina00d6b32006-03-21 03:40:38 +0000300/*
301 * This type is implemented using SIGNED_16P1,
302 * so here we adjust the DEF accordingly.
303 */
Lev Walkina00d6b32006-03-21 03:40:38 +0000304
305/*** <<< STAT-DEFS [SignedSET] >>> ***/
306
Lev Walkina7591b52014-10-12 18:37:35 -0700307static const ber_tlv_tag_t asn_DEF_SignedSET_tags_1[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000308 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
309};
310asn_TYPE_descriptor_t asn_DEF_SignedSET = {
311 "SignedSET",
312 "SignedSET",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800313 SEQUENCE_free,
314 SEQUENCE_print,
315 SEQUENCE_constraint,
316 SEQUENCE_decode_ber,
317 SEQUENCE_encode_der,
318 SEQUENCE_decode_xer,
319 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700320 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400321 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkina00d6b32006-03-21 03:40:38 +0000322 0, /* Use generic outmost tag fetcher */
323 asn_DEF_SignedSET_tags_1,
324 sizeof(asn_DEF_SignedSET_tags_1)
325 /sizeof(asn_DEF_SignedSET_tags_1[0]), /* 1 */
326 asn_DEF_SignedSET_tags_1, /* Same as above */
327 sizeof(asn_DEF_SignedSET_tags_1)
328 /sizeof(asn_DEF_SignedSET_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400329 0, /* No OER visible constraints */
Lev Walkina00d6b32006-03-21 03:40:38 +0000330 0, /* No PER visible constraints */
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800331 asn_MBR_SIGNED_16P1_3,
332 1, /* Elements count */
333 &asn_SPC_SIGNED_16P1_specs_3 /* Additional specs */
Lev Walkina00d6b32006-03-21 03:40:38 +0000334};
335