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-IEs"
27 * found in "../../asnFiles/X2AP-IEs.asn"
28 * `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
31 #include "CSIReportPerCSIProcessItem.h"
33 #include "SubbandCQIList.h"
34 #include "ProtocolExtensionContainer.h"
36 memb_rI_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr,
37 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
41 ASN__CTFAIL(app_key, td, sptr,
42 "%s: value not given (%s:%d)",
43 td->name, __FILE__, __LINE__);
47 value = *(const long *)sptr;
49 if((value >= 1 && value <= 8)) {
50 /* Constraint check succeeded */
53 ASN__CTFAIL(app_key, td, sptr,
54 "%s: constraint failed (%s:%d)",
55 td->name, __FILE__, __LINE__);
60 static asn_per_constraints_t asn_PER_memb_rI_constr_3 CC_NOTUSED = {
61 { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 1, 8 } /* (1..8,...) */,
62 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
63 0, 0 /* No PER value map */
65 asn_per_constraints_t asn_PER_type_CSIReportPerCSIProcessItem_constr_1 CC_NOTUSED = {
66 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
67 { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */,
68 0, 0 /* No PER value map */
70 static asn_TYPE_member_t asn_MBR_Member_2[] = {
71 { ATF_NOFLAGS, 0, offsetof(struct CSIReportPerCSIProcessItem__Member, rI),
72 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
73 -1, /* IMPLICIT tag at current level */
74 &asn_DEF_NativeInteger,
76 { 0, &asn_PER_memb_rI_constr_3, memb_rI_constraint_2 },
77 0, 0, /* No default value */
80 { ATF_NOFLAGS, 0, offsetof(struct CSIReportPerCSIProcessItem__Member, widebandCQI),
81 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
82 -1, /* IMPLICIT tag at current level */
86 0, 0, /* No default value */
89 { ATF_NOFLAGS, 0, offsetof(struct CSIReportPerCSIProcessItem__Member, subbandSize),
90 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
91 -1, /* IMPLICIT tag at current level */
95 0, 0, /* No default value */
98 { ATF_POINTER, 2, offsetof(struct CSIReportPerCSIProcessItem__Member, subbandCQIList),
99 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
100 -1, /* IMPLICIT tag at current level */
101 &asn_DEF_SubbandCQIList,
104 0, 0, /* No default value */
107 { ATF_POINTER, 1, offsetof(struct CSIReportPerCSIProcessItem__Member, iE_Extensions),
108 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
109 -1, /* IMPLICIT tag at current level */
110 &asn_DEF_ProtocolExtensionContainer_170P130,
113 0, 0, /* No default value */
117 static const int asn_MAP_Member_oms_2[] = { 3, 4 };
118 static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
119 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
121 static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
122 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rI */
123 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* widebandCQI */
124 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* subbandSize */
125 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* subbandCQIList */
126 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */
128 static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = {
129 sizeof(struct CSIReportPerCSIProcessItem__Member),
130 offsetof(struct CSIReportPerCSIProcessItem__Member, _asn_ctx),
131 asn_MAP_Member_tag2el_2,
132 5, /* Count of tags in the map */
133 asn_MAP_Member_oms_2, /* Optional members */
134 2, 0, /* Root/Additions */
135 5, /* First extension addition */
137 static /* Use -fall-defs-global to expose */
138 asn_TYPE_descriptor_t asn_DEF_Member_2 = {
142 asn_DEF_Member_tags_2,
143 sizeof(asn_DEF_Member_tags_2)
144 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
145 asn_DEF_Member_tags_2, /* Same as above */
146 sizeof(asn_DEF_Member_tags_2)
147 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
148 { 0, 0, SEQUENCE_constraint },
150 5, /* Elements count */
151 &asn_SPC_Member_specs_2 /* Additional specs */
154 asn_TYPE_member_t asn_MBR_CSIReportPerCSIProcessItem_1[] = {
156 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
161 0, 0, /* No default value */
165 static const ber_tlv_tag_t asn_DEF_CSIReportPerCSIProcessItem_tags_1[] = {
166 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
168 asn_SET_OF_specifics_t asn_SPC_CSIReportPerCSIProcessItem_specs_1 = {
169 sizeof(struct CSIReportPerCSIProcessItem),
170 offsetof(struct CSIReportPerCSIProcessItem, _asn_ctx),
171 0, /* XER encoding is XMLDelimitedItemList */
173 asn_TYPE_descriptor_t asn_DEF_CSIReportPerCSIProcessItem = {
174 "CSIReportPerCSIProcessItem",
175 "CSIReportPerCSIProcessItem",
177 asn_DEF_CSIReportPerCSIProcessItem_tags_1,
178 sizeof(asn_DEF_CSIReportPerCSIProcessItem_tags_1)
179 /sizeof(asn_DEF_CSIReportPerCSIProcessItem_tags_1[0]), /* 1 */
180 asn_DEF_CSIReportPerCSIProcessItem_tags_1, /* Same as above */
181 sizeof(asn_DEF_CSIReportPerCSIProcessItem_tags_1)
182 /sizeof(asn_DEF_CSIReportPerCSIProcessItem_tags_1[0]), /* 1 */
183 { 0, &asn_PER_type_CSIReportPerCSIProcessItem_constr_1, SEQUENCE_OF_constraint },
184 asn_MBR_CSIReportPerCSIProcessItem_1,
185 1, /* Single element */
186 &asn_SPC_CSIReportPerCSIProcessItem_specs_1 /* Additional specs */