2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "NR-RRC-Definitions"
4 * found in "../ASN1_Input/rrc_15_3_asn.asn1"
5 * `asn1c -D ../RRC_output_14Nov/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER`
8 #include "PTRS-DensityRecommendationDL.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__);
135 static asn_oer_constraints_t asn_OER_memb_frequencyDensity1_constr_2 CC_NOTUSED = {
136 { 2, 1 } /* (1..276) */,
138 static asn_per_constraints_t asn_PER_memb_frequencyDensity1_constr_2 CC_NOTUSED = {
139 { APC_CONSTRAINED, 9, 9, 1, 276 } /* (1..276) */,
140 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
141 0, 0 /* No PER value map */
143 static asn_oer_constraints_t asn_OER_memb_frequencyDensity2_constr_3 CC_NOTUSED = {
144 { 2, 1 } /* (1..276) */,
146 static asn_per_constraints_t asn_PER_memb_frequencyDensity2_constr_3 CC_NOTUSED = {
147 { APC_CONSTRAINED, 9, 9, 1, 276 } /* (1..276) */,
148 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
149 0, 0 /* No PER value map */
151 static asn_oer_constraints_t asn_OER_memb_timeDensity1_constr_4 CC_NOTUSED = {
152 { 1, 1 } /* (0..29) */,
154 static asn_per_constraints_t asn_PER_memb_timeDensity1_constr_4 CC_NOTUSED = {
155 { APC_CONSTRAINED, 5, 5, 0, 29 } /* (0..29) */,
156 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
157 0, 0 /* No PER value map */
159 static asn_oer_constraints_t asn_OER_memb_timeDensity2_constr_5 CC_NOTUSED = {
160 { 1, 1 } /* (0..29) */,
162 static asn_per_constraints_t asn_PER_memb_timeDensity2_constr_5 CC_NOTUSED = {
163 { APC_CONSTRAINED, 5, 5, 0, 29 } /* (0..29) */,
164 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
165 0, 0 /* No PER value map */
167 static asn_oer_constraints_t asn_OER_memb_timeDensity3_constr_6 CC_NOTUSED = {
168 { 1, 1 } /* (0..29) */,
170 static asn_per_constraints_t asn_PER_memb_timeDensity3_constr_6 CC_NOTUSED = {
171 { APC_CONSTRAINED, 5, 5, 0, 29 } /* (0..29) */,
172 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
173 0, 0 /* No PER value map */
175 asn_TYPE_member_t asn_MBR_PTRS_DensityRecommendationDL_1[] = {
176 { ATF_NOFLAGS, 0, offsetof(struct PTRS_DensityRecommendationDL, frequencyDensity1),
177 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
178 -1, /* IMPLICIT tag at current level */
179 &asn_DEF_NativeInteger,
181 { &asn_OER_memb_frequencyDensity1_constr_2, &asn_PER_memb_frequencyDensity1_constr_2, memb_frequencyDensity1_constraint_1 },
182 0, 0, /* No default value */
185 { ATF_NOFLAGS, 0, offsetof(struct PTRS_DensityRecommendationDL, frequencyDensity2),
186 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
187 -1, /* IMPLICIT tag at current level */
188 &asn_DEF_NativeInteger,
190 { &asn_OER_memb_frequencyDensity2_constr_3, &asn_PER_memb_frequencyDensity2_constr_3, memb_frequencyDensity2_constraint_1 },
191 0, 0, /* No default value */
194 { ATF_NOFLAGS, 0, offsetof(struct PTRS_DensityRecommendationDL, timeDensity1),
195 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
196 -1, /* IMPLICIT tag at current level */
197 &asn_DEF_NativeInteger,
199 { &asn_OER_memb_timeDensity1_constr_4, &asn_PER_memb_timeDensity1_constr_4, memb_timeDensity1_constraint_1 },
200 0, 0, /* No default value */
203 { ATF_NOFLAGS, 0, offsetof(struct PTRS_DensityRecommendationDL, timeDensity2),
204 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
205 -1, /* IMPLICIT tag at current level */
206 &asn_DEF_NativeInteger,
208 { &asn_OER_memb_timeDensity2_constr_5, &asn_PER_memb_timeDensity2_constr_5, memb_timeDensity2_constraint_1 },
209 0, 0, /* No default value */
212 { ATF_NOFLAGS, 0, offsetof(struct PTRS_DensityRecommendationDL, timeDensity3),
213 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
214 -1, /* IMPLICIT tag at current level */
215 &asn_DEF_NativeInteger,
217 { &asn_OER_memb_timeDensity3_constr_6, &asn_PER_memb_timeDensity3_constr_6, memb_timeDensity3_constraint_1 },
218 0, 0, /* No default value */
222 static const ber_tlv_tag_t asn_DEF_PTRS_DensityRecommendationDL_tags_1[] = {
223 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
225 static const asn_TYPE_tag2member_t asn_MAP_PTRS_DensityRecommendationDL_tag2el_1[] = {
226 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* frequencyDensity1 */
227 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* frequencyDensity2 */
228 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* timeDensity1 */
229 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* timeDensity2 */
230 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* timeDensity3 */
232 asn_SEQUENCE_specifics_t asn_SPC_PTRS_DensityRecommendationDL_specs_1 = {
233 sizeof(struct PTRS_DensityRecommendationDL),
234 offsetof(struct PTRS_DensityRecommendationDL, _asn_ctx),
235 asn_MAP_PTRS_DensityRecommendationDL_tag2el_1,
236 5, /* Count of tags in the map */
237 0, 0, 0, /* Optional elements (not needed) */
238 -1, /* First extension addition */
240 asn_TYPE_descriptor_t asn_DEF_PTRS_DensityRecommendationDL = {
241 "PTRS-DensityRecommendationDL",
242 "PTRS-DensityRecommendationDL",
244 asn_DEF_PTRS_DensityRecommendationDL_tags_1,
245 sizeof(asn_DEF_PTRS_DensityRecommendationDL_tags_1)
246 /sizeof(asn_DEF_PTRS_DensityRecommendationDL_tags_1[0]), /* 1 */
247 asn_DEF_PTRS_DensityRecommendationDL_tags_1, /* Same as above */
248 sizeof(asn_DEF_PTRS_DensityRecommendationDL_tags_1)
249 /sizeof(asn_DEF_PTRS_DensityRecommendationDL_tags_1[0]), /* 1 */
250 { 0, 0, SEQUENCE_constraint },
251 asn_MBR_PTRS_DensityRecommendationDL_1,
252 5, /* Elements count */
253 &asn_SPC_PTRS_DensityRecommendationDL_specs_1 /* Additional specs */