2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "X2AP-PDU-Contents"
4 * found in "Spec/e2ap-v031ex.asn"
5 * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER`
8 #include "E-RABs-SubjectToCounterCheckItem.h"
10 #include "ProtocolExtensionContainer.h"
12 uL_Count_3_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
13 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
16 ASN__CTFAIL(app_key, td, sptr,
17 "%s: value not given (%s:%d)",
18 td->name, __FILE__, __LINE__);
23 /* Constraint check succeeded */
28 * This type is implemented using NativeInteger,
29 * so here we adjust the DEF accordingly.
32 dL_Count_4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
33 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
36 ASN__CTFAIL(app_key, td, sptr,
37 "%s: value not given (%s:%d)",
38 td->name, __FILE__, __LINE__);
43 /* Constraint check succeeded */
48 * This type is implemented using NativeInteger,
49 * so here we adjust the DEF accordingly.
52 memb_uL_Count_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
53 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
56 ASN__CTFAIL(app_key, td, sptr,
57 "%s: value not given (%s:%d)",
58 td->name, __FILE__, __LINE__);
63 /* Constraint check succeeded */
68 memb_dL_Count_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
69 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
72 ASN__CTFAIL(app_key, td, sptr,
73 "%s: value not given (%s:%d)",
74 td->name, __FILE__, __LINE__);
79 /* Constraint check succeeded */
83 static asn_oer_constraints_t asn_OER_type_uL_Count_constr_3 CC_NOTUSED = {
84 { 4, 1 } /* (0..4294967295) */,
86 static asn_per_constraints_t asn_PER_type_uL_Count_constr_3 CC_NOTUSED = {
87 { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
88 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
89 0, 0 /* No PER value map */
91 static asn_oer_constraints_t asn_OER_type_dL_Count_constr_4 CC_NOTUSED = {
92 { 4, 1 } /* (0..4294967295) */,
94 static asn_per_constraints_t asn_PER_type_dL_Count_constr_4 CC_NOTUSED = {
95 { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
96 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
97 0, 0 /* No PER value map */
99 static asn_oer_constraints_t asn_OER_memb_uL_Count_constr_3 CC_NOTUSED = {
100 { 4, 1 } /* (0..4294967295) */,
102 static asn_per_constraints_t asn_PER_memb_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_oer_constraints_t asn_OER_memb_dL_Count_constr_4 CC_NOTUSED = {
108 { 4, 1 } /* (0..4294967295) */,
110 static asn_per_constraints_t asn_PER_memb_dL_Count_constr_4 CC_NOTUSED = {
111 { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
112 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
113 0, 0 /* No PER value map */
115 static const asn_INTEGER_specifics_t asn_SPC_uL_Count_specs_3 = {
117 0, /* Native long size */
118 1 /* Unsigned representation */
120 static const ber_tlv_tag_t asn_DEF_uL_Count_tags_3[] = {
121 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
122 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
124 static /* Use -fall-defs-global to expose */
125 asn_TYPE_descriptor_t asn_DEF_uL_Count_3 = {
128 &asn_OP_NativeInteger,
129 asn_DEF_uL_Count_tags_3,
130 sizeof(asn_DEF_uL_Count_tags_3)
131 /sizeof(asn_DEF_uL_Count_tags_3[0]) - 1, /* 1 */
132 asn_DEF_uL_Count_tags_3, /* Same as above */
133 sizeof(asn_DEF_uL_Count_tags_3)
134 /sizeof(asn_DEF_uL_Count_tags_3[0]), /* 2 */
135 { &asn_OER_type_uL_Count_constr_3, &asn_PER_type_uL_Count_constr_3, uL_Count_3_constraint },
136 0, 0, /* No members */
137 &asn_SPC_uL_Count_specs_3 /* Additional specs */
140 static const asn_INTEGER_specifics_t asn_SPC_dL_Count_specs_4 = {
142 0, /* Native long size */
143 1 /* Unsigned representation */
145 static const ber_tlv_tag_t asn_DEF_dL_Count_tags_4[] = {
146 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
147 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
149 static /* Use -fall-defs-global to expose */
150 asn_TYPE_descriptor_t asn_DEF_dL_Count_4 = {
153 &asn_OP_NativeInteger,
154 asn_DEF_dL_Count_tags_4,
155 sizeof(asn_DEF_dL_Count_tags_4)
156 /sizeof(asn_DEF_dL_Count_tags_4[0]) - 1, /* 1 */
157 asn_DEF_dL_Count_tags_4, /* Same as above */
158 sizeof(asn_DEF_dL_Count_tags_4)
159 /sizeof(asn_DEF_dL_Count_tags_4[0]), /* 2 */
160 { &asn_OER_type_dL_Count_constr_4, &asn_PER_type_dL_Count_constr_4, dL_Count_4_constraint },
161 0, 0, /* No members */
162 &asn_SPC_dL_Count_specs_4 /* Additional specs */
165 static asn_TYPE_member_t asn_MBR_E_RABs_SubjectToCounterCheckItem_1[] = {
166 { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToCounterCheckItem, e_RAB_ID),
167 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
168 -1, /* IMPLICIT tag at current level */
172 0, 0, /* No default value */
175 { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToCounterCheckItem, uL_Count),
176 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
177 -1, /* IMPLICIT tag at current level */
180 { &asn_OER_memb_uL_Count_constr_3, &asn_PER_memb_uL_Count_constr_3, memb_uL_Count_constraint_1 },
181 0, 0, /* No default value */
184 { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToCounterCheckItem, dL_Count),
185 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
186 -1, /* IMPLICIT tag at current level */
189 { &asn_OER_memb_dL_Count_constr_4, &asn_PER_memb_dL_Count_constr_4, memb_dL_Count_constraint_1 },
190 0, 0, /* No default value */
193 { ATF_POINTER, 1, offsetof(struct E_RABs_SubjectToCounterCheckItem, iE_Extensions),
194 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
195 -1, /* IMPLICIT tag at current level */
196 &asn_DEF_ProtocolExtensionContainer_9566P41,
199 0, 0, /* No default value */
203 static const int asn_MAP_E_RABs_SubjectToCounterCheckItem_oms_1[] = { 3 };
204 static const ber_tlv_tag_t asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1[] = {
205 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
207 static const asn_TYPE_tag2member_t asn_MAP_E_RABs_SubjectToCounterCheckItem_tag2el_1[] = {
208 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* e-RAB-ID */
209 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uL-Count */
210 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dL-Count */
211 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
213 static asn_SEQUENCE_specifics_t asn_SPC_E_RABs_SubjectToCounterCheckItem_specs_1 = {
214 sizeof(struct E_RABs_SubjectToCounterCheckItem),
215 offsetof(struct E_RABs_SubjectToCounterCheckItem, _asn_ctx),
216 asn_MAP_E_RABs_SubjectToCounterCheckItem_tag2el_1,
217 4, /* Count of tags in the map */
218 asn_MAP_E_RABs_SubjectToCounterCheckItem_oms_1, /* Optional members */
219 1, 0, /* Root/Additions */
220 4, /* First extension addition */
222 asn_TYPE_descriptor_t asn_DEF_E_RABs_SubjectToCounterCheckItem = {
223 "E-RABs-SubjectToCounterCheckItem",
224 "E-RABs-SubjectToCounterCheckItem",
226 asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1,
227 sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1)
228 /sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1[0]), /* 1 */
229 asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1, /* Same as above */
230 sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1)
231 /sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1[0]), /* 1 */
232 { 0, 0, SEQUENCE_constraint },
233 asn_MBR_E_RABs_SubjectToCounterCheckItem_1,
234 4, /* Elements count */
235 &asn_SPC_E_RABs_SubjectToCounterCheckItem_specs_1 /* Additional specs */