2 * Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
3 * From ASN.1 module "RRLP-Components"
4 * found in "../asn1src/RRLP-Components.asn"
5 * `asn1c -gen-PER -fskeletons-copy -fnative-types`
8 #include "Almanac-KeplerianSet.h"
11 memb_kepAlmanacE_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
<= 2047)) {
25 /* Constraint check succeeded */
28 _ASN_CTFAIL(app_key
, td
, sptr
,
29 "%s: constraint failed (%s:%d)",
30 td
->name
, __FILE__
, __LINE__
);
36 memb_kepAlmanacDeltaI_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
>= -1024 && value
<= 1023)) {
50 /* Constraint check succeeded */
53 _ASN_CTFAIL(app_key
, td
, sptr
,
54 "%s: constraint failed (%s:%d)",
55 td
->name
, __FILE__
, __LINE__
);
61 memb_kepAlmanacOmegaDot_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
>= -1024 && value
<= 1023)) {
75 /* Constraint check succeeded */
78 _ASN_CTFAIL(app_key
, td
, sptr
,
79 "%s: constraint failed (%s:%d)",
80 td
->name
, __FILE__
, __LINE__
);
86 memb_kepSVHealth_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
<= 15)) {
100 /* Constraint check succeeded */
103 _ASN_CTFAIL(app_key
, td
, sptr
,
104 "%s: constraint failed (%s:%d)",
105 td
->name
, __FILE__
, __LINE__
);
111 memb_kepAlmanacAPowerHalf_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
>= -65536 && value
<= 65535)) {
125 /* Constraint check succeeded */
128 _ASN_CTFAIL(app_key
, td
, sptr
,
129 "%s: constraint failed (%s:%d)",
130 td
->name
, __FILE__
, __LINE__
);
136 memb_kepAlmanacOmega0_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
>= -32768 && value
<= 32767)) {
150 /* Constraint check succeeded */
153 _ASN_CTFAIL(app_key
, td
, sptr
,
154 "%s: constraint failed (%s:%d)",
155 td
->name
, __FILE__
, __LINE__
);
161 memb_kepAlmanacW_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
>= -32768 && value
<= 32767)) {
175 /* Constraint check succeeded */
178 _ASN_CTFAIL(app_key
, td
, sptr
,
179 "%s: constraint failed (%s:%d)",
180 td
->name
, __FILE__
, __LINE__
);
186 memb_kepAlmanacM0_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
>= -32768 && value
<= 32767)) {
200 /* Constraint check succeeded */
203 _ASN_CTFAIL(app_key
, td
, sptr
,
204 "%s: constraint failed (%s:%d)",
205 td
->name
, __FILE__
, __LINE__
);
211 memb_kepAlmanacAF0_constraint_1(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
>= -8192 && value
<= 8191)) {
225 /* Constraint check succeeded */
228 _ASN_CTFAIL(app_key
, td
, sptr
,
229 "%s: constraint failed (%s:%d)",
230 td
->name
, __FILE__
, __LINE__
);
236 memb_kepAlmanacAF1_constraint_1(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
>= -1024 && value
<= 1023)) {
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_per_constraints_t asn_PER_memb_kepAlmanacE_constr_3
= {
261 { APC_CONSTRAINED
, 11, 11, 0, 2047 } /* (0..2047) */,
262 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
263 0, 0 /* No PER value map */
265 static asn_per_constraints_t asn_PER_memb_kepAlmanacDeltaI_constr_4
= {
266 { APC_CONSTRAINED
, 11, 11, -1024, 1023 } /* (-1024..1023) */,
267 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
268 0, 0 /* No PER value map */
270 static asn_per_constraints_t asn_PER_memb_kepAlmanacOmegaDot_constr_5
= {
271 { APC_CONSTRAINED
, 11, 11, -1024, 1023 } /* (-1024..1023) */,
272 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
273 0, 0 /* No PER value map */
275 static asn_per_constraints_t asn_PER_memb_kepSVHealth_constr_6
= {
276 { APC_CONSTRAINED
, 4, 4, 0, 15 } /* (0..15) */,
277 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
278 0, 0 /* No PER value map */
280 static asn_per_constraints_t asn_PER_memb_kepAlmanacAPowerHalf_constr_7
= {
281 { APC_CONSTRAINED
, 17, -1, -65536, 65535 } /* (-65536..65535) */,
282 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
283 0, 0 /* No PER value map */
285 static asn_per_constraints_t asn_PER_memb_kepAlmanacOmega0_constr_8
= {
286 { APC_CONSTRAINED
, 16, 16, -32768, 32767 } /* (-32768..32767) */,
287 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
288 0, 0 /* No PER value map */
290 static asn_per_constraints_t asn_PER_memb_kepAlmanacW_constr_9
= {
291 { APC_CONSTRAINED
, 16, 16, -32768, 32767 } /* (-32768..32767) */,
292 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
293 0, 0 /* No PER value map */
295 static asn_per_constraints_t asn_PER_memb_kepAlmanacM0_constr_10
= {
296 { APC_CONSTRAINED
, 16, 16, -32768, 32767 } /* (-32768..32767) */,
297 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
298 0, 0 /* No PER value map */
300 static asn_per_constraints_t asn_PER_memb_kepAlmanacAF0_constr_11
= {
301 { APC_CONSTRAINED
, 14, 14, -8192, 8191 } /* (-8192..8191) */,
302 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
303 0, 0 /* No PER value map */
305 static asn_per_constraints_t asn_PER_memb_kepAlmanacAF1_constr_12
= {
306 { APC_CONSTRAINED
, 11, 11, -1024, 1023 } /* (-1024..1023) */,
307 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
308 0, 0 /* No PER value map */
310 static asn_TYPE_member_t asn_MBR_Almanac_KeplerianSet_1
[] = {
311 { ATF_NOFLAGS
, 0, offsetof(struct Almanac_KeplerianSet
, svID
),
312 (ASN_TAG_CLASS_CONTEXT
| (0 << 2)),
313 -1, /* IMPLICIT tag at current level */
315 0, /* Defer constraints checking to the member type */
316 0, /* No PER visible constraints */
320 { ATF_NOFLAGS
, 0, offsetof(struct Almanac_KeplerianSet
, kepAlmanacE
),
321 (ASN_TAG_CLASS_CONTEXT
| (1 << 2)),
322 -1, /* IMPLICIT tag at current level */
323 &asn_DEF_NativeInteger
,
324 memb_kepAlmanacE_constraint_1
,
325 &asn_PER_memb_kepAlmanacE_constr_3
,
329 { ATF_NOFLAGS
, 0, offsetof(struct Almanac_KeplerianSet
, kepAlmanacDeltaI
),
330 (ASN_TAG_CLASS_CONTEXT
| (2 << 2)),
331 -1, /* IMPLICIT tag at current level */
332 &asn_DEF_NativeInteger
,
333 memb_kepAlmanacDeltaI_constraint_1
,
334 &asn_PER_memb_kepAlmanacDeltaI_constr_4
,
338 { ATF_NOFLAGS
, 0, offsetof(struct Almanac_KeplerianSet
, kepAlmanacOmegaDot
),
339 (ASN_TAG_CLASS_CONTEXT
| (3 << 2)),
340 -1, /* IMPLICIT tag at current level */
341 &asn_DEF_NativeInteger
,
342 memb_kepAlmanacOmegaDot_constraint_1
,
343 &asn_PER_memb_kepAlmanacOmegaDot_constr_5
,
347 { ATF_NOFLAGS
, 0, offsetof(struct Almanac_KeplerianSet
, kepSVHealth
),
348 (ASN_TAG_CLASS_CONTEXT
| (4 << 2)),
349 -1, /* IMPLICIT tag at current level */
350 &asn_DEF_NativeInteger
,
351 memb_kepSVHealth_constraint_1
,
352 &asn_PER_memb_kepSVHealth_constr_6
,
356 { ATF_NOFLAGS
, 0, offsetof(struct Almanac_KeplerianSet
, kepAlmanacAPowerHalf
),
357 (ASN_TAG_CLASS_CONTEXT
| (5 << 2)),
358 -1, /* IMPLICIT tag at current level */
359 &asn_DEF_NativeInteger
,
360 memb_kepAlmanacAPowerHalf_constraint_1
,
361 &asn_PER_memb_kepAlmanacAPowerHalf_constr_7
,
363 "kepAlmanacAPowerHalf"
365 { ATF_NOFLAGS
, 0, offsetof(struct Almanac_KeplerianSet
, kepAlmanacOmega0
),
366 (ASN_TAG_CLASS_CONTEXT
| (6 << 2)),
367 -1, /* IMPLICIT tag at current level */
368 &asn_DEF_NativeInteger
,
369 memb_kepAlmanacOmega0_constraint_1
,
370 &asn_PER_memb_kepAlmanacOmega0_constr_8
,
374 { ATF_NOFLAGS
, 0, offsetof(struct Almanac_KeplerianSet
, kepAlmanacW
),
375 (ASN_TAG_CLASS_CONTEXT
| (7 << 2)),
376 -1, /* IMPLICIT tag at current level */
377 &asn_DEF_NativeInteger
,
378 memb_kepAlmanacW_constraint_1
,
379 &asn_PER_memb_kepAlmanacW_constr_9
,
383 { ATF_NOFLAGS
, 0, offsetof(struct Almanac_KeplerianSet
, kepAlmanacM0
),
384 (ASN_TAG_CLASS_CONTEXT
| (8 << 2)),
385 -1, /* IMPLICIT tag at current level */
386 &asn_DEF_NativeInteger
,
387 memb_kepAlmanacM0_constraint_1
,
388 &asn_PER_memb_kepAlmanacM0_constr_10
,
392 { ATF_NOFLAGS
, 0, offsetof(struct Almanac_KeplerianSet
, kepAlmanacAF0
),
393 (ASN_TAG_CLASS_CONTEXT
| (9 << 2)),
394 -1, /* IMPLICIT tag at current level */
395 &asn_DEF_NativeInteger
,
396 memb_kepAlmanacAF0_constraint_1
,
397 &asn_PER_memb_kepAlmanacAF0_constr_11
,
401 { ATF_NOFLAGS
, 0, offsetof(struct Almanac_KeplerianSet
, kepAlmanacAF1
),
402 (ASN_TAG_CLASS_CONTEXT
| (10 << 2)),
403 -1, /* IMPLICIT tag at current level */
404 &asn_DEF_NativeInteger
,
405 memb_kepAlmanacAF1_constraint_1
,
406 &asn_PER_memb_kepAlmanacAF1_constr_12
,
411 static ber_tlv_tag_t asn_DEF_Almanac_KeplerianSet_tags_1
[] = {
412 (ASN_TAG_CLASS_UNIVERSAL
| (16 << 2))
414 static asn_TYPE_tag2member_t asn_MAP_Almanac_KeplerianSet_tag2el_1
[] = {
415 { (ASN_TAG_CLASS_CONTEXT
| (0 << 2)), 0, 0, 0 }, /* svID at 1575 */
416 { (ASN_TAG_CLASS_CONTEXT
| (1 << 2)), 1, 0, 0 }, /* kepAlmanacE at 1576 */
417 { (ASN_TAG_CLASS_CONTEXT
| (2 << 2)), 2, 0, 0 }, /* kepAlmanacDeltaI at 1577 */
418 { (ASN_TAG_CLASS_CONTEXT
| (3 << 2)), 3, 0, 0 }, /* kepAlmanacOmegaDot at 1578 */
419 { (ASN_TAG_CLASS_CONTEXT
| (4 << 2)), 4, 0, 0 }, /* kepSVHealth at 1579 */
420 { (ASN_TAG_CLASS_CONTEXT
| (5 << 2)), 5, 0, 0 }, /* kepAlmanacAPowerHalf at 1580 */
421 { (ASN_TAG_CLASS_CONTEXT
| (6 << 2)), 6, 0, 0 }, /* kepAlmanacOmega0 at 1581 */
422 { (ASN_TAG_CLASS_CONTEXT
| (7 << 2)), 7, 0, 0 }, /* kepAlmanacW at 1582 */
423 { (ASN_TAG_CLASS_CONTEXT
| (8 << 2)), 8, 0, 0 }, /* kepAlmanacM0 at 1583 */
424 { (ASN_TAG_CLASS_CONTEXT
| (9 << 2)), 9, 0, 0 }, /* kepAlmanacAF0 at 1584 */
425 { (ASN_TAG_CLASS_CONTEXT
| (10 << 2)), 10, 0, 0 } /* kepAlmanacAF1 at 1585 */
427 static asn_SEQUENCE_specifics_t asn_SPC_Almanac_KeplerianSet_specs_1
= {
428 sizeof(struct Almanac_KeplerianSet
),
429 offsetof(struct Almanac_KeplerianSet
, _asn_ctx
),
430 asn_MAP_Almanac_KeplerianSet_tag2el_1
,
431 11, /* Count of tags in the map */
432 0, 0, 0, /* Optional elements (not needed) */
433 -1, /* Start extensions */
434 -1 /* Stop extensions */
436 asn_TYPE_descriptor_t asn_DEF_Almanac_KeplerianSet
= {
437 "Almanac-KeplerianSet",
438 "Almanac-KeplerianSet",
446 SEQUENCE_decode_uper
,
447 SEQUENCE_encode_uper
,
448 0, /* Use generic outmost tag fetcher */
449 asn_DEF_Almanac_KeplerianSet_tags_1
,
450 sizeof(asn_DEF_Almanac_KeplerianSet_tags_1
)
451 /sizeof(asn_DEF_Almanac_KeplerianSet_tags_1
[0]), /* 1 */
452 asn_DEF_Almanac_KeplerianSet_tags_1
, /* Same as above */
453 sizeof(asn_DEF_Almanac_KeplerianSet_tags_1
)
454 /sizeof(asn_DEF_Almanac_KeplerianSet_tags_1
[0]), /* 1 */
455 0, /* No PER visible constraints */
456 asn_MBR_Almanac_KeplerianSet_1
,
457 11, /* Elements count */
458 &asn_SPC_Almanac_KeplerianSet_specs_1
/* Additional specs */