3 * Copyright 2019 AT&T Intellectual Property
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
21 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
22 * From ASN.1 module "X2AP-PDU-Contents"
23 * found in "../../asnFiles/X2AP-PDU-Contents.asn"
24 * `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
27 #include "E-RABs-SubjectToSgNBCounterCheck-Item.h"
29 #include "ProtocolExtensionContainer.h"
31 uL_Count_3_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
32 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
35 ASN__CTFAIL(app_key, td, sptr,
36 "%s: value not given (%s:%d)",
37 td->name, __FILE__, __LINE__);
42 /* Constraint check succeeded */
47 * This type is implemented using NativeInteger,
48 * so here we adjust the DEF accordingly.
51 dL_Count_4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
52 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
55 ASN__CTFAIL(app_key, td, sptr,
56 "%s: value not given (%s:%d)",
57 td->name, __FILE__, __LINE__);
62 /* Constraint check succeeded */
67 * This type is implemented using NativeInteger,
68 * so here we adjust the DEF accordingly.
71 memb_uL_Count_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
72 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
75 ASN__CTFAIL(app_key, td, sptr,
76 "%s: value not given (%s:%d)",
77 td->name, __FILE__, __LINE__);
82 /* Constraint check succeeded */
87 memb_dL_Count_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
88 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
91 ASN__CTFAIL(app_key, td, sptr,
92 "%s: value not given (%s:%d)",
93 td->name, __FILE__, __LINE__);
98 /* Constraint check succeeded */
102 static asn_per_constraints_t asn_PER_type_uL_Count_constr_3 CC_NOTUSED = {
103 { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
104 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
105 0, 0 /* No PER value map */
107 static asn_per_constraints_t asn_PER_type_dL_Count_constr_4 CC_NOTUSED = {
108 { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
109 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
110 0, 0 /* No PER value map */
112 static asn_per_constraints_t asn_PER_memb_uL_Count_constr_3 CC_NOTUSED = {
113 { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
114 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
115 0, 0 /* No PER value map */
117 static asn_per_constraints_t asn_PER_memb_dL_Count_constr_4 CC_NOTUSED = {
118 { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
119 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
120 0, 0 /* No PER value map */
122 static const asn_INTEGER_specifics_t asn_SPC_uL_Count_specs_3 = {
124 0, /* Native long size */
125 1 /* Unsigned representation */
127 static const ber_tlv_tag_t asn_DEF_uL_Count_tags_3[] = {
128 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
129 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
131 static /* Use -fall-defs-global to expose */
132 asn_TYPE_descriptor_t asn_DEF_uL_Count_3 = {
135 &asn_OP_NativeInteger,
136 asn_DEF_uL_Count_tags_3,
137 sizeof(asn_DEF_uL_Count_tags_3)
138 /sizeof(asn_DEF_uL_Count_tags_3[0]) - 1, /* 1 */
139 asn_DEF_uL_Count_tags_3, /* Same as above */
140 sizeof(asn_DEF_uL_Count_tags_3)
141 /sizeof(asn_DEF_uL_Count_tags_3[0]), /* 2 */
142 { 0, &asn_PER_type_uL_Count_constr_3, uL_Count_3_constraint },
143 0, 0, /* No members */
144 &asn_SPC_uL_Count_specs_3 /* Additional specs */
147 static const asn_INTEGER_specifics_t asn_SPC_dL_Count_specs_4 = {
149 0, /* Native long size */
150 1 /* Unsigned representation */
152 static const ber_tlv_tag_t asn_DEF_dL_Count_tags_4[] = {
153 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
154 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
156 static /* Use -fall-defs-global to expose */
157 asn_TYPE_descriptor_t asn_DEF_dL_Count_4 = {
160 &asn_OP_NativeInteger,
161 asn_DEF_dL_Count_tags_4,
162 sizeof(asn_DEF_dL_Count_tags_4)
163 /sizeof(asn_DEF_dL_Count_tags_4[0]) - 1, /* 1 */
164 asn_DEF_dL_Count_tags_4, /* Same as above */
165 sizeof(asn_DEF_dL_Count_tags_4)
166 /sizeof(asn_DEF_dL_Count_tags_4[0]), /* 2 */
167 { 0, &asn_PER_type_dL_Count_constr_4, dL_Count_4_constraint },
168 0, 0, /* No members */
169 &asn_SPC_dL_Count_specs_4 /* Additional specs */
172 static asn_TYPE_member_t asn_MBR_E_RABs_SubjectToSgNBCounterCheck_Item_1[] = {
173 { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToSgNBCounterCheck_Item, e_RAB_ID),
174 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
175 -1, /* IMPLICIT tag at current level */
179 0, 0, /* No default value */
182 { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToSgNBCounterCheck_Item, uL_Count),
183 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
184 -1, /* IMPLICIT tag at current level */
187 { 0, &asn_PER_memb_uL_Count_constr_3, memb_uL_Count_constraint_1 },
188 0, 0, /* No default value */
191 { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToSgNBCounterCheck_Item, dL_Count),
192 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
193 -1, /* IMPLICIT tag at current level */
196 { 0, &asn_PER_memb_dL_Count_constr_4, memb_dL_Count_constraint_1 },
197 0, 0, /* No default value */
200 { ATF_POINTER, 1, offsetof(struct E_RABs_SubjectToSgNBCounterCheck_Item, iE_Extensions),
201 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
202 -1, /* IMPLICIT tag at current level */
203 &asn_DEF_ProtocolExtensionContainer_170P86,
206 0, 0, /* No default value */
210 static const int asn_MAP_E_RABs_SubjectToSgNBCounterCheck_Item_oms_1[] = { 3 };
211 static const ber_tlv_tag_t asn_DEF_E_RABs_SubjectToSgNBCounterCheck_Item_tags_1[] = {
212 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
214 static const asn_TYPE_tag2member_t asn_MAP_E_RABs_SubjectToSgNBCounterCheck_Item_tag2el_1[] = {
215 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* e-RAB-ID */
216 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uL-Count */
217 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dL-Count */
218 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
220 static asn_SEQUENCE_specifics_t asn_SPC_E_RABs_SubjectToSgNBCounterCheck_Item_specs_1 = {
221 sizeof(struct E_RABs_SubjectToSgNBCounterCheck_Item),
222 offsetof(struct E_RABs_SubjectToSgNBCounterCheck_Item, _asn_ctx),
223 asn_MAP_E_RABs_SubjectToSgNBCounterCheck_Item_tag2el_1,
224 4, /* Count of tags in the map */
225 asn_MAP_E_RABs_SubjectToSgNBCounterCheck_Item_oms_1, /* Optional members */
226 1, 0, /* Root/Additions */
227 4, /* First extension addition */
229 asn_TYPE_descriptor_t asn_DEF_E_RABs_SubjectToSgNBCounterCheck_Item = {
230 "E-RABs-SubjectToSgNBCounterCheck-Item",
231 "E-RABs-SubjectToSgNBCounterCheck-Item",
233 asn_DEF_E_RABs_SubjectToSgNBCounterCheck_Item_tags_1,
234 sizeof(asn_DEF_E_RABs_SubjectToSgNBCounterCheck_Item_tags_1)
235 /sizeof(asn_DEF_E_RABs_SubjectToSgNBCounterCheck_Item_tags_1[0]), /* 1 */
236 asn_DEF_E_RABs_SubjectToSgNBCounterCheck_Item_tags_1, /* Same as above */
237 sizeof(asn_DEF_E_RABs_SubjectToSgNBCounterCheck_Item_tags_1)
238 /sizeof(asn_DEF_E_RABs_SubjectToSgNBCounterCheck_Item_tags_1[0]), /* 1 */
239 { 0, 0, SEQUENCE_constraint },
240 asn_MBR_E_RABs_SubjectToSgNBCounterCheck_Item_1,
241 4, /* Elements count */
242 &asn_SPC_E_RABs_SubjectToSgNBCounterCheck_Item_specs_1 /* Additional specs */