2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "X2AP-IEs"
4 * found in "Spec/e2ap-v031ex.asn"
5 * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER`
8 #include "CoverageModification-Item.h"
10 #include "CellReplacingInfo.h"
12 memb_coverageState_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
13 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
17 ASN__CTFAIL(app_key, td, sptr,
18 "%s: value not given (%s:%d)",
19 td->name, __FILE__, __LINE__);
23 value = *(const long *)sptr;
25 if((value >= 0 && value <= 15)) {
26 /* Constraint check succeeded */
29 ASN__CTFAIL(app_key, td, sptr,
30 "%s: constraint failed (%s:%d)",
31 td->name, __FILE__, __LINE__);
36 static asn_oer_constraints_t asn_OER_memb_coverageState_constr_3 CC_NOTUSED = {
39 static asn_per_constraints_t asn_PER_memb_coverageState_constr_3 CC_NOTUSED = {
40 { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 0, 15 } /* (0..15,...) */,
41 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
42 0, 0 /* No PER value map */
44 asn_TYPE_member_t asn_MBR_CoverageModification_Item_1[] = {
45 { ATF_NOFLAGS, 0, offsetof(struct CoverageModification_Item, eCGI),
46 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
47 -1, /* IMPLICIT tag at current level */
51 0, 0, /* No default value */
54 { ATF_NOFLAGS, 0, offsetof(struct CoverageModification_Item, coverageState),
55 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
56 -1, /* IMPLICIT tag at current level */
57 &asn_DEF_NativeInteger,
59 { &asn_OER_memb_coverageState_constr_3, &asn_PER_memb_coverageState_constr_3, memb_coverageState_constraint_1 },
60 0, 0, /* No default value */
63 { ATF_POINTER, 2, offsetof(struct CoverageModification_Item, cellDeploymentStatusIndicator),
64 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
65 -1, /* IMPLICIT tag at current level */
66 &asn_DEF_CellDeploymentStatusIndicator,
69 0, 0, /* No default value */
70 "cellDeploymentStatusIndicator"
72 { ATF_POINTER, 1, offsetof(struct CoverageModification_Item, cellReplacingInfo),
73 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
74 -1, /* IMPLICIT tag at current level */
75 &asn_DEF_CellReplacingInfo,
78 0, 0, /* No default value */
82 static const int asn_MAP_CoverageModification_Item_oms_1[] = { 2, 3 };
83 static const ber_tlv_tag_t asn_DEF_CoverageModification_Item_tags_1[] = {
84 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
86 static const asn_TYPE_tag2member_t asn_MAP_CoverageModification_Item_tag2el_1[] = {
87 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eCGI */
88 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* coverageState */
89 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cellDeploymentStatusIndicator */
90 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* cellReplacingInfo */
92 asn_SEQUENCE_specifics_t asn_SPC_CoverageModification_Item_specs_1 = {
93 sizeof(struct CoverageModification_Item),
94 offsetof(struct CoverageModification_Item, _asn_ctx),
95 asn_MAP_CoverageModification_Item_tag2el_1,
96 4, /* Count of tags in the map */
97 asn_MAP_CoverageModification_Item_oms_1, /* Optional members */
98 2, 0, /* Root/Additions */
99 4, /* First extension addition */
101 asn_TYPE_descriptor_t asn_DEF_CoverageModification_Item = {
102 "CoverageModification-Item",
103 "CoverageModification-Item",
105 asn_DEF_CoverageModification_Item_tags_1,
106 sizeof(asn_DEF_CoverageModification_Item_tags_1)
107 /sizeof(asn_DEF_CoverageModification_Item_tags_1[0]), /* 1 */
108 asn_DEF_CoverageModification_Item_tags_1, /* Same as above */
109 sizeof(asn_DEF_CoverageModification_Item_tags_1)
110 /sizeof(asn_DEF_CoverageModification_Item_tags_1[0]), /* 1 */
111 { 0, 0, SEQUENCE_constraint },
112 asn_MBR_CoverageModification_Item_1,
113 4, /* Elements count */
114 &asn_SPC_CoverageModification_Item_specs_1 /* Additional specs */