blob: 0d191809d0b603f4d9810f925129bb0fb44b717c [file] [log] [blame]
Harald Welte3aa901d2018-08-13 18:32:36 +02001/*
2 * Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
3 * From ASN.1 module "RSPRO"
4 * found in "../../asn1/RSPRO.asn"
5 */
6
7#include <osmocom/rspro/RsproPDUchoice.h>
8
9static asn_TYPE_member_t asn_MBR_RsproPDUchoice_1[] = {
10 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.connectBankReq),
11 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
12 -1, /* IMPLICIT tag at current level */
13 &asn_DEF_ConnectBankReq,
14 0, /* Defer constraints checking to the member type */
15 0, /* PER is not compiled, use -gen-PER */
16 0,
17 "connectBankReq"
18 },
19 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.connectBankRes),
20 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
21 -1, /* IMPLICIT tag at current level */
22 &asn_DEF_ConnectBankRes,
23 0, /* Defer constraints checking to the member type */
24 0, /* PER is not compiled, use -gen-PER */
25 0,
26 "connectBankRes"
27 },
28 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.connectClientReq),
29 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
30 -1, /* IMPLICIT tag at current level */
31 &asn_DEF_ConnectClientReq,
32 0, /* Defer constraints checking to the member type */
33 0, /* PER is not compiled, use -gen-PER */
34 0,
35 "connectClientReq"
36 },
37 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.connectClientRes),
38 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
39 -1, /* IMPLICIT tag at current level */
40 &asn_DEF_ConnectClientRes,
41 0, /* Defer constraints checking to the member type */
42 0, /* PER is not compiled, use -gen-PER */
43 0,
44 "connectClientRes"
45 },
46 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.createMappingReq),
47 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
48 -1, /* IMPLICIT tag at current level */
49 &asn_DEF_CreateMappingReq,
50 0, /* Defer constraints checking to the member type */
51 0, /* PER is not compiled, use -gen-PER */
52 0,
53 "createMappingReq"
54 },
55 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.createMappingRes),
56 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
57 -1, /* IMPLICIT tag at current level */
58 &asn_DEF_CreateMappingRes,
59 0, /* Defer constraints checking to the member type */
60 0, /* PER is not compiled, use -gen-PER */
61 0,
62 "createMappingRes"
63 },
64 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.removeMappingReq),
65 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
66 -1, /* IMPLICIT tag at current level */
67 &asn_DEF_RemoveMappingReq,
68 0, /* Defer constraints checking to the member type */
69 0, /* PER is not compiled, use -gen-PER */
70 0,
71 "removeMappingReq"
72 },
73 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.removeMappingRes),
74 (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
75 -1, /* IMPLICIT tag at current level */
76 &asn_DEF_RemoveMappingRes,
77 0, /* Defer constraints checking to the member type */
78 0, /* PER is not compiled, use -gen-PER */
79 0,
80 "removeMappingRes"
81 },
Harald Welted571a3e2019-03-11 22:09:50 +010082 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.configClientIdReq),
Harald Welte3aa901d2018-08-13 18:32:36 +020083 (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
84 -1, /* IMPLICIT tag at current level */
Harald Welted571a3e2019-03-11 22:09:50 +010085 &asn_DEF_ConfigClientIdReq,
Harald Welte3aa901d2018-08-13 18:32:36 +020086 0, /* Defer constraints checking to the member type */
87 0, /* PER is not compiled, use -gen-PER */
88 0,
Harald Welted571a3e2019-03-11 22:09:50 +010089 "configClientIdReq"
Harald Welte3aa901d2018-08-13 18:32:36 +020090 },
Harald Welted571a3e2019-03-11 22:09:50 +010091 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.configClientIdRes),
Harald Welte3aa901d2018-08-13 18:32:36 +020092 (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
93 -1, /* IMPLICIT tag at current level */
Harald Welted571a3e2019-03-11 22:09:50 +010094 &asn_DEF_ConfigClientIdRes,
Harald Welte3aa901d2018-08-13 18:32:36 +020095 0, /* Defer constraints checking to the member type */
96 0, /* PER is not compiled, use -gen-PER */
97 0,
Harald Welted571a3e2019-03-11 22:09:50 +010098 "configClientIdRes"
99 },
100 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.configClientBankReq),
101 (ASN_TAG_CLASS_CONTEXT | (17 << 2)),
102 -1, /* IMPLICIT tag at current level */
103 &asn_DEF_ConfigClientBankReq,
104 0, /* Defer constraints checking to the member type */
105 0, /* PER is not compiled, use -gen-PER */
106 0,
107 "configClientBankReq"
108 },
109 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.configClientBankRes),
110 (ASN_TAG_CLASS_CONTEXT | (18 << 2)),
111 -1, /* IMPLICIT tag at current level */
112 &asn_DEF_ConfigClientBankRes,
113 0, /* Defer constraints checking to the member type */
114 0, /* PER is not compiled, use -gen-PER */
115 0,
116 "configClientBankRes"
Harald Welte3aa901d2018-08-13 18:32:36 +0200117 },
Harald Welte769ab7d2019-03-09 15:10:36 +0100118 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.errorInd),
119 (ASN_TAG_CLASS_CONTEXT | (16 << 2)),
120 -1, /* IMPLICIT tag at current level */
121 &asn_DEF_ErrorInd,
122 0, /* Defer constraints checking to the member type */
123 0, /* PER is not compiled, use -gen-PER */
124 0,
125 "errorInd"
126 },
Harald Welte3f966322019-12-04 19:09:58 +0100127 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.resetStateReq),
128 (ASN_TAG_CLASS_CONTEXT | (19 << 2)),
129 -1, /* IMPLICIT tag at current level */
130 &asn_DEF_ResetStateReq,
131 0, /* Defer constraints checking to the member type */
132 0, /* PER is not compiled, use -gen-PER */
133 0,
134 "resetStateReq"
135 },
136 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.resetStateRes),
137 (ASN_TAG_CLASS_CONTEXT | (20 << 2)),
138 -1, /* IMPLICIT tag at current level */
139 &asn_DEF_ResetStateRes,
140 0, /* Defer constraints checking to the member type */
141 0, /* PER is not compiled, use -gen-PER */
142 0,
143 "resetStateRes"
144 },
Harald Welte3aa901d2018-08-13 18:32:36 +0200145 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.setAtrReq),
146 (ASN_TAG_CLASS_CONTEXT | (10 << 2)),
147 -1, /* IMPLICIT tag at current level */
148 &asn_DEF_SetAtrReq,
149 0, /* Defer constraints checking to the member type */
150 0, /* PER is not compiled, use -gen-PER */
151 0,
152 "setAtrReq"
153 },
154 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.setAtrRes),
155 (ASN_TAG_CLASS_CONTEXT | (11 << 2)),
156 -1, /* IMPLICIT tag at current level */
157 &asn_DEF_SetAtrRes,
158 0, /* Defer constraints checking to the member type */
159 0, /* PER is not compiled, use -gen-PER */
160 0,
161 "setAtrRes"
162 },
163 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.tpduModemToCard),
164 (ASN_TAG_CLASS_CONTEXT | (12 << 2)),
165 -1, /* IMPLICIT tag at current level */
166 &asn_DEF_TpduModemToCard,
167 0, /* Defer constraints checking to the member type */
168 0, /* PER is not compiled, use -gen-PER */
169 0,
170 "tpduModemToCard"
171 },
172 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.tpduCardToModem),
173 (ASN_TAG_CLASS_CONTEXT | (13 << 2)),
174 -1, /* IMPLICIT tag at current level */
175 &asn_DEF_TpduCardToModem,
176 0, /* Defer constraints checking to the member type */
177 0, /* PER is not compiled, use -gen-PER */
178 0,
179 "tpduCardToModem"
180 },
181 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.clientSlotStatusInd),
182 (ASN_TAG_CLASS_CONTEXT | (14 << 2)),
183 -1, /* IMPLICIT tag at current level */
184 &asn_DEF_ClientSlotStatusInd,
185 0, /* Defer constraints checking to the member type */
186 0, /* PER is not compiled, use -gen-PER */
187 0,
188 "clientSlotStatusInd"
189 },
190 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.bankSlotStatusInd),
191 (ASN_TAG_CLASS_CONTEXT | (15 << 2)),
192 -1, /* IMPLICIT tag at current level */
193 &asn_DEF_BankSlotStatusInd,
194 0, /* Defer constraints checking to the member type */
195 0, /* PER is not compiled, use -gen-PER */
196 0,
197 "bankSlotStatusInd"
198 },
199};
200static const asn_TYPE_tag2member_t asn_MAP_RsproPDUchoice_tag2el_1[] = {
201 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* connectBankReq */
202 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* connectBankRes */
203 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* connectClientReq */
204 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* connectClientRes */
205 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* createMappingReq */
206 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* createMappingRes */
207 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* removeMappingReq */
208 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* removeMappingRes */
Harald Welted571a3e2019-03-11 22:09:50 +0100209 { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* configClientIdReq */
210 { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* configClientIdRes */
Harald Welte3f966322019-12-04 19:09:58 +0100211 { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 15, 0, 0 }, /* setAtrReq */
212 { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 16, 0, 0 }, /* setAtrRes */
213 { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 17, 0, 0 }, /* tpduModemToCard */
214 { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 18, 0, 0 }, /* tpduCardToModem */
215 { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 19, 0, 0 }, /* clientSlotStatusInd */
216 { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 20, 0, 0 }, /* bankSlotStatusInd */
Harald Welted571a3e2019-03-11 22:09:50 +0100217 { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 12, 0, 0 }, /* errorInd */
218 { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 10, 0, 0 }, /* configClientBankReq */
Harald Welte3f966322019-12-04 19:09:58 +0100219 { (ASN_TAG_CLASS_CONTEXT | (18 << 2)), 11, 0, 0 }, /* configClientBankRes */
220 { (ASN_TAG_CLASS_CONTEXT | (19 << 2)), 13, 0, 0 }, /* resetStateReq */
221 { (ASN_TAG_CLASS_CONTEXT | (20 << 2)), 14, 0, 0 } /* resetStateRes */
Harald Welte3aa901d2018-08-13 18:32:36 +0200222};
223static asn_CHOICE_specifics_t asn_SPC_RsproPDUchoice_specs_1 = {
224 sizeof(struct RsproPDUchoice),
225 offsetof(struct RsproPDUchoice, _asn_ctx),
226 offsetof(struct RsproPDUchoice, present),
227 sizeof(((struct RsproPDUchoice *)0)->present),
228 asn_MAP_RsproPDUchoice_tag2el_1,
Harald Welte3f966322019-12-04 19:09:58 +0100229 21, /* Count of tags in the map */
Harald Welte3aa901d2018-08-13 18:32:36 +0200230 0,
Harald Welte3f966322019-12-04 19:09:58 +0100231 21 /* Extensions start */
Harald Welte3aa901d2018-08-13 18:32:36 +0200232};
233asn_TYPE_descriptor_t asn_DEF_RsproPDUchoice = {
234 "RsproPDUchoice",
235 "RsproPDUchoice",
236 CHOICE_free,
237 CHOICE_print,
238 CHOICE_constraint,
239 CHOICE_decode_ber,
240 CHOICE_encode_der,
241 CHOICE_decode_xer,
242 CHOICE_encode_xer,
243 0, 0, /* No UPER support, use "-gen-PER" to enable */
244 0, 0, /* No APER support, use "-gen-PER" to enable */
245 CHOICE_outmost_tag,
246 0, /* No effective tags (pointer) */
247 0, /* No effective tags (count) */
248 0, /* No tags (pointer) */
249 0, /* No tags (count) */
250 0, /* No PER visible constraints */
251 asn_MBR_RsproPDUchoice_1,
Harald Welte3f966322019-12-04 19:09:58 +0100252 21, /* Elements count */
Harald Welte3aa901d2018-08-13 18:32:36 +0200253 &asn_SPC_RsproPDUchoice_specs_1 /* Additional specs */
254};
255