2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
\r
3 * From ASN.1 module "X2AP-IEs"
\r
4 * found in "../../asn_defs/asn1/x2ap-modified-15-05.asn"
\r
5 * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`
\r
8 #include "CoverageModification-Item.h"
\r
10 #include "CellReplacingInfo.h"
\r
12 memb_coverageState_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
13 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
17 ASN__CTFAIL(app_key, td, sptr,
\r
18 "%s: value not given (%s:%d)",
\r
19 td->name, __FILE__, __LINE__);
\r
23 value = *(const long *)sptr;
\r
25 if((value >= 0 && value <= 15)) {
\r
26 /* Constraint check succeeded */
\r
29 ASN__CTFAIL(app_key, td, sptr,
\r
30 "%s: constraint failed (%s:%d)",
\r
31 td->name, __FILE__, __LINE__);
\r
36 static asn_per_constraints_t asn_PER_memb_coverageState_constr_3 CC_NOTUSED = {
\r
37 { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 0, 15 } /* (0..15,...) */,
\r
38 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
39 0, 0 /* No PER value map */
\r
41 asn_TYPE_member_t asn_MBR_CoverageModification_Item_1[] = {
\r
42 { ATF_NOFLAGS, 0, offsetof(struct CoverageModification_Item, eCGI),
\r
43 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
\r
44 -1, /* IMPLICIT tag at current level */
\r
48 0, 0, /* No default value */
\r
51 { ATF_NOFLAGS, 0, offsetof(struct CoverageModification_Item, coverageState),
\r
52 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
\r
53 -1, /* IMPLICIT tag at current level */
\r
54 &asn_DEF_NativeInteger,
\r
56 { 0, &asn_PER_memb_coverageState_constr_3, memb_coverageState_constraint_1 },
\r
57 0, 0, /* No default value */
\r
60 { ATF_POINTER, 2, offsetof(struct CoverageModification_Item, cellDeploymentStatusIndicator),
\r
61 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
\r
62 -1, /* IMPLICIT tag at current level */
\r
63 &asn_DEF_CellDeploymentStatusIndicator,
\r
66 0, 0, /* No default value */
\r
67 "cellDeploymentStatusIndicator"
\r
69 { ATF_POINTER, 1, offsetof(struct CoverageModification_Item, cellReplacingInfo),
\r
70 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
\r
71 -1, /* IMPLICIT tag at current level */
\r
72 &asn_DEF_CellReplacingInfo,
\r
75 0, 0, /* No default value */
\r
79 static const int asn_MAP_CoverageModification_Item_oms_1[] = { 2, 3 };
\r
80 static const ber_tlv_tag_t asn_DEF_CoverageModification_Item_tags_1[] = {
\r
81 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
\r
83 static const asn_TYPE_tag2member_t asn_MAP_CoverageModification_Item_tag2el_1[] = {
\r
84 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eCGI */
\r
85 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* coverageState */
\r
86 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cellDeploymentStatusIndicator */
\r
87 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* cellReplacingInfo */
\r
89 asn_SEQUENCE_specifics_t asn_SPC_CoverageModification_Item_specs_1 = {
\r
90 sizeof(struct CoverageModification_Item),
\r
91 offsetof(struct CoverageModification_Item, _asn_ctx),
\r
92 asn_MAP_CoverageModification_Item_tag2el_1,
\r
93 4, /* Count of tags in the map */
\r
94 asn_MAP_CoverageModification_Item_oms_1, /* Optional members */
\r
95 2, 0, /* Root/Additions */
\r
96 4, /* First extension addition */
\r
98 asn_TYPE_descriptor_t asn_DEF_CoverageModification_Item = {
\r
99 "CoverageModification-Item",
\r
100 "CoverageModification-Item",
\r
102 asn_DEF_CoverageModification_Item_tags_1,
\r
103 sizeof(asn_DEF_CoverageModification_Item_tags_1)
\r
104 /sizeof(asn_DEF_CoverageModification_Item_tags_1[0]), /* 1 */
\r
105 asn_DEF_CoverageModification_Item_tags_1, /* Same as above */
\r
106 sizeof(asn_DEF_CoverageModification_Item_tags_1)
\r
107 /sizeof(asn_DEF_CoverageModification_Item_tags_1[0]), /* 1 */
\r
108 { 0, 0, SEQUENCE_constraint },
\r
109 asn_MBR_CoverageModification_Item_1,
\r
110 4, /* Elements count */
\r
111 &asn_SPC_CoverageModification_Item_specs_1 /* Additional specs */
\r