2 /*** <<< INCLUDES [T] >>> ***/
7 #include <constr_SET.h>
9 /*** <<< DEPS [T] >>> ***/
13 * Method of determining the components presence
16 T_PR_i, /* Member i is present */
17 T_PR_s, /* Member s is present */
18 T_PR_b, /* Member b is present */
21 /*** <<< TYPE-DECLS [T] >>> ***/
27 * This type is extensible,
28 * possible extensions are below.
32 /* Presence bitmask: ASN_SET_ISPRESENT(pT, T_PR_x) */
33 unsigned int _presence_map
34 [((3+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
36 /* Context for parsing across buffer boundaries */
37 asn_struct_ctx_t _asn_ctx;
40 /*** <<< FUNC-DECLS [T] >>> ***/
42 extern asn_TYPE_descriptor_t asn_DEF_T;
44 /*** <<< STAT-DEFS [T] >>> ***/
46 static asn_TYPE_member_t asn_MBR_T_1[] = {
47 { ATF_NOFLAGS, 0, offsetof(struct T, i),
48 .tag = (ASN_TAG_CLASS_APPLICATION | (3 << 2)),
49 .tag_mode = -1, /* IMPLICIT tag at current level */
50 .type = &asn_DEF_INTEGER,
52 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
53 0, 0, /* No default value */
56 { ATF_NOFLAGS, 0, offsetof(struct T, s),
57 .tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
59 .type = &asn_DEF_IA5String,
61 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
62 0, 0, /* No default value */
65 { ATF_POINTER, 1, offsetof(struct T, b),
66 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
67 .tag_mode = -1, /* IMPLICIT tag at current level */
68 .type = &asn_DEF_BOOLEAN,
70 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
71 0, 0, /* No default value */
75 static const ber_tlv_tag_t asn_DEF_T_tags_1[] = {
76 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
78 static const asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
79 { (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 1, 0, 0 }, /* s */
80 { (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 0, 0, 0 }, /* i */
81 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* b */
83 static const uint8_t asn_MAP_T_mmap_1[(3 + (8 * sizeof(unsigned int)) - 1) / 8] = {
84 (1 << 7) | (1 << 6) | (0 << 5)
87 asn_SET_specifics_t asn_SPC_T_specs_1 = {
89 offsetof(struct T, _asn_ctx),
90 offsetof(struct T, _presence_map),
91 .tag2el = asn_MAP_T_tag2el_1,
92 .tag2el_count = 3, /* Count of tags in the map */
93 asn_MAP_T_tag2el_1, /* Same as above */
94 3, /* Count of tags in the CXER map */
95 1, /* Whether extensible */
96 (const unsigned int *)asn_MAP_T_mmap_1 /* Mandatory elements map */
98 asn_TYPE_descriptor_t asn_DEF_T = {
103 sizeof(asn_DEF_T_tags_1)
104 /sizeof(asn_DEF_T_tags_1[0]), /* 1 */
105 asn_DEF_T_tags_1, /* Same as above */
106 sizeof(asn_DEF_T_tags_1)
107 /sizeof(asn_DEF_T_tags_1[0]), /* 1 */
108 { 0, 0, SET_constraint },
110 3, /* Elements count */
111 &asn_SPC_T_specs_1 /* Additional specs */