blob: 161208481cdc05c8c98b96a7d394b115a87886f4 [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,
Lev Walkin67a30122017-08-10 05:48:54 -070059 .type_selector = 0,
Lev Walkina00d6b32006-03-21 03:40:38 +000060 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040061 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkina00d6b32006-03-21 03:40:38 +000062 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
63 .default_value = 0,
64 .name = "signed"
65 },
66};
Lev Walkina7591b52014-10-12 18:37:35 -070067static const ber_tlv_tag_t asn_DEF_SIGNED_16P0_tags_1[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +000068 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
69};
Lev Walkina7591b52014-10-12 18:37:35 -070070static const asn_TYPE_tag2member_t asn_MAP_SIGNED_16P0_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -070071 { (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), 0, 0, 0 } /* signed */
Lev Walkina00d6b32006-03-21 03:40:38 +000072};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080073asn_SEQUENCE_specifics_t asn_SPC_SIGNED_16P0_specs_1 = {
Lev Walkina00d6b32006-03-21 03:40:38 +000074 sizeof(struct SIGNED_16P0),
75 offsetof(struct SIGNED_16P0, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -070076 .tag2el = asn_MAP_SIGNED_16P0_tag2el_1,
77 .tag2el_count = 1, /* Count of tags in the map */
Lev Walkina00d6b32006-03-21 03:40:38 +000078 0, 0, 0, /* Optional elements (not needed) */
79 -1, /* Start extensions */
80 -1 /* Stop extensions */
81};
82asn_TYPE_descriptor_t asn_DEF_SIGNED_16P0 = {
83 "SIGNED",
84 "SIGNED",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080085 &asn_OP_SEQUENCE,
Lev Walkina00d6b32006-03-21 03:40:38 +000086 SEQUENCE_constraint,
Lev Walkina00d6b32006-03-21 03:40:38 +000087 asn_DEF_SIGNED_16P0_tags_1,
88 sizeof(asn_DEF_SIGNED_16P0_tags_1)
89 /sizeof(asn_DEF_SIGNED_16P0_tags_1[0]), /* 1 */
90 asn_DEF_SIGNED_16P0_tags_1, /* Same as above */
91 sizeof(asn_DEF_SIGNED_16P0_tags_1)
92 /sizeof(asn_DEF_SIGNED_16P0_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +040093 0, /* No OER visible constraints */
Lev Walkina00d6b32006-03-21 03:40:38 +000094 0, /* No PER visible constraints */
95 asn_MBR_SIGNED_16P0_1,
96 1, /* Elements count */
97 &asn_SPC_SIGNED_16P0_specs_1 /* Additional specs */
98};
99
100static asn_TYPE_member_t asn_MBR_signed_4[] = {
101 { ATF_NOFLAGS, 0, offsetof(struct Signed, a),
102 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
103 .tag_mode = 0,
104 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700105 .type_selector = 0,
Lev Walkina00d6b32006-03-21 03:40:38 +0000106 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400107 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkina00d6b32006-03-21 03:40:38 +0000108 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
109 .default_value = 0,
110 .name = "a"
111 },
112};
Lev Walkina7591b52014-10-12 18:37:35 -0700113static const ber_tlv_tag_t asn_DEF_signed_tags_4[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000114 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
115};
Lev Walkina7591b52014-10-12 18:37:35 -0700116static const asn_TYPE_tag2member_t asn_MAP_signed_tag2el_4[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700117 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* a */
Lev Walkina00d6b32006-03-21 03:40:38 +0000118};
Lev Walkina7591b52014-10-12 18:37:35 -0700119static const uint8_t asn_MAP_signed_mmap_4[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000120 (1 << 7)
121};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800122static
123asn_SET_specifics_t asn_SPC_signed_specs_4 = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000124 sizeof(struct Signed),
125 offsetof(struct Signed, _asn_ctx),
126 offsetof(struct Signed, _presence_map),
Lev Walkine3917082017-08-23 10:29:38 -0700127 .tag2el = asn_MAP_signed_tag2el_4,
128 .tag2el_count = 1, /* Count of tags in the map */
Lev Walkina00d6b32006-03-21 03:40:38 +0000129 asn_MAP_signed_tag2el_4, /* Same as above */
130 1, /* Count of tags in the CXER map */
131 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700132 (const unsigned int *)asn_MAP_signed_mmap_4 /* Mandatory elements map */
Lev Walkina00d6b32006-03-21 03:40:38 +0000133};
134static /* Use -fall-defs-global to expose */
135asn_TYPE_descriptor_t asn_DEF_signed_4 = {
136 "signed",
137 "signed",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800138 &asn_OP_SET,
Lev Walkina00d6b32006-03-21 03:40:38 +0000139 SET_constraint,
Lev Walkina00d6b32006-03-21 03:40:38 +0000140 asn_DEF_signed_tags_4,
141 sizeof(asn_DEF_signed_tags_4)
142 /sizeof(asn_DEF_signed_tags_4[0]), /* 1 */
143 asn_DEF_signed_tags_4, /* Same as above */
144 sizeof(asn_DEF_signed_tags_4)
145 /sizeof(asn_DEF_signed_tags_4[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400146 0, /* No OER visible constraints */
Lev Walkina00d6b32006-03-21 03:40:38 +0000147 0, /* No PER visible constraints */
148 asn_MBR_signed_4,
149 1, /* Elements count */
150 &asn_SPC_signed_specs_4 /* Additional specs */
151};
152
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800153asn_TYPE_member_t asn_MBR_SIGNED_16P1_3[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000154 { ATF_NOFLAGS, 0, offsetof(struct SIGNED_16P1, Signed),
155 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
156 .tag_mode = 0,
157 .type = &asn_DEF_signed_4,
Lev Walkin67a30122017-08-10 05:48:54 -0700158 .type_selector = 0,
Lev Walkina00d6b32006-03-21 03:40:38 +0000159 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400160 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkina00d6b32006-03-21 03:40:38 +0000161 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
162 .default_value = 0,
163 .name = "signed"
164 },
165};
Lev Walkina7591b52014-10-12 18:37:35 -0700166static const ber_tlv_tag_t asn_DEF_SIGNED_16P1_tags_3[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000167 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
168};
Lev Walkina7591b52014-10-12 18:37:35 -0700169static const asn_TYPE_tag2member_t asn_MAP_SIGNED_16P1_tag2el_3[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700170 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* signed */
Lev Walkina00d6b32006-03-21 03:40:38 +0000171};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800172asn_SEQUENCE_specifics_t asn_SPC_SIGNED_16P1_specs_3 = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000173 sizeof(struct SIGNED_16P1),
174 offsetof(struct SIGNED_16P1, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700175 .tag2el = asn_MAP_SIGNED_16P1_tag2el_3,
176 .tag2el_count = 1, /* Count of tags in the map */
Lev Walkina00d6b32006-03-21 03:40:38 +0000177 0, 0, 0, /* Optional elements (not needed) */
178 -1, /* Start extensions */
179 -1 /* Stop extensions */
180};
181asn_TYPE_descriptor_t asn_DEF_SIGNED_16P1 = {
182 "SIGNED",
183 "SIGNED",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800184 &asn_OP_SEQUENCE,
Lev Walkina00d6b32006-03-21 03:40:38 +0000185 SEQUENCE_constraint,
Lev Walkina00d6b32006-03-21 03:40:38 +0000186 asn_DEF_SIGNED_16P1_tags_3,
187 sizeof(asn_DEF_SIGNED_16P1_tags_3)
188 /sizeof(asn_DEF_SIGNED_16P1_tags_3[0]), /* 1 */
189 asn_DEF_SIGNED_16P1_tags_3, /* Same as above */
190 sizeof(asn_DEF_SIGNED_16P1_tags_3)
191 /sizeof(asn_DEF_SIGNED_16P1_tags_3[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400192 0, /* No OER visible constraints */
Lev Walkina00d6b32006-03-21 03:40:38 +0000193 0, /* No PER visible constraints */
194 asn_MBR_SIGNED_16P1_3,
195 1, /* Elements count */
196 &asn_SPC_SIGNED_16P1_specs_3 /* Additional specs */
197};
198
199
200/*** <<< INCLUDES [SignedREAL] >>> ***/
201
Lev Walkin22b5ed42006-09-13 02:51:20 +0000202#include "SIGNED.h"
Lev Walkina00d6b32006-03-21 03:40:38 +0000203
204/*** <<< TYPE-DECLS [SignedREAL] >>> ***/
205
206typedef SIGNED_16P0_t SignedREAL_t;
207
208/*** <<< FUNC-DECLS [SignedREAL] >>> ***/
209
210extern asn_TYPE_descriptor_t asn_DEF_SignedREAL;
211asn_struct_free_f SignedREAL_free;
212asn_struct_print_f SignedREAL_print;
213asn_constr_check_f SignedREAL_constraint;
214ber_type_decoder_f SignedREAL_decode_ber;
215der_type_encoder_f SignedREAL_encode_der;
216xer_type_decoder_f SignedREAL_decode_xer;
217xer_type_encoder_f SignedREAL_encode_xer;
218
219/*** <<< CODE [SignedREAL] >>> ***/
220
Lev Walkina00d6b32006-03-21 03:40:38 +0000221/*
222 * This type is implemented using SIGNED_16P0,
223 * so here we adjust the DEF accordingly.
224 */
Lev Walkina00d6b32006-03-21 03:40:38 +0000225
226/*** <<< STAT-DEFS [SignedREAL] >>> ***/
227
Lev Walkina7591b52014-10-12 18:37:35 -0700228static const ber_tlv_tag_t asn_DEF_SignedREAL_tags_1[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000229 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
230};
231asn_TYPE_descriptor_t asn_DEF_SignedREAL = {
232 "SignedREAL",
233 "SignedREAL",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800234 &asn_OP_SEQUENCE,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800235 SEQUENCE_constraint,
Lev Walkina00d6b32006-03-21 03:40:38 +0000236 asn_DEF_SignedREAL_tags_1,
237 sizeof(asn_DEF_SignedREAL_tags_1)
238 /sizeof(asn_DEF_SignedREAL_tags_1[0]), /* 1 */
239 asn_DEF_SignedREAL_tags_1, /* Same as above */
240 sizeof(asn_DEF_SignedREAL_tags_1)
241 /sizeof(asn_DEF_SignedREAL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400242 0, /* No OER visible constraints */
Lev Walkina00d6b32006-03-21 03:40:38 +0000243 0, /* No PER visible constraints */
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800244 asn_MBR_SIGNED_16P0_1,
245 1, /* Elements count */
246 &asn_SPC_SIGNED_16P0_specs_1 /* Additional specs */
Lev Walkina00d6b32006-03-21 03:40:38 +0000247};
248
249
250/*** <<< INCLUDES [SignedSET] >>> ***/
251
Lev Walkin22b5ed42006-09-13 02:51:20 +0000252#include "SIGNED.h"
Lev Walkina00d6b32006-03-21 03:40:38 +0000253
254/*** <<< TYPE-DECLS [SignedSET] >>> ***/
255
256typedef SIGNED_16P1_t SignedSET_t;
257
258/*** <<< FUNC-DECLS [SignedSET] >>> ***/
259
260extern asn_TYPE_descriptor_t asn_DEF_SignedSET;
261asn_struct_free_f SignedSET_free;
262asn_struct_print_f SignedSET_print;
263asn_constr_check_f SignedSET_constraint;
264ber_type_decoder_f SignedSET_decode_ber;
265der_type_encoder_f SignedSET_encode_der;
266xer_type_decoder_f SignedSET_decode_xer;
267xer_type_encoder_f SignedSET_encode_xer;
268
269/*** <<< CODE [SignedSET] >>> ***/
270
Lev Walkina00d6b32006-03-21 03:40:38 +0000271/*
272 * This type is implemented using SIGNED_16P1,
273 * so here we adjust the DEF accordingly.
274 */
Lev Walkina00d6b32006-03-21 03:40:38 +0000275
276/*** <<< STAT-DEFS [SignedSET] >>> ***/
277
Lev Walkina7591b52014-10-12 18:37:35 -0700278static const ber_tlv_tag_t asn_DEF_SignedSET_tags_1[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000279 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
280};
281asn_TYPE_descriptor_t asn_DEF_SignedSET = {
282 "SignedSET",
283 "SignedSET",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800284 &asn_OP_SEQUENCE,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800285 SEQUENCE_constraint,
Lev Walkina00d6b32006-03-21 03:40:38 +0000286 asn_DEF_SignedSET_tags_1,
287 sizeof(asn_DEF_SignedSET_tags_1)
288 /sizeof(asn_DEF_SignedSET_tags_1[0]), /* 1 */
289 asn_DEF_SignedSET_tags_1, /* Same as above */
290 sizeof(asn_DEF_SignedSET_tags_1)
291 /sizeof(asn_DEF_SignedSET_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400292 0, /* No OER visible constraints */
Lev Walkina00d6b32006-03-21 03:40:38 +0000293 0, /* No PER visible constraints */
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800294 asn_MBR_SIGNED_16P1_3,
295 1, /* Elements count */
296 &asn_SPC_SIGNED_16P1_specs_3 /* Additional specs */
Lev Walkina00d6b32006-03-21 03:40:38 +0000297};
298