remark release date
[Net-Radio-Location-SUPL-Test.git] / asn1 / GANSSEarthOrientParam.c
blobb85c7c45d1c0c89cdbbd54610398a581cb2010f3
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 "GANSSEarthOrientParam.h"
10 static int
11 memb_teop_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 <= 65535)) {
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 int
36 memb_pmX_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
37 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
38 long value;
40 if(!sptr) {
41 _ASN_CTFAIL(app_key, td, sptr,
42 "%s: value not given (%s:%d)",
43 td->name, __FILE__, __LINE__);
44 return -1;
47 value = *(const long *)sptr;
49 if((value >= -1048576 && value <= 1048575)) {
50 /* Constraint check succeeded */
51 return 0;
52 } else {
53 _ASN_CTFAIL(app_key, td, sptr,
54 "%s: constraint failed (%s:%d)",
55 td->name, __FILE__, __LINE__);
56 return -1;
60 static int
61 memb_pmXdot_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
62 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
63 long value;
65 if(!sptr) {
66 _ASN_CTFAIL(app_key, td, sptr,
67 "%s: value not given (%s:%d)",
68 td->name, __FILE__, __LINE__);
69 return -1;
72 value = *(const long *)sptr;
74 if((value >= -16384 && value <= 16383)) {
75 /* Constraint check succeeded */
76 return 0;
77 } else {
78 _ASN_CTFAIL(app_key, td, sptr,
79 "%s: constraint failed (%s:%d)",
80 td->name, __FILE__, __LINE__);
81 return -1;
85 static int
86 memb_pmY_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
87 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
88 long value;
90 if(!sptr) {
91 _ASN_CTFAIL(app_key, td, sptr,
92 "%s: value not given (%s:%d)",
93 td->name, __FILE__, __LINE__);
94 return -1;
97 value = *(const long *)sptr;
99 if((value >= -1048576 && value <= 1048575)) {
100 /* Constraint check succeeded */
101 return 0;
102 } else {
103 _ASN_CTFAIL(app_key, td, sptr,
104 "%s: constraint failed (%s:%d)",
105 td->name, __FILE__, __LINE__);
106 return -1;
110 static int
111 memb_pmYdot_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
112 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
113 long value;
115 if(!sptr) {
116 _ASN_CTFAIL(app_key, td, sptr,
117 "%s: value not given (%s:%d)",
118 td->name, __FILE__, __LINE__);
119 return -1;
122 value = *(const long *)sptr;
124 if((value >= -16384 && value <= 16383)) {
125 /* Constraint check succeeded */
126 return 0;
127 } else {
128 _ASN_CTFAIL(app_key, td, sptr,
129 "%s: constraint failed (%s:%d)",
130 td->name, __FILE__, __LINE__);
131 return -1;
135 static int
136 memb_deltaUT1_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
137 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
138 long value;
140 if(!sptr) {
141 _ASN_CTFAIL(app_key, td, sptr,
142 "%s: value not given (%s:%d)",
143 td->name, __FILE__, __LINE__);
144 return -1;
147 value = *(const long *)sptr;
149 if((value >= -1073741824 && value <= 1073741823)) {
150 /* Constraint check succeeded */
151 return 0;
152 } else {
153 _ASN_CTFAIL(app_key, td, sptr,
154 "%s: constraint failed (%s:%d)",
155 td->name, __FILE__, __LINE__);
156 return -1;
160 static int
161 memb_deltaUT1dot_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
162 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
163 long value;
165 if(!sptr) {
166 _ASN_CTFAIL(app_key, td, sptr,
167 "%s: value not given (%s:%d)",
168 td->name, __FILE__, __LINE__);
169 return -1;
172 value = *(const long *)sptr;
174 if((value >= -262144 && value <= 262143)) {
175 /* Constraint check succeeded */
176 return 0;
177 } else {
178 _ASN_CTFAIL(app_key, td, sptr,
179 "%s: constraint failed (%s:%d)",
180 td->name, __FILE__, __LINE__);
181 return -1;
185 static asn_per_constraints_t asn_PER_memb_teop_constr_2 = {
186 { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (0..65535) */,
187 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
188 0, 0 /* No PER value map */
190 static asn_per_constraints_t asn_PER_memb_pmX_constr_3 = {
191 { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */,
192 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
193 0, 0 /* No PER value map */
195 static asn_per_constraints_t asn_PER_memb_pmXdot_constr_4 = {
196 { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */,
197 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
198 0, 0 /* No PER value map */
200 static asn_per_constraints_t asn_PER_memb_pmY_constr_5 = {
201 { APC_CONSTRAINED, 21, -1, -1048576, 1048575 } /* (-1048576..1048575) */,
202 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
203 0, 0 /* No PER value map */
205 static asn_per_constraints_t asn_PER_memb_pmYdot_constr_6 = {
206 { APC_CONSTRAINED, 15, 15, -16384, 16383 } /* (-16384..16383) */,
207 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
208 0, 0 /* No PER value map */
210 static asn_per_constraints_t asn_PER_memb_deltaUT1_constr_7 = {
211 { APC_CONSTRAINED, 31, -1, -1073741824, 1073741823 } /* (-1073741824..1073741823) */,
212 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
213 0, 0 /* No PER value map */
215 static asn_per_constraints_t asn_PER_memb_deltaUT1dot_constr_8 = {
216 { APC_CONSTRAINED, 19, -1, -262144, 262143 } /* (-262144..262143) */,
217 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
218 0, 0 /* No PER value map */
220 static asn_TYPE_member_t asn_MBR_GANSSEarthOrientParam_1[] = {
221 { ATF_NOFLAGS, 0, offsetof(struct GANSSEarthOrientParam, teop),
222 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
223 -1, /* IMPLICIT tag at current level */
224 &asn_DEF_NativeInteger,
225 memb_teop_constraint_1,
226 &asn_PER_memb_teop_constr_2,
228 "teop"
230 { ATF_NOFLAGS, 0, offsetof(struct GANSSEarthOrientParam, pmX),
231 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
232 -1, /* IMPLICIT tag at current level */
233 &asn_DEF_NativeInteger,
234 memb_pmX_constraint_1,
235 &asn_PER_memb_pmX_constr_3,
237 "pmX"
239 { ATF_NOFLAGS, 0, offsetof(struct GANSSEarthOrientParam, pmXdot),
240 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
241 -1, /* IMPLICIT tag at current level */
242 &asn_DEF_NativeInteger,
243 memb_pmXdot_constraint_1,
244 &asn_PER_memb_pmXdot_constr_4,
246 "pmXdot"
248 { ATF_NOFLAGS, 0, offsetof(struct GANSSEarthOrientParam, pmY),
249 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
250 -1, /* IMPLICIT tag at current level */
251 &asn_DEF_NativeInteger,
252 memb_pmY_constraint_1,
253 &asn_PER_memb_pmY_constr_5,
255 "pmY"
257 { ATF_NOFLAGS, 0, offsetof(struct GANSSEarthOrientParam, pmYdot),
258 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
259 -1, /* IMPLICIT tag at current level */
260 &asn_DEF_NativeInteger,
261 memb_pmYdot_constraint_1,
262 &asn_PER_memb_pmYdot_constr_6,
264 "pmYdot"
266 { ATF_NOFLAGS, 0, offsetof(struct GANSSEarthOrientParam, deltaUT1),
267 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
268 -1, /* IMPLICIT tag at current level */
269 &asn_DEF_NativeInteger,
270 memb_deltaUT1_constraint_1,
271 &asn_PER_memb_deltaUT1_constr_7,
273 "deltaUT1"
275 { ATF_NOFLAGS, 0, offsetof(struct GANSSEarthOrientParam, deltaUT1dot),
276 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
277 -1, /* IMPLICIT tag at current level */
278 &asn_DEF_NativeInteger,
279 memb_deltaUT1dot_constraint_1,
280 &asn_PER_memb_deltaUT1dot_constr_8,
282 "deltaUT1dot"
285 static ber_tlv_tag_t asn_DEF_GANSSEarthOrientParam_tags_1[] = {
286 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
288 static asn_TYPE_tag2member_t asn_MAP_GANSSEarthOrientParam_tag2el_1[] = {
289 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* teop at 1202 */
290 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* pmX at 1203 */
291 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* pmXdot at 1204 */
292 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* pmY at 1205 */
293 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* pmYdot at 1206 */
294 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* deltaUT1 at 1207 */
295 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* deltaUT1dot at 1208 */
297 static asn_SEQUENCE_specifics_t asn_SPC_GANSSEarthOrientParam_specs_1 = {
298 sizeof(struct GANSSEarthOrientParam),
299 offsetof(struct GANSSEarthOrientParam, _asn_ctx),
300 asn_MAP_GANSSEarthOrientParam_tag2el_1,
301 7, /* Count of tags in the map */
302 0, 0, 0, /* Optional elements (not needed) */
303 -1, /* Start extensions */
304 -1 /* Stop extensions */
306 asn_TYPE_descriptor_t asn_DEF_GANSSEarthOrientParam = {
307 "GANSSEarthOrientParam",
308 "GANSSEarthOrientParam",
309 SEQUENCE_free,
310 SEQUENCE_print,
311 SEQUENCE_constraint,
312 SEQUENCE_decode_ber,
313 SEQUENCE_encode_der,
314 SEQUENCE_decode_xer,
315 SEQUENCE_encode_xer,
316 SEQUENCE_decode_uper,
317 SEQUENCE_encode_uper,
318 0, /* Use generic outmost tag fetcher */
319 asn_DEF_GANSSEarthOrientParam_tags_1,
320 sizeof(asn_DEF_GANSSEarthOrientParam_tags_1)
321 /sizeof(asn_DEF_GANSSEarthOrientParam_tags_1[0]), /* 1 */
322 asn_DEF_GANSSEarthOrientParam_tags_1, /* Same as above */
323 sizeof(asn_DEF_GANSSEarthOrientParam_tags_1)
324 /sizeof(asn_DEF_GANSSEarthOrientParam_tags_1[0]), /* 1 */
325 0, /* No PER visible constraints */
326 asn_MBR_GANSSEarthOrientParam_1,
327 7, /* Elements count */
328 &asn_SPC_GANSSEarthOrientParam_specs_1 /* Additional specs */