2 * Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
3 * From ASN.1 module "ULP-Components"
4 * found in "../asn1src/ULP-Components.asn"
5 * `asn1c -gen-PER -fskeletons-copy -fnative-types`
8 #include "CdmaCellInformation.h"
11 memb_refNID_constraint_1(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
>= 0 && value
<= 65535)) {
25 /* Constraint check succeeded */
28 _ASN_CTFAIL(app_key
, td
, sptr
,
29 "%s: constraint failed (%s:%d)",
30 td
->name
, __FILE__
, __LINE__
);
36 memb_refSID_constraint_1(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
>= 0 && value
<= 32767)) {
50 /* Constraint check succeeded */
53 _ASN_CTFAIL(app_key
, td
, sptr
,
54 "%s: constraint failed (%s:%d)",
55 td
->name
, __FILE__
, __LINE__
);
61 memb_refBASEID_constraint_1(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
<= 65535)) {
75 /* Constraint check succeeded */
78 _ASN_CTFAIL(app_key
, td
, sptr
,
79 "%s: constraint failed (%s:%d)",
80 td
->name
, __FILE__
, __LINE__
);
86 memb_refBASELAT_constraint_1(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
<= 4194303)) {
100 /* Constraint check succeeded */
103 _ASN_CTFAIL(app_key
, td
, sptr
,
104 "%s: constraint failed (%s:%d)",
105 td
->name
, __FILE__
, __LINE__
);
111 memb_reBASELONG_constraint_1(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
<= 8388607)) {
125 /* Constraint check succeeded */
128 _ASN_CTFAIL(app_key
, td
, sptr
,
129 "%s: constraint failed (%s:%d)",
130 td
->name
, __FILE__
, __LINE__
);
136 memb_refREFPN_constraint_1(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
>= 0 && value
<= 511)) {
150 /* Constraint check succeeded */
153 _ASN_CTFAIL(app_key
, td
, sptr
,
154 "%s: constraint failed (%s:%d)",
155 td
->name
, __FILE__
, __LINE__
);
161 memb_refWeekNumber_constraint_1(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
>= 0 && value
<= 65535)) {
175 /* Constraint check succeeded */
178 _ASN_CTFAIL(app_key
, td
, sptr
,
179 "%s: constraint failed (%s:%d)",
180 td
->name
, __FILE__
, __LINE__
);
186 memb_refSeconds_constraint_1(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
>= 0 && value
<= 4194303)) {
200 /* Constraint check succeeded */
203 _ASN_CTFAIL(app_key
, td
, sptr
,
204 "%s: constraint failed (%s:%d)",
205 td
->name
, __FILE__
, __LINE__
);
210 static asn_per_constraints_t asn_PER_memb_refNID_constr_2
= {
211 { APC_CONSTRAINED
, 16, 16, 0, 65535 } /* (0..65535) */,
212 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
213 0, 0 /* No PER value map */
215 static asn_per_constraints_t asn_PER_memb_refSID_constr_3
= {
216 { APC_CONSTRAINED
, 15, 15, 0, 32767 } /* (0..32767) */,
217 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
218 0, 0 /* No PER value map */
220 static asn_per_constraints_t asn_PER_memb_refBASEID_constr_4
= {
221 { APC_CONSTRAINED
, 16, 16, 0, 65535 } /* (0..65535) */,
222 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
223 0, 0 /* No PER value map */
225 static asn_per_constraints_t asn_PER_memb_refBASELAT_constr_5
= {
226 { APC_CONSTRAINED
, 22, -1, 0, 4194303 } /* (0..4194303) */,
227 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
228 0, 0 /* No PER value map */
230 static asn_per_constraints_t asn_PER_memb_reBASELONG_constr_6
= {
231 { APC_CONSTRAINED
, 23, -1, 0, 8388607 } /* (0..8388607) */,
232 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
233 0, 0 /* No PER value map */
235 static asn_per_constraints_t asn_PER_memb_refREFPN_constr_7
= {
236 { APC_CONSTRAINED
, 9, 9, 0, 511 } /* (0..511) */,
237 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
238 0, 0 /* No PER value map */
240 static asn_per_constraints_t asn_PER_memb_refWeekNumber_constr_8
= {
241 { APC_CONSTRAINED
, 16, 16, 0, 65535 } /* (0..65535) */,
242 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
243 0, 0 /* No PER value map */
245 static asn_per_constraints_t asn_PER_memb_refSeconds_constr_9
= {
246 { APC_CONSTRAINED
, 22, -1, 0, 4194303 } /* (0..4194303) */,
247 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
248 0, 0 /* No PER value map */
250 static asn_TYPE_member_t asn_MBR_CdmaCellInformation_1
[] = {
251 { ATF_NOFLAGS
, 0, offsetof(struct CdmaCellInformation
, refNID
),
252 (ASN_TAG_CLASS_CONTEXT
| (0 << 2)),
253 -1, /* IMPLICIT tag at current level */
254 &asn_DEF_NativeInteger
,
255 memb_refNID_constraint_1
,
256 &asn_PER_memb_refNID_constr_2
,
260 { ATF_NOFLAGS
, 0, offsetof(struct CdmaCellInformation
, refSID
),
261 (ASN_TAG_CLASS_CONTEXT
| (1 << 2)),
262 -1, /* IMPLICIT tag at current level */
263 &asn_DEF_NativeInteger
,
264 memb_refSID_constraint_1
,
265 &asn_PER_memb_refSID_constr_3
,
269 { ATF_NOFLAGS
, 0, offsetof(struct CdmaCellInformation
, refBASEID
),
270 (ASN_TAG_CLASS_CONTEXT
| (2 << 2)),
271 -1, /* IMPLICIT tag at current level */
272 &asn_DEF_NativeInteger
,
273 memb_refBASEID_constraint_1
,
274 &asn_PER_memb_refBASEID_constr_4
,
278 { ATF_NOFLAGS
, 0, offsetof(struct CdmaCellInformation
, refBASELAT
),
279 (ASN_TAG_CLASS_CONTEXT
| (3 << 2)),
280 -1, /* IMPLICIT tag at current level */
281 &asn_DEF_NativeInteger
,
282 memb_refBASELAT_constraint_1
,
283 &asn_PER_memb_refBASELAT_constr_5
,
287 { ATF_NOFLAGS
, 0, offsetof(struct CdmaCellInformation
, reBASELONG
),
288 (ASN_TAG_CLASS_CONTEXT
| (4 << 2)),
289 -1, /* IMPLICIT tag at current level */
290 &asn_DEF_NativeInteger
,
291 memb_reBASELONG_constraint_1
,
292 &asn_PER_memb_reBASELONG_constr_6
,
296 { ATF_NOFLAGS
, 0, offsetof(struct CdmaCellInformation
, refREFPN
),
297 (ASN_TAG_CLASS_CONTEXT
| (5 << 2)),
298 -1, /* IMPLICIT tag at current level */
299 &asn_DEF_NativeInteger
,
300 memb_refREFPN_constraint_1
,
301 &asn_PER_memb_refREFPN_constr_7
,
305 { ATF_NOFLAGS
, 0, offsetof(struct CdmaCellInformation
, refWeekNumber
),
306 (ASN_TAG_CLASS_CONTEXT
| (6 << 2)),
307 -1, /* IMPLICIT tag at current level */
308 &asn_DEF_NativeInteger
,
309 memb_refWeekNumber_constraint_1
,
310 &asn_PER_memb_refWeekNumber_constr_8
,
314 { ATF_NOFLAGS
, 0, offsetof(struct CdmaCellInformation
, refSeconds
),
315 (ASN_TAG_CLASS_CONTEXT
| (7 << 2)),
316 -1, /* IMPLICIT tag at current level */
317 &asn_DEF_NativeInteger
,
318 memb_refSeconds_constraint_1
,
319 &asn_PER_memb_refSeconds_constr_9
,
324 static ber_tlv_tag_t asn_DEF_CdmaCellInformation_tags_1
[] = {
325 (ASN_TAG_CLASS_UNIVERSAL
| (16 << 2))
327 static asn_TYPE_tag2member_t asn_MAP_CdmaCellInformation_tag2el_1
[] = {
328 { (ASN_TAG_CLASS_CONTEXT
| (0 << 2)), 0, 0, 0 }, /* refNID at 90 */
329 { (ASN_TAG_CLASS_CONTEXT
| (1 << 2)), 1, 0, 0 }, /* refSID at 91 */
330 { (ASN_TAG_CLASS_CONTEXT
| (2 << 2)), 2, 0, 0 }, /* refBASEID at 92 */
331 { (ASN_TAG_CLASS_CONTEXT
| (3 << 2)), 3, 0, 0 }, /* refBASELAT at 93 */
332 { (ASN_TAG_CLASS_CONTEXT
| (4 << 2)), 4, 0, 0 }, /* reBASELONG at 94 */
333 { (ASN_TAG_CLASS_CONTEXT
| (5 << 2)), 5, 0, 0 }, /* refREFPN at 95 */
334 { (ASN_TAG_CLASS_CONTEXT
| (6 << 2)), 6, 0, 0 }, /* refWeekNumber at 96 */
335 { (ASN_TAG_CLASS_CONTEXT
| (7 << 2)), 7, 0, 0 } /* refSeconds at 97 */
337 static asn_SEQUENCE_specifics_t asn_SPC_CdmaCellInformation_specs_1
= {
338 sizeof(struct CdmaCellInformation
),
339 offsetof(struct CdmaCellInformation
, _asn_ctx
),
340 asn_MAP_CdmaCellInformation_tag2el_1
,
341 8, /* Count of tags in the map */
342 0, 0, 0, /* Optional elements (not needed) */
343 7, /* Start extensions */
344 9 /* Stop extensions */
346 asn_TYPE_descriptor_t asn_DEF_CdmaCellInformation
= {
347 "CdmaCellInformation",
348 "CdmaCellInformation",
356 SEQUENCE_decode_uper
,
357 SEQUENCE_encode_uper
,
358 0, /* Use generic outmost tag fetcher */
359 asn_DEF_CdmaCellInformation_tags_1
,
360 sizeof(asn_DEF_CdmaCellInformation_tags_1
)
361 /sizeof(asn_DEF_CdmaCellInformation_tags_1
[0]), /* 1 */
362 asn_DEF_CdmaCellInformation_tags_1
, /* Same as above */
363 sizeof(asn_DEF_CdmaCellInformation_tags_1
)
364 /sizeof(asn_DEF_CdmaCellInformation_tags_1
[0]), /* 1 */
365 0, /* No PER visible constraints */
366 asn_MBR_CdmaCellInformation_1
,
367 8, /* Elements count */
368 &asn_SPC_CdmaCellInformation_specs_1
/* Additional specs */