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 "AcquisElement.h"
11 memb_doppler0_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
>= -2048 && 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_codePhase_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
<= 1022)) {
50 /* Constraint check succeeded */
53 _ASN_CTFAIL(app_key
, td
, sptr
,
54 "%s: constraint failed (%s:%d)",
55 td
->name
, __FILE__
, __LINE__
);
61 memb_intCodePhase_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
<= 19)) {
75 /* Constraint check succeeded */
78 _ASN_CTFAIL(app_key
, td
, sptr
,
79 "%s: constraint failed (%s:%d)",
80 td
->name
, __FILE__
, __LINE__
);
86 memb_gpsBitNumber_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
<= 3)) {
100 /* Constraint check succeeded */
103 _ASN_CTFAIL(app_key
, td
, sptr
,
104 "%s: constraint failed (%s:%d)",
105 td
->name
, __FILE__
, __LINE__
);
111 memb_codePhaseSearchWindow_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
>= 0 && value
<= 15)) {
125 /* Constraint check succeeded */
128 _ASN_CTFAIL(app_key
, td
, sptr
,
129 "%s: constraint failed (%s:%d)",
130 td
->name
, __FILE__
, __LINE__
);
135 static asn_per_constraints_t asn_PER_memb_doppler0_constr_3
= {
136 { APC_CONSTRAINED
, 12, 12, -2048, 2047 } /* (-2048..2047) */,
137 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
138 0, 0 /* No PER value map */
140 static asn_per_constraints_t asn_PER_memb_codePhase_constr_5
= {
141 { APC_CONSTRAINED
, 10, 10, 0, 1022 } /* (0..1022) */,
142 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
143 0, 0 /* No PER value map */
145 static asn_per_constraints_t asn_PER_memb_intCodePhase_constr_6
= {
146 { APC_CONSTRAINED
, 5, 5, 0, 19 } /* (0..19) */,
147 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
148 0, 0 /* No PER value map */
150 static asn_per_constraints_t asn_PER_memb_gpsBitNumber_constr_7
= {
151 { APC_CONSTRAINED
, 2, 2, 0, 3 } /* (0..3) */,
152 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
153 0, 0 /* No PER value map */
155 static asn_per_constraints_t asn_PER_memb_codePhaseSearchWindow_constr_8
= {
156 { APC_CONSTRAINED
, 4, 4, 0, 15 } /* (0..15) */,
157 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
158 0, 0 /* No PER value map */
160 static asn_TYPE_member_t asn_MBR_AcquisElement_1
[] = {
161 { ATF_NOFLAGS
, 0, offsetof(struct AcquisElement
, svid
),
162 (ASN_TAG_CLASS_CONTEXT
| (0 << 2)),
163 -1, /* IMPLICIT tag at current level */
164 &asn_DEF_SatelliteID
,
165 0, /* Defer constraints checking to the member type */
166 0, /* No PER visible constraints */
170 { ATF_NOFLAGS
, 0, offsetof(struct AcquisElement
, doppler0
),
171 (ASN_TAG_CLASS_CONTEXT
| (1 << 2)),
172 -1, /* IMPLICIT tag at current level */
173 &asn_DEF_NativeInteger
,
174 memb_doppler0_constraint_1
,
175 &asn_PER_memb_doppler0_constr_3
,
179 { ATF_POINTER
, 1, offsetof(struct AcquisElement
, addionalDoppler
),
180 (ASN_TAG_CLASS_CONTEXT
| (2 << 2)),
181 -1, /* IMPLICIT tag at current level */
182 &asn_DEF_AddionalDopplerFields
,
183 0, /* Defer constraints checking to the member type */
184 0, /* No PER visible constraints */
188 { ATF_NOFLAGS
, 0, offsetof(struct AcquisElement
, codePhase
),
189 (ASN_TAG_CLASS_CONTEXT
| (3 << 2)),
190 -1, /* IMPLICIT tag at current level */
191 &asn_DEF_NativeInteger
,
192 memb_codePhase_constraint_1
,
193 &asn_PER_memb_codePhase_constr_5
,
197 { ATF_NOFLAGS
, 0, offsetof(struct AcquisElement
, intCodePhase
),
198 (ASN_TAG_CLASS_CONTEXT
| (4 << 2)),
199 -1, /* IMPLICIT tag at current level */
200 &asn_DEF_NativeInteger
,
201 memb_intCodePhase_constraint_1
,
202 &asn_PER_memb_intCodePhase_constr_6
,
206 { ATF_NOFLAGS
, 0, offsetof(struct AcquisElement
, gpsBitNumber
),
207 (ASN_TAG_CLASS_CONTEXT
| (5 << 2)),
208 -1, /* IMPLICIT tag at current level */
209 &asn_DEF_NativeInteger
,
210 memb_gpsBitNumber_constraint_1
,
211 &asn_PER_memb_gpsBitNumber_constr_7
,
215 { ATF_NOFLAGS
, 0, offsetof(struct AcquisElement
, codePhaseSearchWindow
),
216 (ASN_TAG_CLASS_CONTEXT
| (6 << 2)),
217 -1, /* IMPLICIT tag at current level */
218 &asn_DEF_NativeInteger
,
219 memb_codePhaseSearchWindow_constraint_1
,
220 &asn_PER_memb_codePhaseSearchWindow_constr_8
,
222 "codePhaseSearchWindow"
224 { ATF_POINTER
, 1, offsetof(struct AcquisElement
, addionalAngle
),
225 (ASN_TAG_CLASS_CONTEXT
| (7 << 2)),
226 -1, /* IMPLICIT tag at current level */
227 &asn_DEF_AddionalAngleFields
,
228 0, /* Defer constraints checking to the member type */
229 0, /* No PER visible constraints */
234 static int asn_MAP_AcquisElement_oms_1
[] = { 2, 7 };
235 static ber_tlv_tag_t asn_DEF_AcquisElement_tags_1
[] = {
236 (ASN_TAG_CLASS_UNIVERSAL
| (16 << 2))
238 static asn_TYPE_tag2member_t asn_MAP_AcquisElement_tag2el_1
[] = {
239 { (ASN_TAG_CLASS_CONTEXT
| (0 << 2)), 0, 0, 0 }, /* svid at 845 */
240 { (ASN_TAG_CLASS_CONTEXT
| (1 << 2)), 1, 0, 0 }, /* doppler0 at 849 */
241 { (ASN_TAG_CLASS_CONTEXT
| (2 << 2)), 2, 0, 0 }, /* addionalDoppler at 850 */
242 { (ASN_TAG_CLASS_CONTEXT
| (3 << 2)), 3, 0, 0 }, /* codePhase at 851 */
243 { (ASN_TAG_CLASS_CONTEXT
| (4 << 2)), 4, 0, 0 }, /* intCodePhase at 852 */
244 { (ASN_TAG_CLASS_CONTEXT
| (5 << 2)), 5, 0, 0 }, /* gpsBitNumber at 853 */
245 { (ASN_TAG_CLASS_CONTEXT
| (6 << 2)), 6, 0, 0 }, /* codePhaseSearchWindow at 854 */
246 { (ASN_TAG_CLASS_CONTEXT
| (7 << 2)), 7, 0, 0 } /* addionalAngle at 855 */
248 static asn_SEQUENCE_specifics_t asn_SPC_AcquisElement_specs_1
= {
249 sizeof(struct AcquisElement
),
250 offsetof(struct AcquisElement
, _asn_ctx
),
251 asn_MAP_AcquisElement_tag2el_1
,
252 8, /* Count of tags in the map */
253 asn_MAP_AcquisElement_oms_1
, /* Optional members */
254 2, 0, /* Root/Additions */
255 -1, /* Start extensions */
256 -1 /* Stop extensions */
258 asn_TYPE_descriptor_t asn_DEF_AcquisElement
= {
268 SEQUENCE_decode_uper
,
269 SEQUENCE_encode_uper
,
270 0, /* Use generic outmost tag fetcher */
271 asn_DEF_AcquisElement_tags_1
,
272 sizeof(asn_DEF_AcquisElement_tags_1
)
273 /sizeof(asn_DEF_AcquisElement_tags_1
[0]), /* 1 */
274 asn_DEF_AcquisElement_tags_1
, /* Same as above */
275 sizeof(asn_DEF_AcquisElement_tags_1
)
276 /sizeof(asn_DEF_AcquisElement_tags_1
[0]), /* 1 */
277 0, /* No PER visible constraints */
278 asn_MBR_AcquisElement_1
,
279 8, /* Elements count */
280 &asn_SPC_AcquisElement_specs_1
/* Additional specs */