Vanetza
 
Loading...
Searching...
No Matches
Duration.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 "Duration.h"
9
10#if !defined(ASN_DISABLE_OER_SUPPORT)
11static asn_oer_constraints_t asn_OER_type_Duration_constr_1 CC_NOTUSED = {
12 { 0, 0 },
13 -1};
14#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
15#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
16asn_per_constraints_t asn_PER_type_Duration_constr_1 CC_NOTUSED = {
17 { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */,
18 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
19 0, 0 /* No PER value map */
20};
21#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
22asn_TYPE_member_t asn_MBR_Duration_1[] = {
23 { ATF_NOFLAGS, 0, offsetof(struct Duration, choice.microseconds),
24 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
25 -1, /* IMPLICIT tag at current level */
26 &asn_DEF_Uint16,
27 0,
28 {
29#if !defined(ASN_DISABLE_OER_SUPPORT)
30 0,
31#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
32#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
33 0,
34#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
35 0
36 },
37 0, 0, /* No default value */
38 "microseconds"
39 },
40 { ATF_NOFLAGS, 0, offsetof(struct Duration, choice.milliseconds),
41 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
42 -1, /* IMPLICIT tag at current level */
43 &asn_DEF_Uint16,
44 0,
45 {
46#if !defined(ASN_DISABLE_OER_SUPPORT)
47 0,
48#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
49#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
50 0,
51#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
52 0
53 },
54 0, 0, /* No default value */
55 "milliseconds"
56 },
57 { ATF_NOFLAGS, 0, offsetof(struct Duration, choice.seconds),
58 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
59 -1, /* IMPLICIT tag at current level */
60 &asn_DEF_Uint16,
61 0,
62 {
63#if !defined(ASN_DISABLE_OER_SUPPORT)
64 0,
65#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
66#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
67 0,
68#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
69 0
70 },
71 0, 0, /* No default value */
72 "seconds"
73 },
74 { ATF_NOFLAGS, 0, offsetof(struct Duration, choice.minutes),
75 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
76 -1, /* IMPLICIT tag at current level */
77 &asn_DEF_Uint16,
78 0,
79 {
80#if !defined(ASN_DISABLE_OER_SUPPORT)
81 0,
82#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
83#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
84 0,
85#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
86 0
87 },
88 0, 0, /* No default value */
89 "minutes"
90 },
91 { ATF_NOFLAGS, 0, offsetof(struct Duration, choice.hours),
92 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
93 -1, /* IMPLICIT tag at current level */
94 &asn_DEF_Uint16,
95 0,
96 {
97#if !defined(ASN_DISABLE_OER_SUPPORT)
98 0,
99#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
100#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
101 0,
102#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
103 0
104 },
105 0, 0, /* No default value */
106 "hours"
107 },
108 { ATF_NOFLAGS, 0, offsetof(struct Duration, choice.sixtyHours),
109 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
110 -1, /* IMPLICIT tag at current level */
111 &asn_DEF_Uint16,
112 0,
113 {
114#if !defined(ASN_DISABLE_OER_SUPPORT)
115 0,
116#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
117#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
118 0,
119#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
120 0
121 },
122 0, 0, /* No default value */
123 "sixtyHours"
124 },
125 { ATF_NOFLAGS, 0, offsetof(struct Duration, choice.years),
126 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
127 -1, /* IMPLICIT tag at current level */
128 &asn_DEF_Uint16,
129 0,
130 {
131#if !defined(ASN_DISABLE_OER_SUPPORT)
132 0,
133#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
134#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
135 0,
136#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
137 0
138 },
139 0, 0, /* No default value */
140 "years"
141 },
142};
143static const asn_TYPE_tag2member_t asn_MAP_Duration_tag2el_1[] = {
144 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* microseconds */
145 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* milliseconds */
146 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* seconds */
147 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* minutes */
148 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* hours */
149 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* sixtyHours */
150 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* years */
151};
152asn_CHOICE_specifics_t asn_SPC_Duration_specs_1 = {
153 sizeof(struct Duration),
154 offsetof(struct Duration, _asn_ctx),
155 offsetof(struct Duration, present),
156 sizeof(((struct Duration *)0)->present),
157 asn_MAP_Duration_tag2el_1,
158 7, /* Count of tags in the map */
159 0, 0,
160 -1 /* Extensions start */
161};
162asn_TYPE_descriptor_t asn_DEF_Duration = {
163 "Duration",
164 "Duration",
165 &asn_OP_CHOICE,
166 0, /* No effective tags (pointer) */
167 0, /* No effective tags (count) */
168 0, /* No tags (pointer) */
169 0, /* No tags (count) */
170 {
171#if !defined(ASN_DISABLE_OER_SUPPORT)
172 &asn_OER_type_Duration_constr_1,
173#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
174#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
175 &asn_PER_type_Duration_constr_1,
176#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
177 CHOICE_constraint
178 },
179 asn_MBR_Duration_1,
180 7, /* Elements count */
181 &asn_SPC_Duration_specs_1 /* Additional specs */
182};
183