2 * Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
3 * From ASN.1 module "SUPL-POS-INIT"
4 * found in "../asn1src/SUPL-POS-INIT.asn"
5 * `asn1c -gen-PER -fskeletons-copy -fnative-types`
8 #include "NavigationModel.h"
11 memb_gpsWeek_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
<= 1023)) {
25 /* Constraint check succeeded */
28 _ASN_CTFAIL(app_key
, td
, sptr
,
29 "%s: constraint failed (%s:%d)",
30 td
->name
, __FILE__
, __LINE__
);
36 memb_gpsToe_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
<= 167)) {
50 /* Constraint check succeeded */
53 _ASN_CTFAIL(app_key
, td
, sptr
,
54 "%s: constraint failed (%s:%d)",
55 td
->name
, __FILE__
, __LINE__
);
61 memb_nSAT_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
<= 31)) {
75 /* Constraint check succeeded */
78 _ASN_CTFAIL(app_key
, td
, sptr
,
79 "%s: constraint failed (%s:%d)",
80 td
->name
, __FILE__
, __LINE__
);
86 memb_toeLimit_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
<= 10)) {
100 /* Constraint check succeeded */
103 _ASN_CTFAIL(app_key
, td
, sptr
,
104 "%s: constraint failed (%s:%d)",
105 td
->name
, __FILE__
, __LINE__
);
110 static asn_per_constraints_t asn_PER_memb_gpsWeek_constr_2
= {
111 { APC_CONSTRAINED
, 10, 10, 0, 1023 } /* (0..1023) */,
112 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
113 0, 0 /* No PER value map */
115 static asn_per_constraints_t asn_PER_memb_gpsToe_constr_3
= {
116 { APC_CONSTRAINED
, 8, 8, 0, 167 } /* (0..167) */,
117 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
118 0, 0 /* No PER value map */
120 static asn_per_constraints_t asn_PER_memb_nSAT_constr_4
= {
121 { APC_CONSTRAINED
, 5, 5, 0, 31 } /* (0..31) */,
122 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
123 0, 0 /* No PER value map */
125 static asn_per_constraints_t asn_PER_memb_toeLimit_constr_5
= {
126 { APC_CONSTRAINED
, 4, 4, 0, 10 } /* (0..10) */,
127 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
128 0, 0 /* No PER value map */
130 static asn_TYPE_member_t asn_MBR_NavigationModel_1
[] = {
131 { ATF_NOFLAGS
, 0, offsetof(struct NavigationModel
, gpsWeek
),
132 (ASN_TAG_CLASS_CONTEXT
| (0 << 2)),
133 -1, /* IMPLICIT tag at current level */
134 &asn_DEF_NativeInteger
,
135 memb_gpsWeek_constraint_1
,
136 &asn_PER_memb_gpsWeek_constr_2
,
140 { ATF_NOFLAGS
, 0, offsetof(struct NavigationModel
, gpsToe
),
141 (ASN_TAG_CLASS_CONTEXT
| (1 << 2)),
142 -1, /* IMPLICIT tag at current level */
143 &asn_DEF_NativeInteger
,
144 memb_gpsToe_constraint_1
,
145 &asn_PER_memb_gpsToe_constr_3
,
149 { ATF_NOFLAGS
, 0, offsetof(struct NavigationModel
, nSAT
),
150 (ASN_TAG_CLASS_CONTEXT
| (2 << 2)),
151 -1, /* IMPLICIT tag at current level */
152 &asn_DEF_NativeInteger
,
153 memb_nSAT_constraint_1
,
154 &asn_PER_memb_nSAT_constr_4
,
158 { ATF_NOFLAGS
, 0, offsetof(struct NavigationModel
, toeLimit
),
159 (ASN_TAG_CLASS_CONTEXT
| (3 << 2)),
160 -1, /* IMPLICIT tag at current level */
161 &asn_DEF_NativeInteger
,
162 memb_toeLimit_constraint_1
,
163 &asn_PER_memb_toeLimit_constr_5
,
167 { ATF_POINTER
, 1, offsetof(struct NavigationModel
, satInfo
),
168 (ASN_TAG_CLASS_CONTEXT
| (4 << 2)),
169 -1, /* IMPLICIT tag at current level */
170 &asn_DEF_SatelliteInfo
,
171 0, /* Defer constraints checking to the member type */
172 0, /* No PER visible constraints */
177 static int asn_MAP_NavigationModel_oms_1
[] = { 4 };
178 static ber_tlv_tag_t asn_DEF_NavigationModel_tags_1
[] = {
179 (ASN_TAG_CLASS_UNIVERSAL
| (16 << 2))
181 static asn_TYPE_tag2member_t asn_MAP_NavigationModel_tag2el_1
[] = {
182 { (ASN_TAG_CLASS_CONTEXT
| (0 << 2)), 0, 0, 0 }, /* gpsWeek at 37 */
183 { (ASN_TAG_CLASS_CONTEXT
| (1 << 2)), 1, 0, 0 }, /* gpsToe at 38 */
184 { (ASN_TAG_CLASS_CONTEXT
| (2 << 2)), 2, 0, 0 }, /* nSAT at 39 */
185 { (ASN_TAG_CLASS_CONTEXT
| (3 << 2)), 3, 0, 0 }, /* toeLimit at 40 */
186 { (ASN_TAG_CLASS_CONTEXT
| (4 << 2)), 4, 0, 0 } /* satInfo at 41 */
188 static asn_SEQUENCE_specifics_t asn_SPC_NavigationModel_specs_1
= {
189 sizeof(struct NavigationModel
),
190 offsetof(struct NavigationModel
, _asn_ctx
),
191 asn_MAP_NavigationModel_tag2el_1
,
192 5, /* Count of tags in the map */
193 asn_MAP_NavigationModel_oms_1
, /* Optional members */
194 1, 0, /* Root/Additions */
195 4, /* Start extensions */
196 6 /* Stop extensions */
198 asn_TYPE_descriptor_t asn_DEF_NavigationModel
= {
208 SEQUENCE_decode_uper
,
209 SEQUENCE_encode_uper
,
210 0, /* Use generic outmost tag fetcher */
211 asn_DEF_NavigationModel_tags_1
,
212 sizeof(asn_DEF_NavigationModel_tags_1
)
213 /sizeof(asn_DEF_NavigationModel_tags_1
[0]), /* 1 */
214 asn_DEF_NavigationModel_tags_1
, /* Same as above */
215 sizeof(asn_DEF_NavigationModel_tags_1
)
216 /sizeof(asn_DEF_NavigationModel_tags_1
[0]), /* 1 */
217 0, /* No PER visible constraints */
218 asn_MBR_NavigationModel_1
,
219 5, /* Elements count */
220 &asn_SPC_NavigationModel_specs_1
/* Additional specs */