2 * Copyright 2019 AT&T Intellectual Property
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * This source code is part of the near-RT RIC (RAN Intelligent Controller)
19 * platform project (RICP).
25 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
26 * From ASN.1 module "X2AP-PDU-Contents"
27 * found in "../../asnFiles/X2AP-PDU-Contents.asn"
28 * `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
31 #include "E-RABs-SubjectToSgNBCounterCheck-Item.h"
33 #include "ProtocolExtensionContainer.h"
35 uL_Count_3_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
36 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
39 ASN__CTFAIL(app_key, td, sptr,
40 "%s: value not given (%s:%d)",
41 td->name, __FILE__, __LINE__);
46 /* Constraint check succeeded */
51 * This type is implemented using NativeInteger,
52 * so here we adjust the DEF accordingly.
55 dL_Count_4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
56 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
59 ASN__CTFAIL(app_key, td, sptr,
60 "%s: value not given (%s:%d)",
61 td->name, __FILE__, __LINE__);
66 /* Constraint check succeeded */
71 * This type is implemented using NativeInteger,
72 * so here we adjust the DEF accordingly.
75 memb_uL_Count_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
76 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
79 ASN__CTFAIL(app_key, td, sptr,
80 "%s: value not given (%s:%d)",
81 td->name, __FILE__, __LINE__);
86 /* Constraint check succeeded */
91 memb_dL_Count_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
92 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
95 ASN__CTFAIL(app_key, td, sptr,
96 "%s: value not given (%s:%d)",
97 td->name, __FILE__, __LINE__);
102 /* Constraint check succeeded */
106 static asn_per_constraints_t asn_PER_type_uL_Count_constr_3 CC_NOTUSED = {
107 { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
108 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
109 0, 0 /* No PER value map */
111 static asn_per_constraints_t asn_PER_type_dL_Count_constr_4 CC_NOTUSED = {
112 { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
113 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
114 0, 0 /* No PER value map */
116 static asn_per_constraints_t asn_PER_memb_uL_Count_constr_3 CC_NOTUSED = {
117 { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
118 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
119 0, 0 /* No PER value map */
121 static asn_per_constraints_t asn_PER_memb_dL_Count_constr_4 CC_NOTUSED = {
122 { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
123 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
124 0, 0 /* No PER value map */
126 static const asn_INTEGER_specifics_t asn_SPC_uL_Count_specs_3 = {
128 0, /* Native long size */
129 1 /* Unsigned representation */
131 static const ber_tlv_tag_t asn_DEF_uL_Count_tags_3[] = {
132 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
133 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
135 static /* Use -fall-defs-global to expose */
136 asn_TYPE_descriptor_t asn_DEF_uL_Count_3 = {
139 &asn_OP_NativeInteger,
140 asn_DEF_uL_Count_tags_3,
141 sizeof(asn_DEF_uL_Count_tags_3)
142 /sizeof(asn_DEF_uL_Count_tags_3[0]) - 1, /* 1 */
143 asn_DEF_uL_Count_tags_3, /* Same as above */
144 sizeof(asn_DEF_uL_Count_tags_3)
145 /sizeof(asn_DEF_uL_Count_tags_3[0]), /* 2 */
146 { 0, &asn_PER_type_uL_Count_constr_3, uL_Count_3_constraint },
147 0, 0, /* No members */
148 &asn_SPC_uL_Count_specs_3 /* Additional specs */
151 static const asn_INTEGER_specifics_t asn_SPC_dL_Count_specs_4 = {
153 0, /* Native long size */
154 1 /* Unsigned representation */
156 static const ber_tlv_tag_t asn_DEF_dL_Count_tags_4[] = {
157 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
158 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
160 static /* Use -fall-defs-global to expose */
161 asn_TYPE_descriptor_t asn_DEF_dL_Count_4 = {
164 &asn_OP_NativeInteger,
165 asn_DEF_dL_Count_tags_4,
166 sizeof(asn_DEF_dL_Count_tags_4)
167 /sizeof(asn_DEF_dL_Count_tags_4[0]) - 1, /* 1 */
168 asn_DEF_dL_Count_tags_4, /* Same as above */
169 sizeof(asn_DEF_dL_Count_tags_4)
170 /sizeof(asn_DEF_dL_Count_tags_4[0]), /* 2 */
171 { 0, &asn_PER_type_dL_Count_constr_4, dL_Count_4_constraint },
172 0, 0, /* No members */
173 &asn_SPC_dL_Count_specs_4 /* Additional specs */
176 static asn_TYPE_member_t asn_MBR_E_RABs_SubjectToSgNBCounterCheck_Item_1[] = {
177 { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToSgNBCounterCheck_Item, e_RAB_ID),
178 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
179 -1, /* IMPLICIT tag at current level */
183 0, 0, /* No default value */
186 { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToSgNBCounterCheck_Item, uL_Count),
187 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
188 -1, /* IMPLICIT tag at current level */
191 { 0, &asn_PER_memb_uL_Count_constr_3, memb_uL_Count_constraint_1 },
192 0, 0, /* No default value */
195 { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToSgNBCounterCheck_Item, dL_Count),
196 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
197 -1, /* IMPLICIT tag at current level */
200 { 0, &asn_PER_memb_dL_Count_constr_4, memb_dL_Count_constraint_1 },
201 0, 0, /* No default value */
204 { ATF_POINTER, 1, offsetof(struct E_RABs_SubjectToSgNBCounterCheck_Item, iE_Extensions),
205 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
206 -1, /* IMPLICIT tag at current level */
207 &asn_DEF_ProtocolExtensionContainer_170P86,
210 0, 0, /* No default value */
214 static const int asn_MAP_E_RABs_SubjectToSgNBCounterCheck_Item_oms_1[] = { 3 };
215 static const ber_tlv_tag_t asn_DEF_E_RABs_SubjectToSgNBCounterCheck_Item_tags_1[] = {
216 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
218 static const asn_TYPE_tag2member_t asn_MAP_E_RABs_SubjectToSgNBCounterCheck_Item_tag2el_1[] = {
219 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* e-RAB-ID */
220 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uL-Count */
221 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dL-Count */
222 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
224 static asn_SEQUENCE_specifics_t asn_SPC_E_RABs_SubjectToSgNBCounterCheck_Item_specs_1 = {
225 sizeof(struct E_RABs_SubjectToSgNBCounterCheck_Item),
226 offsetof(struct E_RABs_SubjectToSgNBCounterCheck_Item, _asn_ctx),
227 asn_MAP_E_RABs_SubjectToSgNBCounterCheck_Item_tag2el_1,
228 4, /* Count of tags in the map */
229 asn_MAP_E_RABs_SubjectToSgNBCounterCheck_Item_oms_1, /* Optional members */
230 1, 0, /* Root/Additions */
231 4, /* First extension addition */
233 asn_TYPE_descriptor_t asn_DEF_E_RABs_SubjectToSgNBCounterCheck_Item = {
234 "E-RABs-SubjectToSgNBCounterCheck-Item",
235 "E-RABs-SubjectToSgNBCounterCheck-Item",
237 asn_DEF_E_RABs_SubjectToSgNBCounterCheck_Item_tags_1,
238 sizeof(asn_DEF_E_RABs_SubjectToSgNBCounterCheck_Item_tags_1)
239 /sizeof(asn_DEF_E_RABs_SubjectToSgNBCounterCheck_Item_tags_1[0]), /* 1 */
240 asn_DEF_E_RABs_SubjectToSgNBCounterCheck_Item_tags_1, /* Same as above */
241 sizeof(asn_DEF_E_RABs_SubjectToSgNBCounterCheck_Item_tags_1)
242 /sizeof(asn_DEF_E_RABs_SubjectToSgNBCounterCheck_Item_tags_1[0]), /* 1 */
243 { 0, 0, SEQUENCE_constraint },
244 asn_MBR_E_RABs_SubjectToSgNBCounterCheck_Item_1,
245 4, /* Elements count */
246 &asn_SPC_E_RABs_SubjectToSgNBCounterCheck_Item_specs_1 /* Additional specs */