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 "UTCmodelSet4.h"
11 memb_utcA1wnt_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
>= -8388608 && value
<= 8388607)) {
25 /* Constraint check succeeded */
28 _ASN_CTFAIL(app_key
, td
, sptr
,
29 "%s: constraint failed (%s:%d)",
30 td
->name
, __FILE__
, __LINE__
);
36 memb_utcA0wnt_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
>= (-2147483647L - 1) && value
<= 2147483647)) {
50 /* Constraint check succeeded */
53 _ASN_CTFAIL(app_key
, td
, sptr
,
54 "%s: constraint failed (%s:%d)",
55 td
->name
, __FILE__
, __LINE__
);
61 memb_utcTot_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
<= 255)) {
75 /* Constraint check succeeded */
78 _ASN_CTFAIL(app_key
, td
, sptr
,
79 "%s: constraint failed (%s:%d)",
80 td
->name
, __FILE__
, __LINE__
);
86 memb_utcWNt_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
<= 255)) {
100 /* Constraint check succeeded */
103 _ASN_CTFAIL(app_key
, td
, sptr
,
104 "%s: constraint failed (%s:%d)",
105 td
->name
, __FILE__
, __LINE__
);
111 memb_utcDeltaTls_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
>= -128 && value
<= 127)) {
125 /* Constraint check succeeded */
128 _ASN_CTFAIL(app_key
, td
, sptr
,
129 "%s: constraint failed (%s:%d)",
130 td
->name
, __FILE__
, __LINE__
);
136 memb_utcWNlsf_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
>= 0 && value
<= 255)) {
150 /* Constraint check succeeded */
153 _ASN_CTFAIL(app_key
, td
, sptr
,
154 "%s: constraint failed (%s:%d)",
155 td
->name
, __FILE__
, __LINE__
);
161 memb_utcDN_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
>= -128 && value
<= 127)) {
175 /* Constraint check succeeded */
178 _ASN_CTFAIL(app_key
, td
, sptr
,
179 "%s: constraint failed (%s:%d)",
180 td
->name
, __FILE__
, __LINE__
);
186 memb_utcDeltaTlsf_constraint_1(asn_TYPE_descriptor_t
*td
, const void *sptr
,
187 asn_app_constraint_failed_f
*ctfailcb
, void *app_key
) {
191 _ASN_CTFAIL(app_key
, td
, sptr
,
192 "%s: value not given (%s:%d)",
193 td
->name
, __FILE__
, __LINE__
);
197 value
= *(const long *)sptr
;
199 if((value
>= -128 && value
<= 127)) {
200 /* Constraint check succeeded */
203 _ASN_CTFAIL(app_key
, td
, sptr
,
204 "%s: constraint failed (%s:%d)",
205 td
->name
, __FILE__
, __LINE__
);
211 memb_utcStandardID_constraint_1(asn_TYPE_descriptor_t
*td
, const void *sptr
,
212 asn_app_constraint_failed_f
*ctfailcb
, void *app_key
) {
216 _ASN_CTFAIL(app_key
, td
, sptr
,
217 "%s: value not given (%s:%d)",
218 td
->name
, __FILE__
, __LINE__
);
222 value
= *(const long *)sptr
;
224 if((value
>= 0 && value
<= 7)) {
225 /* Constraint check succeeded */
228 _ASN_CTFAIL(app_key
, td
, sptr
,
229 "%s: constraint failed (%s:%d)",
230 td
->name
, __FILE__
, __LINE__
);
235 static asn_per_constraints_t asn_PER_memb_utcA1wnt_constr_2
= {
236 { APC_CONSTRAINED
, 24, -1, -8388608, 8388607 } /* (-8388608..8388607) */,
237 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
238 0, 0 /* No PER value map */
240 static asn_per_constraints_t asn_PER_memb_utcA0wnt_constr_3
= {
241 { APC_CONSTRAINED
, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */,
242 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
243 0, 0 /* No PER value map */
245 static asn_per_constraints_t asn_PER_memb_utcTot_constr_4
= {
246 { APC_CONSTRAINED
, 8, 8, 0, 255 } /* (0..255) */,
247 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
248 0, 0 /* No PER value map */
250 static asn_per_constraints_t asn_PER_memb_utcWNt_constr_5
= {
251 { APC_CONSTRAINED
, 8, 8, 0, 255 } /* (0..255) */,
252 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
253 0, 0 /* No PER value map */
255 static asn_per_constraints_t asn_PER_memb_utcDeltaTls_constr_6
= {
256 { APC_CONSTRAINED
, 8, 8, -128, 127 } /* (-128..127) */,
257 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
258 0, 0 /* No PER value map */
260 static asn_per_constraints_t asn_PER_memb_utcWNlsf_constr_7
= {
261 { APC_CONSTRAINED
, 8, 8, 0, 255 } /* (0..255) */,
262 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
263 0, 0 /* No PER value map */
265 static asn_per_constraints_t asn_PER_memb_utcDN_constr_8
= {
266 { APC_CONSTRAINED
, 8, 8, -128, 127 } /* (-128..127) */,
267 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
268 0, 0 /* No PER value map */
270 static asn_per_constraints_t asn_PER_memb_utcDeltaTlsf_constr_9
= {
271 { APC_CONSTRAINED
, 8, 8, -128, 127 } /* (-128..127) */,
272 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
273 0, 0 /* No PER value map */
275 static asn_per_constraints_t asn_PER_memb_utcStandardID_constr_10
= {
276 { APC_CONSTRAINED
, 3, 3, 0, 7 } /* (0..7) */,
277 { APC_UNCONSTRAINED
, -1, -1, 0, 0 },
278 0, 0 /* No PER value map */
280 static asn_TYPE_member_t asn_MBR_UTCmodelSet4_1
[] = {
281 { ATF_NOFLAGS
, 0, offsetof(struct UTCmodelSet4
, utcA1wnt
),
282 (ASN_TAG_CLASS_CONTEXT
| (0 << 2)),
283 -1, /* IMPLICIT tag at current level */
284 &asn_DEF_NativeInteger
,
285 memb_utcA1wnt_constraint_1
,
286 &asn_PER_memb_utcA1wnt_constr_2
,
290 { ATF_NOFLAGS
, 0, offsetof(struct UTCmodelSet4
, utcA0wnt
),
291 (ASN_TAG_CLASS_CONTEXT
| (1 << 2)),
292 -1, /* IMPLICIT tag at current level */
293 &asn_DEF_NativeInteger
,
294 memb_utcA0wnt_constraint_1
,
295 &asn_PER_memb_utcA0wnt_constr_3
,
299 { ATF_NOFLAGS
, 0, offsetof(struct UTCmodelSet4
, utcTot
),
300 (ASN_TAG_CLASS_CONTEXT
| (2 << 2)),
301 -1, /* IMPLICIT tag at current level */
302 &asn_DEF_NativeInteger
,
303 memb_utcTot_constraint_1
,
304 &asn_PER_memb_utcTot_constr_4
,
308 { ATF_NOFLAGS
, 0, offsetof(struct UTCmodelSet4
, utcWNt
),
309 (ASN_TAG_CLASS_CONTEXT
| (3 << 2)),
310 -1, /* IMPLICIT tag at current level */
311 &asn_DEF_NativeInteger
,
312 memb_utcWNt_constraint_1
,
313 &asn_PER_memb_utcWNt_constr_5
,
317 { ATF_NOFLAGS
, 0, offsetof(struct UTCmodelSet4
, utcDeltaTls
),
318 (ASN_TAG_CLASS_CONTEXT
| (4 << 2)),
319 -1, /* IMPLICIT tag at current level */
320 &asn_DEF_NativeInteger
,
321 memb_utcDeltaTls_constraint_1
,
322 &asn_PER_memb_utcDeltaTls_constr_6
,
326 { ATF_NOFLAGS
, 0, offsetof(struct UTCmodelSet4
, utcWNlsf
),
327 (ASN_TAG_CLASS_CONTEXT
| (5 << 2)),
328 -1, /* IMPLICIT tag at current level */
329 &asn_DEF_NativeInteger
,
330 memb_utcWNlsf_constraint_1
,
331 &asn_PER_memb_utcWNlsf_constr_7
,
335 { ATF_NOFLAGS
, 0, offsetof(struct UTCmodelSet4
, utcDN
),
336 (ASN_TAG_CLASS_CONTEXT
| (6 << 2)),
337 -1, /* IMPLICIT tag at current level */
338 &asn_DEF_NativeInteger
,
339 memb_utcDN_constraint_1
,
340 &asn_PER_memb_utcDN_constr_8
,
344 { ATF_NOFLAGS
, 0, offsetof(struct UTCmodelSet4
, utcDeltaTlsf
),
345 (ASN_TAG_CLASS_CONTEXT
| (7 << 2)),
346 -1, /* IMPLICIT tag at current level */
347 &asn_DEF_NativeInteger
,
348 memb_utcDeltaTlsf_constraint_1
,
349 &asn_PER_memb_utcDeltaTlsf_constr_9
,
353 { ATF_NOFLAGS
, 0, offsetof(struct UTCmodelSet4
, utcStandardID
),
354 (ASN_TAG_CLASS_CONTEXT
| (8 << 2)),
355 -1, /* IMPLICIT tag at current level */
356 &asn_DEF_NativeInteger
,
357 memb_utcStandardID_constraint_1
,
358 &asn_PER_memb_utcStandardID_constr_10
,
363 static ber_tlv_tag_t asn_DEF_UTCmodelSet4_tags_1
[] = {
364 (ASN_TAG_CLASS_UNIVERSAL
| (16 << 2))
366 static asn_TYPE_tag2member_t asn_MAP_UTCmodelSet4_tag2el_1
[] = {
367 { (ASN_TAG_CLASS_CONTEXT
| (0 << 2)), 0, 0, 0 }, /* utcA1wnt at 1867 */
368 { (ASN_TAG_CLASS_CONTEXT
| (1 << 2)), 1, 0, 0 }, /* utcA0wnt at 1868 */
369 { (ASN_TAG_CLASS_CONTEXT
| (2 << 2)), 2, 0, 0 }, /* utcTot at 1869 */
370 { (ASN_TAG_CLASS_CONTEXT
| (3 << 2)), 3, 0, 0 }, /* utcWNt at 1870 */
371 { (ASN_TAG_CLASS_CONTEXT
| (4 << 2)), 4, 0, 0 }, /* utcDeltaTls at 1871 */
372 { (ASN_TAG_CLASS_CONTEXT
| (5 << 2)), 5, 0, 0 }, /* utcWNlsf at 1872 */
373 { (ASN_TAG_CLASS_CONTEXT
| (6 << 2)), 6, 0, 0 }, /* utcDN at 1873 */
374 { (ASN_TAG_CLASS_CONTEXT
| (7 << 2)), 7, 0, 0 }, /* utcDeltaTlsf at 1874 */
375 { (ASN_TAG_CLASS_CONTEXT
| (8 << 2)), 8, 0, 0 } /* utcStandardID at 1875 */
377 static asn_SEQUENCE_specifics_t asn_SPC_UTCmodelSet4_specs_1
= {
378 sizeof(struct UTCmodelSet4
),
379 offsetof(struct UTCmodelSet4
, _asn_ctx
),
380 asn_MAP_UTCmodelSet4_tag2el_1
,
381 9, /* Count of tags in the map */
382 0, 0, 0, /* Optional elements (not needed) */
383 -1, /* Start extensions */
384 -1 /* Stop extensions */
386 asn_TYPE_descriptor_t asn_DEF_UTCmodelSet4
= {
396 SEQUENCE_decode_uper
,
397 SEQUENCE_encode_uper
,
398 0, /* Use generic outmost tag fetcher */
399 asn_DEF_UTCmodelSet4_tags_1
,
400 sizeof(asn_DEF_UTCmodelSet4_tags_1
)
401 /sizeof(asn_DEF_UTCmodelSet4_tags_1
[0]), /* 1 */
402 asn_DEF_UTCmodelSet4_tags_1
, /* Same as above */
403 sizeof(asn_DEF_UTCmodelSet4_tags_1
)
404 /sizeof(asn_DEF_UTCmodelSet4_tags_1
[0]), /* 1 */
405 0, /* No PER visible constraints */
406 asn_MBR_UTCmodelSet4_1
,
407 9, /* Elements count */
408 &asn_SPC_UTCmodelSet4_specs_1
/* Additional specs */