RICPLT-2910
[ric-plt/submgr.git] / 3rdparty / libe2ap / RSRPMeasurementResult.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "X2AP-IEs"
4  *      found in "Spec/e2_and_x2-combined-and-minimized.asn1"
5  *      `asn1c -pdu=auto -fincludes-quoted -fcompound-names -fno-include-deps -gen-PER -no-gen-OER -no-gen-example`
6  */
7
8 #include "RSRPMeasurementResult.h"
9
10 #include "ProtocolExtensionContainer.h"
11 static int
12 memb_rSRPMeasured_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr,
13                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
14         long value;
15         
16         if(!sptr) {
17                 ASN__CTFAIL(app_key, td, sptr,
18                         "%s: value not given (%s:%d)",
19                         td->name, __FILE__, __LINE__);
20                 return -1;
21         }
22         
23         value = *(const long *)sptr;
24         
25         if((value >= 0 && value <= 97)) {
26                 /* Constraint check succeeded */
27                 return 0;
28         } else {
29                 ASN__CTFAIL(app_key, td, sptr,
30                         "%s: constraint failed (%s:%d)",
31                         td->name, __FILE__, __LINE__);
32                 return -1;
33         }
34 }
35
36 static asn_per_constraints_t asn_PER_memb_rSRPMeasured_constr_4 CC_NOTUSED = {
37         { APC_CONSTRAINED | APC_EXTENSIBLE,  7,  7,  0,  97 }   /* (0..97,...) */,
38         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
39         0, 0    /* No PER value map */
40 };
41 asn_per_constraints_t asn_PER_type_RSRPMeasurementResult_constr_1 CC_NOTUSED = {
42         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
43         { APC_CONSTRAINED,       4,  4,  1,  9 }        /* (SIZE(1..9)) */,
44         0, 0    /* No PER value map */
45 };
46 static asn_TYPE_member_t asn_MBR_Member_2[] = {
47         { ATF_NOFLAGS, 0, offsetof(struct RSRPMeasurementResult__Member, rSRPCellID),
48                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
49                 -1,     /* IMPLICIT tag at current level */
50                 &asn_DEF_ECGI,
51                 0,
52                 { 0, 0, 0 },
53                 0, 0, /* No default value */
54                 "rSRPCellID"
55                 },
56         { ATF_NOFLAGS, 0, offsetof(struct RSRPMeasurementResult__Member, rSRPMeasured),
57                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
58                 -1,     /* IMPLICIT tag at current level */
59                 &asn_DEF_NativeInteger,
60                 0,
61                 { 0, &asn_PER_memb_rSRPMeasured_constr_4,  memb_rSRPMeasured_constraint_2 },
62                 0, 0, /* No default value */
63                 "rSRPMeasured"
64                 },
65         { ATF_POINTER, 1, offsetof(struct RSRPMeasurementResult__Member, iE_Extensions),
66                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
67                 -1,     /* IMPLICIT tag at current level */
68                 &asn_DEF_ProtocolExtensionContainer_8858P61,
69                 0,
70                 { 0, 0, 0 },
71                 0, 0, /* No default value */
72                 "iE-Extensions"
73                 },
74 };
75 static const int asn_MAP_Member_oms_2[] = { 2 };
76 static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
77         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
78 };
79 static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
80     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rSRPCellID */
81     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rSRPMeasured */
82     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
83 };
84 static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = {
85         sizeof(struct RSRPMeasurementResult__Member),
86         offsetof(struct RSRPMeasurementResult__Member, _asn_ctx),
87         asn_MAP_Member_tag2el_2,
88         3,      /* Count of tags in the map */
89         asn_MAP_Member_oms_2,   /* Optional members */
90         1, 0,   /* Root/Additions */
91         3,      /* First extension addition */
92 };
93 static /* Use -fall-defs-global to expose */
94 asn_TYPE_descriptor_t asn_DEF_Member_2 = {
95         "SEQUENCE",
96         "SEQUENCE",
97         &asn_OP_SEQUENCE,
98         asn_DEF_Member_tags_2,
99         sizeof(asn_DEF_Member_tags_2)
100                 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
101         asn_DEF_Member_tags_2,  /* Same as above */
102         sizeof(asn_DEF_Member_tags_2)
103                 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
104         { 0, 0, SEQUENCE_constraint },
105         asn_MBR_Member_2,
106         3,      /* Elements count */
107         &asn_SPC_Member_specs_2 /* Additional specs */
108 };
109
110 asn_TYPE_member_t asn_MBR_RSRPMeasurementResult_1[] = {
111         { ATF_POINTER, 0, 0,
112                 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
113                 0,
114                 &asn_DEF_Member_2,
115                 0,
116                 { 0, 0, 0 },
117                 0, 0, /* No default value */
118                 ""
119                 },
120 };
121 static const ber_tlv_tag_t asn_DEF_RSRPMeasurementResult_tags_1[] = {
122         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
123 };
124 asn_SET_OF_specifics_t asn_SPC_RSRPMeasurementResult_specs_1 = {
125         sizeof(struct RSRPMeasurementResult),
126         offsetof(struct RSRPMeasurementResult, _asn_ctx),
127         0,      /* XER encoding is XMLDelimitedItemList */
128 };
129 asn_TYPE_descriptor_t asn_DEF_RSRPMeasurementResult = {
130         "RSRPMeasurementResult",
131         "RSRPMeasurementResult",
132         &asn_OP_SEQUENCE_OF,
133         asn_DEF_RSRPMeasurementResult_tags_1,
134         sizeof(asn_DEF_RSRPMeasurementResult_tags_1)
135                 /sizeof(asn_DEF_RSRPMeasurementResult_tags_1[0]), /* 1 */
136         asn_DEF_RSRPMeasurementResult_tags_1,   /* Same as above */
137         sizeof(asn_DEF_RSRPMeasurementResult_tags_1)
138                 /sizeof(asn_DEF_RSRPMeasurementResult_tags_1[0]), /* 1 */
139         { 0, &asn_PER_type_RSRPMeasurementResult_constr_1, SEQUENCE_OF_constraint },
140         asn_MBR_RSRPMeasurementResult_1,
141         1,      /* Single element */
142         &asn_SPC_RSRPMeasurementResult_specs_1  /* Additional specs */
143 };
144