blob: 0535c89aafda1066108b991b4f9bd522a57955a1 [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 Walkin0bfea562017-09-29 23:16:48 -070060 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -070061 0, 0, /* No default value */
Lev Walkina00d6b32006-03-21 03:40:38 +000062 .name = "signed"
63 },
64};
Lev Walkina7591b52014-10-12 18:37:35 -070065static const ber_tlv_tag_t asn_DEF_SIGNED_16P0_tags_1[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +000066 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
67};
Lev Walkina7591b52014-10-12 18:37:35 -070068static const asn_TYPE_tag2member_t asn_MAP_SIGNED_16P0_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -070069 { (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), 0, 0, 0 } /* signed */
Lev Walkina00d6b32006-03-21 03:40:38 +000070};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080071asn_SEQUENCE_specifics_t asn_SPC_SIGNED_16P0_specs_1 = {
Lev Walkina00d6b32006-03-21 03:40:38 +000072 sizeof(struct SIGNED_16P0),
73 offsetof(struct SIGNED_16P0, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -070074 .tag2el = asn_MAP_SIGNED_16P0_tag2el_1,
75 .tag2el_count = 1, /* Count of tags in the map */
Lev Walkina00d6b32006-03-21 03:40:38 +000076 0, 0, 0, /* Optional elements (not needed) */
Lev Walkindf2edbb2017-10-21 13:40:07 -070077 -1, /* First extension addition */
Lev Walkina00d6b32006-03-21 03:40:38 +000078};
79asn_TYPE_descriptor_t asn_DEF_SIGNED_16P0 = {
80 "SIGNED",
81 "SIGNED",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080082 &asn_OP_SEQUENCE,
Lev Walkina00d6b32006-03-21 03:40:38 +000083 asn_DEF_SIGNED_16P0_tags_1,
84 sizeof(asn_DEF_SIGNED_16P0_tags_1)
85 /sizeof(asn_DEF_SIGNED_16P0_tags_1[0]), /* 1 */
86 asn_DEF_SIGNED_16P0_tags_1, /* Same as above */
87 sizeof(asn_DEF_SIGNED_16P0_tags_1)
88 /sizeof(asn_DEF_SIGNED_16P0_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -070089 { 0, 0, SEQUENCE_constraint },
Lev Walkina00d6b32006-03-21 03:40:38 +000090 asn_MBR_SIGNED_16P0_1,
91 1, /* Elements count */
92 &asn_SPC_SIGNED_16P0_specs_1 /* Additional specs */
93};
94
95static asn_TYPE_member_t asn_MBR_signed_4[] = {
96 { ATF_NOFLAGS, 0, offsetof(struct Signed, a),
97 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
98 .tag_mode = 0,
99 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700100 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700101 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700102 0, 0, /* No default value */
Lev Walkina00d6b32006-03-21 03:40:38 +0000103 .name = "a"
104 },
105};
Lev Walkina7591b52014-10-12 18:37:35 -0700106static const ber_tlv_tag_t asn_DEF_signed_tags_4[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000107 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
108};
Lev Walkina7591b52014-10-12 18:37:35 -0700109static const asn_TYPE_tag2member_t asn_MAP_signed_tag2el_4[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700110 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* a */
Lev Walkina00d6b32006-03-21 03:40:38 +0000111};
Lev Walkina7591b52014-10-12 18:37:35 -0700112static const uint8_t asn_MAP_signed_mmap_4[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000113 (1 << 7)
114};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800115static
116asn_SET_specifics_t asn_SPC_signed_specs_4 = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000117 sizeof(struct Signed),
118 offsetof(struct Signed, _asn_ctx),
119 offsetof(struct Signed, _presence_map),
Lev Walkine3917082017-08-23 10:29:38 -0700120 .tag2el = asn_MAP_signed_tag2el_4,
121 .tag2el_count = 1, /* Count of tags in the map */
Lev Walkina00d6b32006-03-21 03:40:38 +0000122 asn_MAP_signed_tag2el_4, /* Same as above */
123 1, /* Count of tags in the CXER map */
124 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700125 (const unsigned int *)asn_MAP_signed_mmap_4 /* Mandatory elements map */
Lev Walkina00d6b32006-03-21 03:40:38 +0000126};
127static /* Use -fall-defs-global to expose */
128asn_TYPE_descriptor_t asn_DEF_signed_4 = {
129 "signed",
130 "signed",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800131 &asn_OP_SET,
Lev Walkina00d6b32006-03-21 03:40:38 +0000132 asn_DEF_signed_tags_4,
133 sizeof(asn_DEF_signed_tags_4)
134 /sizeof(asn_DEF_signed_tags_4[0]), /* 1 */
135 asn_DEF_signed_tags_4, /* Same as above */
136 sizeof(asn_DEF_signed_tags_4)
137 /sizeof(asn_DEF_signed_tags_4[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700138 { 0, 0, SET_constraint },
Lev Walkina00d6b32006-03-21 03:40:38 +0000139 asn_MBR_signed_4,
140 1, /* Elements count */
141 &asn_SPC_signed_specs_4 /* Additional specs */
142};
143
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800144asn_TYPE_member_t asn_MBR_SIGNED_16P1_3[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000145 { ATF_NOFLAGS, 0, offsetof(struct SIGNED_16P1, Signed),
146 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
147 .tag_mode = 0,
148 .type = &asn_DEF_signed_4,
Lev Walkin67a30122017-08-10 05:48:54 -0700149 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700150 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700151 0, 0, /* No default value */
Lev Walkina00d6b32006-03-21 03:40:38 +0000152 .name = "signed"
153 },
154};
Lev Walkina7591b52014-10-12 18:37:35 -0700155static const ber_tlv_tag_t asn_DEF_SIGNED_16P1_tags_3[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000156 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
157};
Lev Walkina7591b52014-10-12 18:37:35 -0700158static const asn_TYPE_tag2member_t asn_MAP_SIGNED_16P1_tag2el_3[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700159 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* signed */
Lev Walkina00d6b32006-03-21 03:40:38 +0000160};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800161asn_SEQUENCE_specifics_t asn_SPC_SIGNED_16P1_specs_3 = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000162 sizeof(struct SIGNED_16P1),
163 offsetof(struct SIGNED_16P1, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700164 .tag2el = asn_MAP_SIGNED_16P1_tag2el_3,
165 .tag2el_count = 1, /* Count of tags in the map */
Lev Walkina00d6b32006-03-21 03:40:38 +0000166 0, 0, 0, /* Optional elements (not needed) */
Lev Walkindf2edbb2017-10-21 13:40:07 -0700167 -1, /* First extension addition */
Lev Walkina00d6b32006-03-21 03:40:38 +0000168};
169asn_TYPE_descriptor_t asn_DEF_SIGNED_16P1 = {
170 "SIGNED",
171 "SIGNED",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800172 &asn_OP_SEQUENCE,
Lev Walkina00d6b32006-03-21 03:40:38 +0000173 asn_DEF_SIGNED_16P1_tags_3,
174 sizeof(asn_DEF_SIGNED_16P1_tags_3)
175 /sizeof(asn_DEF_SIGNED_16P1_tags_3[0]), /* 1 */
176 asn_DEF_SIGNED_16P1_tags_3, /* Same as above */
177 sizeof(asn_DEF_SIGNED_16P1_tags_3)
178 /sizeof(asn_DEF_SIGNED_16P1_tags_3[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700179 { 0, 0, SEQUENCE_constraint },
Lev Walkina00d6b32006-03-21 03:40:38 +0000180 asn_MBR_SIGNED_16P1_3,
181 1, /* Elements count */
182 &asn_SPC_SIGNED_16P1_specs_3 /* Additional specs */
183};
184
185
186/*** <<< INCLUDES [SignedREAL] >>> ***/
187
Lev Walkin22b5ed42006-09-13 02:51:20 +0000188#include "SIGNED.h"
Lev Walkina00d6b32006-03-21 03:40:38 +0000189
190/*** <<< TYPE-DECLS [SignedREAL] >>> ***/
191
192typedef SIGNED_16P0_t SignedREAL_t;
193
194/*** <<< FUNC-DECLS [SignedREAL] >>> ***/
195
196extern asn_TYPE_descriptor_t asn_DEF_SignedREAL;
197asn_struct_free_f SignedREAL_free;
198asn_struct_print_f SignedREAL_print;
199asn_constr_check_f SignedREAL_constraint;
200ber_type_decoder_f SignedREAL_decode_ber;
201der_type_encoder_f SignedREAL_encode_der;
202xer_type_decoder_f SignedREAL_decode_xer;
203xer_type_encoder_f SignedREAL_encode_xer;
204
205/*** <<< CODE [SignedREAL] >>> ***/
206
Lev Walkina00d6b32006-03-21 03:40:38 +0000207/*
208 * This type is implemented using SIGNED_16P0,
209 * so here we adjust the DEF accordingly.
210 */
Lev Walkina00d6b32006-03-21 03:40:38 +0000211
212/*** <<< STAT-DEFS [SignedREAL] >>> ***/
213
Lev Walkina7591b52014-10-12 18:37:35 -0700214static const ber_tlv_tag_t asn_DEF_SignedREAL_tags_1[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000215 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
216};
217asn_TYPE_descriptor_t asn_DEF_SignedREAL = {
218 "SignedREAL",
219 "SignedREAL",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800220 &asn_OP_SEQUENCE,
Lev Walkina00d6b32006-03-21 03:40:38 +0000221 asn_DEF_SignedREAL_tags_1,
222 sizeof(asn_DEF_SignedREAL_tags_1)
223 /sizeof(asn_DEF_SignedREAL_tags_1[0]), /* 1 */
224 asn_DEF_SignedREAL_tags_1, /* Same as above */
225 sizeof(asn_DEF_SignedREAL_tags_1)
226 /sizeof(asn_DEF_SignedREAL_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700227 { 0, 0, SEQUENCE_constraint },
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800228 asn_MBR_SIGNED_16P0_1,
229 1, /* Elements count */
230 &asn_SPC_SIGNED_16P0_specs_1 /* Additional specs */
Lev Walkina00d6b32006-03-21 03:40:38 +0000231};
232
233
234/*** <<< INCLUDES [SignedSET] >>> ***/
235
Lev Walkin22b5ed42006-09-13 02:51:20 +0000236#include "SIGNED.h"
Lev Walkina00d6b32006-03-21 03:40:38 +0000237
238/*** <<< TYPE-DECLS [SignedSET] >>> ***/
239
240typedef SIGNED_16P1_t SignedSET_t;
241
242/*** <<< FUNC-DECLS [SignedSET] >>> ***/
243
244extern asn_TYPE_descriptor_t asn_DEF_SignedSET;
245asn_struct_free_f SignedSET_free;
246asn_struct_print_f SignedSET_print;
247asn_constr_check_f SignedSET_constraint;
248ber_type_decoder_f SignedSET_decode_ber;
249der_type_encoder_f SignedSET_encode_der;
250xer_type_decoder_f SignedSET_decode_xer;
251xer_type_encoder_f SignedSET_encode_xer;
252
253/*** <<< CODE [SignedSET] >>> ***/
254
Lev Walkina00d6b32006-03-21 03:40:38 +0000255/*
256 * This type is implemented using SIGNED_16P1,
257 * so here we adjust the DEF accordingly.
258 */
Lev Walkina00d6b32006-03-21 03:40:38 +0000259
260/*** <<< STAT-DEFS [SignedSET] >>> ***/
261
Lev Walkina7591b52014-10-12 18:37:35 -0700262static const ber_tlv_tag_t asn_DEF_SignedSET_tags_1[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000263 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
264};
265asn_TYPE_descriptor_t asn_DEF_SignedSET = {
266 "SignedSET",
267 "SignedSET",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800268 &asn_OP_SEQUENCE,
Lev Walkina00d6b32006-03-21 03:40:38 +0000269 asn_DEF_SignedSET_tags_1,
270 sizeof(asn_DEF_SignedSET_tags_1)
271 /sizeof(asn_DEF_SignedSET_tags_1[0]), /* 1 */
272 asn_DEF_SignedSET_tags_1, /* Same as above */
273 sizeof(asn_DEF_SignedSET_tags_1)
274 /sizeof(asn_DEF_SignedSET_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700275 { 0, 0, SEQUENCE_constraint },
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800276 asn_MBR_SIGNED_16P1_3,
277 1, /* Elements count */
278 &asn_SPC_SIGNED_16P1_specs_3 /* Additional specs */
Lev Walkina00d6b32006-03-21 03:40:38 +0000279};
280