remark release date
[Net-Radio-Location-SUPL-Test.git] / asn1 / GPSReferenceTime-R10-Ext.c
blob3e6df18014d2af852622f1c8f87aa00ae291ed20
1 /*
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`
6 */
8 #include "GPSReferenceTime-R10-Ext.h"
10 static int
11 memb_gpsWeekCycleNumber_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13 long value;
15 if(!sptr) {
16 _ASN_CTFAIL(app_key, td, sptr,
17 "%s: value not given (%s:%d)",
18 td->name, __FILE__, __LINE__);
19 return -1;
22 value = *(const long *)sptr;
24 if((value >= 0 && value <= 7)) {
25 /* Constraint check succeeded */
26 return 0;
27 } else {
28 _ASN_CTFAIL(app_key, td, sptr,
29 "%s: constraint failed (%s:%d)",
30 td->name, __FILE__, __LINE__);
31 return -1;
35 static asn_per_constraints_t asn_PER_memb_gpsWeekCycleNumber_constr_2 = {
36 { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
37 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
38 0, 0 /* No PER value map */
40 static asn_TYPE_member_t asn_MBR_GPSReferenceTime_R10_Ext_1[] = {
41 { ATF_NOFLAGS, 0, offsetof(struct GPSReferenceTime_R10_Ext, gpsWeekCycleNumber),
42 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
43 -1, /* IMPLICIT tag at current level */
44 &asn_DEF_NativeInteger,
45 memb_gpsWeekCycleNumber_constraint_1,
46 &asn_PER_memb_gpsWeekCycleNumber_constr_2,
48 "gpsWeekCycleNumber"
51 static ber_tlv_tag_t asn_DEF_GPSReferenceTime_R10_Ext_tags_1[] = {
52 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
54 static asn_TYPE_tag2member_t asn_MAP_GPSReferenceTime_R10_Ext_tag2el_1[] = {
55 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gpsWeekCycleNumber at 2115 */
57 static asn_SEQUENCE_specifics_t asn_SPC_GPSReferenceTime_R10_Ext_specs_1 = {
58 sizeof(struct GPSReferenceTime_R10_Ext),
59 offsetof(struct GPSReferenceTime_R10_Ext, _asn_ctx),
60 asn_MAP_GPSReferenceTime_R10_Ext_tag2el_1,
61 1, /* Count of tags in the map */
62 0, 0, 0, /* Optional elements (not needed) */
63 -1, /* Start extensions */
64 -1 /* Stop extensions */
66 asn_TYPE_descriptor_t asn_DEF_GPSReferenceTime_R10_Ext = {
67 "GPSReferenceTime-R10-Ext",
68 "GPSReferenceTime-R10-Ext",
69 SEQUENCE_free,
70 SEQUENCE_print,
71 SEQUENCE_constraint,
72 SEQUENCE_decode_ber,
73 SEQUENCE_encode_der,
74 SEQUENCE_decode_xer,
75 SEQUENCE_encode_xer,
76 SEQUENCE_decode_uper,
77 SEQUENCE_encode_uper,
78 0, /* Use generic outmost tag fetcher */
79 asn_DEF_GPSReferenceTime_R10_Ext_tags_1,
80 sizeof(asn_DEF_GPSReferenceTime_R10_Ext_tags_1)
81 /sizeof(asn_DEF_GPSReferenceTime_R10_Ext_tags_1[0]), /* 1 */
82 asn_DEF_GPSReferenceTime_R10_Ext_tags_1, /* Same as above */
83 sizeof(asn_DEF_GPSReferenceTime_R10_Ext_tags_1)
84 /sizeof(asn_DEF_GPSReferenceTime_R10_Ext_tags_1[0]), /* 1 */
85 0, /* No PER visible constraints */
86 asn_MBR_GPSReferenceTime_R10_Ext_1,
87 1, /* Elements count */
88 &asn_SPC_GPSReferenceTime_R10_Ext_specs_1 /* Additional specs */