2 /*** <<< INCLUDES [SIGNED] >>> ***/
5 #include <constr_SEQUENCE.h>
7 #include <constr_SET.h>
9 /*** <<< DEPS [SIGNED] >>> ***/
13 * Method of determining the components presence
15 typedef enum signed_PR {
16 signed_PR_a, /* Member a is present */
19 /*** <<< TYPE-DECLS [SIGNED] >>> ***/
21 typedef struct SIGNED_16P0 {
24 /* Context for parsing across buffer boundaries */
25 asn_struct_ctx_t _asn_ctx;
27 typedef struct SIGNED_16P1 {
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)))];
35 /* Context for parsing across buffer boundaries */
36 asn_struct_ctx_t _asn_ctx;
39 /* Context for parsing across buffer boundaries */
40 asn_struct_ctx_t _asn_ctx;
43 /*** <<< FUNC-DECLS [SIGNED] >>> ***/
45 extern asn_TYPE_descriptor_t asn_DEF_SIGNED_16P0;
46 extern asn_SEQUENCE_specifics_t asn_SPC_SIGNED_16P0_specs_1;
47 extern asn_TYPE_member_t asn_MBR_SIGNED_16P0_1[1];
48 extern asn_TYPE_descriptor_t asn_DEF_SIGNED_16P1;
49 extern asn_SEQUENCE_specifics_t asn_SPC_SIGNED_16P1_specs_3;
50 extern asn_TYPE_member_t asn_MBR_SIGNED_16P1_3[1];
52 /*** <<< STAT-DEFS [SIGNED] >>> ***/
54 asn_TYPE_member_t asn_MBR_SIGNED_16P0_1[] = {
55 { ATF_NOFLAGS, 0, offsetof(struct SIGNED_16P0, Signed),
56 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
58 .type = &asn_DEF_REAL,
60 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
61 0, 0, /* No default value */
65 static const ber_tlv_tag_t asn_DEF_SIGNED_16P0_tags_1[] = {
66 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
68 static const asn_TYPE_tag2member_t asn_MAP_SIGNED_16P0_tag2el_1[] = {
69 { (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), 0, 0, 0 } /* signed */
71 asn_SEQUENCE_specifics_t asn_SPC_SIGNED_16P0_specs_1 = {
72 sizeof(struct SIGNED_16P0),
73 offsetof(struct SIGNED_16P0, _asn_ctx),
74 .tag2el = asn_MAP_SIGNED_16P0_tag2el_1,
75 .tag2el_count = 1, /* Count of tags in the map */
76 0, 0, 0, /* Optional elements (not needed) */
77 -1, /* First extension addition */
79 asn_TYPE_descriptor_t asn_DEF_SIGNED_16P0 = {
83 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 */
89 { 0, 0, SEQUENCE_constraint },
90 asn_MBR_SIGNED_16P0_1,
91 1, /* Elements count */
92 &asn_SPC_SIGNED_16P0_specs_1 /* Additional specs */
95 static asn_TYPE_member_t asn_MBR_signed_4[] = {
96 { ATF_NOFLAGS, 0, offsetof(struct Signed, a),
97 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
99 .type = &asn_DEF_INTEGER,
101 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
102 0, 0, /* No default value */
106 static const ber_tlv_tag_t asn_DEF_signed_tags_4[] = {
107 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
109 static const asn_TYPE_tag2member_t asn_MAP_signed_tag2el_4[] = {
110 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* a */
112 static const uint8_t asn_MAP_signed_mmap_4[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
116 asn_SET_specifics_t asn_SPC_signed_specs_4 = {
117 sizeof(struct Signed),
118 offsetof(struct Signed, _asn_ctx),
119 offsetof(struct Signed, _presence_map),
120 .tag2el = asn_MAP_signed_tag2el_4,
121 .tag2el_count = 1, /* Count of tags in the map */
122 asn_MAP_signed_tag2el_4, /* Same as above */
123 1, /* Count of tags in the CXER map */
124 0, /* Whether extensible */
125 (const unsigned int *)asn_MAP_signed_mmap_4 /* Mandatory elements map */
127 static /* Use -fall-defs-global to expose */
128 asn_TYPE_descriptor_t asn_DEF_signed_4 = {
132 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 */
138 { 0, 0, SET_constraint },
140 1, /* Elements count */
141 &asn_SPC_signed_specs_4 /* Additional specs */
144 asn_TYPE_member_t asn_MBR_SIGNED_16P1_3[] = {
145 { ATF_NOFLAGS, 0, offsetof(struct SIGNED_16P1, Signed),
146 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
148 .type = &asn_DEF_signed_4,
150 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
151 0, 0, /* No default value */
155 static const ber_tlv_tag_t asn_DEF_SIGNED_16P1_tags_3[] = {
156 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
158 static const asn_TYPE_tag2member_t asn_MAP_SIGNED_16P1_tag2el_3[] = {
159 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* signed */
161 asn_SEQUENCE_specifics_t asn_SPC_SIGNED_16P1_specs_3 = {
162 sizeof(struct SIGNED_16P1),
163 offsetof(struct SIGNED_16P1, _asn_ctx),
164 .tag2el = asn_MAP_SIGNED_16P1_tag2el_3,
165 .tag2el_count = 1, /* Count of tags in the map */
166 0, 0, 0, /* Optional elements (not needed) */
167 -1, /* First extension addition */
169 asn_TYPE_descriptor_t asn_DEF_SIGNED_16P1 = {
173 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 */
179 { 0, 0, SEQUENCE_constraint },
180 asn_MBR_SIGNED_16P1_3,
181 1, /* Elements count */
182 &asn_SPC_SIGNED_16P1_specs_3 /* Additional specs */
186 /*** <<< INCLUDES [SignedREAL] >>> ***/
190 /*** <<< TYPE-DECLS [SignedREAL] >>> ***/
192 typedef SIGNED_16P0_t SignedREAL_t;
194 /*** <<< FUNC-DECLS [SignedREAL] >>> ***/
196 extern asn_TYPE_descriptor_t asn_DEF_SignedREAL;
197 asn_struct_free_f SignedREAL_free;
198 asn_struct_print_f SignedREAL_print;
199 asn_constr_check_f SignedREAL_constraint;
200 ber_type_decoder_f SignedREAL_decode_ber;
201 der_type_encoder_f SignedREAL_encode_der;
202 xer_type_decoder_f SignedREAL_decode_xer;
203 xer_type_encoder_f SignedREAL_encode_xer;
205 /*** <<< CODE [SignedREAL] >>> ***/
208 * This type is implemented using SIGNED_16P0,
209 * so here we adjust the DEF accordingly.
212 /*** <<< STAT-DEFS [SignedREAL] >>> ***/
214 static const ber_tlv_tag_t asn_DEF_SignedREAL_tags_1[] = {
215 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
217 asn_TYPE_descriptor_t asn_DEF_SignedREAL = {
221 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 */
227 { 0, 0, SEQUENCE_constraint },
228 asn_MBR_SIGNED_16P0_1,
229 1, /* Elements count */
230 &asn_SPC_SIGNED_16P0_specs_1 /* Additional specs */
234 /*** <<< INCLUDES [SignedSET] >>> ***/
238 /*** <<< TYPE-DECLS [SignedSET] >>> ***/
240 typedef SIGNED_16P1_t SignedSET_t;
242 /*** <<< FUNC-DECLS [SignedSET] >>> ***/
244 extern asn_TYPE_descriptor_t asn_DEF_SignedSET;
245 asn_struct_free_f SignedSET_free;
246 asn_struct_print_f SignedSET_print;
247 asn_constr_check_f SignedSET_constraint;
248 ber_type_decoder_f SignedSET_decode_ber;
249 der_type_encoder_f SignedSET_encode_der;
250 xer_type_decoder_f SignedSET_decode_xer;
251 xer_type_encoder_f SignedSET_encode_xer;
253 /*** <<< CODE [SignedSET] >>> ***/
256 * This type is implemented using SIGNED_16P1,
257 * so here we adjust the DEF accordingly.
260 /*** <<< STAT-DEFS [SignedSET] >>> ***/
262 static const ber_tlv_tag_t asn_DEF_SignedSET_tags_1[] = {
263 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
265 asn_TYPE_descriptor_t asn_DEF_SignedSET = {
269 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 */
275 { 0, 0, SEQUENCE_constraint },
276 asn_MBR_SIGNED_16P1_3,
277 1, /* Elements count */
278 &asn_SPC_SIGNED_16P1_specs_3 /* Additional specs */