2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "NR-RRC-Definitions"
4 * found in "/home/labadmin/hlal/rrc_15.3_asn.asn1"
5 * `asn1c -D ./15_3_rrc/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
8 #include "DRB-ToAddMod.h"
10 #include "PDCP-Config.h"
11 #include "SDAP-Config.h"
13 memb_eps_BearerIdentity_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr,
14 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
18 ASN__CTFAIL(app_key, td, sptr,
19 "%s: value not given (%s:%d)",
20 td->name, __FILE__, __LINE__);
24 value = *(const long *)sptr;
26 if((value >= 0 && value <= 15)) {
27 /* Constraint check succeeded */
30 ASN__CTFAIL(app_key, td, sptr,
31 "%s: constraint failed (%s:%d)",
32 td->name, __FILE__, __LINE__);
38 * This type is implemented using NativeEnumerated,
39 * so here we adjust the DEF accordingly.
42 * This type is implemented using NativeEnumerated,
43 * so here we adjust the DEF accordingly.
45 static asn_oer_constraints_t asn_OER_memb_eps_BearerIdentity_constr_3 CC_NOTUSED = {
46 { 1, 1 } /* (0..15) */,
48 static asn_per_constraints_t asn_PER_memb_eps_BearerIdentity_constr_3 CC_NOTUSED = {
49 { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */,
50 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
51 0, 0 /* No PER value map */
53 static asn_oer_constraints_t asn_OER_type_cnAssociation_constr_2 CC_NOTUSED = {
56 static asn_per_constraints_t asn_PER_type_cnAssociation_constr_2 CC_NOTUSED = {
57 { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
58 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
59 0, 0 /* No PER value map */
61 static asn_oer_constraints_t asn_OER_type_reestablishPDCP_constr_6 CC_NOTUSED = {
64 static asn_per_constraints_t asn_PER_type_reestablishPDCP_constr_6 CC_NOTUSED = {
65 { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */,
66 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
67 0, 0 /* No PER value map */
69 static asn_oer_constraints_t asn_OER_type_recoverPDCP_constr_8 CC_NOTUSED = {
72 static asn_per_constraints_t asn_PER_type_recoverPDCP_constr_8 CC_NOTUSED = {
73 { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */,
74 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
75 0, 0 /* No PER value map */
77 static asn_TYPE_member_t asn_MBR_cnAssociation_2[] = {
78 { ATF_NOFLAGS, 0, offsetof(struct DRB_ToAddMod__cnAssociation, choice.eps_BearerIdentity),
79 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
80 -1, /* IMPLICIT tag at current level */
81 &asn_DEF_NativeInteger,
83 { &asn_OER_memb_eps_BearerIdentity_constr_3, &asn_PER_memb_eps_BearerIdentity_constr_3, memb_eps_BearerIdentity_constraint_2 },
84 0, 0, /* No default value */
87 { ATF_POINTER, 0, offsetof(struct DRB_ToAddMod__cnAssociation, choice.sdap_Config),
88 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
89 -1, /* IMPLICIT tag at current level */
93 0, 0, /* No default value */
97 static const asn_TYPE_tag2member_t asn_MAP_cnAssociation_tag2el_2[] = {
98 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eps-BearerIdentity */
99 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* sdap-Config */
101 static asn_CHOICE_specifics_t asn_SPC_cnAssociation_specs_2 = {
102 sizeof(struct DRB_ToAddMod__cnAssociation),
103 offsetof(struct DRB_ToAddMod__cnAssociation, _asn_ctx),
104 offsetof(struct DRB_ToAddMod__cnAssociation, present),
105 sizeof(((struct DRB_ToAddMod__cnAssociation *)0)->present),
106 asn_MAP_cnAssociation_tag2el_2,
107 2, /* Count of tags in the map */
109 -1 /* Extensions start */
111 static /* Use -fall-defs-global to expose */
112 asn_TYPE_descriptor_t asn_DEF_cnAssociation_2 = {
116 0, /* No effective tags (pointer) */
117 0, /* No effective tags (count) */
118 0, /* No tags (pointer) */
119 0, /* No tags (count) */
120 { &asn_OER_type_cnAssociation_constr_2, &asn_PER_type_cnAssociation_constr_2, CHOICE_constraint },
121 asn_MBR_cnAssociation_2,
122 2, /* Elements count */
123 &asn_SPC_cnAssociation_specs_2 /* Additional specs */
126 static const asn_INTEGER_enum_map_t asn_MAP_reestablishPDCP_value2enum_6[] = {
129 static const unsigned int asn_MAP_reestablishPDCP_enum2value_6[] = {
132 static const asn_INTEGER_specifics_t asn_SPC_reestablishPDCP_specs_6 = {
133 asn_MAP_reestablishPDCP_value2enum_6, /* "tag" => N; sorted by tag */
134 asn_MAP_reestablishPDCP_enum2value_6, /* N => "tag"; sorted by N */
135 1, /* Number of elements in the maps */
136 0, /* Enumeration is not extensible */
137 1, /* Strict enumeration */
138 0, /* Native long size */
141 static const ber_tlv_tag_t asn_DEF_reestablishPDCP_tags_6[] = {
142 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
143 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
145 static /* Use -fall-defs-global to expose */
146 asn_TYPE_descriptor_t asn_DEF_reestablishPDCP_6 = {
149 &asn_OP_NativeEnumerated,
150 asn_DEF_reestablishPDCP_tags_6,
151 sizeof(asn_DEF_reestablishPDCP_tags_6)
152 /sizeof(asn_DEF_reestablishPDCP_tags_6[0]) - 1, /* 1 */
153 asn_DEF_reestablishPDCP_tags_6, /* Same as above */
154 sizeof(asn_DEF_reestablishPDCP_tags_6)
155 /sizeof(asn_DEF_reestablishPDCP_tags_6[0]), /* 2 */
156 { &asn_OER_type_reestablishPDCP_constr_6, &asn_PER_type_reestablishPDCP_constr_6, NativeEnumerated_constraint },
157 0, 0, /* Defined elsewhere */
158 &asn_SPC_reestablishPDCP_specs_6 /* Additional specs */
161 static const asn_INTEGER_enum_map_t asn_MAP_recoverPDCP_value2enum_8[] = {
164 static const unsigned int asn_MAP_recoverPDCP_enum2value_8[] = {
167 static const asn_INTEGER_specifics_t asn_SPC_recoverPDCP_specs_8 = {
168 asn_MAP_recoverPDCP_value2enum_8, /* "tag" => N; sorted by tag */
169 asn_MAP_recoverPDCP_enum2value_8, /* N => "tag"; sorted by N */
170 1, /* Number of elements in the maps */
171 0, /* Enumeration is not extensible */
172 1, /* Strict enumeration */
173 0, /* Native long size */
176 static const ber_tlv_tag_t asn_DEF_recoverPDCP_tags_8[] = {
177 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
178 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
180 static /* Use -fall-defs-global to expose */
181 asn_TYPE_descriptor_t asn_DEF_recoverPDCP_8 = {
184 &asn_OP_NativeEnumerated,
185 asn_DEF_recoverPDCP_tags_8,
186 sizeof(asn_DEF_recoverPDCP_tags_8)
187 /sizeof(asn_DEF_recoverPDCP_tags_8[0]) - 1, /* 1 */
188 asn_DEF_recoverPDCP_tags_8, /* Same as above */
189 sizeof(asn_DEF_recoverPDCP_tags_8)
190 /sizeof(asn_DEF_recoverPDCP_tags_8[0]), /* 2 */
191 { &asn_OER_type_recoverPDCP_constr_8, &asn_PER_type_recoverPDCP_constr_8, NativeEnumerated_constraint },
192 0, 0, /* Defined elsewhere */
193 &asn_SPC_recoverPDCP_specs_8 /* Additional specs */
196 asn_TYPE_member_t asn_MBR_DRB_ToAddMod_1[] = {
197 { ATF_POINTER, 1, offsetof(struct DRB_ToAddMod, cnAssociation),
198 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
199 +1, /* EXPLICIT tag at current level */
200 &asn_DEF_cnAssociation_2,
203 0, 0, /* No default value */
206 { ATF_NOFLAGS, 0, offsetof(struct DRB_ToAddMod, drb_Identity),
207 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
208 -1, /* IMPLICIT tag at current level */
209 &asn_DEF_DRB_Identity,
212 0, 0, /* No default value */
215 { ATF_POINTER, 3, offsetof(struct DRB_ToAddMod, reestablishPDCP),
216 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
217 -1, /* IMPLICIT tag at current level */
218 &asn_DEF_reestablishPDCP_6,
221 0, 0, /* No default value */
224 { ATF_POINTER, 2, offsetof(struct DRB_ToAddMod, recoverPDCP),
225 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
226 -1, /* IMPLICIT tag at current level */
227 &asn_DEF_recoverPDCP_8,
230 0, 0, /* No default value */
233 { ATF_POINTER, 1, offsetof(struct DRB_ToAddMod, pdcp_Config),
234 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
235 -1, /* IMPLICIT tag at current level */
236 &asn_DEF_PDCP_Config,
239 0, 0, /* No default value */
243 static const int asn_MAP_DRB_ToAddMod_oms_1[] = { 0, 2, 3, 4 };
244 static const ber_tlv_tag_t asn_DEF_DRB_ToAddMod_tags_1[] = {
245 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
247 static const asn_TYPE_tag2member_t asn_MAP_DRB_ToAddMod_tag2el_1[] = {
248 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cnAssociation */
249 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* drb-Identity */
250 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* reestablishPDCP */
251 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* recoverPDCP */
252 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* pdcp-Config */
254 asn_SEQUENCE_specifics_t asn_SPC_DRB_ToAddMod_specs_1 = {
255 sizeof(struct DRB_ToAddMod),
256 offsetof(struct DRB_ToAddMod, _asn_ctx),
257 asn_MAP_DRB_ToAddMod_tag2el_1,
258 5, /* Count of tags in the map */
259 asn_MAP_DRB_ToAddMod_oms_1, /* Optional members */
260 4, 0, /* Root/Additions */
261 5, /* First extension addition */
263 asn_TYPE_descriptor_t asn_DEF_DRB_ToAddMod = {
267 asn_DEF_DRB_ToAddMod_tags_1,
268 sizeof(asn_DEF_DRB_ToAddMod_tags_1)
269 /sizeof(asn_DEF_DRB_ToAddMod_tags_1[0]), /* 1 */
270 asn_DEF_DRB_ToAddMod_tags_1, /* Same as above */
271 sizeof(asn_DEF_DRB_ToAddMod_tags_1)
272 /sizeof(asn_DEF_DRB_ToAddMod_tags_1[0]), /* 1 */
273 { 0, 0, SEQUENCE_constraint },
274 asn_MBR_DRB_ToAddMod_1,
275 5, /* Elements count */
276 &asn_SPC_DRB_ToAddMod_specs_1 /* Additional specs */