Vanetza
Loading...
Searching...
No Matches
Duration.c
1/*
2 * Generated by asn1c
3 * From ASN.1 module "Ieee1609Dot2BaseTypes"
4 * found in "Ieee1609Dot2BaseTypes.asn"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -fprefix=Vanetza_Security_ -R`
6 */
7
8#include "Duration.h"
9
10#if !defined(ASN_DISABLE_OER_SUPPORT)
11asn_oer_constraints_t asn_OER_type_Vanetza_Security_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_Vanetza_Security_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_Vanetza_Security_Duration_1[] = {
23 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Duration, choice.microseconds),
24 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
25 -1, /* IMPLICIT tag at current level */
26 &asn_DEF_Vanetza_Security_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#if !defined(ASN_DISABLE_JER_SUPPORT)
36 0,
37#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
38 0
39 },
40 0, 0, /* No default value */
41 "microseconds"
42 },
43 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Duration, choice.milliseconds),
44 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
45 -1, /* IMPLICIT tag at current level */
46 &asn_DEF_Vanetza_Security_Uint16,
47 0,
48 {
49#if !defined(ASN_DISABLE_OER_SUPPORT)
50 0,
51#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
52#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
53 0,
54#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
55#if !defined(ASN_DISABLE_JER_SUPPORT)
56 0,
57#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
58 0
59 },
60 0, 0, /* No default value */
61 "milliseconds"
62 },
63 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Duration, choice.seconds),
64 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
65 -1, /* IMPLICIT tag at current level */
66 &asn_DEF_Vanetza_Security_Uint16,
67 0,
68 {
69#if !defined(ASN_DISABLE_OER_SUPPORT)
70 0,
71#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
72#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
73 0,
74#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
75#if !defined(ASN_DISABLE_JER_SUPPORT)
76 0,
77#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
78 0
79 },
80 0, 0, /* No default value */
81 "seconds"
82 },
83 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Duration, choice.minutes),
84 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
85 -1, /* IMPLICIT tag at current level */
86 &asn_DEF_Vanetza_Security_Uint16,
87 0,
88 {
89#if !defined(ASN_DISABLE_OER_SUPPORT)
90 0,
91#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
92#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
93 0,
94#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
95#if !defined(ASN_DISABLE_JER_SUPPORT)
96 0,
97#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
98 0
99 },
100 0, 0, /* No default value */
101 "minutes"
102 },
103 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Duration, choice.hours),
104 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
105 -1, /* IMPLICIT tag at current level */
106 &asn_DEF_Vanetza_Security_Uint16,
107 0,
108 {
109#if !defined(ASN_DISABLE_OER_SUPPORT)
110 0,
111#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
112#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
113 0,
114#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
115#if !defined(ASN_DISABLE_JER_SUPPORT)
116 0,
117#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
118 0
119 },
120 0, 0, /* No default value */
121 "hours"
122 },
123 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Duration, choice.sixtyHours),
124 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
125 -1, /* IMPLICIT tag at current level */
126 &asn_DEF_Vanetza_Security_Uint16,
127 0,
128 {
129#if !defined(ASN_DISABLE_OER_SUPPORT)
130 0,
131#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
132#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
133 0,
134#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
135#if !defined(ASN_DISABLE_JER_SUPPORT)
136 0,
137#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
138 0
139 },
140 0, 0, /* No default value */
141 "sixtyHours"
142 },
143 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Duration, choice.years),
144 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
145 -1, /* IMPLICIT tag at current level */
146 &asn_DEF_Vanetza_Security_Uint16,
147 0,
148 {
149#if !defined(ASN_DISABLE_OER_SUPPORT)
150 0,
151#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
152#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
153 0,
154#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
155#if !defined(ASN_DISABLE_JER_SUPPORT)
156 0,
157#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
158 0
159 },
160 0, 0, /* No default value */
161 "years"
162 },
163};
164static const asn_TYPE_tag2member_t asn_MAP_Vanetza_Security_Duration_tag2el_1[] = {
165 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* microseconds */
166 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* milliseconds */
167 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* seconds */
168 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* minutes */
169 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* hours */
170 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* sixtyHours */
171 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* years */
172};
173asn_CHOICE_specifics_t asn_SPC_Vanetza_Security_Duration_specs_1 = {
174 sizeof(struct Vanetza_Security_Duration),
175 offsetof(struct Vanetza_Security_Duration, _asn_ctx),
176 offsetof(struct Vanetza_Security_Duration, present),
177 sizeof(((struct Vanetza_Security_Duration *)0)->present),
178 asn_MAP_Vanetza_Security_Duration_tag2el_1,
179 7, /* Count of tags in the map */
180 0, 0,
181 -1 /* Extensions start */
182};
183asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Duration = {
184 "Duration",
185 "Duration",
186 &asn_OP_CHOICE,
187 0, /* No effective tags (pointer) */
188 0, /* No effective tags (count) */
189 0, /* No tags (pointer) */
190 0, /* No tags (count) */
191 {
192#if !defined(ASN_DISABLE_OER_SUPPORT)
193 &asn_OER_type_Vanetza_Security_Duration_constr_1,
194#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
195#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
196 &asn_PER_type_Vanetza_Security_Duration_constr_1,
197#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
198#if !defined(ASN_DISABLE_JER_SUPPORT)
199 0,
200#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
201 CHOICE_constraint
202 },
203 asn_MBR_Vanetza_Security_Duration_1,
204 7, /* Elements count */
205 &asn_SPC_Vanetza_Security_Duration_specs_1 /* Additional specs */
206};