--- /dev/null
+/*\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 "ProtectedEUTRAResourceIndication.h"\r
+\r
+#include "ProtocolExtensionContainer.h"\r
+static int\r
+memb_activationSFN_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 <= 1023)) {\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_mBSFNControlRegionLength_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_pDCCHRegionLength_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 >= 1 && 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_activationSFN_constr_2 CC_NOTUSED = {\r
+ { APC_CONSTRAINED, 10, 10, 0, 1023 } /* (0..1023) */,\r
+ { APC_UNCONSTRAINED, -1, -1, 0, 0 },\r
+ 0, 0 /* No PER value map */\r
+};\r
+static asn_per_constraints_t asn_PER_memb_mBSFNControlRegionLength_constr_4 CC_NOTUSED = {\r
+ { APC_CONSTRAINED, 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_pDCCHRegionLength_constr_5 CC_NOTUSED = {\r
+ { APC_CONSTRAINED, 2, 2, 1, 3 } /* (1..3) */,\r
+ { APC_UNCONSTRAINED, -1, -1, 0, 0 },\r
+ 0, 0 /* No PER value map */\r
+};\r
+static asn_TYPE_member_t asn_MBR_ProtectedEUTRAResourceIndication_1[] = {\r
+ { ATF_NOFLAGS, 0, offsetof(struct ProtectedEUTRAResourceIndication, activationSFN),\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_activationSFN_constr_2, memb_activationSFN_constraint_1 },\r
+ 0, 0, /* No default value */\r
+ "activationSFN"\r
+ },\r
+ { ATF_NOFLAGS, 0, offsetof(struct ProtectedEUTRAResourceIndication, protectedResourceList),\r
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)),\r
+ -1, /* IMPLICIT tag at current level */\r
+ &asn_DEF_ProtectedResourceList,\r
+ 0,\r
+ { 0, 0, 0 },\r
+ 0, 0, /* No default value */\r
+ "protectedResourceList"\r
+ },\r
+ { ATF_POINTER, 3, offsetof(struct ProtectedEUTRAResourceIndication, mBSFNControlRegionLength),\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_mBSFNControlRegionLength_constr_4, memb_mBSFNControlRegionLength_constraint_1 },\r
+ 0, 0, /* No default value */\r
+ "mBSFNControlRegionLength"\r
+ },\r
+ { ATF_POINTER, 2, offsetof(struct ProtectedEUTRAResourceIndication, pDCCHRegionLength),\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_pDCCHRegionLength_constr_5, memb_pDCCHRegionLength_constraint_1 },\r
+ 0, 0, /* No default value */\r
+ "pDCCHRegionLength"\r
+ },\r
+ { ATF_POINTER, 1, offsetof(struct ProtectedEUTRAResourceIndication, iE_Extensions),\r
+ (ASN_TAG_CLASS_CONTEXT | (4 << 2)),\r
+ -1, /* IMPLICIT tag at current level */\r
+ &asn_DEF_ProtocolExtensionContainer_8231P180,\r
+ 0,\r
+ { 0, 0, 0 },\r
+ 0, 0, /* No default value */\r
+ "iE-Extensions"\r
+ },\r
+};\r
+static const int asn_MAP_ProtectedEUTRAResourceIndication_oms_1[] = { 2, 3, 4 };\r
+static const ber_tlv_tag_t asn_DEF_ProtectedEUTRAResourceIndication_tags_1[] = {\r
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))\r
+};\r
+static const asn_TYPE_tag2member_t asn_MAP_ProtectedEUTRAResourceIndication_tag2el_1[] = {\r
+ { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* activationSFN */\r
+ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* protectedResourceList */\r
+ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* mBSFNControlRegionLength */\r
+ { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* pDCCHRegionLength */\r
+ { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */\r
+};\r
+static asn_SEQUENCE_specifics_t asn_SPC_ProtectedEUTRAResourceIndication_specs_1 = {\r
+ sizeof(struct ProtectedEUTRAResourceIndication),\r
+ offsetof(struct ProtectedEUTRAResourceIndication, _asn_ctx),\r
+ asn_MAP_ProtectedEUTRAResourceIndication_tag2el_1,\r
+ 5, /* Count of tags in the map */\r
+ asn_MAP_ProtectedEUTRAResourceIndication_oms_1, /* Optional members */\r
+ 3, 0, /* Root/Additions */\r
+ 5, /* First extension addition */\r
+};\r
+asn_TYPE_descriptor_t asn_DEF_ProtectedEUTRAResourceIndication = {\r
+ "ProtectedEUTRAResourceIndication",\r
+ "ProtectedEUTRAResourceIndication",\r
+ &asn_OP_SEQUENCE,\r
+ asn_DEF_ProtectedEUTRAResourceIndication_tags_1,\r
+ sizeof(asn_DEF_ProtectedEUTRAResourceIndication_tags_1)\r
+ /sizeof(asn_DEF_ProtectedEUTRAResourceIndication_tags_1[0]), /* 1 */\r
+ asn_DEF_ProtectedEUTRAResourceIndication_tags_1, /* Same as above */\r
+ sizeof(asn_DEF_ProtectedEUTRAResourceIndication_tags_1)\r
+ /sizeof(asn_DEF_ProtectedEUTRAResourceIndication_tags_1[0]), /* 1 */\r
+ { 0, 0, SEQUENCE_constraint },\r
+ asn_MBR_ProtectedEUTRAResourceIndication_1,\r
+ 5, /* Elements count */\r
+ &asn_SPC_ProtectedEUTRAResourceIndication_specs_1 /* Additional specs */\r
+};\r
+\r