blob: 603d9a71b5b5adfe0a200059847402103b12d66e [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 Walkina00d6b32006-03-21 03:40:38 +000061 .default_value = 0,
62 .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) */
77 -1, /* Start extensions */
78 -1 /* Stop extensions */
79};
80asn_TYPE_descriptor_t asn_DEF_SIGNED_16P0 = {
81 "SIGNED",
82 "SIGNED",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080083 &asn_OP_SEQUENCE,
Lev Walkina00d6b32006-03-21 03:40:38 +000084 asn_DEF_SIGNED_16P0_tags_1,
85 sizeof(asn_DEF_SIGNED_16P0_tags_1)
86 /sizeof(asn_DEF_SIGNED_16P0_tags_1[0]), /* 1 */
87 asn_DEF_SIGNED_16P0_tags_1, /* Same as above */
88 sizeof(asn_DEF_SIGNED_16P0_tags_1)
89 /sizeof(asn_DEF_SIGNED_16P0_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -070090 { 0, 0, SEQUENCE_constraint },
Lev Walkina00d6b32006-03-21 03:40:38 +000091 asn_MBR_SIGNED_16P0_1,
92 1, /* Elements count */
93 &asn_SPC_SIGNED_16P0_specs_1 /* Additional specs */
94};
95
96static asn_TYPE_member_t asn_MBR_signed_4[] = {
97 { ATF_NOFLAGS, 0, offsetof(struct Signed, a),
98 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
99 .tag_mode = 0,
100 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700101 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700102 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkina00d6b32006-03-21 03:40:38 +0000103 .default_value = 0,
104 .name = "a"
105 },
106};
Lev Walkina7591b52014-10-12 18:37:35 -0700107static const ber_tlv_tag_t asn_DEF_signed_tags_4[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000108 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
109};
Lev Walkina7591b52014-10-12 18:37:35 -0700110static const asn_TYPE_tag2member_t asn_MAP_signed_tag2el_4[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700111 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* a */
Lev Walkina00d6b32006-03-21 03:40:38 +0000112};
Lev Walkina7591b52014-10-12 18:37:35 -0700113static const uint8_t asn_MAP_signed_mmap_4[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000114 (1 << 7)
115};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800116static
117asn_SET_specifics_t asn_SPC_signed_specs_4 = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000118 sizeof(struct Signed),
119 offsetof(struct Signed, _asn_ctx),
120 offsetof(struct Signed, _presence_map),
Lev Walkine3917082017-08-23 10:29:38 -0700121 .tag2el = asn_MAP_signed_tag2el_4,
122 .tag2el_count = 1, /* Count of tags in the map */
Lev Walkina00d6b32006-03-21 03:40:38 +0000123 asn_MAP_signed_tag2el_4, /* Same as above */
124 1, /* Count of tags in the CXER map */
125 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700126 (const unsigned int *)asn_MAP_signed_mmap_4 /* Mandatory elements map */
Lev Walkina00d6b32006-03-21 03:40:38 +0000127};
128static /* Use -fall-defs-global to expose */
129asn_TYPE_descriptor_t asn_DEF_signed_4 = {
130 "signed",
131 "signed",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800132 &asn_OP_SET,
Lev Walkina00d6b32006-03-21 03:40:38 +0000133 asn_DEF_signed_tags_4,
134 sizeof(asn_DEF_signed_tags_4)
135 /sizeof(asn_DEF_signed_tags_4[0]), /* 1 */
136 asn_DEF_signed_tags_4, /* Same as above */
137 sizeof(asn_DEF_signed_tags_4)
138 /sizeof(asn_DEF_signed_tags_4[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700139 { 0, 0, SET_constraint },
Lev Walkina00d6b32006-03-21 03:40:38 +0000140 asn_MBR_signed_4,
141 1, /* Elements count */
142 &asn_SPC_signed_specs_4 /* Additional specs */
143};
144
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800145asn_TYPE_member_t asn_MBR_SIGNED_16P1_3[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000146 { ATF_NOFLAGS, 0, offsetof(struct SIGNED_16P1, Signed),
147 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
148 .tag_mode = 0,
149 .type = &asn_DEF_signed_4,
Lev Walkin67a30122017-08-10 05:48:54 -0700150 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700151 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkina00d6b32006-03-21 03:40:38 +0000152 .default_value = 0,
153 .name = "signed"
154 },
155};
Lev Walkina7591b52014-10-12 18:37:35 -0700156static const ber_tlv_tag_t asn_DEF_SIGNED_16P1_tags_3[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000157 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
158};
Lev Walkina7591b52014-10-12 18:37:35 -0700159static const asn_TYPE_tag2member_t asn_MAP_SIGNED_16P1_tag2el_3[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700160 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* signed */
Lev Walkina00d6b32006-03-21 03:40:38 +0000161};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800162asn_SEQUENCE_specifics_t asn_SPC_SIGNED_16P1_specs_3 = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000163 sizeof(struct SIGNED_16P1),
164 offsetof(struct SIGNED_16P1, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700165 .tag2el = asn_MAP_SIGNED_16P1_tag2el_3,
166 .tag2el_count = 1, /* Count of tags in the map */
Lev Walkina00d6b32006-03-21 03:40:38 +0000167 0, 0, 0, /* Optional elements (not needed) */
168 -1, /* Start extensions */
169 -1 /* Stop extensions */
170};
171asn_TYPE_descriptor_t asn_DEF_SIGNED_16P1 = {
172 "SIGNED",
173 "SIGNED",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800174 &asn_OP_SEQUENCE,
Lev Walkina00d6b32006-03-21 03:40:38 +0000175 asn_DEF_SIGNED_16P1_tags_3,
176 sizeof(asn_DEF_SIGNED_16P1_tags_3)
177 /sizeof(asn_DEF_SIGNED_16P1_tags_3[0]), /* 1 */
178 asn_DEF_SIGNED_16P1_tags_3, /* Same as above */
179 sizeof(asn_DEF_SIGNED_16P1_tags_3)
180 /sizeof(asn_DEF_SIGNED_16P1_tags_3[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700181 { 0, 0, SEQUENCE_constraint },
Lev Walkina00d6b32006-03-21 03:40:38 +0000182 asn_MBR_SIGNED_16P1_3,
183 1, /* Elements count */
184 &asn_SPC_SIGNED_16P1_specs_3 /* Additional specs */
185};
186
187
188/*** <<< INCLUDES [SignedREAL] >>> ***/
189
Lev Walkin22b5ed42006-09-13 02:51:20 +0000190#include "SIGNED.h"
Lev Walkina00d6b32006-03-21 03:40:38 +0000191
192/*** <<< TYPE-DECLS [SignedREAL] >>> ***/
193
194typedef SIGNED_16P0_t SignedREAL_t;
195
196/*** <<< FUNC-DECLS [SignedREAL] >>> ***/
197
198extern asn_TYPE_descriptor_t asn_DEF_SignedREAL;
199asn_struct_free_f SignedREAL_free;
200asn_struct_print_f SignedREAL_print;
201asn_constr_check_f SignedREAL_constraint;
202ber_type_decoder_f SignedREAL_decode_ber;
203der_type_encoder_f SignedREAL_encode_der;
204xer_type_decoder_f SignedREAL_decode_xer;
205xer_type_encoder_f SignedREAL_encode_xer;
206
207/*** <<< CODE [SignedREAL] >>> ***/
208
Lev Walkina00d6b32006-03-21 03:40:38 +0000209/*
210 * This type is implemented using SIGNED_16P0,
211 * so here we adjust the DEF accordingly.
212 */
Lev Walkina00d6b32006-03-21 03:40:38 +0000213
214/*** <<< STAT-DEFS [SignedREAL] >>> ***/
215
Lev Walkina7591b52014-10-12 18:37:35 -0700216static const ber_tlv_tag_t asn_DEF_SignedREAL_tags_1[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000217 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
218};
219asn_TYPE_descriptor_t asn_DEF_SignedREAL = {
220 "SignedREAL",
221 "SignedREAL",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800222 &asn_OP_SEQUENCE,
Lev Walkina00d6b32006-03-21 03:40:38 +0000223 asn_DEF_SignedREAL_tags_1,
224 sizeof(asn_DEF_SignedREAL_tags_1)
225 /sizeof(asn_DEF_SignedREAL_tags_1[0]), /* 1 */
226 asn_DEF_SignedREAL_tags_1, /* Same as above */
227 sizeof(asn_DEF_SignedREAL_tags_1)
228 /sizeof(asn_DEF_SignedREAL_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700229 { 0, 0, SEQUENCE_constraint },
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800230 asn_MBR_SIGNED_16P0_1,
231 1, /* Elements count */
232 &asn_SPC_SIGNED_16P0_specs_1 /* Additional specs */
Lev Walkina00d6b32006-03-21 03:40:38 +0000233};
234
235
236/*** <<< INCLUDES [SignedSET] >>> ***/
237
Lev Walkin22b5ed42006-09-13 02:51:20 +0000238#include "SIGNED.h"
Lev Walkina00d6b32006-03-21 03:40:38 +0000239
240/*** <<< TYPE-DECLS [SignedSET] >>> ***/
241
242typedef SIGNED_16P1_t SignedSET_t;
243
244/*** <<< FUNC-DECLS [SignedSET] >>> ***/
245
246extern asn_TYPE_descriptor_t asn_DEF_SignedSET;
247asn_struct_free_f SignedSET_free;
248asn_struct_print_f SignedSET_print;
249asn_constr_check_f SignedSET_constraint;
250ber_type_decoder_f SignedSET_decode_ber;
251der_type_encoder_f SignedSET_encode_der;
252xer_type_decoder_f SignedSET_decode_xer;
253xer_type_encoder_f SignedSET_encode_xer;
254
255/*** <<< CODE [SignedSET] >>> ***/
256
Lev Walkina00d6b32006-03-21 03:40:38 +0000257/*
258 * This type is implemented using SIGNED_16P1,
259 * so here we adjust the DEF accordingly.
260 */
Lev Walkina00d6b32006-03-21 03:40:38 +0000261
262/*** <<< STAT-DEFS [SignedSET] >>> ***/
263
Lev Walkina7591b52014-10-12 18:37:35 -0700264static const ber_tlv_tag_t asn_DEF_SignedSET_tags_1[] = {
Lev Walkina00d6b32006-03-21 03:40:38 +0000265 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
266};
267asn_TYPE_descriptor_t asn_DEF_SignedSET = {
268 "SignedSET",
269 "SignedSET",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800270 &asn_OP_SEQUENCE,
Lev Walkina00d6b32006-03-21 03:40:38 +0000271 asn_DEF_SignedSET_tags_1,
272 sizeof(asn_DEF_SignedSET_tags_1)
273 /sizeof(asn_DEF_SignedSET_tags_1[0]), /* 1 */
274 asn_DEF_SignedSET_tags_1, /* Same as above */
275 sizeof(asn_DEF_SignedSET_tags_1)
276 /sizeof(asn_DEF_SignedSET_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700277 { 0, 0, SEQUENCE_constraint },
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800278 asn_MBR_SIGNED_16P1_3,
279 1, /* Elements count */
280 &asn_SPC_SIGNED_16P1_specs_3 /* Additional specs */
Lev Walkina00d6b32006-03-21 03:40:38 +0000281};
282