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 "RSRPMeasurementResult.h"
\r
10 #include "ProtocolExtensionContainer.h"
\r
12 memb_rSRPMeasured_constraint_2(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 <= 97)) {
\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_rSRPMeasured_constr_4 CC_NOTUSED = {
\r
37 { APC_CONSTRAINED | APC_EXTENSIBLE, 7, 7, 0, 97 } /* (0..97,...) */,
\r
38 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
39 0, 0 /* No PER value map */
\r
41 asn_per_constraints_t asn_PER_type_RSRPMeasurementResult_constr_1 CC_NOTUSED = {
\r
42 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
43 { APC_CONSTRAINED, 4, 4, 1, 9 } /* (SIZE(1..9)) */,
\r
44 0, 0 /* No PER value map */
\r
46 static asn_TYPE_member_t asn_MBR_Member_2[] = {
\r
47 { ATF_NOFLAGS, 0, offsetof(struct RSRPMeasurementResult__Member, rSRPCellID),
\r
48 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
\r
49 -1, /* IMPLICIT tag at current level */
\r
53 0, 0, /* No default value */
\r
56 { ATF_NOFLAGS, 0, offsetof(struct RSRPMeasurementResult__Member, rSRPMeasured),
\r
57 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
\r
58 -1, /* IMPLICIT tag at current level */
\r
59 &asn_DEF_NativeInteger,
\r
61 { 0, &asn_PER_memb_rSRPMeasured_constr_4, memb_rSRPMeasured_constraint_2 },
\r
62 0, 0, /* No default value */
\r
65 { ATF_POINTER, 1, offsetof(struct RSRPMeasurementResult__Member, iE_Extensions),
\r
66 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
\r
67 -1, /* IMPLICIT tag at current level */
\r
68 &asn_DEF_ProtocolExtensionContainer_8231P187,
\r
71 0, 0, /* No default value */
\r
75 static const int asn_MAP_Member_oms_2[] = { 2 };
\r
76 static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
\r
77 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
\r
79 static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
\r
80 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rSRPCellID */
\r
81 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rSRPMeasured */
\r
82 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
\r
84 static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = {
\r
85 sizeof(struct RSRPMeasurementResult__Member),
\r
86 offsetof(struct RSRPMeasurementResult__Member, _asn_ctx),
\r
87 asn_MAP_Member_tag2el_2,
\r
88 3, /* Count of tags in the map */
\r
89 asn_MAP_Member_oms_2, /* Optional members */
\r
90 1, 0, /* Root/Additions */
\r
91 3, /* First extension addition */
\r
93 static /* Use -fall-defs-global to expose */
\r
94 asn_TYPE_descriptor_t asn_DEF_Member_2 = {
\r
98 asn_DEF_Member_tags_2,
\r
99 sizeof(asn_DEF_Member_tags_2)
\r
100 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
\r
101 asn_DEF_Member_tags_2, /* Same as above */
\r
102 sizeof(asn_DEF_Member_tags_2)
\r
103 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
\r
104 { 0, 0, SEQUENCE_constraint },
\r
106 3, /* Elements count */
\r
107 &asn_SPC_Member_specs_2 /* Additional specs */
\r
110 asn_TYPE_member_t asn_MBR_RSRPMeasurementResult_1[] = {
\r
111 { ATF_POINTER, 0, 0,
\r
112 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
\r
117 0, 0, /* No default value */
\r
121 static const ber_tlv_tag_t asn_DEF_RSRPMeasurementResult_tags_1[] = {
\r
122 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
\r
124 asn_SET_OF_specifics_t asn_SPC_RSRPMeasurementResult_specs_1 = {
\r
125 sizeof(struct RSRPMeasurementResult),
\r
126 offsetof(struct RSRPMeasurementResult, _asn_ctx),
\r
127 0, /* XER encoding is XMLDelimitedItemList */
\r
129 asn_TYPE_descriptor_t asn_DEF_RSRPMeasurementResult = {
\r
130 "RSRPMeasurementResult",
\r
131 "RSRPMeasurementResult",
\r
132 &asn_OP_SEQUENCE_OF,
\r
133 asn_DEF_RSRPMeasurementResult_tags_1,
\r
134 sizeof(asn_DEF_RSRPMeasurementResult_tags_1)
\r
135 /sizeof(asn_DEF_RSRPMeasurementResult_tags_1[0]), /* 1 */
\r
136 asn_DEF_RSRPMeasurementResult_tags_1, /* Same as above */
\r
137 sizeof(asn_DEF_RSRPMeasurementResult_tags_1)
\r
138 /sizeof(asn_DEF_RSRPMeasurementResult_tags_1[0]), /* 1 */
\r
139 { 0, &asn_PER_type_RSRPMeasurementResult_constr_1, SEQUENCE_OF_constraint },
\r
140 asn_MBR_RSRPMeasurementResult_1,
\r
141 1, /* Single element */
\r
142 &asn_SPC_RSRPMeasurementResult_specs_1 /* Additional specs */
\r