+/*\r
+ * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)\r
+ * From ASN.1 module "X2AP-IEs"\r
+ * found in "../../asn_defs/asn1/x2ap-modified-15-05.asn"\r
+ * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`\r
+ */\r
+\r
+#include "SubbandCQICodeword1.h"\r
+\r
+static int\r
+memb_four_bitCQI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,\r
+ asn_app_constraint_failed_f *ctfailcb, void *app_key) {\r
+ long value;\r
+ \r
+ if(!sptr) {\r
+ ASN__CTFAIL(app_key, td, sptr,\r
+ "%s: value not given (%s:%d)",\r
+ td->name, __FILE__, __LINE__);\r
+ return -1;\r
+ }\r
+ \r
+ value = *(const long *)sptr;\r
+ \r
+ if((value >= 0 && value <= 15)) {\r
+ /* Constraint check succeeded */\r
+ return 0;\r
+ } else {\r
+ ASN__CTFAIL(app_key, td, sptr,\r
+ "%s: constraint failed (%s:%d)",\r
+ td->name, __FILE__, __LINE__);\r
+ return -1;\r
+ }\r
+}\r
+\r
+static int\r
+memb_three_bitSpatialDifferentialCQI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,\r
+ asn_app_constraint_failed_f *ctfailcb, void *app_key) {\r
+ long value;\r
+ \r
+ if(!sptr) {\r
+ ASN__CTFAIL(app_key, td, sptr,\r
+ "%s: value not given (%s:%d)",\r
+ td->name, __FILE__, __LINE__);\r
+ return -1;\r
+ }\r
+ \r
+ value = *(const long *)sptr;\r
+ \r
+ if((value >= 0 && value <= 7)) {\r
+ /* Constraint check succeeded */\r
+ return 0;\r
+ } else {\r
+ ASN__CTFAIL(app_key, td, sptr,\r
+ "%s: constraint failed (%s:%d)",\r
+ td->name, __FILE__, __LINE__);\r
+ return -1;\r
+ }\r
+}\r
+\r
+static int\r
+memb_two_bitSubbandDifferentialCQI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,\r
+ asn_app_constraint_failed_f *ctfailcb, void *app_key) {\r
+ long value;\r
+ \r
+ if(!sptr) {\r
+ ASN__CTFAIL(app_key, td, sptr,\r
+ "%s: value not given (%s:%d)",\r
+ td->name, __FILE__, __LINE__);\r
+ return -1;\r
+ }\r
+ \r
+ value = *(const long *)sptr;\r
+ \r
+ if((value >= 0 && value <= 3)) {\r
+ /* Constraint check succeeded */\r
+ return 0;\r
+ } else {\r
+ ASN__CTFAIL(app_key, td, sptr,\r
+ "%s: constraint failed (%s:%d)",\r
+ td->name, __FILE__, __LINE__);\r
+ return -1;\r
+ }\r
+}\r
+\r
+static int\r
+memb_two_bitDifferentialCQI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,\r
+ asn_app_constraint_failed_f *ctfailcb, void *app_key) {\r
+ long value;\r
+ \r
+ if(!sptr) {\r
+ ASN__CTFAIL(app_key, td, sptr,\r
+ "%s: value not given (%s:%d)",\r
+ td->name, __FILE__, __LINE__);\r
+ return -1;\r
+ }\r
+ \r
+ value = *(const long *)sptr;\r
+ \r
+ if((value >= 0 && value <= 3)) {\r
+ /* Constraint check succeeded */\r
+ return 0;\r
+ } else {\r
+ ASN__CTFAIL(app_key, td, sptr,\r
+ "%s: constraint failed (%s:%d)",\r
+ td->name, __FILE__, __LINE__);\r
+ return -1;\r
+ }\r
+}\r
+\r
+static asn_per_constraints_t asn_PER_memb_four_bitCQI_constr_2 CC_NOTUSED = {\r
+ { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 0, 15 } /* (0..15,...) */,\r
+ { APC_UNCONSTRAINED, -1, -1, 0, 0 },\r
+ 0, 0 /* No PER value map */\r
+};\r
+static asn_per_constraints_t asn_PER_memb_three_bitSpatialDifferentialCQI_constr_3 CC_NOTUSED = {\r
+ { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 7 } /* (0..7,...) */,\r
+ { APC_UNCONSTRAINED, -1, -1, 0, 0 },\r
+ 0, 0 /* No PER value map */\r
+};\r
+static asn_per_constraints_t asn_PER_memb_two_bitSubbandDifferentialCQI_constr_4 CC_NOTUSED = {\r
+ { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */,\r
+ { APC_UNCONSTRAINED, -1, -1, 0, 0 },\r
+ 0, 0 /* No PER value map */\r
+};\r
+static asn_per_constraints_t asn_PER_memb_two_bitDifferentialCQI_constr_5 CC_NOTUSED = {\r
+ { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */,\r
+ { APC_UNCONSTRAINED, -1, -1, 0, 0 },\r
+ 0, 0 /* No PER value map */\r
+};\r
+asn_per_constraints_t asn_PER_type_SubbandCQICodeword1_constr_1 CC_NOTUSED = {\r
+ { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */,\r
+ { APC_UNCONSTRAINED, -1, -1, 0, 0 },\r
+ 0, 0 /* No PER value map */\r
+};\r
+asn_TYPE_member_t asn_MBR_SubbandCQICodeword1_1[] = {\r
+ { ATF_NOFLAGS, 0, offsetof(struct SubbandCQICodeword1, choice.four_bitCQI),\r
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)),\r
+ -1, /* IMPLICIT tag at current level */\r
+ &asn_DEF_NativeInteger,\r
+ 0,\r
+ { 0, &asn_PER_memb_four_bitCQI_constr_2, memb_four_bitCQI_constraint_1 },\r
+ 0, 0, /* No default value */\r
+ "four-bitCQI"\r
+ },\r
+ { ATF_NOFLAGS, 0, offsetof(struct SubbandCQICodeword1, choice.three_bitSpatialDifferentialCQI),\r
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)),\r
+ -1, /* IMPLICIT tag at current level */\r
+ &asn_DEF_NativeInteger,\r
+ 0,\r
+ { 0, &asn_PER_memb_three_bitSpatialDifferentialCQI_constr_3, memb_three_bitSpatialDifferentialCQI_constraint_1 },\r
+ 0, 0, /* No default value */\r
+ "three-bitSpatialDifferentialCQI"\r
+ },\r
+ { ATF_NOFLAGS, 0, offsetof(struct SubbandCQICodeword1, choice.two_bitSubbandDifferentialCQI),\r
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)),\r
+ -1, /* IMPLICIT tag at current level */\r
+ &asn_DEF_NativeInteger,\r
+ 0,\r
+ { 0, &asn_PER_memb_two_bitSubbandDifferentialCQI_constr_4, memb_two_bitSubbandDifferentialCQI_constraint_1 },\r
+ 0, 0, /* No default value */\r
+ "two-bitSubbandDifferentialCQI"\r
+ },\r
+ { ATF_NOFLAGS, 0, offsetof(struct SubbandCQICodeword1, choice.two_bitDifferentialCQI),\r
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)),\r
+ -1, /* IMPLICIT tag at current level */\r
+ &asn_DEF_NativeInteger,\r
+ 0,\r
+ { 0, &asn_PER_memb_two_bitDifferentialCQI_constr_5, memb_two_bitDifferentialCQI_constraint_1 },\r
+ 0, 0, /* No default value */\r
+ "two-bitDifferentialCQI"\r
+ },\r
+};\r
+static const asn_TYPE_tag2member_t asn_MAP_SubbandCQICodeword1_tag2el_1[] = {\r
+ { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* four-bitCQI */\r
+ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* three-bitSpatialDifferentialCQI */\r
+ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* two-bitSubbandDifferentialCQI */\r
+ { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* two-bitDifferentialCQI */\r
+};\r
+asn_CHOICE_specifics_t asn_SPC_SubbandCQICodeword1_specs_1 = {\r
+ sizeof(struct SubbandCQICodeword1),\r
+ offsetof(struct SubbandCQICodeword1, _asn_ctx),\r
+ offsetof(struct SubbandCQICodeword1, present),\r
+ sizeof(((struct SubbandCQICodeword1 *)0)->present),\r
+ asn_MAP_SubbandCQICodeword1_tag2el_1,\r
+ 4, /* Count of tags in the map */\r
+ 0, 0,\r
+ 4 /* Extensions start */\r
+};\r
+asn_TYPE_descriptor_t asn_DEF_SubbandCQICodeword1 = {\r
+ "SubbandCQICodeword1",\r
+ "SubbandCQICodeword1",\r
+ &asn_OP_CHOICE,\r
+ 0, /* No effective tags (pointer) */\r
+ 0, /* No effective tags (count) */\r
+ 0, /* No tags (pointer) */\r
+ 0, /* No tags (count) */\r
+ { 0, &asn_PER_type_SubbandCQICodeword1_constr_1, CHOICE_constraint },\r
+ asn_MBR_SubbandCQICodeword1_1,\r
+ 4, /* Elements count */\r
+ &asn_SPC_SubbandCQICodeword1_specs_1 /* Additional specs */\r
+};\r
+\r