/src/open5gs/lib/asn1c/s1ap/S1AP_IntersystemMeasurementConfiguration.c
Line | Count | Source |
1 | | /* |
2 | | * Generated by asn1c-v1.4-43-gb7926896-2026-05-03 (https://github.com/mouse07410/asn1c) |
3 | | * From ASN.1 module "S1AP-IEs" |
4 | | * found in "../support/s1ap-r19.1.0/36413-j10.asn" |
5 | | * `asn1c -pdu=all -fprefix=S1AP_ -fcompound-names -findirect-choice -fno-include-deps -no-gen-BER -no-gen-XER -no-gen-JER -no-gen-CBOR -no-gen-OER -no-gen-UPER` |
6 | | */ |
7 | | |
8 | | #include "S1AP_IntersystemMeasurementConfiguration.h" |
9 | | |
10 | | #include "S1AP_InterSystemMeasurementParameters.h" |
11 | | #include "S1AP_ProtocolExtensionContainer.h" |
12 | | static int |
13 | | memb_S1AP_rSRP_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, |
14 | 0 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
15 | 0 | long value; |
16 | | |
17 | 0 | if(!sptr) { |
18 | 0 | ASN__CTFAIL(app_key, td, sptr, |
19 | 0 | "%s: value not given (%s:%d)", |
20 | 0 | td->name, __FILE__, __LINE__); |
21 | 0 | return -1; |
22 | 0 | } |
23 | | |
24 | 0 | value = *(const long *)sptr; |
25 | | |
26 | 0 | if((value >= 0L && value <= 127L)) { |
27 | | /* Constraint check succeeded */ |
28 | 0 | return 0; |
29 | 0 | } else { |
30 | 0 | ASN__CTFAIL(app_key, td, sptr, |
31 | 0 | "%s: constraint failed (%s:%d)", |
32 | 0 | td->name, __FILE__, __LINE__); |
33 | 0 | return -1; |
34 | 0 | } |
35 | 0 | } |
36 | | |
37 | | static int |
38 | | memb_S1AP_rSRQ_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, |
39 | 0 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
40 | 0 | long value; |
41 | | |
42 | 0 | if(!sptr) { |
43 | 0 | ASN__CTFAIL(app_key, td, sptr, |
44 | 0 | "%s: value not given (%s:%d)", |
45 | 0 | td->name, __FILE__, __LINE__); |
46 | 0 | return -1; |
47 | 0 | } |
48 | | |
49 | 0 | value = *(const long *)sptr; |
50 | | |
51 | 0 | if((value >= 0L && value <= 127L)) { |
52 | | /* Constraint check succeeded */ |
53 | 0 | return 0; |
54 | 0 | } else { |
55 | 0 | ASN__CTFAIL(app_key, td, sptr, |
56 | 0 | "%s: constraint failed (%s:%d)", |
57 | 0 | td->name, __FILE__, __LINE__); |
58 | 0 | return -1; |
59 | 0 | } |
60 | 0 | } |
61 | | |
62 | | static int |
63 | | memb_S1AP_sINR_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, |
64 | 0 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
65 | 0 | long value; |
66 | | |
67 | 0 | if(!sptr) { |
68 | 0 | ASN__CTFAIL(app_key, td, sptr, |
69 | 0 | "%s: value not given (%s:%d)", |
70 | 0 | td->name, __FILE__, __LINE__); |
71 | 0 | return -1; |
72 | 0 | } |
73 | | |
74 | 0 | value = *(const long *)sptr; |
75 | | |
76 | 0 | if((value >= 0L && value <= 127L)) { |
77 | | /* Constraint check succeeded */ |
78 | 0 | return 0; |
79 | 0 | } else { |
80 | 0 | ASN__CTFAIL(app_key, td, sptr, |
81 | 0 | "%s: constraint failed (%s:%d)", |
82 | 0 | td->name, __FILE__, __LINE__); |
83 | 0 | return -1; |
84 | 0 | } |
85 | 0 | } |
86 | | |
87 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
88 | | static asn_per_constraints_t asn_PER_memb_S1AP_rSRP_constr_2 CC_NOTUSED = { |
89 | | { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, |
90 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
91 | | 0, 0 /* No PER value map */ |
92 | | }; |
93 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
94 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
95 | | static asn_per_constraints_t asn_PER_memb_S1AP_rSRQ_constr_3 CC_NOTUSED = { |
96 | | { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, |
97 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
98 | | 0, 0 /* No PER value map */ |
99 | | }; |
100 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
101 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
102 | | static asn_per_constraints_t asn_PER_memb_S1AP_sINR_constr_4 CC_NOTUSED = { |
103 | | { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, |
104 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
105 | | 0, 0 /* No PER value map */ |
106 | | }; |
107 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
108 | | asn_TYPE_member_t asn_MBR_S1AP_IntersystemMeasurementConfiguration_1[] = { |
109 | | { ATF_POINTER, 3, offsetof(struct S1AP_IntersystemMeasurementConfiguration, rSRP), |
110 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
111 | | -1, /* IMPLICIT tag at current level */ |
112 | | &asn_DEF_NativeInteger, |
113 | | 0, |
114 | | { |
115 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
116 | | 0, |
117 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
118 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
119 | | &asn_PER_memb_S1AP_rSRP_constr_2, |
120 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
121 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
122 | | 0, |
123 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
124 | | memb_S1AP_rSRP_constraint_1 |
125 | | }, |
126 | | 0, 0, /* No default value */ |
127 | | "rSRP" |
128 | | }, |
129 | | { ATF_POINTER, 2, offsetof(struct S1AP_IntersystemMeasurementConfiguration, rSRQ), |
130 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
131 | | -1, /* IMPLICIT tag at current level */ |
132 | | &asn_DEF_NativeInteger, |
133 | | 0, |
134 | | { |
135 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
136 | | 0, |
137 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
138 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
139 | | &asn_PER_memb_S1AP_rSRQ_constr_3, |
140 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
141 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
142 | | 0, |
143 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
144 | | memb_S1AP_rSRQ_constraint_1 |
145 | | }, |
146 | | 0, 0, /* No default value */ |
147 | | "rSRQ" |
148 | | }, |
149 | | { ATF_POINTER, 1, offsetof(struct S1AP_IntersystemMeasurementConfiguration, sINR), |
150 | | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
151 | | -1, /* IMPLICIT tag at current level */ |
152 | | &asn_DEF_NativeInteger, |
153 | | 0, |
154 | | { |
155 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
156 | | 0, |
157 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
158 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
159 | | &asn_PER_memb_S1AP_sINR_constr_4, |
160 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
161 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
162 | | 0, |
163 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
164 | | memb_S1AP_sINR_constraint_1 |
165 | | }, |
166 | | 0, 0, /* No default value */ |
167 | | "sINR" |
168 | | }, |
169 | | { ATF_POINTER, 0, offsetof(struct S1AP_IntersystemMeasurementConfiguration, interSystemMeasurementParameters), |
170 | | (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
171 | | -1, /* IMPLICIT tag at current level */ |
172 | | &asn_DEF_S1AP_InterSystemMeasurementParameters, |
173 | | 0, |
174 | | { |
175 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
176 | | 0, |
177 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
178 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
179 | | 0, |
180 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
181 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
182 | | 0, |
183 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
184 | | 0 |
185 | | }, |
186 | | 0, 0, /* No default value */ |
187 | | "interSystemMeasurementParameters" |
188 | | }, |
189 | | { ATF_POINTER, 1, offsetof(struct S1AP_IntersystemMeasurementConfiguration, iE_Extensions), |
190 | | (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
191 | | -1, /* IMPLICIT tag at current level */ |
192 | | &asn_DEF_S1AP_ProtocolExtensionContainer_8386P84, |
193 | | 0, |
194 | | { |
195 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
196 | | 0, |
197 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
198 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
199 | | 0, |
200 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
201 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
202 | | 0, |
203 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
204 | | 0 |
205 | | }, |
206 | | 0, 0, /* No default value */ |
207 | | "iE-Extensions" |
208 | | }, |
209 | | }; |
210 | | static const int asn_MAP_S1AP_IntersystemMeasurementConfiguration_oms_1[] = { 0, 1, 2, 4 }; |
211 | | static const ber_tlv_tag_t asn_DEF_S1AP_IntersystemMeasurementConfiguration_tags_1[] = { |
212 | | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
213 | | }; |
214 | | static const asn_TYPE_tag2member_t asn_MAP_S1AP_IntersystemMeasurementConfiguration_tag2el_1[] = { |
215 | | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rSRP */ |
216 | | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rSRQ */ |
217 | | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sINR */ |
218 | | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* interSystemMeasurementParameters */ |
219 | | { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */ |
220 | | }; |
221 | | asn_SEQUENCE_specifics_t asn_SPC_S1AP_IntersystemMeasurementConfiguration_specs_1 = { |
222 | | sizeof(struct S1AP_IntersystemMeasurementConfiguration), |
223 | | offsetof(struct S1AP_IntersystemMeasurementConfiguration, _asn_ctx), |
224 | | asn_MAP_S1AP_IntersystemMeasurementConfiguration_tag2el_1, |
225 | | 5, /* Count of tags in the map */ |
226 | | asn_MAP_S1AP_IntersystemMeasurementConfiguration_oms_1, /* Optional members */ |
227 | | 4, 0, /* Root/Additions */ |
228 | | 5, /* First extension addition */ |
229 | | }; |
230 | | asn_TYPE_descriptor_t asn_DEF_S1AP_IntersystemMeasurementConfiguration = { |
231 | | "IntersystemMeasurementConfiguration", |
232 | | "IntersystemMeasurementConfiguration", |
233 | | &asn_OP_SEQUENCE, |
234 | | asn_DEF_S1AP_IntersystemMeasurementConfiguration_tags_1, |
235 | | sizeof(asn_DEF_S1AP_IntersystemMeasurementConfiguration_tags_1) |
236 | | /sizeof(asn_DEF_S1AP_IntersystemMeasurementConfiguration_tags_1[0]), /* 1 */ |
237 | | asn_DEF_S1AP_IntersystemMeasurementConfiguration_tags_1, /* Same as above */ |
238 | | sizeof(asn_DEF_S1AP_IntersystemMeasurementConfiguration_tags_1) |
239 | | /sizeof(asn_DEF_S1AP_IntersystemMeasurementConfiguration_tags_1[0]), /* 1 */ |
240 | | { |
241 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
242 | | 0, |
243 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
244 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
245 | | 0, |
246 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
247 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
248 | | 0, |
249 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
250 | | SEQUENCE_constraint |
251 | | }, |
252 | | asn_MBR_S1AP_IntersystemMeasurementConfiguration_1, |
253 | | 5, /* Elements count */ |
254 | | &asn_SPC_S1AP_IntersystemMeasurementConfiguration_specs_1 /* Additional specs */ |
255 | | }; |
256 | | |