blob: e8428769710cda134172db06f56380faa4115806 [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 },
82 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.configClientReq),
83 (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
84 -1, /* IMPLICIT tag at current level */
85 &asn_DEF_ConfigClientReq,
86 0, /* Defer constraints checking to the member type */
87 0, /* PER is not compiled, use -gen-PER */
88 0,
89 "configClientReq"
90 },
91 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.configClientRes),
92 (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
93 -1, /* IMPLICIT tag at current level */
94 &asn_DEF_ConfigClientRes,
95 0, /* Defer constraints checking to the member type */
96 0, /* PER is not compiled, use -gen-PER */
97 0,
98 "configClientRes"
99 },
Harald Welte769ab7d2019-03-09 15:10:36 +0100100 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.errorInd),
101 (ASN_TAG_CLASS_CONTEXT | (16 << 2)),
102 -1, /* IMPLICIT tag at current level */
103 &asn_DEF_ErrorInd,
104 0, /* Defer constraints checking to the member type */
105 0, /* PER is not compiled, use -gen-PER */
106 0,
107 "errorInd"
108 },
Harald Welte3aa901d2018-08-13 18:32:36 +0200109 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.setAtrReq),
110 (ASN_TAG_CLASS_CONTEXT | (10 << 2)),
111 -1, /* IMPLICIT tag at current level */
112 &asn_DEF_SetAtrReq,
113 0, /* Defer constraints checking to the member type */
114 0, /* PER is not compiled, use -gen-PER */
115 0,
116 "setAtrReq"
117 },
118 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.setAtrRes),
119 (ASN_TAG_CLASS_CONTEXT | (11 << 2)),
120 -1, /* IMPLICIT tag at current level */
121 &asn_DEF_SetAtrRes,
122 0, /* Defer constraints checking to the member type */
123 0, /* PER is not compiled, use -gen-PER */
124 0,
125 "setAtrRes"
126 },
127 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.tpduModemToCard),
128 (ASN_TAG_CLASS_CONTEXT | (12 << 2)),
129 -1, /* IMPLICIT tag at current level */
130 &asn_DEF_TpduModemToCard,
131 0, /* Defer constraints checking to the member type */
132 0, /* PER is not compiled, use -gen-PER */
133 0,
134 "tpduModemToCard"
135 },
136 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.tpduCardToModem),
137 (ASN_TAG_CLASS_CONTEXT | (13 << 2)),
138 -1, /* IMPLICIT tag at current level */
139 &asn_DEF_TpduCardToModem,
140 0, /* Defer constraints checking to the member type */
141 0, /* PER is not compiled, use -gen-PER */
142 0,
143 "tpduCardToModem"
144 },
145 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.clientSlotStatusInd),
146 (ASN_TAG_CLASS_CONTEXT | (14 << 2)),
147 -1, /* IMPLICIT tag at current level */
148 &asn_DEF_ClientSlotStatusInd,
149 0, /* Defer constraints checking to the member type */
150 0, /* PER is not compiled, use -gen-PER */
151 0,
152 "clientSlotStatusInd"
153 },
154 { ATF_NOFLAGS, 0, offsetof(struct RsproPDUchoice, choice.bankSlotStatusInd),
155 (ASN_TAG_CLASS_CONTEXT | (15 << 2)),
156 -1, /* IMPLICIT tag at current level */
157 &asn_DEF_BankSlotStatusInd,
158 0, /* Defer constraints checking to the member type */
159 0, /* PER is not compiled, use -gen-PER */
160 0,
161 "bankSlotStatusInd"
162 },
163};
164static const asn_TYPE_tag2member_t asn_MAP_RsproPDUchoice_tag2el_1[] = {
165 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* connectBankReq */
166 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* connectBankRes */
167 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* connectClientReq */
168 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* connectClientRes */
169 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* createMappingReq */
170 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* createMappingRes */
171 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* removeMappingReq */
172 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* removeMappingRes */
173 { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* configClientReq */
174 { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* configClientRes */
Harald Welte769ab7d2019-03-09 15:10:36 +0100175 { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 11, 0, 0 }, /* setAtrReq */
176 { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 12, 0, 0 }, /* setAtrRes */
177 { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 13, 0, 0 }, /* tpduModemToCard */
178 { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 14, 0, 0 }, /* tpduCardToModem */
179 { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 15, 0, 0 }, /* clientSlotStatusInd */
180 { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 16, 0, 0 }, /* bankSlotStatusInd */
181 { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 10, 0, 0 } /* errorInd */
Harald Welte3aa901d2018-08-13 18:32:36 +0200182};
183static asn_CHOICE_specifics_t asn_SPC_RsproPDUchoice_specs_1 = {
184 sizeof(struct RsproPDUchoice),
185 offsetof(struct RsproPDUchoice, _asn_ctx),
186 offsetof(struct RsproPDUchoice, present),
187 sizeof(((struct RsproPDUchoice *)0)->present),
188 asn_MAP_RsproPDUchoice_tag2el_1,
Harald Welte769ab7d2019-03-09 15:10:36 +0100189 17, /* Count of tags in the map */
Harald Welte3aa901d2018-08-13 18:32:36 +0200190 0,
Harald Welte769ab7d2019-03-09 15:10:36 +0100191 17 /* Extensions start */
Harald Welte3aa901d2018-08-13 18:32:36 +0200192};
193asn_TYPE_descriptor_t asn_DEF_RsproPDUchoice = {
194 "RsproPDUchoice",
195 "RsproPDUchoice",
196 CHOICE_free,
197 CHOICE_print,
198 CHOICE_constraint,
199 CHOICE_decode_ber,
200 CHOICE_encode_der,
201 CHOICE_decode_xer,
202 CHOICE_encode_xer,
203 0, 0, /* No UPER support, use "-gen-PER" to enable */
204 0, 0, /* No APER support, use "-gen-PER" to enable */
205 CHOICE_outmost_tag,
206 0, /* No effective tags (pointer) */
207 0, /* No effective tags (count) */
208 0, /* No tags (pointer) */
209 0, /* No tags (count) */
210 0, /* No PER visible constraints */
211 asn_MBR_RsproPDUchoice_1,
Harald Welte769ab7d2019-03-09 15:10:36 +0100212 17, /* Elements count */
Harald Welte3aa901d2018-08-13 18:32:36 +0200213 &asn_SPC_RsproPDUchoice_specs_1 /* Additional specs */
214};
215