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 "GANSSEarthOrientParam.h"
11 memb_teop_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_pmX_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
>= -1048576 && value
<= 1048575)) {
50 /* Constraint check succeeded */
53 _ASN_CTFAIL(app_key
, td
, sptr
,
54 "%s: constraint failed (%s:%d)",
55 td
->name
, __FILE__
, __LINE__
);
61 memb_pmXdot_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
>= -16384 && value
<= 16383)) {
75 /* Constraint check succeeded */
78 _ASN_CTFAIL(app_key
, td
, sptr
,
79 "%s: constraint failed (%s:%d)",
80 td
->name
, __FILE__
, __LINE__
);
86 memb_pmY_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
>= -1048576 && value
<= 1048575)) {
100 /* Constraint check succeeded */
103 _ASN_CTFAIL(app_key
, td
, sptr
,
104 "%s: constraint failed (%s:%d)",
105 td
->name
, __FILE__
, __LINE__
);
111 memb_pmYdot_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
>= -16384 && value
<= 16383)) {
125 /* Constraint check succeeded */
128 _ASN_CTFAIL(app_key
, td
, sptr
,
129 "%s: constraint failed (%s:%d)",
130 td
->name
, __FILE__
, __LINE__
);
136 memb_deltaUT1_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
>= -1073741824 && value
<= 1073741823)) {
150 /* Constraint check succeeded */
153 _ASN_CTFAIL(app_key
, td
, sptr
,
154 "%s: constraint failed (%s:%d)",
155 td
->name
, __FILE__
, __LINE__
);
161 memb_deltaUT1dot_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
>= -262144 && value
<= 262143)) {
175 /* Constraint check succeeded */
178 _ASN_CTFAIL(app_key
, td
, sptr
,
179 "%s: constraint failed (%s:%d)",
180 td
->name
, __FILE__
, __LINE__
);
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
,
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
,
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
,
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
,
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
,
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
,
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
,
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",
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 */