2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "NR-RRC-Definitions"
4 * found in "/home/labadmin/hlal/rrc_15.3_asn.asn1"
5 * `asn1c -D ./15_3_rrc/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
8 #include "PTRS-DensityRecommendationUL.h"
11 memb_frequencyDensity1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
16 ASN__CTFAIL(app_key, td, sptr,
17 "%s: value not given (%s:%d)",
18 td->name, __FILE__, __LINE__);
22 value = *(const long *)sptr;
24 if((value >= 1 && value <= 276)) {
25 /* Constraint check succeeded */
28 ASN__CTFAIL(app_key, td, sptr,
29 "%s: constraint failed (%s:%d)",
30 td->name, __FILE__, __LINE__);
36 memb_frequencyDensity2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
37 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
41 ASN__CTFAIL(app_key, td, sptr,
42 "%s: value not given (%s:%d)",
43 td->name, __FILE__, __LINE__);
47 value = *(const long *)sptr;
49 if((value >= 1 && value <= 276)) {
50 /* Constraint check succeeded */
53 ASN__CTFAIL(app_key, td, sptr,
54 "%s: constraint failed (%s:%d)",
55 td->name, __FILE__, __LINE__);
61 memb_timeDensity1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
62 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
66 ASN__CTFAIL(app_key, td, sptr,
67 "%s: value not given (%s:%d)",
68 td->name, __FILE__, __LINE__);
72 value = *(const long *)sptr;
74 if((value >= 0 && value <= 29)) {
75 /* Constraint check succeeded */
78 ASN__CTFAIL(app_key, td, sptr,
79 "%s: constraint failed (%s:%d)",
80 td->name, __FILE__, __LINE__);
86 memb_timeDensity2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
87 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
91 ASN__CTFAIL(app_key, td, sptr,
92 "%s: value not given (%s:%d)",
93 td->name, __FILE__, __LINE__);
97 value = *(const long *)sptr;
99 if((value >= 0 && value <= 29)) {
100 /* Constraint check succeeded */
103 ASN__CTFAIL(app_key, td, sptr,
104 "%s: constraint failed (%s:%d)",
105 td->name, __FILE__, __LINE__);
111 memb_timeDensity3_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
112 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
116 ASN__CTFAIL(app_key, td, sptr,
117 "%s: value not given (%s:%d)",
118 td->name, __FILE__, __LINE__);
122 value = *(const long *)sptr;
124 if((value >= 0 && value <= 29)) {
125 /* Constraint check succeeded */
128 ASN__CTFAIL(app_key, td, sptr,
129 "%s: constraint failed (%s:%d)",
130 td->name, __FILE__, __LINE__);
136 memb_sampleDensity1_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
137 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
141 ASN__CTFAIL(app_key, td, sptr,
142 "%s: value not given (%s:%d)",
143 td->name, __FILE__, __LINE__);
147 value = *(const long *)sptr;
149 if((value >= 1 && value <= 276)) {
150 /* Constraint check succeeded */
153 ASN__CTFAIL(app_key, td, sptr,
154 "%s: constraint failed (%s:%d)",
155 td->name, __FILE__, __LINE__);
161 memb_sampleDensity2_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
162 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
166 ASN__CTFAIL(app_key, td, sptr,
167 "%s: value not given (%s:%d)",
168 td->name, __FILE__, __LINE__);
172 value = *(const long *)sptr;
174 if((value >= 1 && value <= 276)) {
175 /* Constraint check succeeded */
178 ASN__CTFAIL(app_key, td, sptr,
179 "%s: constraint failed (%s:%d)",
180 td->name, __FILE__, __LINE__);
186 memb_sampleDensity3_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
187 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
191 ASN__CTFAIL(app_key, td, sptr,
192 "%s: value not given (%s:%d)",
193 td->name, __FILE__, __LINE__);
197 value = *(const long *)sptr;
199 if((value >= 1 && value <= 276)) {
200 /* Constraint check succeeded */
203 ASN__CTFAIL(app_key, td, sptr,
204 "%s: constraint failed (%s:%d)",
205 td->name, __FILE__, __LINE__);
211 memb_sampleDensity4_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
212 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
216 ASN__CTFAIL(app_key, td, sptr,
217 "%s: value not given (%s:%d)",
218 td->name, __FILE__, __LINE__);
222 value = *(const long *)sptr;
224 if((value >= 1 && value <= 276)) {
225 /* Constraint check succeeded */
228 ASN__CTFAIL(app_key, td, sptr,
229 "%s: constraint failed (%s:%d)",
230 td->name, __FILE__, __LINE__);
236 memb_sampleDensity5_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
237 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
241 ASN__CTFAIL(app_key, td, sptr,
242 "%s: value not given (%s:%d)",
243 td->name, __FILE__, __LINE__);
247 value = *(const long *)sptr;
249 if((value >= 1 && value <= 276)) {
250 /* Constraint check succeeded */
253 ASN__CTFAIL(app_key, td, sptr,
254 "%s: constraint failed (%s:%d)",
255 td->name, __FILE__, __LINE__);
260 static asn_oer_constraints_t asn_OER_memb_frequencyDensity1_constr_2 CC_NOTUSED = {
261 { 2, 1 } /* (1..276) */,
263 static asn_per_constraints_t asn_PER_memb_frequencyDensity1_constr_2 CC_NOTUSED = {
264 { APC_CONSTRAINED, 9, 9, 1, 276 } /* (1..276) */,
265 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
266 0, 0 /* No PER value map */
268 static asn_oer_constraints_t asn_OER_memb_frequencyDensity2_constr_3 CC_NOTUSED = {
269 { 2, 1 } /* (1..276) */,
271 static asn_per_constraints_t asn_PER_memb_frequencyDensity2_constr_3 CC_NOTUSED = {
272 { APC_CONSTRAINED, 9, 9, 1, 276 } /* (1..276) */,
273 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
274 0, 0 /* No PER value map */
276 static asn_oer_constraints_t asn_OER_memb_timeDensity1_constr_4 CC_NOTUSED = {
277 { 1, 1 } /* (0..29) */,
279 static asn_per_constraints_t asn_PER_memb_timeDensity1_constr_4 CC_NOTUSED = {
280 { APC_CONSTRAINED, 5, 5, 0, 29 } /* (0..29) */,
281 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
282 0, 0 /* No PER value map */
284 static asn_oer_constraints_t asn_OER_memb_timeDensity2_constr_5 CC_NOTUSED = {
285 { 1, 1 } /* (0..29) */,
287 static asn_per_constraints_t asn_PER_memb_timeDensity2_constr_5 CC_NOTUSED = {
288 { APC_CONSTRAINED, 5, 5, 0, 29 } /* (0..29) */,
289 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
290 0, 0 /* No PER value map */
292 static asn_oer_constraints_t asn_OER_memb_timeDensity3_constr_6 CC_NOTUSED = {
293 { 1, 1 } /* (0..29) */,
295 static asn_per_constraints_t asn_PER_memb_timeDensity3_constr_6 CC_NOTUSED = {
296 { APC_CONSTRAINED, 5, 5, 0, 29 } /* (0..29) */,
297 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
298 0, 0 /* No PER value map */
300 static asn_oer_constraints_t asn_OER_memb_sampleDensity1_constr_7 CC_NOTUSED = {
301 { 2, 1 } /* (1..276) */,
303 static asn_per_constraints_t asn_PER_memb_sampleDensity1_constr_7 CC_NOTUSED = {
304 { APC_CONSTRAINED, 9, 9, 1, 276 } /* (1..276) */,
305 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
306 0, 0 /* No PER value map */
308 static asn_oer_constraints_t asn_OER_memb_sampleDensity2_constr_8 CC_NOTUSED = {
309 { 2, 1 } /* (1..276) */,
311 static asn_per_constraints_t asn_PER_memb_sampleDensity2_constr_8 CC_NOTUSED = {
312 { APC_CONSTRAINED, 9, 9, 1, 276 } /* (1..276) */,
313 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
314 0, 0 /* No PER value map */
316 static asn_oer_constraints_t asn_OER_memb_sampleDensity3_constr_9 CC_NOTUSED = {
317 { 2, 1 } /* (1..276) */,
319 static asn_per_constraints_t asn_PER_memb_sampleDensity3_constr_9 CC_NOTUSED = {
320 { APC_CONSTRAINED, 9, 9, 1, 276 } /* (1..276) */,
321 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
322 0, 0 /* No PER value map */
324 static asn_oer_constraints_t asn_OER_memb_sampleDensity4_constr_10 CC_NOTUSED = {
325 { 2, 1 } /* (1..276) */,
327 static asn_per_constraints_t asn_PER_memb_sampleDensity4_constr_10 CC_NOTUSED = {
328 { APC_CONSTRAINED, 9, 9, 1, 276 } /* (1..276) */,
329 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
330 0, 0 /* No PER value map */
332 static asn_oer_constraints_t asn_OER_memb_sampleDensity5_constr_11 CC_NOTUSED = {
333 { 2, 1 } /* (1..276) */,
335 static asn_per_constraints_t asn_PER_memb_sampleDensity5_constr_11 CC_NOTUSED = {
336 { APC_CONSTRAINED, 9, 9, 1, 276 } /* (1..276) */,
337 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
338 0, 0 /* No PER value map */
340 asn_TYPE_member_t asn_MBR_PTRS_DensityRecommendationUL_1[] = {
341 { ATF_NOFLAGS, 0, offsetof(struct PTRS_DensityRecommendationUL, frequencyDensity1),
342 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
343 -1, /* IMPLICIT tag at current level */
344 &asn_DEF_NativeInteger,
346 { &asn_OER_memb_frequencyDensity1_constr_2, &asn_PER_memb_frequencyDensity1_constr_2, memb_frequencyDensity1_constraint_1 },
347 0, 0, /* No default value */
350 { ATF_NOFLAGS, 0, offsetof(struct PTRS_DensityRecommendationUL, frequencyDensity2),
351 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
352 -1, /* IMPLICIT tag at current level */
353 &asn_DEF_NativeInteger,
355 { &asn_OER_memb_frequencyDensity2_constr_3, &asn_PER_memb_frequencyDensity2_constr_3, memb_frequencyDensity2_constraint_1 },
356 0, 0, /* No default value */
359 { ATF_NOFLAGS, 0, offsetof(struct PTRS_DensityRecommendationUL, timeDensity1),
360 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
361 -1, /* IMPLICIT tag at current level */
362 &asn_DEF_NativeInteger,
364 { &asn_OER_memb_timeDensity1_constr_4, &asn_PER_memb_timeDensity1_constr_4, memb_timeDensity1_constraint_1 },
365 0, 0, /* No default value */
368 { ATF_NOFLAGS, 0, offsetof(struct PTRS_DensityRecommendationUL, timeDensity2),
369 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
370 -1, /* IMPLICIT tag at current level */
371 &asn_DEF_NativeInteger,
373 { &asn_OER_memb_timeDensity2_constr_5, &asn_PER_memb_timeDensity2_constr_5, memb_timeDensity2_constraint_1 },
374 0, 0, /* No default value */
377 { ATF_NOFLAGS, 0, offsetof(struct PTRS_DensityRecommendationUL, timeDensity3),
378 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
379 -1, /* IMPLICIT tag at current level */
380 &asn_DEF_NativeInteger,
382 { &asn_OER_memb_timeDensity3_constr_6, &asn_PER_memb_timeDensity3_constr_6, memb_timeDensity3_constraint_1 },
383 0, 0, /* No default value */
386 { ATF_NOFLAGS, 0, offsetof(struct PTRS_DensityRecommendationUL, sampleDensity1),
387 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
388 -1, /* IMPLICIT tag at current level */
389 &asn_DEF_NativeInteger,
391 { &asn_OER_memb_sampleDensity1_constr_7, &asn_PER_memb_sampleDensity1_constr_7, memb_sampleDensity1_constraint_1 },
392 0, 0, /* No default value */
395 { ATF_NOFLAGS, 0, offsetof(struct PTRS_DensityRecommendationUL, sampleDensity2),
396 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
397 -1, /* IMPLICIT tag at current level */
398 &asn_DEF_NativeInteger,
400 { &asn_OER_memb_sampleDensity2_constr_8, &asn_PER_memb_sampleDensity2_constr_8, memb_sampleDensity2_constraint_1 },
401 0, 0, /* No default value */
404 { ATF_NOFLAGS, 0, offsetof(struct PTRS_DensityRecommendationUL, sampleDensity3),
405 (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
406 -1, /* IMPLICIT tag at current level */
407 &asn_DEF_NativeInteger,
409 { &asn_OER_memb_sampleDensity3_constr_9, &asn_PER_memb_sampleDensity3_constr_9, memb_sampleDensity3_constraint_1 },
410 0, 0, /* No default value */
413 { ATF_NOFLAGS, 0, offsetof(struct PTRS_DensityRecommendationUL, sampleDensity4),
414 (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
415 -1, /* IMPLICIT tag at current level */
416 &asn_DEF_NativeInteger,
418 { &asn_OER_memb_sampleDensity4_constr_10, &asn_PER_memb_sampleDensity4_constr_10, memb_sampleDensity4_constraint_1 },
419 0, 0, /* No default value */
422 { ATF_NOFLAGS, 0, offsetof(struct PTRS_DensityRecommendationUL, sampleDensity5),
423 (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
424 -1, /* IMPLICIT tag at current level */
425 &asn_DEF_NativeInteger,
427 { &asn_OER_memb_sampleDensity5_constr_11, &asn_PER_memb_sampleDensity5_constr_11, memb_sampleDensity5_constraint_1 },
428 0, 0, /* No default value */
432 static const ber_tlv_tag_t asn_DEF_PTRS_DensityRecommendationUL_tags_1[] = {
433 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
435 static const asn_TYPE_tag2member_t asn_MAP_PTRS_DensityRecommendationUL_tag2el_1[] = {
436 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* frequencyDensity1 */
437 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* frequencyDensity2 */
438 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* timeDensity1 */
439 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* timeDensity2 */
440 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* timeDensity3 */
441 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* sampleDensity1 */
442 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* sampleDensity2 */
443 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* sampleDensity3 */
444 { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* sampleDensity4 */
445 { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* sampleDensity5 */
447 asn_SEQUENCE_specifics_t asn_SPC_PTRS_DensityRecommendationUL_specs_1 = {
448 sizeof(struct PTRS_DensityRecommendationUL),
449 offsetof(struct PTRS_DensityRecommendationUL, _asn_ctx),
450 asn_MAP_PTRS_DensityRecommendationUL_tag2el_1,
451 10, /* Count of tags in the map */
452 0, 0, 0, /* Optional elements (not needed) */
453 -1, /* First extension addition */
455 asn_TYPE_descriptor_t asn_DEF_PTRS_DensityRecommendationUL = {
456 "PTRS-DensityRecommendationUL",
457 "PTRS-DensityRecommendationUL",
459 asn_DEF_PTRS_DensityRecommendationUL_tags_1,
460 sizeof(asn_DEF_PTRS_DensityRecommendationUL_tags_1)
461 /sizeof(asn_DEF_PTRS_DensityRecommendationUL_tags_1[0]), /* 1 */
462 asn_DEF_PTRS_DensityRecommendationUL_tags_1, /* Same as above */
463 sizeof(asn_DEF_PTRS_DensityRecommendationUL_tags_1)
464 /sizeof(asn_DEF_PTRS_DensityRecommendationUL_tags_1[0]), /* 1 */
465 { 0, 0, SEQUENCE_constraint },
466 asn_MBR_PTRS_DensityRecommendationUL_1,
467 10, /* Elements count */
468 &asn_SPC_PTRS_DensityRecommendationUL_specs_1 /* Additional specs */