2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "X2AP-IEs"
4 * found in "Spec/e2_and_x2-combined-and-minimized.asn1"
5 * `asn1c -pdu=auto -fincludes-quoted -fcompound-names -fno-include-deps -gen-PER -no-gen-OER -no-gen-example`
8 #include "CSIReportPerCSIProcessItem.h"
10 #include "SubbandCQIList.h"
11 #include "ProtocolExtensionContainer.h"
13 memb_rI_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 >= 1 && value <= 8)) {
27 /* Constraint check succeeded */
30 ASN__CTFAIL(app_key, td, sptr,
31 "%s: constraint failed (%s:%d)",
32 td->name, __FILE__, __LINE__);
37 static asn_per_constraints_t asn_PER_memb_rI_constr_3 CC_NOTUSED = {
38 { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 1, 8 } /* (1..8,...) */,
39 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
40 0, 0 /* No PER value map */
42 asn_per_constraints_t asn_PER_type_CSIReportPerCSIProcessItem_constr_1 CC_NOTUSED = {
43 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
44 { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */,
45 0, 0 /* No PER value map */
47 static asn_TYPE_member_t asn_MBR_Member_2[] = {
48 { ATF_NOFLAGS, 0, offsetof(struct CSIReportPerCSIProcessItem__Member, rI),
49 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
50 -1, /* IMPLICIT tag at current level */
51 &asn_DEF_NativeInteger,
53 { 0, &asn_PER_memb_rI_constr_3, memb_rI_constraint_2 },
54 0, 0, /* No default value */
57 { ATF_NOFLAGS, 0, offsetof(struct CSIReportPerCSIProcessItem__Member, widebandCQI),
58 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
59 -1, /* IMPLICIT tag at current level */
63 0, 0, /* No default value */
66 { ATF_NOFLAGS, 0, offsetof(struct CSIReportPerCSIProcessItem__Member, subbandSize),
67 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
68 -1, /* IMPLICIT tag at current level */
72 0, 0, /* No default value */
75 { ATF_POINTER, 2, offsetof(struct CSIReportPerCSIProcessItem__Member, subbandCQIList),
76 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
77 -1, /* IMPLICIT tag at current level */
78 &asn_DEF_SubbandCQIList,
81 0, 0, /* No default value */
84 { ATF_POINTER, 1, offsetof(struct CSIReportPerCSIProcessItem__Member, iE_Extensions),
85 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
86 -1, /* IMPLICIT tag at current level */
87 &asn_DEF_ProtocolExtensionContainer_8858P37,
90 0, 0, /* No default value */
94 static const int asn_MAP_Member_oms_2[] = { 3, 4 };
95 static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
96 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
98 static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
99 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rI */
100 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* widebandCQI */
101 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* subbandSize */
102 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* subbandCQIList */
103 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */
105 static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = {
106 sizeof(struct CSIReportPerCSIProcessItem__Member),
107 offsetof(struct CSIReportPerCSIProcessItem__Member, _asn_ctx),
108 asn_MAP_Member_tag2el_2,
109 5, /* Count of tags in the map */
110 asn_MAP_Member_oms_2, /* Optional members */
111 2, 0, /* Root/Additions */
112 5, /* First extension addition */
114 static /* Use -fall-defs-global to expose */
115 asn_TYPE_descriptor_t asn_DEF_Member_2 = {
119 asn_DEF_Member_tags_2,
120 sizeof(asn_DEF_Member_tags_2)
121 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
122 asn_DEF_Member_tags_2, /* Same as above */
123 sizeof(asn_DEF_Member_tags_2)
124 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
125 { 0, 0, SEQUENCE_constraint },
127 5, /* Elements count */
128 &asn_SPC_Member_specs_2 /* Additional specs */
131 asn_TYPE_member_t asn_MBR_CSIReportPerCSIProcessItem_1[] = {
133 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
138 0, 0, /* No default value */
142 static const ber_tlv_tag_t asn_DEF_CSIReportPerCSIProcessItem_tags_1[] = {
143 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
145 asn_SET_OF_specifics_t asn_SPC_CSIReportPerCSIProcessItem_specs_1 = {
146 sizeof(struct CSIReportPerCSIProcessItem),
147 offsetof(struct CSIReportPerCSIProcessItem, _asn_ctx),
148 0, /* XER encoding is XMLDelimitedItemList */
150 asn_TYPE_descriptor_t asn_DEF_CSIReportPerCSIProcessItem = {
151 "CSIReportPerCSIProcessItem",
152 "CSIReportPerCSIProcessItem",
154 asn_DEF_CSIReportPerCSIProcessItem_tags_1,
155 sizeof(asn_DEF_CSIReportPerCSIProcessItem_tags_1)
156 /sizeof(asn_DEF_CSIReportPerCSIProcessItem_tags_1[0]), /* 1 */
157 asn_DEF_CSIReportPerCSIProcessItem_tags_1, /* Same as above */
158 sizeof(asn_DEF_CSIReportPerCSIProcessItem_tags_1)
159 /sizeof(asn_DEF_CSIReportPerCSIProcessItem_tags_1[0]), /* 1 */
160 { 0, &asn_PER_type_CSIReportPerCSIProcessItem_constr_1, SEQUENCE_OF_constraint },
161 asn_MBR_CSIReportPerCSIProcessItem_1,
162 1, /* Single element */
163 &asn_SPC_CSIReportPerCSIProcessItem_specs_1 /* Additional specs */