SIM-115: update simulator to use latest E2SM KPM version 3
[sim/e2-interface.git] / e2sim / asn1c / MeasurementRecordItem.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "E2SM-KPM-IEs"
4  *      found in "e2sm-kpm-v03.00.asn"
5  *      `asn1c -pdu=auto -fincludes-quoted -fcompound-names -findirect-choice -fno-include-deps -no-gen-example -no-gen-OER -D /tmp/workspace/oransim-gerrit/e2sim/asn1c/`
6  */
7
8 #include "MeasurementRecordItem.h"
9
10 static int
11 integer_2_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
12                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13         
14         if(!sptr) {
15                 ASN__CTFAIL(app_key, td, sptr,
16                         "%s: value not given (%s:%d)",
17                         td->name, __FILE__, __LINE__);
18                 return -1;
19         }
20         
21         
22         /* Constraint check succeeded */
23         return 0;
24 }
25
26 /*
27  * This type is implemented using NativeInteger,
28  * so here we adjust the DEF accordingly.
29  */
30 static int
31 memb_integer_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
32                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
33         
34         if(!sptr) {
35                 ASN__CTFAIL(app_key, td, sptr,
36                         "%s: value not given (%s:%d)",
37                         td->name, __FILE__, __LINE__);
38                 return -1;
39         }
40         
41         
42         /* Constraint check succeeded */
43         return 0;
44 }
45
46 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
47 static asn_per_constraints_t asn_PER_type_integer_constr_2 CC_NOTUSED = {
48         { APC_CONSTRAINED,       32, -1,  0,  4294967295 }      /* (0..4294967295) */,
49         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
50         0, 0    /* No PER value map */
51 };
52 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
53 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
54 static asn_per_constraints_t asn_PER_memb_integer_constr_2 CC_NOTUSED = {
55         { APC_CONSTRAINED,       32, -1,  0,  4294967295 }      /* (0..4294967295) */,
56         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
57         0, 0    /* No PER value map */
58 };
59 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
60 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
61 asn_per_constraints_t asn_PER_type_MeasurementRecordItem_constr_1 CC_NOTUSED = {
62         { APC_CONSTRAINED | APC_EXTENSIBLE,  2,  2,  0,  2 }    /* (0..2,...) */,
63         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
64         0, 0    /* No PER value map */
65 };
66 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
67 static const asn_INTEGER_specifics_t asn_SPC_integer_specs_2 = {
68         0,      0,      0,      0,      0,
69         0,      /* Native long size */
70         1       /* Unsigned representation */
71 };
72 static const ber_tlv_tag_t asn_DEF_integer_tags_2[] = {
73         (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
74         (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
75 };
76 static /* Use -fall-defs-global to expose */
77 asn_TYPE_descriptor_t asn_DEF_integer_2 = {
78         "integer",
79         "integer",
80         &asn_OP_NativeInteger,
81         asn_DEF_integer_tags_2,
82         sizeof(asn_DEF_integer_tags_2)
83                 /sizeof(asn_DEF_integer_tags_2[0]) - 1, /* 1 */
84         asn_DEF_integer_tags_2, /* Same as above */
85         sizeof(asn_DEF_integer_tags_2)
86                 /sizeof(asn_DEF_integer_tags_2[0]), /* 2 */
87         {
88 #if !defined(ASN_DISABLE_OER_SUPPORT)
89                 0,
90 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
91 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
92                 &asn_PER_type_integer_constr_2,
93 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
94                 integer_2_constraint
95         },
96         0, 0,   /* No members */
97         &asn_SPC_integer_specs_2        /* Additional specs */
98 };
99
100 asn_TYPE_member_t asn_MBR_MeasurementRecordItem_1[] = {
101         { ATF_NOFLAGS, 0, offsetof(struct MeasurementRecordItem, choice.integer),
102                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
103                 -1,     /* IMPLICIT tag at current level */
104                 &asn_DEF_integer_2,
105                 0,
106                 {
107 #if !defined(ASN_DISABLE_OER_SUPPORT)
108                         0,
109 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
110 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
111                         &asn_PER_memb_integer_constr_2,
112 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
113                         memb_integer_constraint_1
114                 },
115                 0, 0, /* No default value */
116                 "integer"
117                 },
118         { ATF_NOFLAGS, 0, offsetof(struct MeasurementRecordItem, choice.real),
119                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
120                 -1,     /* IMPLICIT tag at current level */
121                 &asn_DEF_NativeReal,
122                 0,
123                 {
124 #if !defined(ASN_DISABLE_OER_SUPPORT)
125                         0,
126 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
127 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
128                         0,
129 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
130                         0
131                 },
132                 0, 0, /* No default value */
133                 "real"
134                 },
135         { ATF_NOFLAGS, 0, offsetof(struct MeasurementRecordItem, choice.noValue),
136                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
137                 -1,     /* IMPLICIT tag at current level */
138                 &asn_DEF_NULL,
139                 0,
140                 {
141 #if !defined(ASN_DISABLE_OER_SUPPORT)
142                         0,
143 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
144 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
145                         0,
146 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
147                         0
148                 },
149                 0, 0, /* No default value */
150                 "noValue"
151                 },
152 };
153 static const asn_TYPE_tag2member_t asn_MAP_MeasurementRecordItem_tag2el_1[] = {
154     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* integer */
155     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* real */
156     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* noValue */
157 };
158 asn_CHOICE_specifics_t asn_SPC_MeasurementRecordItem_specs_1 = {
159         sizeof(struct MeasurementRecordItem),
160         offsetof(struct MeasurementRecordItem, _asn_ctx),
161         offsetof(struct MeasurementRecordItem, present),
162         sizeof(((struct MeasurementRecordItem *)0)->present),
163         asn_MAP_MeasurementRecordItem_tag2el_1,
164         3,      /* Count of tags in the map */
165         0, 0,
166         3       /* Extensions start */
167 };
168 asn_TYPE_descriptor_t asn_DEF_MeasurementRecordItem = {
169         "MeasurementRecordItem",
170         "MeasurementRecordItem",
171         &asn_OP_CHOICE,
172         0,      /* No effective tags (pointer) */
173         0,      /* No effective tags (count) */
174         0,      /* No tags (pointer) */
175         0,      /* No tags (count) */
176         {
177 #if !defined(ASN_DISABLE_OER_SUPPORT)
178                 0,
179 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
180 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
181                 &asn_PER_type_MeasurementRecordItem_constr_1,
182 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
183                 CHOICE_constraint
184         },
185         asn_MBR_MeasurementRecordItem_1,
186         3,      /* Elements count */
187         &asn_SPC_MeasurementRecordItem_specs_1  /* Additional specs */
188 };
189