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/`
8 #include "MeasurementRecordItem.h"
11 integer_2_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
15 ASN__CTFAIL(app_key, td, sptr,
16 "%s: value not given (%s:%d)",
17 td->name, __FILE__, __LINE__);
22 /* Constraint check succeeded */
27 * This type is implemented using NativeInteger,
28 * so here we adjust the DEF accordingly.
31 memb_integer_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
32 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
35 ASN__CTFAIL(app_key, td, sptr,
36 "%s: value not given (%s:%d)",
37 td->name, __FILE__, __LINE__);
42 /* Constraint check succeeded */
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 */
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 */
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 */
66 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
67 static const asn_INTEGER_specifics_t asn_SPC_integer_specs_2 = {
69 0, /* Native long size */
70 1 /* Unsigned representation */
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))
76 static /* Use -fall-defs-global to expose */
77 asn_TYPE_descriptor_t asn_DEF_integer_2 = {
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 */
88 #if !defined(ASN_DISABLE_OER_SUPPORT)
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) */
96 0, 0, /* No members */
97 &asn_SPC_integer_specs_2 /* Additional specs */
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 */
107 #if !defined(ASN_DISABLE_OER_SUPPORT)
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
115 0, 0, /* No default value */
118 { ATF_NOFLAGS, 0, offsetof(struct MeasurementRecordItem, choice.real),
119 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
120 -1, /* IMPLICIT tag at current level */
124 #if !defined(ASN_DISABLE_OER_SUPPORT)
126 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
127 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
129 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
132 0, 0, /* No default value */
135 { ATF_NOFLAGS, 0, offsetof(struct MeasurementRecordItem, choice.noValue),
136 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
137 -1, /* IMPLICIT tag at current level */
141 #if !defined(ASN_DISABLE_OER_SUPPORT)
143 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
144 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
146 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
149 0, 0, /* No default value */
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 */
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 */
166 3 /* Extensions start */
168 asn_TYPE_descriptor_t asn_DEF_MeasurementRecordItem = {
169 "MeasurementRecordItem",
170 "MeasurementRecordItem",
172 0, /* No effective tags (pointer) */
173 0, /* No effective tags (count) */
174 0, /* No tags (pointer) */
175 0, /* No tags (count) */
177 #if !defined(ASN_DISABLE_OER_SUPPORT)
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) */
185 asn_MBR_MeasurementRecordItem_1,
186 3, /* Elements count */
187 &asn_SPC_MeasurementRecordItem_specs_1 /* Additional specs */