Vanetza
 
Loading...
Searching...
No Matches
Time32.c
1/*
2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "IEEE1609dot2BaseTypes"
4 * found in "asn1/IEEE1609dot2BaseTypes.asn"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R`
6 */
7
8#include "Time32.h"
9
10int
11Time32_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13
14 if(!sptr) {
15 ASN__CTFAIL(app_key, td, sptr,
16 "%s: value not given (%s:%d)",
17 td->name, __FILE__, __LINE__);
18 return -1;
19 }
20
21
22 /* Constraint check succeeded */
23 return 0;
24}
25
26/*
27 * This type is implemented using Uint32,
28 * so here we adjust the DEF accordingly.
29 */
30#if !defined(ASN_DISABLE_OER_SUPPORT)
31static asn_oer_constraints_t asn_OER_type_Time32_constr_1 CC_NOTUSED = {
32 { 4, 1 } /* (0..4294967295) */,
33 -1};
34#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
35#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
36asn_per_constraints_t asn_PER_type_Time32_constr_1 CC_NOTUSED = {
37 { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
38 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
39 0, 0 /* No PER value map */
40};
41#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
42static const ber_tlv_tag_t asn_DEF_Time32_tags_1[] = {
43 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
44};
45asn_TYPE_descriptor_t asn_DEF_Time32 = {
46 "Time32",
47 "Time32",
48 &asn_OP_NativeInteger,
49 asn_DEF_Time32_tags_1,
50 sizeof(asn_DEF_Time32_tags_1)
51 /sizeof(asn_DEF_Time32_tags_1[0]), /* 1 */
52 asn_DEF_Time32_tags_1, /* Same as above */
53 sizeof(asn_DEF_Time32_tags_1)
54 /sizeof(asn_DEF_Time32_tags_1[0]), /* 1 */
55 {
56#if !defined(ASN_DISABLE_OER_SUPPORT)
57 &asn_OER_type_Time32_constr_1,
58#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
59#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
60 &asn_PER_type_Time32_constr_1,
61#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
62 Time32_constraint
63 },
64 0, 0, /* No members */
65 &asn_SPC_Uint32_specs_1 /* Additional specs */
66};
67