| 1 |
|
| 2 |
/*** <<< INCLUDES [T1] >>> ***/ |
| 3 |
|
| 4 |
#include <INTEGER.h> |
| 5 |
#include <constr_SET.h> |
| 6 |
|
| 7 |
/*** <<< DEPS [T1] >>> ***/ |
| 8 |
|
| 9 |
|
| 10 |
/* |
| 11 |
* Method of determining the components presence |
| 12 |
*/ |
| 13 |
typedef enum T1_PR { |
| 14 |
T1_PR_i, /* Member i is present */ |
| 15 |
} T1_PR; |
| 16 |
|
| 17 |
/*** <<< TYPE-DECLS [T1] >>> ***/ |
| 18 |
|
| 19 |
typedef struct T1 { |
| 20 |
INTEGER_t i; |
| 21 |
/* |
| 22 |
* This type is extensible, |
| 23 |
* possible extensions are below. |
| 24 |
*/ |
| 25 |
|
| 26 |
/* Presence bitmask: ASN_SET_ISPRESENT(pT1, T1_PR_x) */ |
| 27 |
unsigned int _presence_map |
| 28 |
[((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 29 |
|
| 30 |
/* Context for parsing across buffer boundaries */ |
| 31 |
asn_struct_ctx_t _asn_ctx; |
| 32 |
} T1_t; |
| 33 |
|
| 34 |
/*** <<< FUNC-DECLS [T1] >>> ***/ |
| 35 |
|
| 36 |
extern asn_TYPE_descriptor_t asn_DEF_T1; |
| 37 |
|
| 38 |
/*** <<< STAT-DEFS [T1] >>> ***/ |
| 39 |
|
| 40 |
static asn_TYPE_member_t asn_MBR_T1_1[] = { |
| 41 |
{ ATF_NOFLAGS, 0, offsetof(struct T1, i), |
| 42 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 43 |
.tag_mode = 0, |
| 44 |
.type = &asn_DEF_INTEGER, |
| 45 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 46 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 47 |
.default_value = 0, |
| 48 |
.name = "i" |
| 49 |
}, |
| 50 |
}; |
| 51 |
static const ber_tlv_tag_t asn_DEF_T1_tags_1[] = { |
| 52 |
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 53 |
}; |
| 54 |
static const asn_TYPE_tag2member_t asn_MAP_T1_tag2el_1[] = { |
| 55 |
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* i */ |
| 56 |
}; |
| 57 |
static const uint8_t asn_MAP_T1_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
| 58 |
(1 << 7) |
| 59 |
}; |
| 60 |
static asn_SET_specifics_t asn_SPC_T1_specs_1 = { |
| 61 |
sizeof(struct T1), |
| 62 |
offsetof(struct T1, _asn_ctx), |
| 63 |
offsetof(struct T1, _presence_map), |
| 64 |
asn_MAP_T1_tag2el_1, |
| 65 |
1, /* Count of tags in the map */ |
| 66 |
asn_MAP_T1_tag2el_1, /* Same as above */ |
| 67 |
1, /* Count of tags in the CXER map */ |
| 68 |
1, /* Whether extensible */ |
| 69 |
(unsigned int *)asn_MAP_T1_mmap_1 /* Mandatory elements map */ |
| 70 |
}; |
| 71 |
asn_TYPE_descriptor_t asn_DEF_T1 = { |
| 72 |
"T1", |
| 73 |
"T1", |
| 74 |
SET_free, |
| 75 |
SET_print, |
| 76 |
SET_constraint, |
| 77 |
SET_decode_ber, |
| 78 |
SET_encode_der, |
| 79 |
SET_decode_xer, |
| 80 |
SET_encode_xer, |
| 81 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 82 |
0, /* Use generic outmost tag fetcher */ |
| 83 |
asn_DEF_T1_tags_1, |
| 84 |
sizeof(asn_DEF_T1_tags_1) |
| 85 |
/sizeof(asn_DEF_T1_tags_1[0]), /* 1 */ |
| 86 |
asn_DEF_T1_tags_1, /* Same as above */ |
| 87 |
sizeof(asn_DEF_T1_tags_1) |
| 88 |
/sizeof(asn_DEF_T1_tags_1[0]), /* 1 */ |
| 89 |
0, /* No PER visible constraints */ |
| 90 |
asn_MBR_T1_1, |
| 91 |
1, /* Elements count */ |
| 92 |
&asn_SPC_T1_specs_1 /* Additional specs */ |
| 93 |
}; |
| 94 |
|
| 95 |
|
| 96 |
/*** <<< INCLUDES [T2] >>> ***/ |
| 97 |
|
| 98 |
#include <INTEGER.h> |
| 99 |
#include <constr_SET.h> |
| 100 |
|
| 101 |
/*** <<< DEPS [T2] >>> ***/ |
| 102 |
|
| 103 |
|
| 104 |
/* |
| 105 |
* Method of determining the components presence |
| 106 |
*/ |
| 107 |
typedef enum T2_PR { |
| 108 |
T2_PR_i, /* Member i is present */ |
| 109 |
} T2_PR; |
| 110 |
|
| 111 |
/*** <<< TYPE-DECLS [T2] >>> ***/ |
| 112 |
|
| 113 |
typedef struct T2 { |
| 114 |
INTEGER_t i; |
| 115 |
/* |
| 116 |
* This type is extensible, |
| 117 |
* possible extensions are below. |
| 118 |
*/ |
| 119 |
|
| 120 |
/* Presence bitmask: ASN_SET_ISPRESENT(pT2, T2_PR_x) */ |
| 121 |
unsigned int _presence_map |
| 122 |
[((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 123 |
|
| 124 |
/* Context for parsing across buffer boundaries */ |
| 125 |
asn_struct_ctx_t _asn_ctx; |
| 126 |
} T2_t; |
| 127 |
|
| 128 |
/*** <<< FUNC-DECLS [T2] >>> ***/ |
| 129 |
|
| 130 |
extern asn_TYPE_descriptor_t asn_DEF_T2; |
| 131 |
|
| 132 |
/*** <<< STAT-DEFS [T2] >>> ***/ |
| 133 |
|
| 134 |
static asn_TYPE_member_t asn_MBR_T2_1[] = { |
| 135 |
{ ATF_NOFLAGS, 0, offsetof(struct T2, i), |
| 136 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 137 |
.tag_mode = 0, |
| 138 |
.type = &asn_DEF_INTEGER, |
| 139 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 140 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 141 |
.default_value = 0, |
| 142 |
.name = "i" |
| 143 |
}, |
| 144 |
}; |
| 145 |
static const ber_tlv_tag_t asn_DEF_T2_tags_1[] = { |
| 146 |
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 147 |
}; |
| 148 |
static const asn_TYPE_tag2member_t asn_MAP_T2_tag2el_1[] = { |
| 149 |
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* i */ |
| 150 |
}; |
| 151 |
static const uint8_t asn_MAP_T2_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
| 152 |
(1 << 7) |
| 153 |
}; |
| 154 |
static asn_SET_specifics_t asn_SPC_T2_specs_1 = { |
| 155 |
sizeof(struct T2), |
| 156 |
offsetof(struct T2, _asn_ctx), |
| 157 |
offsetof(struct T2, _presence_map), |
| 158 |
asn_MAP_T2_tag2el_1, |
| 159 |
1, /* Count of tags in the map */ |
| 160 |
asn_MAP_T2_tag2el_1, /* Same as above */ |
| 161 |
1, /* Count of tags in the CXER map */ |
| 162 |
1, /* Whether extensible */ |
| 163 |
(unsigned int *)asn_MAP_T2_mmap_1 /* Mandatory elements map */ |
| 164 |
}; |
| 165 |
asn_TYPE_descriptor_t asn_DEF_T2 = { |
| 166 |
"T2", |
| 167 |
"T2", |
| 168 |
SET_free, |
| 169 |
SET_print, |
| 170 |
SET_constraint, |
| 171 |
SET_decode_ber, |
| 172 |
SET_encode_der, |
| 173 |
SET_decode_xer, |
| 174 |
SET_encode_xer, |
| 175 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 176 |
0, /* Use generic outmost tag fetcher */ |
| 177 |
asn_DEF_T2_tags_1, |
| 178 |
sizeof(asn_DEF_T2_tags_1) |
| 179 |
/sizeof(asn_DEF_T2_tags_1[0]), /* 1 */ |
| 180 |
asn_DEF_T2_tags_1, /* Same as above */ |
| 181 |
sizeof(asn_DEF_T2_tags_1) |
| 182 |
/sizeof(asn_DEF_T2_tags_1[0]), /* 1 */ |
| 183 |
0, /* No PER visible constraints */ |
| 184 |
asn_MBR_T2_1, |
| 185 |
1, /* Elements count */ |
| 186 |
&asn_SPC_T2_specs_1 /* Additional specs */ |
| 187 |
}; |
| 188 |
|
| 189 |
|
| 190 |
/*** <<< INCLUDES [T3] >>> ***/ |
| 191 |
|
| 192 |
#include <INTEGER.h> |
| 193 |
#include <constr_CHOICE.h> |
| 194 |
|
| 195 |
/*** <<< DEPS [T3] >>> ***/ |
| 196 |
|
| 197 |
typedef enum T3_PR { |
| 198 |
T3_PR_NOTHING, /* No components present */ |
| 199 |
T3_PR_i, |
| 200 |
/* Extensions may appear below */ |
| 201 |
|
| 202 |
} T3_PR; |
| 203 |
|
| 204 |
/*** <<< TYPE-DECLS [T3] >>> ***/ |
| 205 |
|
| 206 |
typedef struct T3 { |
| 207 |
T3_PR present; |
| 208 |
union T3_u { |
| 209 |
INTEGER_t i; |
| 210 |
/* |
| 211 |
* This type is extensible, |
| 212 |
* possible extensions are below. |
| 213 |
*/ |
| 214 |
} choice; |
| 215 |
|
| 216 |
/* Context for parsing across buffer boundaries */ |
| 217 |
asn_struct_ctx_t _asn_ctx; |
| 218 |
} T3_t; |
| 219 |
|
| 220 |
/*** <<< FUNC-DECLS [T3] >>> ***/ |
| 221 |
|
| 222 |
extern asn_TYPE_descriptor_t asn_DEF_T3; |
| 223 |
|
| 224 |
/*** <<< STAT-DEFS [T3] >>> ***/ |
| 225 |
|
| 226 |
static asn_TYPE_member_t asn_MBR_T3_1[] = { |
| 227 |
{ ATF_NOFLAGS, 0, offsetof(struct T3, choice.i), |
| 228 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 229 |
.tag_mode = 0, |
| 230 |
.type = &asn_DEF_INTEGER, |
| 231 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 232 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 233 |
.default_value = 0, |
| 234 |
.name = "i" |
| 235 |
}, |
| 236 |
}; |
| 237 |
static const asn_TYPE_tag2member_t asn_MAP_T3_tag2el_1[] = { |
| 238 |
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* i */ |
| 239 |
}; |
| 240 |
static asn_CHOICE_specifics_t asn_SPC_T3_specs_1 = { |
| 241 |
sizeof(struct T3), |
| 242 |
offsetof(struct T3, _asn_ctx), |
| 243 |
offsetof(struct T3, present), |
| 244 |
sizeof(((struct T3 *)0)->present), |
| 245 |
asn_MAP_T3_tag2el_1, |
| 246 |
1, /* Count of tags in the map */ |
| 247 |
.canonical_order = 0, |
| 248 |
.ext_start = 1 /* Extensions start */ |
| 249 |
}; |
| 250 |
asn_TYPE_descriptor_t asn_DEF_T3 = { |
| 251 |
"T3", |
| 252 |
"T3", |
| 253 |
CHOICE_free, |
| 254 |
CHOICE_print, |
| 255 |
CHOICE_constraint, |
| 256 |
CHOICE_decode_ber, |
| 257 |
CHOICE_encode_der, |
| 258 |
CHOICE_decode_xer, |
| 259 |
CHOICE_encode_xer, |
| 260 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 261 |
CHOICE_outmost_tag, |
| 262 |
0, /* No effective tags (pointer) */ |
| 263 |
0, /* No effective tags (count) */ |
| 264 |
0, /* No tags (pointer) */ |
| 265 |
0, /* No tags (count) */ |
| 266 |
0, /* No PER visible constraints */ |
| 267 |
asn_MBR_T3_1, |
| 268 |
1, /* Elements count */ |
| 269 |
&asn_SPC_T3_specs_1 /* Additional specs */ |
| 270 |
}; |
| 271 |
|
| 272 |
|
| 273 |
/*** <<< INCLUDES [T4] >>> ***/ |
| 274 |
|
| 275 |
#include <INTEGER.h> |
| 276 |
#include <constr_CHOICE.h> |
| 277 |
|
| 278 |
/*** <<< DEPS [T4] >>> ***/ |
| 279 |
|
| 280 |
typedef enum T4_PR { |
| 281 |
T4_PR_NOTHING, /* No components present */ |
| 282 |
T4_PR_i, |
| 283 |
/* Extensions may appear below */ |
| 284 |
|
| 285 |
} T4_PR; |
| 286 |
|
| 287 |
/*** <<< TYPE-DECLS [T4] >>> ***/ |
| 288 |
|
| 289 |
typedef struct T4 { |
| 290 |
T4_PR present; |
| 291 |
union T4_u { |
| 292 |
INTEGER_t i; |
| 293 |
/* |
| 294 |
* This type is extensible, |
| 295 |
* possible extensions are below. |
| 296 |
*/ |
| 297 |
} choice; |
| 298 |
|
| 299 |
/* Context for parsing across buffer boundaries */ |
| 300 |
asn_struct_ctx_t _asn_ctx; |
| 301 |
} T4_t; |
| 302 |
|
| 303 |
/*** <<< FUNC-DECLS [T4] >>> ***/ |
| 304 |
|
| 305 |
extern asn_TYPE_descriptor_t asn_DEF_T4; |
| 306 |
|
| 307 |
/*** <<< STAT-DEFS [T4] >>> ***/ |
| 308 |
|
| 309 |
static asn_TYPE_member_t asn_MBR_T4_1[] = { |
| 310 |
{ ATF_NOFLAGS, 0, offsetof(struct T4, choice.i), |
| 311 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 312 |
.tag_mode = 0, |
| 313 |
.type = &asn_DEF_INTEGER, |
| 314 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 315 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 316 |
.default_value = 0, |
| 317 |
.name = "i" |
| 318 |
}, |
| 319 |
}; |
| 320 |
static const asn_TYPE_tag2member_t asn_MAP_T4_tag2el_1[] = { |
| 321 |
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* i */ |
| 322 |
}; |
| 323 |
static asn_CHOICE_specifics_t asn_SPC_T4_specs_1 = { |
| 324 |
sizeof(struct T4), |
| 325 |
offsetof(struct T4, _asn_ctx), |
| 326 |
offsetof(struct T4, present), |
| 327 |
sizeof(((struct T4 *)0)->present), |
| 328 |
asn_MAP_T4_tag2el_1, |
| 329 |
1, /* Count of tags in the map */ |
| 330 |
.canonical_order = 0, |
| 331 |
.ext_start = 1 /* Extensions start */ |
| 332 |
}; |
| 333 |
asn_TYPE_descriptor_t asn_DEF_T4 = { |
| 334 |
"T4", |
| 335 |
"T4", |
| 336 |
CHOICE_free, |
| 337 |
CHOICE_print, |
| 338 |
CHOICE_constraint, |
| 339 |
CHOICE_decode_ber, |
| 340 |
CHOICE_encode_der, |
| 341 |
CHOICE_decode_xer, |
| 342 |
CHOICE_encode_xer, |
| 343 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 344 |
CHOICE_outmost_tag, |
| 345 |
0, /* No effective tags (pointer) */ |
| 346 |
0, /* No effective tags (count) */ |
| 347 |
0, /* No tags (pointer) */ |
| 348 |
0, /* No tags (count) */ |
| 349 |
0, /* No PER visible constraints */ |
| 350 |
asn_MBR_T4_1, |
| 351 |
1, /* Elements count */ |
| 352 |
&asn_SPC_T4_specs_1 /* Additional specs */ |
| 353 |
}; |
| 354 |
|