blob: 21a28efe98bdb1196c63783448b39d09c5d74a2c [file] [log] [blame]
Lev Walkinac760bf2005-10-05 08:59:03 +00001
2/*** <<< INCLUDES [TestSet] >>> ***/
3
4#include <VisibleString.h>
5#include <constr_SET.h>
6
7/*** <<< DEPS [TestSet] >>> ***/
8
9
10/*
11 * Method of determining the components presence
12 */
13typedef enum TestSet_PR {
14 TestSet_PR_m0, /* Member m0 is present */
15 TestSet_PR_m1, /* Member m1 is present */
16 TestSet_PR_m2, /* Member m2 is present */
17 TestSet_PR_m3, /* Member m3 is present */
18 TestSet_PR_m4, /* Member m4 is present */
19 TestSet_PR_m5, /* Member m5 is present */
20 TestSet_PR_m6, /* Member m6 is present */
21 TestSet_PR_m7, /* Member m7 is present */
22 TestSet_PR_m8, /* Member m8 is present */
23 TestSet_PR_m9, /* Member m9 is present */
24} TestSet_PR;
25
26/*** <<< TYPE-DECLS [TestSet] >>> ***/
27
28typedef struct TestSet {
29 VisibleString_t m0;
30 VisibleString_t *m1 /* OPTIONAL */;
31 VisibleString_t m2;
32 VisibleString_t m3;
33 VisibleString_t *m4 /* OPTIONAL */;
34 VisibleString_t m5;
35 VisibleString_t m6;
36 VisibleString_t m7;
37 VisibleString_t *m8 /* OPTIONAL */;
38 VisibleString_t m9;
39 /*
40 * This type is extensible,
41 * possible extensions are below.
42 */
43
44 /* Presence bitmask: ASN_SET_ISPRESENT(pTestSet, TestSet_PR_x) */
45 unsigned int _presence_map
46 [((10+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
47
48 /* Context for parsing across buffer boundaries */
49 asn_struct_ctx_t _asn_ctx;
50} TestSet_t;
51
52/*** <<< FUNC-DECLS [TestSet] >>> ***/
53
54extern asn_TYPE_descriptor_t asn_DEF_TestSet;
55
56/*** <<< STAT-DEFS [TestSet] >>> ***/
57
58static asn_TYPE_member_t asn_MBR_TestSet_1[] = {
59 { ATF_NOFLAGS, 0, offsetof(struct TestSet, m0),
60 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
61 .tag_mode = -1, /* IMPLICIT tag at current level */
62 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -070063 .type_selector = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +000064 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040065 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000066 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
67 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +000068 .name = "m0"
69 },
70 { ATF_POINTER, 1, offsetof(struct TestSet, m1),
71 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
72 .tag_mode = -1, /* IMPLICIT tag at current level */
73 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -070074 .type_selector = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +000075 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040076 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000077 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
78 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +000079 .name = "m1"
80 },
81 { ATF_NOFLAGS, 0, offsetof(struct TestSet, m2),
82 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
83 .tag_mode = -1, /* IMPLICIT tag at current level */
84 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -070085 .type_selector = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +000086 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040087 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000088 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
89 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +000090 .name = "m2"
91 },
92 { ATF_NOFLAGS, 0, offsetof(struct TestSet, m3),
93 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
94 .tag_mode = -1, /* IMPLICIT tag at current level */
95 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -070096 .type_selector = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +000097 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040098 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000099 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
100 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000101 .name = "m3"
102 },
103 { ATF_POINTER, 1, offsetof(struct TestSet, m4),
104 .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
105 .tag_mode = -1, /* IMPLICIT tag at current level */
106 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700107 .type_selector = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000108 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400109 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000110 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
111 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000112 .name = "m4"
113 },
114 { ATF_NOFLAGS, 0, offsetof(struct TestSet, m5),
115 .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
116 .tag_mode = -1, /* IMPLICIT tag at current level */
117 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700118 .type_selector = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000119 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400120 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000121 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
122 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000123 .name = "m5"
124 },
125 { ATF_NOFLAGS, 0, offsetof(struct TestSet, m6),
126 .tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
127 .tag_mode = -1, /* IMPLICIT tag at current level */
128 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700129 .type_selector = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000130 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400131 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000132 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
133 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000134 .name = "m6"
135 },
136 { ATF_NOFLAGS, 0, offsetof(struct TestSet, m7),
137 .tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
138 .tag_mode = -1, /* IMPLICIT tag at current level */
139 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700140 .type_selector = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000141 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400142 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000143 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
144 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000145 .name = "m7"
146 },
147 { ATF_POINTER, 1, offsetof(struct TestSet, m8),
148 .tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
149 .tag_mode = -1, /* IMPLICIT tag at current level */
150 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700151 .type_selector = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000152 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400153 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000154 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
155 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000156 .name = "m8"
157 },
158 { ATF_NOFLAGS, 0, offsetof(struct TestSet, m9),
159 .tag = (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
160 .tag_mode = -1, /* IMPLICIT tag at current level */
161 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700162 .type_selector = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000163 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400164 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000165 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
166 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000167 .name = "m9"
168 },
169};
Lev Walkina7591b52014-10-12 18:37:35 -0700170static const ber_tlv_tag_t asn_DEF_TestSet_tags_1[] = {
Lev Walkinac760bf2005-10-05 08:59:03 +0000171 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
172};
Lev Walkina7591b52014-10-12 18:37:35 -0700173static const asn_TYPE_tag2member_t asn_MAP_TestSet_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700174 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* m0 */
175 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* m1 */
176 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* m2 */
177 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* m3 */
178 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* m4 */
179 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* m5 */
180 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* m6 */
181 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* m7 */
182 { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* m8 */
183 { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* m9 */
Lev Walkinac760bf2005-10-05 08:59:03 +0000184};
Lev Walkina7591b52014-10-12 18:37:35 -0700185static const uint8_t asn_MAP_TestSet_mmap_1[(10 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkinac760bf2005-10-05 08:59:03 +0000186 (1 << 7) | (0 << 6) | (1 << 5) | (1 << 4) | (0 << 3) | (1 << 2) | (1 << 1) | (1 << 0),
187 (0 << 7) | (1 << 6)
188};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800189static
190asn_SET_specifics_t asn_SPC_TestSet_specs_1 = {
Lev Walkinac760bf2005-10-05 08:59:03 +0000191 sizeof(struct TestSet),
192 offsetof(struct TestSet, _asn_ctx),
193 offsetof(struct TestSet, _presence_map),
Lev Walkine3917082017-08-23 10:29:38 -0700194 .tag2el = asn_MAP_TestSet_tag2el_1,
195 .tag2el_count = 10, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000196 asn_MAP_TestSet_tag2el_1, /* Same as above */
Lev Walkinac760bf2005-10-05 08:59:03 +0000197 10, /* Count of tags in the CXER map */
198 1, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700199 (const unsigned int *)asn_MAP_TestSet_mmap_1 /* Mandatory elements map */
Lev Walkinac760bf2005-10-05 08:59:03 +0000200};
201asn_TYPE_descriptor_t asn_DEF_TestSet = {
202 "TestSet",
203 "TestSet",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800204 &asn_OP_SET,
Lev Walkinac760bf2005-10-05 08:59:03 +0000205 SET_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000206 asn_DEF_TestSet_tags_1,
207 sizeof(asn_DEF_TestSet_tags_1)
208 /sizeof(asn_DEF_TestSet_tags_1[0]), /* 1 */
209 asn_DEF_TestSet_tags_1, /* Same as above */
210 sizeof(asn_DEF_TestSet_tags_1)
211 /sizeof(asn_DEF_TestSet_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400212 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000213 0, /* No PER visible constraints */
Lev Walkinac760bf2005-10-05 08:59:03 +0000214 asn_MBR_TestSet_1,
215 10, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000216 &asn_SPC_TestSet_specs_1 /* Additional specs */
Lev Walkinac760bf2005-10-05 08:59:03 +0000217};
218