1#[allow(
5 non_camel_case_types,
6 non_snake_case,
7 non_upper_case_globals,
8 unused,
9 clippy::too_many_arguments,
10 clippy::doc_overindented_list_items
11)]
12pub mod etsi_its_cdd {
13 extern crate alloc;
14 use core::borrow::Borrow;
15 use rasn::prelude::*;
16 use std::sync::LazyLock;
17 #[doc = ""]
18 #[doc = ""]
19 #[doc = ""]
20 #[doc = ""]
21 #[doc = ""]
22 #[doc = ""]
23 #[doc = ""]
24 #[doc = ""]
25 #[doc = ""]
26 #[doc = ""]
27 #[doc = " Specification of CDD Data Frames:"]
28 #[doc = ""]
29 #[doc = ""]
30 #[doc = ""]
31 #[doc = ""]
32 #[doc = ""]
33 #[doc = ""]
34 #[doc = ""]
35 #[doc = ""]
36 #[doc = ""]
37 #[doc = ""]
38 #[doc = "*"]
39 #[doc = " * This DF represents an acceleration vector with associated confidence value."]
40 #[doc = " *"]
41 #[doc = " * It shall include the following components: "]
42 #[doc = " * "]
43 #[doc = " * @field polarAcceleration: the representation of the acceleration vector in a polar or cylindrical coordinate system. "]
44 #[doc = " * "]
45 #[doc = " * @field cartesianAcceleration: the representation of the acceleration vector in a cartesian coordinate system."]
46 #[doc = " * "]
47 #[doc = " * @category: Kinematic information"]
48 #[doc = " * @revision: Created in V2.1.1"]
49 #[doc = " "]
50 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
51 #[rasn(choice, automatic_tags)]
52 pub enum Acceleration3dWithConfidence {
53 polarAcceleration(AccelerationPolarWithZ),
54 cartesianAcceleration(AccelerationCartesian),
55 }
56 #[doc = "*"]
57 #[doc = " * This DF represents a acceleration vector in a cartesian coordinate system."]
58 #[doc = " "]
59 #[doc = " * It shall include the following components: "]
60 #[doc = " * "]
61 #[doc = " * @field xAcceleration: the x component of the acceleration vector with the associated confidence value."]
62 #[doc = " * "]
63 #[doc = " * @field yAcceleration: the y component of the acceleration vector with the associated confidence value."]
64 #[doc = " *"]
65 #[doc = " * @field zAcceleration: the optional z component of the acceleration vector with the associated confidence value."]
66 #[doc = " * "]
67 #[doc = " * @category: Kinematic information"]
68 #[doc = " * @revision: Created in V2.1.1"]
69 #[doc = " "]
70 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
71 #[rasn(automatic_tags)]
72 pub struct AccelerationCartesian {
73 #[rasn(identifier = "xAcceleration")]
74 pub x_acceleration: AccelerationComponent,
75 #[rasn(identifier = "yAcceleration")]
76 pub y_acceleration: AccelerationComponent,
77 #[rasn(identifier = "zAcceleration")]
78 pub z_acceleration: Option<AccelerationComponent>,
79 }
80 impl AccelerationCartesian {
81 pub fn new(
82 x_acceleration: AccelerationComponent,
83 y_acceleration: AccelerationComponent,
84 z_acceleration: Option<AccelerationComponent>,
85 ) -> Self {
86 Self {
87 x_acceleration,
88 y_acceleration,
89 z_acceleration,
90 }
91 }
92 }
93 #[doc = ""]
94 #[doc = ""]
95 #[doc = ""]
96 #[doc = ""]
97 #[doc = ""]
98 #[doc = ""]
99 #[doc = ""]
100 #[doc = ""]
101 #[doc = ""]
102 #[doc = ""]
103 #[doc = ""]
104 #[doc = " Specification of CDD Data Elements: "]
105 #[doc = ""]
106 #[doc = ""]
107 #[doc = ""]
108 #[doc = ""]
109 #[doc = ""]
110 #[doc = ""]
111 #[doc = ""]
112 #[doc = ""]
113 #[doc = ""]
114 #[doc = ""]
115 #[doc = ""]
116 #[doc = "* "]
117 #[doc = " * This DE indicates a change of acceleration."]
118 #[doc = " *"]
119 #[doc = " * The value shall be set to:"]
120 #[doc = " * - 0 - `accelerate` - if the magnitude of the horizontal velocity vector increases."]
121 #[doc = " * - 1 - `decelerate` - if the magnitude of the horizontal velocity vector decreases."]
122 #[doc = " *"]
123 #[doc = " * @category: Kinematic information"]
124 #[doc = " * @revision: Created in V2.1.1"]
125 #[doc = ""]
126 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
127 #[rasn(enumerated)]
128 pub enum AccelerationChange {
129 accelerate = 0,
130 decelerate = 1,
131 }
132 #[doc = "* "]
133 #[doc = " * This DF represents information associated to changes in acceleration. "]
134 #[doc = " *"]
135 #[doc = " * It shall include the following components: "]
136 #[doc = " *"]
137 #[doc = " * @field accelOrDecel: the indication of an acceleration change."]
138 #[doc = " *"]
139 #[doc = " * @field actionDeltaTime: the period over which the acceleration change action is performed."]
140 #[doc = " *"]
141 #[doc = " * @category: Kinematic Information"]
142 #[doc = " * @revision: Created in V2.1.1"]
143 #[doc = " "]
144 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
145 #[rasn(automatic_tags)]
146 #[non_exhaustive]
147 pub struct AccelerationChangeIndication {
148 #[rasn(identifier = "accelOrDecel")]
149 pub accel_or_decel: AccelerationChange,
150 #[rasn(identifier = "actionDeltaTime")]
151 pub action_delta_time: DeltaTimeTenthOfSecond,
152 }
153 impl AccelerationChangeIndication {
154 pub fn new(
155 accel_or_decel: AccelerationChange,
156 action_delta_time: DeltaTimeTenthOfSecond,
157 ) -> Self {
158 Self {
159 accel_or_decel,
160 action_delta_time,
161 }
162 }
163 }
164 #[doc = "* "]
165 #[doc = " * This DF represents an acceleration component along with a confidence value."]
166 #[doc = " *"]
167 #[doc = " * It shall include the following components: "]
168 #[doc = " *"]
169 #[doc = " * @field value: the value of the acceleration component which can be estimated as the mean of the current distribution."]
170 #[doc = " *"]
171 #[doc = " * @field confidence: the confidence value associated to the provided value."]
172 #[doc = " *"]
173 #[doc = " * @category: Kinematic Information"]
174 #[doc = " * @revision: Created in V2.1.1"]
175 #[doc = " "]
176 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
177 #[rasn(automatic_tags)]
178 pub struct AccelerationComponent {
179 pub value: AccelerationValue,
180 pub confidence: AccelerationConfidence,
181 }
182 impl AccelerationComponent {
183 pub fn new(value: AccelerationValue, confidence: AccelerationConfidence) -> Self {
184 Self { value, confidence }
185 }
186 }
187 #[doc = "*"]
188 #[doc = " * This DE indicates the acceleration confidence value which represents the estimated absolute accuracy of an acceleration value with a default confidence level of 95 %. "]
189 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
190 #[doc = " *"]
191 #[doc = " * The value shall be set to:"]
192 #[doc = " * - `n` (`n > 0` and `n < 101`) if the confidence value is equal to or less than n x 0,1 m/s^2, and greater than (n-1) x 0,1 m/s^2,"]
193 #[doc = " * - `101` if the confidence value is out of range i.e. greater than 10 m/s^2,"]
194 #[doc = " * - `102` if the confidence value is unavailable."]
195 #[doc = " *"]
196 #[doc = " * The value 0 shall not be used."]
197 #[doc = " *"]
198 #[doc = " * @note: The fact that an acceleration value is received with confidence value set to `unavailable(102)` can be caused by several reasons, such as:"]
199 #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
200 #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
201 #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
202 #[doc = " * In all 3 cases above, the acceleration value may be valid and used by the application."]
203 #[doc = " * "]
204 #[doc = " * @note: If an acceleration value is received and its confidence value is set to `outOfRange(101)`, it means that the value is not valid and therefore cannot be trusted. Such value is not useful for the application."]
205 #[doc = " *"]
206 #[doc = " * @unit 0,1 m/s^2"]
207 #[doc = " * @category: Kinematic information"]
208 #[doc = " * @revision: Description revised in V2.1.1"]
209 #[doc = " "]
210 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
211 #[rasn(delegate, value("0..=102"))]
212 pub struct AccelerationConfidence(pub u8);
213 #[doc = "*"]
214 #[doc = " * This DE indicates the current controlling mechanism for longitudinal movement of the vehicle."]
215 #[doc = " * The data may be provided via the in-vehicle network. It indicates whether a specific in-vehicle"]
216 #[doc = " * acceleration control system is engaged or not. Currently, this DE includes the information of the"]
217 #[doc = " * vehicle brake pedal, gas pedal, emergency brake system, collision warning system, adaptive cruise"]
218 #[doc = " * control system, cruise control system and speed limiter system."]
219 #[doc = " *"]
220 #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
221 #[doc = " * - 0 - `brakePedalEngaged` - Driver is stepping on the brake pedal,"]
222 #[doc = " * - 1 - `gasPedalEngaged` - Driver is stepping on the gas pedal,"]
223 #[doc = " * - 2 - `emergencyBrakeEngaged` - emergency brake system is engaged,"]
224 #[doc = " * - 3 - `collisionWarningEngaged`- collision warning system is engaged,"]
225 #[doc = " * - 4 - `accEngaged` - ACC is engaged,"]
226 #[doc = " * - 5 - `cruiseControlEngaged` - cruise control is engaged,"]
227 #[doc = " * - 6 - `speedLimiterEngaged` - speed limiter is engaged."]
228 #[doc = " *"]
229 #[doc = " * Otherwise (for example when the corresponding system is not available due to non equipped system"]
230 #[doc = " * or information is unavailable), the corresponding bit shall be set to 0."]
231 #[doc = " *"]
232 #[doc = " * @note: The system engagement condition is OEM specific and therefore out of scope of the present document."]
233 #[doc = " * @category: Vehicle information"]
234 #[doc = " * @revision: V1.3.1"]
235 #[doc = " "]
236 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
237 #[rasn(delegate)]
238 pub struct AccelerationControl(pub FixedBitString<7usize>);
239 #[doc = "*"]
240 #[doc = " * This DF represents the magnitude of the acceleration vector and associated confidence value."]
241 #[doc = " *"]
242 #[doc = " * It shall include the following components: "]
243 #[doc = " * "]
244 #[doc = " * @field accelerationMagnitudeValue: the magnitude of the acceleration vector."]
245 #[doc = " * "]
246 #[doc = " * @field accelerationConfidence: the confidence value of the magnitude value."]
247 #[doc = " *"]
248 #[doc = " * @category: Kinematic information"]
249 #[doc = " * @revision: Created in V2.1.1"]
250 #[doc = " "]
251 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
252 #[rasn(automatic_tags)]
253 pub struct AccelerationMagnitude {
254 #[rasn(identifier = "accelerationMagnitudeValue")]
255 pub acceleration_magnitude_value: AccelerationMagnitudeValue,
256 #[rasn(identifier = "accelerationConfidence")]
257 pub acceleration_confidence: AccelerationConfidence,
258 }
259 impl AccelerationMagnitude {
260 pub fn new(
261 acceleration_magnitude_value: AccelerationMagnitudeValue,
262 acceleration_confidence: AccelerationConfidence,
263 ) -> Self {
264 Self {
265 acceleration_magnitude_value,
266 acceleration_confidence,
267 }
268 }
269 }
270 #[doc = "* "]
271 #[doc = " * This DE represents the magnitude of the acceleration vector in a defined coordinate system."]
272 #[doc = " *"]
273 #[doc = " * The value shall be set to:"]
274 #[doc = " * - `0` to indicate no acceleration,"]
275 #[doc = " * - `n` (`n > 0` and `n < 160`) to indicate acceleration equal to or less than n x 0,1 m/s^2, and greater than (n-1) x 0,1 m/s^2,"]
276 #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
277 #[doc = " * - `161` when the data is unavailable."]
278 #[doc = " *"]
279 #[doc = " * @unit 0,1 m/s^2"]
280 #[doc = " * @category: Kinematic information"]
281 #[doc = " * @revision: Created in V2.1.1"]
282 #[doc = ""]
283 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
284 #[rasn(delegate, value("0..=161"))]
285 pub struct AccelerationMagnitudeValue(pub u8);
286 #[doc = "*"]
287 #[doc = " * This DF represents an acceleration vector in a polar or cylindrical coordinate system."]
288 #[doc = " "]
289 #[doc = " * It shall include the following components: "]
290 #[doc = " * "]
291 #[doc = " * @field accelerationMagnitude: magnitude of the acceleration vector projected onto the reference plane, with the associated confidence value."]
292 #[doc = " * "]
293 #[doc = " * @field accelerationDirection: polar angle of the acceleration vector projected onto the reference plane, with the associated confidence value."]
294 #[doc = " *"]
295 #[doc = " * @field zAcceleration: the optional z component of the acceleration vector along the reference axis of the cylindrical coordinate system, with the associated confidence value."]
296 #[doc = " * "]
297 #[doc = " * @category: Kinematic information"]
298 #[doc = " * @revision: Created in V2.1.1"]
299 #[doc = " "]
300 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
301 #[rasn(automatic_tags)]
302 pub struct AccelerationPolarWithZ {
303 #[rasn(identifier = "accelerationMagnitude")]
304 pub acceleration_magnitude: AccelerationMagnitude,
305 #[rasn(identifier = "accelerationDirection")]
306 pub acceleration_direction: CartesianAngle,
307 #[rasn(identifier = "zAcceleration")]
308 pub z_acceleration: Option<AccelerationComponent>,
309 }
310 impl AccelerationPolarWithZ {
311 pub fn new(
312 acceleration_magnitude: AccelerationMagnitude,
313 acceleration_direction: CartesianAngle,
314 z_acceleration: Option<AccelerationComponent>,
315 ) -> Self {
316 Self {
317 acceleration_magnitude,
318 acceleration_direction,
319 z_acceleration,
320 }
321 }
322 }
323 #[doc = "* "]
324 #[doc = " * This DE represents the value of an acceleration component in a defined coordinate system."]
325 #[doc = " *"]
326 #[doc = " * The value shall be set to:"]
327 #[doc = " * - `-160` for acceleration values equal to or less than -16 m/s^2,"]
328 #[doc = " * - `n` (`n > -160` and `n <= 0`) to indicate negative acceleration equal to or less than n x 0,1 m/s^2, and greater than (n-1) x 0,1 m/s^2,"]
329 #[doc = " * - `n` (`n > 0` and `n < 160`) to indicate positive acceleration equal to or less than n x 0,1 m/s^2, and greater than (n-1) x 0,1 m/s^2,"]
330 #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
331 #[doc = " * - `161` when the data is unavailable."]
332 #[doc = " *"]
333 #[doc = " * @note: the formula for values > -160 and <160 results in rounding up to the next value. Zero acceleration is indicated using n=0."]
334 #[doc = " * @unit 0,1 m/s^2"]
335 #[doc = " * @category: Kinematic information"]
336 #[doc = " * @revision: Created in V2.1.1"]
337 #[doc = ""]
338 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
339 #[rasn(delegate, value("-160..=161"))]
340 pub struct AccelerationValue(pub i16);
341 #[doc = "*"]
342 #[doc = " * This DE indicates an access technology."]
343 #[doc = " *"]
344 #[doc = " * The value shall be set to:"]
345 #[doc = " * - `0`: in case of any access technology class,"]
346 #[doc = " * - `1`: in case of ITS-G5 access technology class,"]
347 #[doc = " * - `2`: in case of LTE-V2X access technology class,"]
348 #[doc = " * - `3`: in case of NR-V2X access technology class."]
349 #[doc = " * "]
350 #[doc = " * @category: Communication information"]
351 #[doc = " * @revision: Created in V2.1.1"]
352 #[doc = " "]
353 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
354 #[rasn(enumerated)]
355 #[non_exhaustive]
356 pub enum AccessTechnologyClass {
357 any = 0,
358 itsg5Class = 1,
359 ltev2xClass = 2,
360 nrv2xClass = 3,
361 }
362 #[doc = "*"]
363 #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `accident`."]
364 #[doc = " *"]
365 #[doc = " * The value shall be set to:"]
366 #[doc = " * - 0 - `unavailable` - in case the information on the sub cause of the accident is unavailable,"]
367 #[doc = " * - 1 - `multiVehicleAccident` - in case more than two vehicles are involved in accident,"]
368 #[doc = " * - 2 - `heavyAccident` - in case the airbag of the vehicle involved in the accident is triggered, "]
369 #[doc = " * the accident requires important rescue and/or recovery work,"]
370 #[doc = " * - 3 - `accidentInvolvingLorry` - in case the accident involves a lorry,"]
371 #[doc = " * - 4 - `accidentInvolvingBus` - in case the accident involves a bus,"]
372 #[doc = " * - 5 - `accidentInvolvingHazardousMaterials`- in case the accident involves hazardous material,"]
373 #[doc = " * - 6 - `accidentOnOppositeLane` - in case the accident happens on opposite lanes,"]
374 #[doc = " * - 7 - `unsecuredAccident` - in case the accident is not secured,"]
375 #[doc = " * - 8 - `assistanceRequested` - in case rescue and assistance are requested,"]
376 #[doc = " * - 9-255 - reserved for future usage. "]
377 #[doc = " *"]
378 #[doc = " * @category: Traffic information"]
379 #[doc = " * @revision: V1.3.1"]
380 #[doc = " "]
381 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
382 #[rasn(delegate, value("0..=255"))]
383 pub struct AccidentSubCauseCode(pub u8);
384 #[doc = "*"]
385 #[doc = " * This DF represents an identifier used to describe a protocol action taken by an ITS-S."]
386 #[doc = " * "]
387 #[doc = " * It shall include the following components: "]
388 #[doc = " *"]
389 #[doc = " * @field originatingStationId: Id of the ITS-S that takes the action. "]
390 #[doc = " * "]
391 #[doc = " * @field sequenceNumber: a sequence number. "]
392 #[doc = " * "]
393 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref ActionId instead. "]
394 #[doc = " * @category: Communication information"]
395 #[doc = " * @revision: V1.3.1"]
396 #[doc = " "]
397 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
398 #[rasn(automatic_tags)]
399 pub struct ActionID {
400 #[rasn(identifier = "originatingStationId")]
401 pub originating_station_id: StationID,
402 #[rasn(identifier = "sequenceNumber")]
403 pub sequence_number: SequenceNumber,
404 }
405 impl ActionID {
406 pub fn new(originating_station_id: StationID, sequence_number: SequenceNumber) -> Self {
407 Self {
408 originating_station_id,
409 sequence_number,
410 }
411 }
412 }
413 #[doc = "*"]
414 #[doc = " * This DF represents an identifier used to describe a protocol action taken by an ITS-S."]
415 #[doc = " * "]
416 #[doc = " * It shall include the following components: "]
417 #[doc = " *"]
418 #[doc = " * @field originatingStationId: Id of the ITS-S that takes the action. "]
419 #[doc = " * "]
420 #[doc = " * @field sequenceNumber: a sequence number. "]
421 #[doc = " * "]
422 #[doc = " * @category: Communication information"]
423 #[doc = " * @revision: Created in V2.1.1 based on @ref ActionID."]
424 #[doc = " "]
425 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
426 #[rasn(automatic_tags)]
427 pub struct ActionId {
428 #[rasn(identifier = "originatingStationId")]
429 pub originating_station_id: StationId,
430 #[rasn(identifier = "sequenceNumber")]
431 pub sequence_number: SequenceNumber,
432 }
433 impl ActionId {
434 pub fn new(originating_station_id: StationId, sequence_number: SequenceNumber) -> Self {
435 Self {
436 originating_station_id,
437 sequence_number,
438 }
439 }
440 }
441 #[doc = "*"]
442 #[doc = " * This DF shall contain a list of @ref ActionId. "]
443 #[doc = ""]
444 #[doc = " * @category: Communication Information"]
445 #[doc = " * @revision: Created in V2.1.1 based on ReferenceDenms from DENM Release 1"]
446 #[doc = ""]
447 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
448 #[rasn(delegate, size("1..=8", extensible))]
449 pub struct ActionIdList(pub SequenceOf<ActionId>);
450 #[doc = "*"]
451 #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `adverseWeatherCondition-Adhesion`. "]
452 #[doc = " * "]
453 #[doc = " * The value shall be set to:"]
454 #[doc = " * - 0 - `unavailable` - in case information on the cause of the low road adhesion is unavailable,"]
455 #[doc = " * - 1 - `heavyFrostOnRoad`- in case the low road adhesion is due to heavy frost on the road,"]
456 #[doc = " * - 2 - `fuelOnRoad` - in case the low road adhesion is due to fuel on the road,"]
457 #[doc = " * - 3 - `mudOnRoad` - in case the low road adhesion is due to mud on the road,"]
458 #[doc = " * - 4 - `snowOnRoad` - in case the low road adhesion is due to snow on the road,"]
459 #[doc = " * - 5 - `iceOnRoad` - in case the low road adhesion is due to ice on the road,"]
460 #[doc = " * - 6 - `blackIceOnRoad` - in case the low road adhesion is due to black ice on the road,"]
461 #[doc = " * - 7 - `oilOnRoad` - in case the low road adhesion is due to oil on the road,"]
462 #[doc = " * - 8 - `looseChippings` - in case the low road adhesion is due to loose gravel or stone fragments detached from a road surface or from a hazard,"]
463 #[doc = " * - 9 - `instantBlackIce` - in case the low road adhesion is due to instant black ice on the road surface,"]
464 #[doc = " * - 10 - `roadsSalted` - when the low road adhesion is due to salted road,"]
465 #[doc = " * - 11-255 - are reserved for future usage."]
466 #[doc = " *"]
467 #[doc = " * @category: Traffic information"]
468 #[doc = " * @revision: V1.3.1"]
469 #[doc = " "]
470 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
471 #[rasn(
472 delegate,
473 identifier = "AdverseWeatherCondition-AdhesionSubCauseCode",
474 value("0..=255")
475 )]
476 pub struct AdverseWeatherConditionAdhesionSubCauseCode(pub u8);
477 #[doc = "*"]
478 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-ExtremeWeatherCondition`."]
479 #[doc = " *"]
480 #[doc = " * The value shall be set to:"]
481 #[doc = " * - 0 - `unavailable` - in case information on the type of extreme weather condition is unavailable,"]
482 #[doc = " * - 1 - `strongWinds` - in case the type of extreme weather condition is strong wind,"]
483 #[doc = " * - 2 - `damagingHail`- in case the type of extreme weather condition is damaging hail,"]
484 #[doc = " * - 3 - `hurricane` - in case the type of extreme weather condition is hurricane,"]
485 #[doc = " * - 4 - `thunderstorm`- in case the type of extreme weather condition is thunderstorm,"]
486 #[doc = " * - 5 - `tornado` - in case the type of extreme weather condition is tornado,"]
487 #[doc = " * - 6 - `blizzard` - in case the type of extreme weather condition is blizzard."]
488 #[doc = " * - 7-255 - are reserved for future usage."]
489 #[doc = " *"]
490 #[doc = " * @category: Traffic information"]
491 #[doc = " * @revision: V1.3.1"]
492 #[doc = " "]
493 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
494 #[rasn(
495 delegate,
496 identifier = "AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode",
497 value("0..=255")
498 )]
499 pub struct AdverseWeatherConditionExtremeWeatherConditionSubCauseCode(pub u8);
500 #[doc = "*"]
501 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-Precipitation`. "]
502 #[doc = " *"]
503 #[doc = " * The value shall be set to:"]
504 #[doc = " * - 0 - `unavailable` - in case information on the type of precipitation is unavailable,"]
505 #[doc = " * - 1 - `heavyRain` - in case the type of precipitation is heavy rain,"]
506 #[doc = " * - 2 - `heavySnowfall` - in case the type of precipitation is heavy snow fall,"]
507 #[doc = " * - 3 - `softHail` - in case the type of precipitation is soft hail."]
508 #[doc = " * - 4-255 - are reserved for future usage"]
509 #[doc = " *"]
510 #[doc = " * @category: Traffic information"]
511 #[doc = " * @revision: V1.3.1"]
512 #[doc = " "]
513 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
514 #[rasn(
515 delegate,
516 identifier = "AdverseWeatherCondition-PrecipitationSubCauseCode",
517 value("0..=255")
518 )]
519 pub struct AdverseWeatherConditionPrecipitationSubCauseCode(pub u8);
520 #[doc = "*"]
521 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-Visibility`."]
522 #[doc = " *"]
523 #[doc = " * The value shall be set to:"]
524 #[doc = " * - 0 - `unavailable` - in case information on the cause of low visibility is unavailable,"]
525 #[doc = " * - 1 - `fog` - in case the cause of low visibility is fog,"]
526 #[doc = " * - 2 - `smoke` - in case the cause of low visibility is smoke,"]
527 #[doc = " * - 3 - `heavySnowfall` - in case the cause of low visibility is heavy snow fall,"]
528 #[doc = " * - 4 - `heavyRain` - in case the cause of low visibility is heavy rain,"]
529 #[doc = " * - 5 - `heavyHail` - in case the cause of low visibility is heavy hail,"]
530 #[doc = " * - 6 - `lowSunGlare` - in case the cause of low visibility is sun glare,"]
531 #[doc = " * - 7 - `sandstorms` - in case the cause of low visibility is sand storm,"]
532 #[doc = " * - 8 - `swarmsOfInsects`- in case the cause of low visibility is swarm of insects."]
533 #[doc = " * - 9-255 - are reserved for future usage"]
534 #[doc = " *"]
535 #[doc = " * @category: Traffic information"]
536 #[doc = " * @revision: V1.3.1"]
537 #[doc = " "]
538 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
539 #[rasn(
540 delegate,
541 identifier = "AdverseWeatherCondition-VisibilitySubCauseCode",
542 value("0..=255")
543 )]
544 pub struct AdverseWeatherConditionVisibilitySubCauseCode(pub u8);
545 #[doc = "*"]
546 #[doc = " * This DE represents the air humidity in tenths of percent."]
547 #[doc = " *"]
548 #[doc = " * The value shall be set to:"]
549 #[doc = " * - `n` (`n > 0` and `n < 1001`) indicates that the applicable value is equal to or less than n x 0,1 percent and greater than (n-1) x 0,1 percent."]
550 #[doc = " * - `1001` indicates that the air humidity is unavailable."]
551 #[doc = " *"]
552 #[doc = " * @category: Basic information"]
553 #[doc = " * @unit: 0,1 % "]
554 #[doc = " * @revision: created in V2.1.1"]
555 #[doc = " "]
556 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
557 #[rasn(delegate, value("1..=1001"))]
558 pub struct AirHumidity(pub u16);
559 #[doc = "*"]
560 #[doc = " * This DF provides the altitude and confidence level of an altitude information in a WGS84 coordinate system."]
561 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
562 #[doc = " *"]
563 #[doc = " * It shall include the following components: "]
564 #[doc = " *"]
565 #[doc = " * @field altitudeValue: altitude of a geographical point."]
566 #[doc = " *"]
567 #[doc = " * @field altitudeConfidence: confidence level of the altitudeValue."]
568 #[doc = " *"]
569 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref AltitudeWithConfidence instead. "]
570 #[doc = " * @category: GeoReference information"]
571 #[doc = " * @revision: Description revised in V2.1.1"]
572 #[doc = " "]
573 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
574 #[rasn(automatic_tags)]
575 pub struct Altitude {
576 #[rasn(identifier = "altitudeValue")]
577 pub altitude_value: AltitudeValue,
578 #[rasn(identifier = "altitudeConfidence")]
579 pub altitude_confidence: AltitudeConfidence,
580 }
581 impl Altitude {
582 pub fn new(altitude_value: AltitudeValue, altitude_confidence: AltitudeConfidence) -> Self {
583 Self {
584 altitude_value,
585 altitude_confidence,
586 }
587 }
588 }
589 #[doc = "*"]
590 #[doc = " * This DE indicates the altitude confidence value which represents the estimated absolute accuracy of an altitude value of a geographical point with a default confidence level of 95 %."]
591 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
592 #[doc = " *"]
593 #[doc = " * The value shall be set to: "]
594 #[doc = " * - 0 - `alt-000-01` - if the confidence value is equal to or less than 0,01 metre,"]
595 #[doc = " * - 1 - `alt-000-02` - if the confidence value is equal to or less than 0,02 metre and greater than 0,01 metre,"]
596 #[doc = " * - 2 - `alt-000-05` - if the confidence value is equal to or less than 0,05 metre and greater than 0,02 metre, "]
597 #[doc = " * - 3 - `alt-000-10` - if the confidence value is equal to or less than 0,1 metre and greater than 0,05 metre, "]
598 #[doc = " * - 4 - `alt-000-20` - if the confidence value is equal to or less than 0,2 metre and greater than 0,1 metre, "]
599 #[doc = " * - 5 - `alt-000-50` - if the confidence value is equal to or less than 0,5 metre and greater than 0,2 metre, "]
600 #[doc = " * - 6 - `alt-001-00` - if the confidence value is equal to or less than 1 metre and greater than 0,5 metre, "]
601 #[doc = " * - 7 - `alt-002-00` - if the confidence value is equal to or less than 2 metres and greater than 1 metre, "]
602 #[doc = " * - 8 - `alt-005-00` - if the confidence value is equal to or less than 5 metres and greater than 2 metres, "]
603 #[doc = " * - 9 - `alt-010-00` - if the confidence value is equal to or less than 10 metres and greater than 5 metres, "]
604 #[doc = " * - 10 - `alt-020-00` - if the confidence value is equal to or less than 20 metres and greater than 10 metres, "]
605 #[doc = " * - 11 - `alt-050-00` - if the confidence value is equal to or less than 50 metres and greater than 20 metres, "]
606 #[doc = " * - 12 - `alt-100-00` - if the confidence value is equal to or less than 100 metres and greater than 50 metres, "]
607 #[doc = " * - 13 - `alt-200-00` - if the confidence value is equal to or less than 200 metres and greater than 100 metres, "]
608 #[doc = " * - 14 - `outOfRange` - if the confidence value is out of range, i.e. greater than 200 metres,"]
609 #[doc = " * - 15 - `unavailable` - if the confidence value is unavailable. "]
610 #[doc = " *"]
611 #[doc = " * @note: The fact that an altitude value is received with confidence value set to `unavailable(15)` can be caused"]
612 #[doc = " * by several reasons, such as:"]
613 #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
614 #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
615 #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
616 #[doc = " * In all 3 cases above, the altitude value may be valid and used by the application."]
617 #[doc = " * "]
618 #[doc = " * @note: If an altitude value is received and its confidence value is set to `outOfRange(14)`, it means that the "]
619 #[doc = " * altitude value is not valid and therefore cannot be trusted. Such value is not useful for the application. "]
620 #[doc = " *"]
621 #[doc = " * @category: GeoReference information"]
622 #[doc = " * @revision: Description revised in V2.1.1"]
623 #[doc = " "]
624 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
625 #[rasn(enumerated)]
626 pub enum AltitudeConfidence {
627 #[rasn(identifier = "alt-000-01")]
628 alt_000_01 = 0,
629 #[rasn(identifier = "alt-000-02")]
630 alt_000_02 = 1,
631 #[rasn(identifier = "alt-000-05")]
632 alt_000_05 = 2,
633 #[rasn(identifier = "alt-000-10")]
634 alt_000_10 = 3,
635 #[rasn(identifier = "alt-000-20")]
636 alt_000_20 = 4,
637 #[rasn(identifier = "alt-000-50")]
638 alt_000_50 = 5,
639 #[rasn(identifier = "alt-001-00")]
640 alt_001_00 = 6,
641 #[rasn(identifier = "alt-002-00")]
642 alt_002_00 = 7,
643 #[rasn(identifier = "alt-005-00")]
644 alt_005_00 = 8,
645 #[rasn(identifier = "alt-010-00")]
646 alt_010_00 = 9,
647 #[rasn(identifier = "alt-020-00")]
648 alt_020_00 = 10,
649 #[rasn(identifier = "alt-050-00")]
650 alt_050_00 = 11,
651 #[rasn(identifier = "alt-100-00")]
652 alt_100_00 = 12,
653 #[rasn(identifier = "alt-200-00")]
654 alt_200_00 = 13,
655 outOfRange = 14,
656 unavailable = 15,
657 }
658 #[doc = "*"]
659 #[doc = " * This DE represents the altitude value in a WGS84 coordinate system."]
660 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
661 #[doc = " *"]
662 #[doc = " * The value shall be set to: "]
663 #[doc = " * - `-100 000` if the altitude is equal to or less than -1 000 m,"]
664 #[doc = " * - `n` (`n > -100 000` and `n < 800 000`) if the altitude is equal to or less than n x 0,01 metre and greater than (n-1) x 0,01 metre,"]
665 #[doc = " * - `800 000` if the altitude greater than 7 999,99 m,"]
666 #[doc = " * - `800 001` if the information is not available."]
667 #[doc = " *"]
668 #[doc = " * @note: the range of this DE does not use the full binary encoding range, but all reasonable values are covered. In order to cover all possible altitude ranges a larger encoding would be necessary."]
669 #[doc = " * @unit: 0,01 metre"]
670 #[doc = " * @category: GeoReference information"]
671 #[doc = " * @revision: Description revised in V2.1.1 (definition of 800 000 has slightly changed) "]
672 #[doc = " "]
673 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
674 #[rasn(delegate, value("-100000..=800001"))]
675 pub struct AltitudeValue(pub i32);
676 #[doc = "* "]
677 #[doc = " * This DE indicates the angle confidence value which represents the estimated absolute accuracy of an angle value with a default confidence level of 95 %."]
678 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
679 #[doc = " *"]
680 #[doc = " * The value shall be set to: "]
681 #[doc = " * - `n` (`n > 0` and `n < 126`) if the accuracy is equal to or less than n * 0,1 degrees and greater than (n-1) x * 0,1 degrees,"]
682 #[doc = " * - `126` if the accuracy is out of range, i.e. greater than 12,5 degrees,"]
683 #[doc = " * - `127` if the accuracy information is not available."]
684 #[doc = " *"]
685 #[doc = " * @unit: 0,1 degrees"]
686 #[doc = " * @category: Basic information"]
687 #[doc = " * @revision: Created in V2.1.1"]
688 #[doc = ""]
689 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
690 #[rasn(delegate, value("1..=127"))]
691 pub struct AngleConfidence(pub u8);
692 #[doc = "* "]
693 #[doc = " * This DE indicates the angular acceleration confidence value which represents the estimated accuracy of an angular acceleration value with a default confidence level of 95 %."]
694 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
695 #[doc = " * For correlation computation, maximum interval levels shall be assumed."]
696 #[doc = " *"]
697 #[doc = " * The value shall be set to:"]
698 #[doc = " * - 0 - `degSecSquared-01` - if the accuracy is equal to or less than 1 degree/second^2,"]
699 #[doc = " * - 1 - `degSecSquared-02` - if the accuracy is equal to or less than 2 degrees/second^2 and greater than 1 degree/second^2,"]
700 #[doc = " * - 2 - `degSecSquared-05` - if the accuracy is equal to or less than 5 degrees/second^2 and greater than 1 degree/second^2,"]
701 #[doc = " * - 3 - `degSecSquared-10` - if the accuracy is equal to or less than 10 degrees/second^2 and greater than 5 degrees/second^2,"]
702 #[doc = " * - 4 - `degSecSquared-20` - if the accuracy is equal to or less than 20 degrees/second^2 and greater than 10 degrees/second^2,"]
703 #[doc = " * - 5 - `degSecSquared-50` - if the accuracy is equal to or less than 50 degrees/second^2 and greater than 20 degrees/second^2,"]
704 #[doc = " * - 6 - `outOfRange` - if the accuracy is out of range, i.e. greater than 50 degrees/second^2,"]
705 #[doc = " * - 7 - `unavailable` - if the accuracy information is unavailable."]
706 #[doc = " *"]
707 #[doc = " * @category: Kinematic information"]
708 #[doc = " * @revision: Created in V2.1.1"]
709 #[doc = ""]
710 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
711 #[rasn(enumerated)]
712 pub enum AngularAccelerationConfidence {
713 #[rasn(identifier = "degSecSquared-01")]
714 degSecSquared_01 = 0,
715 #[rasn(identifier = "degSecSquared-02")]
716 degSecSquared_02 = 1,
717 #[rasn(identifier = "degSecSquared-05")]
718 degSecSquared_05 = 2,
719 #[rasn(identifier = "degSecSquared-10")]
720 degSecSquared_10 = 3,
721 #[rasn(identifier = "degSecSquared-20")]
722 degSecSquared_20 = 4,
723 #[rasn(identifier = "degSecSquared-50")]
724 degSecSquared_50 = 5,
725 outOfRange = 6,
726 unavailable = 7,
727 }
728 #[doc = "* "]
729 #[doc = " * This DE indicates the angular speed confidence value which represents the estimated absolute accuracy of an angular speed value with a default confidence level of 95 %."]
730 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
731 #[doc = " * For correlation computation, maximum interval levels can be assumed."]
732 #[doc = " *"]
733 #[doc = " * The value shall be set to:"]
734 #[doc = " * - 0 - `degSec-01` - if the accuracy is equal to or less than 1 degree/second,"]
735 #[doc = " * - 1 - `degSec-02` - if the accuracy is equal to or less than 2 degrees/second and greater than 1 degree/second,"]
736 #[doc = " * - 2 - `degSec-05` - if the accuracy is equal to or less than 5 degrees/second and greater than 2 degrees/second,"]
737 #[doc = " * - 3 - `degSec-10` - if the accuracy is equal to or less than 10 degrees/second and greater than 5 degrees/second,"]
738 #[doc = " * - 4 - `degSec-20` - if the accuracy is equal to or less than 20 degrees/second and greater than 10 degrees/second,"]
739 #[doc = " * - 5 - `degSec-50` - if the accuracy is equal to or less than 50 degrees/second and greater than 20 degrees/second,"]
740 #[doc = " * - 6 - `outOfRange` - if the accuracy is out of range, i.e. greater than 50 degrees/second,"]
741 #[doc = " * - 7 - `unavailable` - if the accuracy information is unavailable."]
742 #[doc = " * "]
743 #[doc = " * @category: Kinematic information"]
744 #[doc = " * @revision: Created in V2.1.1"]
745 #[doc = ""]
746 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
747 #[rasn(enumerated)]
748 pub enum AngularSpeedConfidence {
749 #[rasn(identifier = "degSec-01")]
750 degSec_01 = 0,
751 #[rasn(identifier = "degSec-02")]
752 degSec_02 = 1,
753 #[rasn(identifier = "degSec-05")]
754 degSec_05 = 2,
755 #[rasn(identifier = "degSec-10")]
756 degSec_10 = 3,
757 #[rasn(identifier = "degSec-20")]
758 degSec_20 = 4,
759 #[rasn(identifier = "degSec-50")]
760 degSec_50 = 5,
761 outOfRange = 6,
762 unavailable = 7,
763 }
764 #[doc = "*"]
765 #[doc = " * This DE indicates the number of axles of a passing train."]
766 #[doc = " *"]
767 #[doc = " * The value shall be set to:"]
768 #[doc = " * - `n` (`n > 2` and `n < 1001`) indicates that the train has n x axles,"]
769 #[doc = " * - `1001`indicates that the number of axles is out of range,"]
770 #[doc = " * - `1002` the information is unavailable."]
771 #[doc = " *"]
772 #[doc = " * "]
773 #[doc = " * @unit: Number of axles"]
774 #[doc = " * @category: Vehicle information"]
775 #[doc = " * @revision: Created in V2.1.1"]
776 #[doc = ""]
777 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
778 #[rasn(delegate, value("2..=1002"))]
779 pub struct AxlesCount(pub u16);
780 #[doc = "*"]
781 #[doc = " * This DE represents the measured uncompensated atmospheric pressure."]
782 #[doc = " * "]
783 #[doc = " * The value shall be set to:"]
784 #[doc = " * - `2999` indicates that the applicable value is less than 29990 Pa,"]
785 #[doc = " * - `n` (`n > 2999` and `n <= 12000`) indicates that the applicable value is equal to or less than n x 10 Pa and greater than (n-1) x 10 Pa, "]
786 #[doc = " * - `12001` indicates that the values is greater than 120000 Pa,"]
787 #[doc = " * - `12002` indicates that the information is not available."]
788 #[doc = " *"]
789 #[doc = " * @category: Basic information"]
790 #[doc = " * @unit: 10 Pascal"]
791 #[doc = " * @revision: Created in V2.1.1"]
792 #[doc = ""]
793 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
794 #[rasn(delegate, value("2999..=12002"))]
795 pub struct BarometricPressure(pub u16);
796 #[doc = "* "]
797 #[doc = " * This DE represents a general container for usage in various types of messages."]
798 #[doc = " *"]
799 #[doc = " * It shall include the following components: "]
800 #[doc = " *"]
801 #[doc = " * @field stationType: the type of technical context in which the ITS-S that has generated the message is integrated in."]
802 #[doc = " *"]
803 #[doc = " * @field referencePosition: the reference position of the station that has generated the message that contains the basic container."]
804 #[doc = " *"]
805 #[doc = " * @category: Basic information"]
806 #[doc = " * @revision: Created in V2.1.1"]
807 #[doc = ""]
808 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
809 #[rasn(automatic_tags)]
810 #[non_exhaustive]
811 pub struct BasicContainer {
812 #[rasn(identifier = "stationType")]
813 pub station_type: TrafficParticipantType,
814 #[rasn(identifier = "referencePosition")]
815 pub reference_position: ReferencePositionWithConfidence,
816 }
817 impl BasicContainer {
818 pub fn new(
819 station_type: TrafficParticipantType,
820 reference_position: ReferencePositionWithConfidence,
821 ) -> Self {
822 Self {
823 station_type,
824 reference_position,
825 }
826 }
827 }
828 #[doc = "*"]
829 #[doc = " * This DE indicates the cardinal number of bogies of a train."]
830 #[doc = " *"]
831 #[doc = " * The value shall be set to: "]
832 #[doc = " * - `n` (`n > 1` and `n < 100`) indicates that the train has n x bogies,"]
833 #[doc = " * - `100`indicates that the number of bogies is out of range, "]
834 #[doc = " * - `101` the information is unavailable."]
835 #[doc = " *"]
836 #[doc = " * @unit: Number of bogies"]
837 #[doc = " * @category: Vehicle information"]
838 #[doc = " * @revision: Created in V2.1.1"]
839 #[doc = ""]
840 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
841 #[rasn(delegate, value("2..=101"))]
842 pub struct BogiesCount(pub u8);
843 #[doc = "*"]
844 #[doc = " * The DE represents a cardinal number that counts the size of a set. "]
845 #[doc = " * "]
846 #[doc = " * @category: Basic information"]
847 #[doc = " * @revision: Created in V2.1.1"]
848 #[doc = ""]
849 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
850 #[rasn(delegate, value("0..=255"))]
851 pub struct CardinalNumber1B(pub u8);
852 #[doc = "*"]
853 #[doc = " * The DE represents a cardinal number that counts the size of a set. "]
854 #[doc = " * "]
855 #[doc = " * @category: Basic information"]
856 #[doc = " * @revision: Created in V2.1.1"]
857 #[doc = ""]
858 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
859 #[rasn(delegate, value("1..=8"))]
860 pub struct CardinalNumber3b(pub u8);
861 #[doc = "* "]
862 #[doc = " * This DF represents a general Data Frame to describe an angle component along with a confidence value in a cartesian coordinate system."]
863 #[doc = " *"]
864 #[doc = " * It shall include the following components: "]
865 #[doc = " *"]
866 #[doc = " * @field value: The angle value which can be estimated as the mean of the current distribution."]
867 #[doc = " *"]
868 #[doc = " * @field confidence: The confidence value associated to the provided value."]
869 #[doc = " *"]
870 #[doc = " * @category: Basic information"]
871 #[doc = " * @revision: Created in V2.1.1"]
872 #[doc = " "]
873 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
874 #[rasn(automatic_tags)]
875 pub struct CartesianAngle {
876 pub value: CartesianAngleValue,
877 pub confidence: AngleConfidence,
878 }
879 impl CartesianAngle {
880 pub fn new(value: CartesianAngleValue, confidence: AngleConfidence) -> Self {
881 Self { value, confidence }
882 }
883 }
884 #[doc = "* "]
885 #[doc = " * This DE represents an angle value described in a local Cartesian coordinate system, per default counted positive in"]
886 #[doc = " * a right-hand local coordinate system from the abscissa."]
887 #[doc = " *"]
888 #[doc = " * The value shall be set to: "]
889 #[doc = " * - `n` (`n >= 0` and `n < 3600`) if the angle is equal to or less than n x 0,1 degrees, and greater than (n-1) x 0,1 degrees,"]
890 #[doc = " * - `36001` if the accuracy information is not available."]
891 #[doc = " *"]
892 #[doc = " * The value 3600 shall not be used. "]
893 #[doc = " * "]
894 #[doc = " * @unit 0,1 degrees"]
895 #[doc = " * @category: Basic information"]
896 #[doc = " * @revision: Created in V2.1.1"]
897 #[doc = ""]
898 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
899 #[rasn(delegate, value("0..=3601"))]
900 pub struct CartesianAngleValue(pub u16);
901 #[doc = "* "]
902 #[doc = " * This DF represents a general Data Frame to describe an angular acceleration component along with a confidence value in a cartesian coordinate system."]
903 #[doc = " *"]
904 #[doc = " * It shall include the following components: "]
905 #[doc = " *"]
906 #[doc = " * @field value: The angular acceleration component value."]
907 #[doc = " *"]
908 #[doc = " * @field confidence: The confidence value associated to the provided value."]
909 #[doc = " * "]
910 #[doc = " * @category: Kinematic information"]
911 #[doc = " * @revision: Created in V2.1.1 "]
912 #[doc = " "]
913 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
914 #[rasn(automatic_tags)]
915 pub struct CartesianAngularAccelerationComponent {
916 pub value: CartesianAngularAccelerationComponentValue,
917 pub confidence: AngularAccelerationConfidence,
918 }
919 impl CartesianAngularAccelerationComponent {
920 pub fn new(
921 value: CartesianAngularAccelerationComponentValue,
922 confidence: AngularAccelerationConfidence,
923 ) -> Self {
924 Self { value, confidence }
925 }
926 }
927 #[doc = "*"]
928 #[doc = " * This DE represents an angular acceleration value described in a local Cartesian coordinate system, per default counted positive in"]
929 #[doc = " * a right-hand local coordinate system from the abscissa."]
930 #[doc = " *"]
931 #[doc = " * The value shall be set to: "]
932 #[doc = " * - `-255` if the acceleration is equal to or less than -255 degrees/s^2,"]
933 #[doc = " * - `n` (`n > -255` and `n < 255`) if the acceleration is equal to or less than n x 1 degree/s^2,"]
934 #[doc = " and greater than `(n-1)` x 0,01 degree/s^2,"]
935 #[doc = " * - `255` if the acceleration is greater than 254 degrees/s^2,"]
936 #[doc = " * - `256` if the information is unavailable."]
937 #[doc = " *"]
938 #[doc = " * @unit: degree/s^2 (degrees per second squared)"]
939 #[doc = " * @category: Kinematic information"]
940 #[doc = " * @revision: Created in V2.1.1"]
941 #[doc = ""]
942 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
943 #[rasn(delegate, value("-255..=256"))]
944 pub struct CartesianAngularAccelerationComponentValue(pub i16);
945 #[doc = "* "]
946 #[doc = " * This DF represents an angular velocity component along with a confidence value in a cartesian coordinate system."]
947 #[doc = " *"]
948 #[doc = " * It shall include the following components: "]
949 #[doc = " *"]
950 #[doc = " * @field value: The angular velocity component."]
951 #[doc = " *"]
952 #[doc = " * @field confidence: The confidence value associated to the provided value."]
953 #[doc = " *"]
954 #[doc = " * @category: Kinematic information"]
955 #[doc = " * @revision: Created in V2.1.1"]
956 #[doc = " "]
957 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
958 #[rasn(automatic_tags)]
959 pub struct CartesianAngularVelocityComponent {
960 pub value: CartesianAngularVelocityComponentValue,
961 pub confidence: AngularSpeedConfidence,
962 }
963 impl CartesianAngularVelocityComponent {
964 pub fn new(
965 value: CartesianAngularVelocityComponentValue,
966 confidence: AngularSpeedConfidence,
967 ) -> Self {
968 Self { value, confidence }
969 }
970 }
971 #[doc = "*"]
972 #[doc = " * This DE represents an angular velocity component described in a local Cartesian coordinate system, per default counted positive in"]
973 #[doc = " * a right-hand local coordinate system from the abscissa."]
974 #[doc = " *"]
975 #[doc = " * The value shall be set to: "]
976 #[doc = " * - `-255` if the velocity is equal to or less than -255 degrees/s,"]
977 #[doc = " * - `n` (`n > -255` and `n < 255`) if the velocity is equal to or less than n x 1 degree/s, and greater than (n-1) x 1 degree/s,"]
978 #[doc = " * - `255` if the velocity is greater than 254 degrees/s,"]
979 #[doc = " * - `256` if the information is unavailable."]
980 #[doc = " *"]
981 #[doc = " * @unit: degree/s"]
982 #[doc = " * @category: Kinematic information"]
983 #[doc = " * @revision: Created in V2.1.1"]
984 #[doc = ""]
985 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
986 #[rasn(delegate, value("-255..=256"))]
987 pub struct CartesianAngularVelocityComponentValue(pub i16);
988 #[doc = "*"]
989 #[doc = " * This DF represents the value of a cartesian coordinate with a range of -327,68 metres to +327,66 metres."]
990 #[doc = " *"]
991 #[doc = " * The value shall be set to:"]
992 #[doc = " * - `-32 768` if the longitudinal offset is out of range, i.e. less than or equal to -327,68 metres,"]
993 #[doc = " * - `n` (`n > -32 768` and `n < 32 767`) if the longitudinal offset information is equal to or less than n x 0,01 metre and more than (n-1) x 0,01 metre,"]
994 #[doc = " * - `32 767` if the longitudinal offset is out of range, i.e. greater than + 327,66 metres."]
995 #[doc = " *"]
996 #[doc = " * @unit 0,01 m"]
997 #[doc = " * @category: Basic information"]
998 #[doc = " * @revision: Created in V2.1.1"]
999 #[doc = ""]
1000 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1001 #[rasn(delegate, value("-32768..=32767"))]
1002 pub struct CartesianCoordinate(pub i16);
1003 #[doc = "*"]
1004 #[doc = " * This DF represents the value of a cartesian coordinate with a range of -1 310,72 metres to +1 310,70 metres."]
1005 #[doc = " *"]
1006 #[doc = " * The value shall be set to:"]
1007 #[doc = " * - `-131072` if the longitudinal offset is out of range, i.e. less than or equal to -1 310,72 metres,"]
1008 #[doc = " * - `n` (`n > 131 072` and `n < 131 071`) if the longitudinal offset information is equal to or less than n x 0,01 metre and more than (n-1) x 0,01 metre,"]
1009 #[doc = " * - `131 071` if the longitudinal offset is out of range, i.e. greater than + 1 310,70 metres."]
1010 #[doc = " * "]
1011 #[doc = " * @unit 0,01 m"]
1012 #[doc = " * @category: Basic information"]
1013 #[doc = " * @revision: Created in V2.1.1"]
1014 #[doc = ""]
1015 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1016 #[rasn(delegate, value("-131072..=131071"))]
1017 pub struct CartesianCoordinateLarge(pub i32);
1018 #[doc = "*"]
1019 #[doc = " * This DF represents the value of a cartesian coordinate with a range of -30,94 metres to +10,00 metres."]
1020 #[doc = " *"]
1021 #[doc = " * The value shall be set to:"]
1022 #[doc = " * - `3094` if the longitudinal offset is out of range, i.e. less than or equal to -30,94 metres,"]
1023 #[doc = " * - `n` (`n > -3 094` and `n < 1 001`) if the longitudinal offset information is equal to or less than n x 0,01 metre and more than (n-1) x 0,01 metre,"]
1024 #[doc = " * - `1001` if the longitudinal offset is out of range, i.e. greater than 10 metres."]
1025 #[doc = " *"]
1026 #[doc = " * @unit 0,01 m"]
1027 #[doc = " * @category: Basic information"]
1028 #[doc = " * @revision: Created in V2.1.1"]
1029 #[doc = ""]
1030 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1031 #[rasn(delegate, value("-3094..=1001"))]
1032 pub struct CartesianCoordinateSmall(pub i16);
1033 #[doc = "*"]
1034 #[doc = " * This DF represents a coordinate along with a confidence value in a cartesian reference system."]
1035 #[doc = " *"]
1036 #[doc = " * It shall include the following components: "]
1037 #[doc = " * "]
1038 #[doc = " * @field value: the coordinate value, which can be estimated as the mean of the current distribution."]
1039 #[doc = " * "]
1040 #[doc = " * @field confidence: the coordinate confidence value associated to the provided value."]
1041 #[doc = " *"]
1042 #[doc = " * @category: GeoReference information"]
1043 #[doc = " * @revision: Created in V2.1.1"]
1044 #[doc = ""]
1045 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1046 #[rasn(automatic_tags)]
1047 pub struct CartesianCoordinateWithConfidence {
1048 pub value: CartesianCoordinateLarge,
1049 pub confidence: CoordinateConfidence,
1050 }
1051 impl CartesianCoordinateWithConfidence {
1052 pub fn new(value: CartesianCoordinateLarge, confidence: CoordinateConfidence) -> Self {
1053 Self { value, confidence }
1054 }
1055 }
1056 #[doc = "* "]
1057 #[doc = " * This DF represents a position in a two- or three-dimensional cartesian coordinate system."]
1058 #[doc = " *"]
1059 #[doc = " * It shall include the following components: "]
1060 #[doc = " *"]
1061 #[doc = " * @field xCoordinate: the X coordinate value."]
1062 #[doc = " *"]
1063 #[doc = " * @field yCoordinate: the Y coordinate value."]
1064 #[doc = " *"]
1065 #[doc = " * @field zCoordinate: the optional Z coordinate value."]
1066 #[doc = " * "]
1067 #[doc = " * @category: GeoReference information"]
1068 #[doc = " * @revision: Created in V2.1.1"]
1069 #[doc = ""]
1070 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1071 #[rasn(automatic_tags)]
1072 pub struct CartesianPosition3d {
1073 #[rasn(identifier = "xCoordinate")]
1074 pub x_coordinate: CartesianCoordinate,
1075 #[rasn(identifier = "yCoordinate")]
1076 pub y_coordinate: CartesianCoordinate,
1077 #[rasn(identifier = "zCoordinate")]
1078 pub z_coordinate: Option<CartesianCoordinate>,
1079 }
1080 impl CartesianPosition3d {
1081 pub fn new(
1082 x_coordinate: CartesianCoordinate,
1083 y_coordinate: CartesianCoordinate,
1084 z_coordinate: Option<CartesianCoordinate>,
1085 ) -> Self {
1086 Self {
1087 x_coordinate,
1088 y_coordinate,
1089 z_coordinate,
1090 }
1091 }
1092 }
1093 #[doc = "* "]
1094 #[doc = " * This DF represents a position in a two- or three-dimensional cartesian coordinate system with an associated confidence level for each coordinate."]
1095 #[doc = " *"]
1096 #[doc = " * It shall include the following components: "]
1097 #[doc = " *"]
1098 #[doc = " * @field xCoordinate: the X coordinate value with the associated confidence level."]
1099 #[doc = " *"]
1100 #[doc = " * @field yCoordinate: the Y coordinate value with the associated confidence level."]
1101 #[doc = " *"]
1102 #[doc = " * @field zCoordinate: the optional Z coordinate value with the associated confidence level."]
1103 #[doc = " * "]
1104 #[doc = " * @category: GeoReference information"]
1105 #[doc = " * @revision: Created in V2.1.1"]
1106 #[doc = ""]
1107 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1108 #[rasn(automatic_tags)]
1109 pub struct CartesianPosition3dWithConfidence {
1110 #[rasn(identifier = "xCoordinate")]
1111 pub x_coordinate: CartesianCoordinateWithConfidence,
1112 #[rasn(identifier = "yCoordinate")]
1113 pub y_coordinate: CartesianCoordinateWithConfidence,
1114 #[rasn(identifier = "zCoordinate")]
1115 pub z_coordinate: Option<CartesianCoordinateWithConfidence>,
1116 }
1117 impl CartesianPosition3dWithConfidence {
1118 pub fn new(
1119 x_coordinate: CartesianCoordinateWithConfidence,
1120 y_coordinate: CartesianCoordinateWithConfidence,
1121 z_coordinate: Option<CartesianCoordinateWithConfidence>,
1122 ) -> Self {
1123 Self {
1124 x_coordinate,
1125 y_coordinate,
1126 z_coordinate,
1127 }
1128 }
1129 }
1130 #[doc = "*"]
1131 #[doc = " * This DF is a representation of the cause code value of a traffic event. "]
1132 #[doc = " *"]
1133 #[doc = " * It shall include the following components: "]
1134 #[doc = " *"]
1135 #[doc = " * @field causeCode: the main cause of a detected event. "]
1136 #[doc = " *"]
1137 #[doc = " * @field subCauseCode: the subordinate cause of a detected event. "]
1138 #[doc = " *"]
1139 #[doc = " * The semantics of the entire DF are completely defined by the component causeCode. The interpretation of the subCauseCode may "]
1140 #[doc = " * provide additional information that is not strictly necessary to understand the causeCode itself, and is therefore optional."]
1141 #[doc = " *"]
1142 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref CauseCodeV2 instead. "]
1143 #[doc = " *"]
1144 #[doc = " * @category: Traffic information"]
1145 #[doc = " * @revision: Editorial update in V2.1.1"]
1146 #[doc = " "]
1147 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1148 #[rasn(automatic_tags)]
1149 #[non_exhaustive]
1150 pub struct CauseCode {
1151 #[rasn(identifier = "causeCode")]
1152 pub cause_code: CauseCodeType,
1153 #[rasn(identifier = "subCauseCode")]
1154 pub sub_cause_code: SubCauseCodeType,
1155 }
1156 impl CauseCode {
1157 pub fn new(cause_code: CauseCodeType, sub_cause_code: SubCauseCodeType) -> Self {
1158 Self {
1159 cause_code,
1160 sub_cause_code,
1161 }
1162 }
1163 }
1164 #[doc = "*"]
1165 #[doc = " * This DF is a representation of the cause code value and associated sub cause code value of a traffic event. "]
1166 #[doc = " *"]
1167 #[doc = " * @note: this DF is defined for use as part of CauseCodeV2. It is recommended to use CauseCodeV2."]
1168 #[doc = " * @category: Traffic information"]
1169 #[doc = " * @revision: Created in V2.1.1"]
1170 #[doc = " "]
1171 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1172 #[rasn(choice, automatic_tags)]
1173 pub enum CauseCodeChoice {
1174 reserved0(SubCauseCodeType),
1175 trafficCondition1(TrafficConditionSubCauseCode),
1176 accident2(AccidentSubCauseCode),
1177 roadworks3(RoadworksSubCauseCode),
1178 reserved4(SubCauseCodeType),
1179 impassability5(SubCauseCodeType),
1180 #[rasn(identifier = "adverseWeatherCondition-Adhesion6")]
1181 adverseWeatherCondition_Adhesion6(AdverseWeatherConditionAdhesionSubCauseCode),
1182 aquaplaning7(SubCauseCodeType),
1183 reserved8(SubCauseCodeType),
1184 #[rasn(identifier = "hazardousLocation-SurfaceCondition9")]
1185 hazardousLocation_SurfaceCondition9(HazardousLocationSurfaceConditionSubCauseCode),
1186 #[rasn(identifier = "hazardousLocation-ObstacleOnTheRoad10")]
1187 hazardousLocation_ObstacleOnTheRoad10(HazardousLocationObstacleOnTheRoadSubCauseCode),
1188 #[rasn(identifier = "hazardousLocation-AnimalOnTheRoad11")]
1189 hazardousLocation_AnimalOnTheRoad11(HazardousLocationAnimalOnTheRoadSubCauseCode),
1190 humanPresenceOnTheRoad12(HumanPresenceOnTheRoadSubCauseCode),
1191 reserved13(SubCauseCodeType),
1192 wrongWayDriving14(WrongWayDrivingSubCauseCode),
1193 rescueAndRecoveryWorkInProgress15(RescueAndRecoveryWorkInProgressSubCauseCode),
1194 reserved16(SubCauseCodeType),
1195 #[rasn(identifier = "adverseWeatherCondition-ExtremeWeatherCondition17")]
1196 adverseWeatherCondition_ExtremeWeatherCondition17(
1197 AdverseWeatherConditionExtremeWeatherConditionSubCauseCode,
1198 ),
1199 #[rasn(identifier = "adverseWeatherCondition-Visibility18")]
1200 adverseWeatherCondition_Visibility18(AdverseWeatherConditionVisibilitySubCauseCode),
1201 #[rasn(identifier = "adverseWeatherCondition-Precipitation19")]
1202 adverseWeatherCondition_Precipitation19(AdverseWeatherConditionPrecipitationSubCauseCode),
1203 violence20(SubCauseCodeType),
1204 reserved21(SubCauseCodeType),
1205 reserved22(SubCauseCodeType),
1206 reserved23(SubCauseCodeType),
1207 reserved24(SubCauseCodeType),
1208 reserved25(SubCauseCodeType),
1209 slowVehicle26(SlowVehicleSubCauseCode),
1210 dangerousEndOfQueue27(DangerousEndOfQueueSubCauseCode),
1211 reserved28(SubCauseCodeType),
1212 reserved29(SubCauseCodeType),
1213 reserved30(SubCauseCodeType),
1214 reserved31(SubCauseCodeType),
1215 reserved32(SubCauseCodeType),
1216 reserved33(SubCauseCodeType),
1217 reserved34(SubCauseCodeType),
1218 reserved35(SubCauseCodeType),
1219 reserved36(SubCauseCodeType),
1220 reserved37(SubCauseCodeType),
1221 reserved38(SubCauseCodeType),
1222 reserved39(SubCauseCodeType),
1223 reserved40(SubCauseCodeType),
1224 reserved41(SubCauseCodeType),
1225 reserved42(SubCauseCodeType),
1226 reserved43(SubCauseCodeType),
1227 reserved44(SubCauseCodeType),
1228 reserved45(SubCauseCodeType),
1229 reserved46(SubCauseCodeType),
1230 reserved47(SubCauseCodeType),
1231 reserved48(SubCauseCodeType),
1232 reserved49(SubCauseCodeType),
1233 reserved50(SubCauseCodeType),
1234 reserved51(SubCauseCodeType),
1235 reserved52(SubCauseCodeType),
1236 reserved53(SubCauseCodeType),
1237 reserved54(SubCauseCodeType),
1238 reserved55(SubCauseCodeType),
1239 reserved56(SubCauseCodeType),
1240 reserved57(SubCauseCodeType),
1241 reserved58(SubCauseCodeType),
1242 reserved59(SubCauseCodeType),
1243 reserved60(SubCauseCodeType),
1244 reserved61(SubCauseCodeType),
1245 reserved62(SubCauseCodeType),
1246 reserved63(SubCauseCodeType),
1247 reserved64(SubCauseCodeType),
1248 reserved65(SubCauseCodeType),
1249 reserved66(SubCauseCodeType),
1250 reserved67(SubCauseCodeType),
1251 reserved68(SubCauseCodeType),
1252 reserved69(SubCauseCodeType),
1253 reserved70(SubCauseCodeType),
1254 reserved71(SubCauseCodeType),
1255 reserved72(SubCauseCodeType),
1256 reserved73(SubCauseCodeType),
1257 reserved74(SubCauseCodeType),
1258 reserved75(SubCauseCodeType),
1259 reserved76(SubCauseCodeType),
1260 reserved77(SubCauseCodeType),
1261 reserved78(SubCauseCodeType),
1262 reserved79(SubCauseCodeType),
1263 reserved80(SubCauseCodeType),
1264 reserved81(SubCauseCodeType),
1265 reserved82(SubCauseCodeType),
1266 reserved83(SubCauseCodeType),
1267 reserved84(SubCauseCodeType),
1268 reserved85(SubCauseCodeType),
1269 reserved86(SubCauseCodeType),
1270 reserved87(SubCauseCodeType),
1271 reserved88(SubCauseCodeType),
1272 reserved89(SubCauseCodeType),
1273 reserved90(SubCauseCodeType),
1274 vehicleBreakdown91(VehicleBreakdownSubCauseCode),
1275 postCrash92(PostCrashSubCauseCode),
1276 humanProblem93(HumanProblemSubCauseCode),
1277 stationaryVehicle94(StationaryVehicleSubCauseCode),
1278 emergencyVehicleApproaching95(EmergencyVehicleApproachingSubCauseCode),
1279 #[rasn(identifier = "hazardousLocation-DangerousCurve96")]
1280 hazardousLocation_DangerousCurve96(HazardousLocationDangerousCurveSubCauseCode),
1281 collisionRisk97(CollisionRiskSubCauseCode),
1282 signalViolation98(SignalViolationSubCauseCode),
1283 dangerousSituation99(DangerousSituationSubCauseCode),
1284 railwayLevelCrossing100(RailwayLevelCrossingSubCauseCode),
1285 reserved101(SubCauseCodeType),
1286 reserved102(SubCauseCodeType),
1287 reserved103(SubCauseCodeType),
1288 reserved104(SubCauseCodeType),
1289 reserved105(SubCauseCodeType),
1290 reserved106(SubCauseCodeType),
1291 reserved107(SubCauseCodeType),
1292 reserved108(SubCauseCodeType),
1293 reserved109(SubCauseCodeType),
1294 reserved110(SubCauseCodeType),
1295 reserved111(SubCauseCodeType),
1296 reserved112(SubCauseCodeType),
1297 reserved113(SubCauseCodeType),
1298 reserved114(SubCauseCodeType),
1299 reserved115(SubCauseCodeType),
1300 reserved116(SubCauseCodeType),
1301 reserved117(SubCauseCodeType),
1302 reserved118(SubCauseCodeType),
1303 reserved119(SubCauseCodeType),
1304 reserved120(SubCauseCodeType),
1305 reserved121(SubCauseCodeType),
1306 reserved122(SubCauseCodeType),
1307 reserved123(SubCauseCodeType),
1308 reserved124(SubCauseCodeType),
1309 reserved125(SubCauseCodeType),
1310 reserved126(SubCauseCodeType),
1311 reserved127(SubCauseCodeType),
1312 reserved128(SubCauseCodeType),
1313 }
1314 #[doc = "*"]
1315 #[doc = " *The DE represents the value of the cause code of an event. "]
1316 #[doc = " * "]
1317 #[doc = " * The value shall be set to:"]
1318 #[doc = " * - 0 - reserved for future use,"]
1319 #[doc = " * - 1 - `trafficCondition` - in case the type of event is an abnormal traffic condition,"]
1320 #[doc = " * - 2 - `accident` - in case the type of event is a road accident,"]
1321 #[doc = " * - 3 - `roadworks` - in case the type of event is roadwork,"]
1322 #[doc = " * - 4 - reserved for future usage,"]
1323 #[doc = " * - 5 - `impassability` - in case the type of event is unmanaged road blocking, referring to any"]
1324 #[doc = " * blocking of a road, partial or total, which has not been adequately"]
1325 #[doc = " * secured and signposted,"]
1326 #[doc = " * - 6 - `adverseWeatherCondition-Adhesion` - in case the type of event is low adhesion,"]
1327 #[doc = " * - 7 - `aquaplaning` - danger of aquaplaning on the road,"]
1328 #[doc = " * - 8 - reserved for future usage,"]
1329 #[doc = " * - 9 - `hazardousLocation-SurfaceCondition` - in case the type of event is abnormal road surface condition,"]
1330 #[doc = " * - 10 - `hazardousLocation-ObstacleOnTheRoad` - in case the type of event is obstacle on the road,"]
1331 #[doc = " * - 11 - `hazardousLocation-AnimalOnTheRoad` - in case the type of event is animal on the road,"]
1332 #[doc = " * - 12 - `humanPresenceOnTheRoad` - in case the type of event is human presence on the road,"]
1333 #[doc = " * - 13 - reserved for future usage,"]
1334 #[doc = " * - 14 - `wrongWayDriving` - in case the type of the event is vehicle driving in wrong way,"]
1335 #[doc = " * - 15 - `rescueAndRecoveryWorkInProgress` - in case the type of event is rescue and recovery work for accident or for a road hazard in progress,"]
1336 #[doc = " * - 16 - reserved for future usage,"]
1337 #[doc = " * - 17 - `adverseWeatherCondition-ExtremeWeatherCondition`- in case the type of event is extreme weather condition,"]
1338 #[doc = " * - 18 - `adverseWeatherCondition-Visibility` - in case the type of event is low visibility,"]
1339 #[doc = " * - 19 - `adverseWeatherCondition-Precipitation` - in case the type of event is precipitation,"]
1340 #[doc = " * - 20 - `violence` - in case the the type of event is human violence on or near the road,"]
1341 #[doc = " * - 21-25 - reserved for future usage,"]
1342 #[doc = " * - 26 - `slowVehicle` - in case the type of event is slow vehicle driving on the road,"]
1343 #[doc = " * - 27 - `dangerousEndOfQueue` - in case the type of event is dangerous end of vehicle queue,"]
1344 #[doc = " * - 28-90 - are reserved for future usage,"]
1345 #[doc = " * - 91 - `vehicleBreakdown` - in case the type of event is break down vehicle on the road,"]
1346 #[doc = " * - 92 - `postCrash` - in case the type of event is a detected crash,"]
1347 #[doc = " * - 93 - `humanProblem` - in case the type of event is human health problem in vehicles involved in traffic,"]
1348 #[doc = " * - 94 - `stationaryVehicle` - in case the type of event is stationary vehicle,"]
1349 #[doc = " * - 95 - `emergencyVehicleApproaching` - in case the type of event is approaching vehicle operating emergency mission,"]
1350 #[doc = " * - 96 - `hazardousLocation-DangerousCurve` - in case the type of event is dangerous curve,"]
1351 #[doc = " * - 97 - `collisionRisk` - in case the type of event is a collision risk,"]
1352 #[doc = " * - 98 - `signalViolation` - in case the type of event is signal violation,"]
1353 #[doc = " * - 99 - `dangerousSituation` - in case the type of event is dangerous situation in which autonomous safety system in vehicle "]
1354 #[doc = " * is activated,"]
1355 #[doc = " * - 100 - `railwayLevelCrossing` - in case the type of event is a railway level crossing. "]
1356 #[doc = " * - 101-255 - are reserved for future usage."]
1357 #[doc = " *"]
1358 #[doc = " * @category: Traffic information"]
1359 #[doc = " * @revision: V1.3.1"]
1360 #[doc = " "]
1361 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1362 #[rasn(delegate, value("0..=255"))]
1363 pub struct CauseCodeType(pub u8);
1364 #[doc = "*"]
1365 #[doc = " * This DF is an alternative representation of the cause code value of a traffic event. "]
1366 #[doc = " *"]
1367 #[doc = " * It shall include the following components: "]
1368 #[doc = " *"]
1369 #[doc = " * @field ccAndScc: the main cause of a detected event. Each entry is of a different type and represents the sub cause code."]
1370 #[doc = " *"]
1371 #[doc = " * The semantics of the entire DF are completely defined by the component causeCode. The interpretation of the subCauseCode may "]
1372 #[doc = " * provide additional information that is not strictly necessary to understand the causeCode itself, and is therefore optional."]
1373 #[doc = " * "]
1374 #[doc = " * @category: Traffic information"]
1375 #[doc = " * @revision: Created in V2.1.1"]
1376 #[doc = " "]
1377 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1378 #[rasn(automatic_tags)]
1379 #[non_exhaustive]
1380 pub struct CauseCodeV2 {
1381 #[rasn(identifier = "ccAndScc")]
1382 pub cc_and_scc: CauseCodeChoice,
1383 }
1384 impl CauseCodeV2 {
1385 pub fn new(cc_and_scc: CauseCodeChoice) -> Self {
1386 Self { cc_and_scc }
1387 }
1388 }
1389 #[doc = "*"]
1390 #[doc = " * The DF describes the position of a CEN DSRC road side equipment."]
1391 #[doc = " *"]
1392 #[doc = " * It shall include the following components: "]
1393 #[doc = " * "]
1394 #[doc = " * @field protectedZoneLatitude: the latitude of the CEN DSRC road side equipment."]
1395 #[doc = " * "]
1396 #[doc = " * @field protectedZoneLongitude: the latitude of the CEN DSRC road side equipment. "]
1397 #[doc = " * "]
1398 #[doc = " * @field cenDsrcTollingZoneID: the optional ID of the CEN DSRC road side equipment."]
1399 #[doc = " * "]
1400 #[doc = " * @category: Infrastructure information, Communication information"]
1401 #[doc = " * @revision: revised in V2.1.1 (cenDsrcTollingZoneId is directly of type ProtectedZoneId)"]
1402 #[doc = " "]
1403 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1404 #[rasn(automatic_tags)]
1405 #[non_exhaustive]
1406 pub struct CenDsrcTollingZone {
1407 #[rasn(identifier = "protectedZoneLatitude")]
1408 pub protected_zone_latitude: Latitude,
1409 #[rasn(identifier = "protectedZoneLongitude")]
1410 pub protected_zone_longitude: Longitude,
1411 #[rasn(identifier = "cenDsrcTollingZoneId")]
1412 pub cen_dsrc_tolling_zone_id: Option<ProtectedZoneId>,
1413 }
1414 impl CenDsrcTollingZone {
1415 pub fn new(
1416 protected_zone_latitude: Latitude,
1417 protected_zone_longitude: Longitude,
1418 cen_dsrc_tolling_zone_id: Option<ProtectedZoneId>,
1419 ) -> Self {
1420 Self {
1421 protected_zone_latitude,
1422 protected_zone_longitude,
1423 cen_dsrc_tolling_zone_id,
1424 }
1425 }
1426 }
1427 #[doc = "*"]
1428 #[doc = " * This DE represents the ID of a CEN DSRC tolling zone. "]
1429 #[doc = " * "]
1430 #[doc = " * @category: Communication information"]
1431 #[doc = " * @revision: V1.3.1"]
1432 #[doc = " * @note: this DE is deprecated and shall not be used anymore. "]
1433 #[doc = " "]
1434 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1435 #[rasn(delegate)]
1436 pub struct CenDsrcTollingZoneID(pub ProtectedZoneId);
1437 #[doc = "* "]
1438 #[doc = " * "]
1439 #[doc = " * This DF represents the shape of a circular area or a right cylinder that is centred on the shape's reference point. "]
1440 #[doc = " *"]
1441 #[doc = " * It shall include the following components: "]
1442 #[doc = " * "]
1443 #[doc = " * @field shapeReferencePoint: optional reference point that represents the centre of the circle, relative to an externally specified reference position. "]
1444 #[doc = " * If this component is absent, the externally specified reference position represents the shape's reference point. "]
1445 #[doc = " *"]
1446 #[doc = " * @field radius: the radius of the circular area."]
1447 #[doc = " *"]
1448 #[doc = " * @field height: the optional height, present if the shape is a right cylinder extending in the positive z-axis. "]
1449 #[doc = " *"]
1450 #[doc = " * "]
1451 #[doc = " * @category: GeoReference information"]
1452 #[doc = " * @revision: Created in V2.1.1"]
1453 #[doc = " "]
1454 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1455 #[rasn(automatic_tags)]
1456 pub struct CircularShape {
1457 #[rasn(identifier = "shapeReferencePoint")]
1458 pub shape_reference_point: Option<CartesianPosition3d>,
1459 pub radius: StandardLength12b,
1460 pub height: Option<StandardLength12b>,
1461 }
1462 impl CircularShape {
1463 pub fn new(
1464 shape_reference_point: Option<CartesianPosition3d>,
1465 radius: StandardLength12b,
1466 height: Option<StandardLength12b>,
1467 ) -> Self {
1468 Self {
1469 shape_reference_point,
1470 radius,
1471 height,
1472 }
1473 }
1474 }
1475 #[doc = "*"]
1476 #[doc = " * This DF indicates the opening/closure status of the lanes of a carriageway."]
1477 #[doc = " *"]
1478 #[doc = " * It shall include the following components: "]
1479 #[doc = " * "]
1480 #[doc = " * @field innerhardShoulderStatus: this information is optional and shall be included if an inner hard shoulder is present and the information is known."]
1481 #[doc = " * It indicates the open/closing status of inner hard shoulder lanes. "]
1482 #[doc = " * "]
1483 #[doc = " * @field outerhardShoulderStatus: this information is optional and shall be included if an outer hard shoulder is present and the information is known."]
1484 #[doc = " * It indicates the open/closing status of outer hard shoulder lanes. "]
1485 #[doc = " * "]
1486 #[doc = " * @field drivingLaneStatus: this information is optional and shall be included if the information is known."]
1487 #[doc = " * It indicates the open/closing status of driving lanes. "]
1488 #[doc = " * For carriageways with more than 13 driving lanes, the drivingLaneStatus component shall not be present."]
1489 #[doc = " * "]
1490 #[doc = " * @category: Infrastructure information, Road topology information"]
1491 #[doc = " * @revision: Description revised in V2.1.1"]
1492 #[doc = " "]
1493 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1494 #[rasn(automatic_tags)]
1495 #[non_exhaustive]
1496 pub struct ClosedLanes {
1497 #[rasn(identifier = "innerhardShoulderStatus")]
1498 pub innerhard_shoulder_status: Option<HardShoulderStatus>,
1499 #[rasn(identifier = "outerhardShoulderStatus")]
1500 pub outerhard_shoulder_status: Option<HardShoulderStatus>,
1501 #[rasn(identifier = "drivingLaneStatus")]
1502 pub driving_lane_status: Option<DrivingLaneStatus>,
1503 }
1504 impl ClosedLanes {
1505 pub fn new(
1506 innerhard_shoulder_status: Option<HardShoulderStatus>,
1507 outerhard_shoulder_status: Option<HardShoulderStatus>,
1508 driving_lane_status: Option<DrivingLaneStatus>,
1509 ) -> Self {
1510 Self {
1511 innerhard_shoulder_status,
1512 outerhard_shoulder_status,
1513 driving_lane_status,
1514 }
1515 }
1516 }
1517 #[doc = "*"]
1518 #[doc = " * This DF provides information about the breakup of a cluster."]
1519 #[doc = " *"]
1520 #[doc = " * It shall include the following components: "]
1521 #[doc = " * "]
1522 #[doc = " * @field clusterBreakupReason: indicates the reason for breakup."]
1523 #[doc = " * "]
1524 #[doc = " * @field breakupTime: indicates the time of breakup. "]
1525 #[doc = " *"]
1526 #[doc = " * @category: Cluster Information"]
1527 #[doc = " * @revision: Created in V2.1.1"]
1528 #[doc = " "]
1529 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1530 #[rasn(automatic_tags)]
1531 #[non_exhaustive]
1532 pub struct ClusterBreakupInfo {
1533 #[rasn(identifier = "clusterBreakupReason")]
1534 pub cluster_breakup_reason: ClusterBreakupReason,
1535 #[rasn(identifier = "breakupTime")]
1536 pub breakup_time: DeltaTimeQuarterSecond,
1537 }
1538 impl ClusterBreakupInfo {
1539 pub fn new(
1540 cluster_breakup_reason: ClusterBreakupReason,
1541 breakup_time: DeltaTimeQuarterSecond,
1542 ) -> Self {
1543 Self {
1544 cluster_breakup_reason,
1545 breakup_time,
1546 }
1547 }
1548 }
1549 #[doc = "*"]
1550 #[doc = " * This DE indicates the reason why a cluster leader intends to break up the cluster."]
1551 #[doc = " * "]
1552 #[doc = " * The value shall be set to:"]
1553 #[doc = " * - 0 - `notProvided` - if the information is not provided,"]
1554 #[doc = " * - 1 - `clusteringPurposeCompleted` - if the cluster purpose has been completed,"]
1555 #[doc = " * - 2 - `leaderMovedOutOfClusterBoundingBox` - if the leader moved out of the cluster's bounding box,"]
1556 #[doc = " * - 3 - `joiningAnotherCluster` - if the cluster leader is about to join another cluster,"]
1557 #[doc = " * - 4 - `enteringLowRiskAreaBasedOnMaps` - if the cluster is entering an area idenrified as low risk based on the use of maps,"]
1558 #[doc = " * - 5 - `receptionOfCpmContainingCluster` - if the leader received a Collective Perception Message containing information about the same cluster. "]
1559 #[doc = " * - 6 to 15 - are reserved for future use. "]
1560 #[doc = " *"]
1561 #[doc = " * @category: Cluster information"]
1562 #[doc = " * @revision: Created in V2.1.1"]
1563 #[doc = ""]
1564 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1565 #[rasn(enumerated)]
1566 pub enum ClusterBreakupReason {
1567 notProvided = 0,
1568 clusteringPurposeCompleted = 1,
1569 leaderMovedOutOfClusterBoundingBox = 2,
1570 joiningAnotherCluster = 3,
1571 enteringLowRiskAreaBasedOnMaps = 4,
1572 receptionOfCpmContainingCluster = 5,
1573 max = 15,
1574 }
1575 #[doc = "*"]
1576 #[doc = " * This DF provides information about the joining of a cluster."]
1577 #[doc = " *"]
1578 #[doc = " * It shall include the following components: "]
1579 #[doc = " * "]
1580 #[doc = " * @field clusterId: indicates the identifier of the cluster."]
1581 #[doc = " * "]
1582 #[doc = " * @field joinTime: indicates the time of joining. "]
1583 #[doc = " *"]
1584 #[doc = " * @category: Cluster Information"]
1585 #[doc = " * @revision: Created in V2.1.1"]
1586 #[doc = " "]
1587 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1588 #[rasn(automatic_tags)]
1589 #[non_exhaustive]
1590 pub struct ClusterJoinInfo {
1591 #[rasn(identifier = "clusterId")]
1592 pub cluster_id: Identifier1B,
1593 #[rasn(identifier = "joinTime")]
1594 pub join_time: DeltaTimeQuarterSecond,
1595 }
1596 impl ClusterJoinInfo {
1597 pub fn new(cluster_id: Identifier1B, join_time: DeltaTimeQuarterSecond) -> Self {
1598 Self {
1599 cluster_id,
1600 join_time,
1601 }
1602 }
1603 }
1604 #[doc = "*"]
1605 #[doc = " * The DF provides information about the leaving of a cluster."]
1606 #[doc = " *"]
1607 #[doc = " * It shall include the following components: "]
1608 #[doc = " * "]
1609 #[doc = " * @field clusterId: indicates the cluster."]
1610 #[doc = " * "]
1611 #[doc = " * @field clusterLeaveReason: indicates the reason for leaving. "]
1612 #[doc = " *"]
1613 #[doc = " * @category: Cluster Information"]
1614 #[doc = " * @revision: Created in V2.1.1"]
1615 #[doc = " "]
1616 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1617 #[rasn(automatic_tags)]
1618 #[non_exhaustive]
1619 pub struct ClusterLeaveInfo {
1620 #[rasn(identifier = "clusterId")]
1621 pub cluster_id: Identifier1B,
1622 #[rasn(identifier = "clusterLeaveReason")]
1623 pub cluster_leave_reason: ClusterLeaveReason,
1624 }
1625 impl ClusterLeaveInfo {
1626 pub fn new(cluster_id: Identifier1B, cluster_leave_reason: ClusterLeaveReason) -> Self {
1627 Self {
1628 cluster_id,
1629 cluster_leave_reason,
1630 }
1631 }
1632 }
1633 #[doc = "*"]
1634 #[doc = " * This DE indicates the reason why a cluster participant is leaving the cluster."]
1635 #[doc = " * "]
1636 #[doc = " * The value shall be set to:"]
1637 #[doc = " * - 0 - `notProvided ` - if the information is not provided,"]
1638 #[doc = " * - 1 - `clusterLeaderLost` - if the cluster leader cannot be found anymore, "]
1639 #[doc = " * - 2 - `clusterDisbandedByLeader` - if the cluster has been disbanded by the leader,"]
1640 #[doc = " * - 3 - `outOfClusterBoundingBox` - if the participants moved out of the cluster's bounding box,"]
1641 #[doc = " * - 4 - `outOfClusterSpeedRange` - if the cluster speed moved out of a defined range, "]
1642 #[doc = " * - 5 - `joiningAnotherCluster` - if the participant is joining another cluster,"]
1643 #[doc = " * - 6 - `cancelledJoin` - if the participant is cancelling a joining procedure,"]
1644 #[doc = " * - 7 - `failedJoin` - if the participant failed to join the cluster,"]
1645 #[doc = " * - 8 - `safetyCondition` - if a safety condition applies."]
1646 #[doc = " * - 9 to 15 - are reserved for future use "]
1647 #[doc = " *"]
1648 #[doc = " * @category: Cluster information"]
1649 #[doc = " * @revision: Created in V2.1.1"]
1650 #[doc = " "]
1651 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1652 #[rasn(enumerated)]
1653 pub enum ClusterLeaveReason {
1654 notProvided = 0,
1655 clusterLeaderLost = 1,
1656 clusterDisbandedByLeader = 2,
1657 outOfClusterBoundingBox = 3,
1658 outOfClusterSpeedRange = 4,
1659 joiningAnotherCluster = 5,
1660 cancelledJoin = 6,
1661 failedJoin = 7,
1662 safetyCondition = 8,
1663 max = 15,
1664 }
1665 #[doc = "*"]
1666 #[doc = " * This DE represents the sub cause codes of the @ref CauseCode `collisionRisk`."]
1667 #[doc = " * "]
1668 #[doc = " * The value shall be set to:"]
1669 #[doc = " * - 0 - `unavailable` - in case information on the type of collision risk is unavailable,"]
1670 #[doc = " * - 1 - `longitudinalCollisionRisk`- in case the type of detected collision risk is longitudinal collision risk, "]
1671 #[doc = " * e.g. forward collision or face to face collision,"]
1672 #[doc = " * - 2 - `crossingCollisionRisk` - in case the type of detected collision risk is crossing collision risk,"]
1673 #[doc = " * - 3 - `lateralCollisionRisk` - in case the type of detected collision risk is lateral collision risk,"]
1674 #[doc = " * - 4 - `vulnerableRoadUser` - in case the type of detected collision risk involves vulnerable road users"]
1675 #[doc = " * e.g. pedestrians or bicycles."]
1676 #[doc = " * - 5-255 - are reserved for future usage."]
1677 #[doc = " *"]
1678 #[doc = " * @category: Traffic information"]
1679 #[doc = " * @revision: V1.3.1"]
1680 #[doc = " "]
1681 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1682 #[rasn(delegate, value("0..=255"))]
1683 pub struct CollisionRiskSubCauseCode(pub u8);
1684 #[doc = "* "]
1685 #[doc = " * This DE represents a confidence level in percentage."]
1686 #[doc = " * "]
1687 #[doc = " * The value shall be set to:"]
1688 #[doc = " * - `n` (`n > 0` and `n < 101`) : for the confidence level in %,"]
1689 #[doc = " * - `101` : in case the confidence level is not available."]
1690 #[doc = " *"]
1691 #[doc = " * @unit Percent "]
1692 #[doc = " * @category: Basic information "]
1693 #[doc = " * @revision: Created in V2.1.1 "]
1694 #[doc = ""]
1695 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1696 #[rasn(delegate, value("1..=101"))]
1697 pub struct ConfidenceLevel(pub u8);
1698 #[doc = "* "]
1699 #[doc = " * This DE indicates the coordinate confidence value which represents the estimated absolute accuracy of a position coordinate with a default confidence level of 95 %."]
1700 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
1701 #[doc = " *"]
1702 #[doc = " * The value shall be set to: "]
1703 #[doc = " * - `n` (`n > 0` and `n < 4095`) if the confidence value is is equal to or less than n x 0,01 metre, and greater than (n-1) x 0,01 metre,"]
1704 #[doc = " * - `4095` if the confidence value is greater than 40,94 metres,"]
1705 #[doc = " * - `4096` if the confidence value is not available."]
1706 #[doc = " *"]
1707 #[doc = " * @unit 0,01 m"]
1708 #[doc = " * @category: Basic information"]
1709 #[doc = " * @revision: Created in V2.1.1"]
1710 #[doc = ""]
1711 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1712 #[rasn(delegate, value("1..=4096"))]
1713 pub struct CoordinateConfidence(pub u16);
1714 #[doc = "* "]
1715 #[doc = " * This DE represents the Bravais-Pearson correlation value for each cell of a lower triangular correlation matrix."]
1716 #[doc = " *"]
1717 #[doc = " * The value shall be set to: "]
1718 #[doc = " * - `-100` in case of full negative correlation,"]
1719 #[doc = " * - `n` (`n > -100` and `n < 0`) if the correlation is negative and equal to n x 100,"]
1720 #[doc = " * - `0` in case of no correlation,"]
1721 #[doc = " * - `n` (`n > 0` and `n < 100`) if the correlation is positive and equal to n x 100,"]
1722 #[doc = " * - `100` in case of full positive correlation,"]
1723 #[doc = " * - `101` in case the correlation information is unavailable. "]
1724 #[doc = " *"]
1725 #[doc = " * @unit: the value is scaled by 100"]
1726 #[doc = " * @category: Basic information"]
1727 #[doc = " * @revision: Created in V2.1.1"]
1728 #[doc = ""]
1729 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1730 #[rasn(delegate, value("-100..=101"))]
1731 pub struct CorrelationCellValue(pub i8);
1732 #[doc = "*"]
1733 #[doc = " * This DF represents a column of a lower triangular positive semi-definite matrix and consists of a list of correlation cell values ordered by rows."]
1734 #[doc = " * Given a matrix \"A\" of size n x n, the number of columns to be included in the lower triangular matrix is k=n-1."]
1735 #[doc = " * Each column \"i\" of the lower triangular matrix then contains k-(i-1) values (ordered by rows from 1 to n-1), where \"i\" refers to the column number count"]
1736 #[doc = " * starting at 1 from the left."]
1737 #[doc = " *"]
1738 #[doc = " * @category: Sensing Information"]
1739 #[doc = " * @revision: Created in V2.1.1"]
1740 #[doc = ""]
1741 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1742 #[rasn(delegate, size("1..=13", extensible))]
1743 pub struct CorrelationColumn(pub SequenceOf<CorrelationCellValue>);
1744 #[doc = "*"]
1745 #[doc = " * This DF represents the curvature of the vehicle trajectory and the associated confidence value."]
1746 #[doc = " * The curvature detected by a vehicle represents the curvature of actual vehicle trajectory."]
1747 #[doc = " *"]
1748 #[doc = " * It shall include the following components: "]
1749 #[doc = " * "]
1750 #[doc = " * @field curvatureValue: Detected curvature of the vehicle trajectory."]
1751 #[doc = " * "]
1752 #[doc = " * @field curvatureConfidence: along with a confidence value of the curvature value with a predefined confidence level. "]
1753 #[doc = " * "]
1754 #[doc = " * @category: Vehicle information"]
1755 #[doc = " * @revision: Description revised in V2.1.1"]
1756 #[doc = " "]
1757 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1758 #[rasn(automatic_tags)]
1759 pub struct Curvature {
1760 #[rasn(identifier = "curvatureValue")]
1761 pub curvature_value: CurvatureValue,
1762 #[rasn(identifier = "curvatureConfidence")]
1763 pub curvature_confidence: CurvatureConfidence,
1764 }
1765 impl Curvature {
1766 pub fn new(
1767 curvature_value: CurvatureValue,
1768 curvature_confidence: CurvatureConfidence,
1769 ) -> Self {
1770 Self {
1771 curvature_value,
1772 curvature_confidence,
1773 }
1774 }
1775 }
1776 #[doc = "*"]
1777 #[doc = " * The DE describes whether the yaw rate is used to calculate the curvature for a curvature value."]
1778 #[doc = " * "]
1779 #[doc = " * The value shall be set to:"]
1780 #[doc = " * - 0 - `yawRateUsed` - if the yaw rate is used,"]
1781 #[doc = " * - 1 - `yawRateNotUsed` - if the yaw rate is not used,"]
1782 #[doc = " * - 2 - `unavailable` - if the information of curvature calculation mode is unknown."]
1783 #[doc = " *"]
1784 #[doc = " * @category: Vehicle information"]
1785 #[doc = " * @revision: V1.3.1"]
1786 #[doc = " "]
1787 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1788 #[rasn(enumerated)]
1789 #[non_exhaustive]
1790 pub enum CurvatureCalculationMode {
1791 yawRateUsed = 0,
1792 yawRateNotUsed = 1,
1793 unavailable = 2,
1794 }
1795 #[doc = "*"]
1796 #[doc = " * This DE indicates the acceleration confidence value which represents the estimated absolute accuracy range of a curvature value with a confidence level of 95 %."]
1797 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
1798 #[doc = " * "]
1799 #[doc = " * The value shall be set to:"]
1800 #[doc = " * - 0 - `onePerMeter-0-00002` - if the confidence value is less than or equal to 0,00002 m-1,"]
1801 #[doc = " * - 1 - `onePerMeter-0-0001` - if the confidence value is less than or equal to 0,0001 m-1 and greater than 0,00002 m-1,"]
1802 #[doc = " * - 2 - `onePerMeter-0-0005` - if the confidence value is less than or equal to 0,0005 m-1 and greater than 0,0001 m-1,"]
1803 #[doc = " * - 3 - `onePerMeter-0-002` - if the confidence value is less than or equal to 0,002 m-1 and greater than 0,0005 m-1,"]
1804 #[doc = " * - 4 - `nePerMeter-0-01` - if the confidence value is less than or equal to 0,01 m-1 and greater than 0,002 m-1,"]
1805 #[doc = " * - 5 - `nePerMeter-0-1` - if the confidence value is less than or equal to 0,1 m-1 and greater than 0,01 m-1,"]
1806 #[doc = " * - 6 - `outOfRange` - if the confidence value is out of range, i.e. greater than 0,1 m-1,"]
1807 #[doc = " * - 7 - `unavailable` - if the confidence value is not available."]
1808 #[doc = " * "]
1809 #[doc = " * @note:\tThe fact that a curvature value is received with confidence value set to `unavailable(7)` can be caused by"]
1810 #[doc = " * several reasons, such as:"]
1811 #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
1812 #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
1813 #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
1814 #[doc = " * In all 3 cases above, the curvature value may be valid and used by the application."]
1815 #[doc = " * "]
1816 #[doc = " * @note: If a curvature value is received and its confidence value is set to `outOfRange(6)`, it means that the curvature value is not valid "]
1817 #[doc = " * and therefore cannot be trusted. Such value is not useful for the application."]
1818 #[doc = " * "]
1819 #[doc = " * @category: Vehicle information"]
1820 #[doc = " * @revision: Description revised in V2.1.1"]
1821 #[doc = ""]
1822 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1823 #[rasn(enumerated)]
1824 pub enum CurvatureConfidence {
1825 #[rasn(identifier = "onePerMeter-0-00002")]
1826 onePerMeter_0_00002 = 0,
1827 #[rasn(identifier = "onePerMeter-0-0001")]
1828 onePerMeter_0_0001 = 1,
1829 #[rasn(identifier = "onePerMeter-0-0005")]
1830 onePerMeter_0_0005 = 2,
1831 #[rasn(identifier = "onePerMeter-0-002")]
1832 onePerMeter_0_002 = 3,
1833 #[rasn(identifier = "onePerMeter-0-01")]
1834 onePerMeter_0_01 = 4,
1835 #[rasn(identifier = "onePerMeter-0-1")]
1836 onePerMeter_0_1 = 5,
1837 outOfRange = 6,
1838 unavailable = 7,
1839 }
1840 #[doc = "*"]
1841 #[doc = " * This DE describes vehicle turning curve with the following information:"]
1842 #[doc = " * ```"]
1843 #[doc = " * Value = 1 / Radius * 10000"]
1844 #[doc = " * ```"]
1845 #[doc = " * wherein radius is the vehicle turning curve radius in metres. "]
1846 #[doc = " * "]
1847 #[doc = " * Positive values indicate a turning curve to the left hand side of the driver."]
1848 #[doc = " * It corresponds to the vehicle coordinate system as defined in ISO 8855 [21]."]
1849 #[doc = " *"]
1850 #[doc = " * The value shall be set to:"]
1851 #[doc = " * - `-1023` for values smaller than -1023,"]
1852 #[doc = " * - `n` (`n > -1023` and `n < 0`) for negative values equal to or less than `n`, and greater than `(n-1)`,"]
1853 #[doc = " * - `0` when the vehicle is moving straight,"]
1854 #[doc = " * - `n` (`n > 0` and `n < 1022`) for positive values equal to or less than `n`, and greater than `(n-1)`,"]
1855 #[doc = " * - `1022`, for values greater than 1021,"]
1856 #[doc = " * - `1023`, if the information is not available."]
1857 #[doc = " * "]
1858 #[doc = " * @note: The present DE is limited to vehicle types as defined in ISO 8855 [21]."]
1859 #[doc = " * "]
1860 #[doc = " * @unit: 1 over 10 000 metres"]
1861 #[doc = " * @category: Vehicle information"]
1862 #[doc = " * @revision: description revised in V2.1.1 (the definition of value 1022 has changed slightly)"]
1863 #[doc = " "]
1864 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1865 #[rasn(delegate, value("-1023..=1023"))]
1866 pub struct CurvatureValue(pub i16);
1867 #[doc = "*"]
1868 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `dangerousEndOfQueue`. "]
1869 #[doc = " * "]
1870 #[doc = " * The value shall be set to:"]
1871 #[doc = " * - 0 - `unavailable` - in case information on the type of dangerous queue is unavailable,"]
1872 #[doc = " * - 1 - `suddenEndOfQueue`- in case a sudden end of queue is detected, e.g. due to accident or obstacle,"]
1873 #[doc = " * - 2 - `queueOverHill` - in case the dangerous end of queue is detected on the road hill,"]
1874 #[doc = " * - 3 - `queueAroundBend` - in case the dangerous end of queue is detected around the road bend,"]
1875 #[doc = " * - 4 - `queueInTunnel` - in case queue is detected in tunnel,"]
1876 #[doc = " * - 5-255 - reserved for future usage."]
1877 #[doc = " *"]
1878 #[doc = " * @category: Traffic information"]
1879 #[doc = " * @revision: V1.3.1"]
1880 #[doc = " "]
1881 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1882 #[rasn(delegate, value("0..=255"))]
1883 pub struct DangerousEndOfQueueSubCauseCode(pub u8);
1884 #[doc = "*"]
1885 #[doc = " * This DE indicates the type of the dangerous goods being carried by a heavy vehicle."]
1886 #[doc = " * The value is assigned according to `class` and `division` definitions of dangerous goods as specified in part II,"]
1887 #[doc = " * chapter 2.1.1.1 of European Agreement concerning the International Carriage of Dangerous Goods by Road [3]."]
1888 #[doc = " * "]
1889 #[doc = " * "]
1890 #[doc = " * @category Vehicle information"]
1891 #[doc = " * @revision: V1.3.1"]
1892 #[doc = " "]
1893 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1894 #[rasn(enumerated)]
1895 pub enum DangerousGoodsBasic {
1896 explosives1 = 0,
1897 explosives2 = 1,
1898 explosives3 = 2,
1899 explosives4 = 3,
1900 explosives5 = 4,
1901 explosives6 = 5,
1902 flammableGases = 6,
1903 nonFlammableGases = 7,
1904 toxicGases = 8,
1905 flammableLiquids = 9,
1906 flammableSolids = 10,
1907 substancesLiableToSpontaneousCombustion = 11,
1908 substancesEmittingFlammableGasesUponContactWithWater = 12,
1909 oxidizingSubstances = 13,
1910 organicPeroxides = 14,
1911 toxicSubstances = 15,
1912 infectiousSubstances = 16,
1913 radioactiveMaterial = 17,
1914 corrosiveSubstances = 18,
1915 miscellaneousDangerousSubstances = 19,
1916 }
1917 #[doc = "*"]
1918 #[doc = " * This DF provides a description of dangerous goods being carried by a heavy vehicle."]
1919 #[doc = " *"]
1920 #[doc = " * It shall include the following components: "]
1921 #[doc = " * "]
1922 #[doc = " * @field dangerousGoodsType: Type of dangerous goods."]
1923 #[doc = " * "]
1924 #[doc = " * @field unNumber: a 4-digit number that identifies the substance of the dangerous goods as specified in"]
1925 #[doc = " * United Nations Recommendations on the Transport of Dangerous Goods - Model Regulations [4],"]
1926 #[doc = " * "]
1927 #[doc = " * @field elevatedTemperature: whether the carried dangerous goods are transported at high temperature."]
1928 #[doc = " * If yes, the value shall be set to TRUE,"]
1929 #[doc = " * "]
1930 #[doc = " * @field tunnelsRestricted: whether the heavy vehicle carrying dangerous goods is restricted to enter tunnels."]
1931 #[doc = " * If yes, the value shall be set to TRUE,"]
1932 #[doc = " * "]
1933 #[doc = " * @field limitedQuantity: whether the carried dangerous goods are packed with limited quantity."]
1934 #[doc = " * If yes, the value shall be set to TRUE,"]
1935 #[doc = " * "]
1936 #[doc = " * @field emergencyActionCode: physical signage placard at the vehicle that carries information on how an emergency"]
1937 #[doc = " * service should deal with an incident. This component is optional; it shall be present if the information is available."]
1938 #[doc = " * "]
1939 #[doc = " * @field phoneNumber: contact phone number of assistance service in case of incident or accident."]
1940 #[doc = " * This component is optional, it shall be present if the information is available."]
1941 #[doc = " * "]
1942 #[doc = " * @field companyName: name of company that manages the transportation of the dangerous goods."]
1943 #[doc = " * This component is optional; it shall be present if the information is available."]
1944 #[doc = " * "]
1945 #[doc = " * @category Vehicle information"]
1946 #[doc = " * @revision: V1.3.1"]
1947 #[doc = " "]
1948 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1949 #[rasn(automatic_tags)]
1950 #[non_exhaustive]
1951 pub struct DangerousGoodsExtended {
1952 #[rasn(identifier = "dangerousGoodsType")]
1953 pub dangerous_goods_type: DangerousGoodsBasic,
1954 #[rasn(value("0..=9999"), identifier = "unNumber")]
1955 pub un_number: u16,
1956 #[rasn(identifier = "elevatedTemperature")]
1957 pub elevated_temperature: bool,
1958 #[rasn(identifier = "tunnelsRestricted")]
1959 pub tunnels_restricted: bool,
1960 #[rasn(identifier = "limitedQuantity")]
1961 pub limited_quantity: bool,
1962 #[rasn(size("1..=24"), identifier = "emergencyActionCode")]
1963 pub emergency_action_code: Option<Ia5String>,
1964 #[rasn(identifier = "phoneNumber")]
1965 pub phone_number: Option<PhoneNumber>,
1966 #[rasn(identifier = "companyName")]
1967 pub company_name: Option<Utf8String>,
1968 }
1969 impl DangerousGoodsExtended {
1970 pub fn new(
1971 dangerous_goods_type: DangerousGoodsBasic,
1972 un_number: u16,
1973 elevated_temperature: bool,
1974 tunnels_restricted: bool,
1975 limited_quantity: bool,
1976 emergency_action_code: Option<Ia5String>,
1977 phone_number: Option<PhoneNumber>,
1978 company_name: Option<Utf8String>,
1979 ) -> Self {
1980 Self {
1981 dangerous_goods_type,
1982 un_number,
1983 elevated_temperature,
1984 tunnels_restricted,
1985 limited_quantity,
1986 emergency_action_code,
1987 phone_number,
1988 company_name,
1989 }
1990 }
1991 }
1992 #[doc = "*"]
1993 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `dangerousSituation` "]
1994 #[doc = " * "]
1995 #[doc = " * The value shall be set to:"]
1996 #[doc = " * - 0 - `unavailable` - in case information on the type of dangerous situation is unavailable,"]
1997 #[doc = " * - 1 - `emergencyElectronicBrakeEngaged` - in case emergency electronic brake is engaged,"]
1998 #[doc = " * - 2 - `preCrashSystemEngaged` - in case pre-crash system is engaged,"]
1999 #[doc = " * - 3 - `espEngaged` - in case Electronic Stability Program (ESP) system is engaged,"]
2000 #[doc = " * - 4 - `absEngaged` - in case Anti-lock Braking System (ABS) is engaged,"]
2001 #[doc = " * - 5 - `aebEngaged` - in case Autonomous Emergency Braking (AEB) system is engaged,"]
2002 #[doc = " * - 6 - `brakeWarningEngaged` - in case brake warning is engaged,"]
2003 #[doc = " * - 7 - `collisionRiskWarningEngaged` - in case collision risk warning is engaged,"]
2004 #[doc = " * - 8-255 - reserved for future usage."]
2005 #[doc = " *"]
2006 #[doc = " * @category: Traffic information"]
2007 #[doc = " * @revision: V1.3.1"]
2008 #[doc = " "]
2009 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2010 #[rasn(delegate, value("0..=255"))]
2011 pub struct DangerousSituationSubCauseCode(pub u8);
2012 #[doc = "*"]
2013 #[doc = " * This DE represents an offset altitude with regards to a defined altitude value."]
2014 #[doc = " * It may be used to describe a geographical point with regards to a specific reference geographical position."]
2015 #[doc = " *"]
2016 #[doc = " * The value shall be set to:"]
2017 #[doc = " * - `-12 700` for values equal to or lower than -127 metres,"]
2018 #[doc = " * - `n` (`n > -12 700` and `n <= 0`) for altitude offset n x 0,01 metre below the reference position,"]
2019 #[doc = " * - `0` for no altitudinal offset,"]
2020 #[doc = " * - `n` (`n > 0` and `n < 12799`) for altitude offset n x 0,01 metre above the reference position,"]
2021 #[doc = " * - `12 799` for values equal to or greater than 127,99 metres,"]
2022 #[doc = " * - `12 800` when the information is unavailable."]
2023 #[doc = " *"]
2024 #[doc = " * @unit: 0,01 metre"]
2025 #[doc = " * @category: GeoReference information"]
2026 #[doc = " * @revision: editorial update in V2.1.1"]
2027 #[doc = " "]
2028 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2029 #[rasn(delegate, value("-12700..=12800"))]
2030 pub struct DeltaAltitude(pub i16);
2031 #[doc = "*"]
2032 #[doc = " * This DE represents an offset latitude with regards to a defined latitude value."]
2033 #[doc = " * It may be used to describe a geographical point with regards to a specific reference geographical position."]
2034 #[doc = " *"]
2035 #[doc = " * The value shall be set to:"]
2036 #[doc = " * - `n` (`n >= -131 071` and `n < 0`) for offset n x 10^-7 degree towards the south from the reference position,"]
2037 #[doc = " * - `0` for no latitudinal offset,"]
2038 #[doc = " * - `n` (`n > 0` and `n < 131 072`) for offset n x 10^-7 degree towards the north from the reference position,"]
2039 #[doc = " * - `131 072` when the information is unavailable."]
2040 #[doc = " *"]
2041 #[doc = " * @unit: 10^-7 degree"]
2042 #[doc = " * @category: GeoReference information"]
2043 #[doc = " * @revision: editorial update in V2.1.1"]
2044 #[doc = " "]
2045 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2046 #[rasn(delegate, value("-131071..=131072"))]
2047 pub struct DeltaLatitude(pub i32);
2048 #[doc = "*"]
2049 #[doc = " * This DE represents an offset longitude with regards to a defined longitude value."]
2050 #[doc = " * It may be used to describe a geographical point with regards to a specific reference geographical position."]
2051 #[doc = " *"]
2052 #[doc = " * The value shall be set to:"]
2053 #[doc = " * - `n` (`n >= -131 071` and `n < 0`) for offset n x 10^-7 degree towards the west from the reference position,"]
2054 #[doc = " * - `0` for no longitudinal offset,"]
2055 #[doc = " * - `n` (`n > 0` and `n < 131 072`) for offset n x 10^-7 degree towards the east from the reference position, "]
2056 #[doc = " * - `131 072` when the information is unavailable."]
2057 #[doc = " *"]
2058 #[doc = " * @unit: 10^-7 degree"]
2059 #[doc = " * @category: GeoReference information"]
2060 #[doc = " * @revision: editorial update in V2.1.1"]
2061 #[doc = " "]
2062 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2063 #[rasn(delegate, value("-131071..=131072"))]
2064 pub struct DeltaLongitude(pub i32);
2065 #[doc = "*"]
2066 #[doc = " * This DF defines a geographical point position as a 3 dimensional offset position to a geographical reference point."]
2067 #[doc = " *"]
2068 #[doc = " * It shall include the following components: "]
2069 #[doc = " *"]
2070 #[doc = " * @field deltaLatitude: A delta latitude offset with regards to the latitude value of the reference position."]
2071 #[doc = " *"]
2072 #[doc = " * @field deltaLongitude: A delta longitude offset with regards to the longitude value of the reference position."]
2073 #[doc = " *"]
2074 #[doc = " * @field deltaAltitude: A delta altitude offset with regards to the altitude value of the reference position."]
2075 #[doc = " *"]
2076 #[doc = " * @category: GeoReference information"]
2077 #[doc = " * @revision: V1.3.1"]
2078 #[doc = " "]
2079 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2080 #[rasn(automatic_tags)]
2081 pub struct DeltaReferencePosition {
2082 #[rasn(identifier = "deltaLatitude")]
2083 pub delta_latitude: DeltaLatitude,
2084 #[rasn(identifier = "deltaLongitude")]
2085 pub delta_longitude: DeltaLongitude,
2086 #[rasn(identifier = "deltaAltitude")]
2087 pub delta_altitude: DeltaAltitude,
2088 }
2089 impl DeltaReferencePosition {
2090 pub fn new(
2091 delta_latitude: DeltaLatitude,
2092 delta_longitude: DeltaLongitude,
2093 delta_altitude: DeltaAltitude,
2094 ) -> Self {
2095 Self {
2096 delta_latitude,
2097 delta_longitude,
2098 delta_altitude,
2099 }
2100 }
2101 }
2102 #[doc = "*"]
2103 #[doc = " * This DE represents a difference in time with respect to a reference time."]
2104 #[doc = " *"]
2105 #[doc = " * The value shall be set to:"]
2106 #[doc = " * - `n` (`n > 0` and `n < 10001`) to indicate a time value equal to or less than n x 0,001 s, and greater than (n-1) x 0,001 s,"]
2107 #[doc = " *"]
2108 #[doc = " * Example: a time interval between two consecutive message transmissions."]
2109 #[doc = " * "]
2110 #[doc = " * @unit: 0,001 s"]
2111 #[doc = " * @category: Basic information"]
2112 #[doc = " * @revision: Created in V2.1.1 from the DE TransmissionInterval in [2]"]
2113 #[doc = " "]
2114 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2115 #[rasn(delegate, value("1..=10000"))]
2116 pub struct DeltaTimeMilliSecondPositive(pub u16);
2117 #[doc = "* "]
2118 #[doc = " * This DE represents a signed difference in time with respect to a reference time."]
2119 #[doc = " *"]
2120 #[doc = " * The value shall be set to:"]
2121 #[doc = " * - `-2048` for time values equal to or less than -2,048 s,"]
2122 #[doc = " * - `n` (`n > -2048` and `n < 2047`) to indicate a time value equal to or less than n x 0,001 s, and greater than (n-1) x 0,001 s,"]
2123 #[doc = " * - `2047` for time values greater than 2,046 s"]
2124 #[doc = " *"]
2125 #[doc = " * @unit: 0,001 s"]
2126 #[doc = " * @category: Basic information"]
2127 #[doc = " * @revision: Created in V2.1.1"]
2128 #[doc = ""]
2129 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2130 #[rasn(delegate, value("-2048..=2047"))]
2131 pub struct DeltaTimeMilliSecondSigned(pub i16);
2132 #[doc = "* "]
2133 #[doc = " * This DE represents a difference in time with respect to a reference time."]
2134 #[doc = " * It can be interpreted as the first 8 bits of a GenerationDeltaTime. To convert it to a @ref GenerationDeltaTime, "]
2135 #[doc = " * multiply by 256 (i.e. append a `00` byte)"]
2136 #[doc = " *"]
2137 #[doc = " * @unit: 256 * 0,001 s "]
2138 #[doc = " * @category: Basic information"]
2139 #[doc = " * @revision: Created in V2.1.1"]
2140 #[doc = " "]
2141 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2142 #[rasn(delegate, value("1..=255"))]
2143 pub struct DeltaTimeQuarterSecond(pub u8);
2144 #[doc = "* "]
2145 #[doc = " * This DE represents a difference in time with respect to a reference time."]
2146 #[doc = " *"]
2147 #[doc = " * The value shall be set to:"]
2148 #[doc = " * - `-0` for a difference in time of 0 seconds. "]
2149 #[doc = " * - `n` (`n > 0` and `n <= 86400`) to indicate a time value equal to or less than n x 1 s, and greater than (n-1) x 1 s,"]
2150 #[doc = " *"]
2151 #[doc = " * @unit: 1 s"]
2152 #[doc = " * @category: Basic information"]
2153 #[doc = " * @revision: Created in V2.1.1 from ValidityDuration"]
2154 #[doc = ""]
2155 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2156 #[rasn(delegate, value("0..=86400"))]
2157 pub struct DeltaTimeSecond(pub u32);
2158 #[doc = "* "]
2159 #[doc = " * This DE represents a difference in time with respect to a reference time."]
2160 #[doc = " *"]
2161 #[doc = " * The value shall be set to:"]
2162 #[doc = " * - `0` for a difference in time of 0 seconds. "]
2163 #[doc = " * - `n` (`n > 0` and `n < 128`) to indicate a time value equal to or less than n x 0,1 s, and greater than (n-1) x 0,1 s,"]
2164 #[doc = " *"]
2165 #[doc = " * @unit: 0,1 s"]
2166 #[doc = " * @category: Basic information"]
2167 #[doc = " * @revision: Created in V2.1.1"]
2168 #[doc = ""]
2169 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2170 #[rasn(delegate, value("0..=127"))]
2171 pub struct DeltaTimeTenthOfSecond(pub u8);
2172 #[doc = "*"]
2173 #[doc = " * This DF represents a portion of digital map. It shall contain a list of waypoints @ref ReferencePosition."]
2174 #[doc = " * "]
2175 #[doc = " * @category: GeoReference information"]
2176 #[doc = " * @revision: V1.3.1"]
2177 #[doc = " "]
2178 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2179 #[rasn(delegate, size("1..=256"))]
2180 pub struct DigitalMap(pub SequenceOf<ReferencePosition>);
2181 #[doc = "*"]
2182 #[doc = " * This DE indicates a direction with respect to a defined reference direction."]
2183 #[doc = " * Example: a reference direction may be implicitly defined by the definition of a geographical zone."]
2184 #[doc = " *"]
2185 #[doc = " * The value shall be set to:"]
2186 #[doc = " * - 0 - `sameDirection` - to indicate the same direction as the reference direction,"]
2187 #[doc = " * - 1 - `oppositeDirection` - to indicate opposite direction as the reference direction,"]
2188 #[doc = " * - 2 - `bothDirections` - to indicate both directions, i.e. the same and the opposite direction,"]
2189 #[doc = " * - 3 - `unavailable` - to indicate that the information is unavailable."]
2190 #[doc = " *"]
2191 #[doc = " * @category: GeoReference information"]
2192 #[doc = " * @revision: Created in V2.1.1"]
2193 #[doc = " "]
2194 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2195 #[rasn(delegate, value("0..=3"))]
2196 pub struct Direction(pub u8);
2197 #[doc = "*"]
2198 #[doc = " * This DE indicates in which direction something is moving."]
2199 #[doc = " *"]
2200 #[doc = " * The value shall be set to:"]
2201 #[doc = " * - 0 - `forward` - to indicate it is moving forward,"]
2202 #[doc = " * - 1 - `backwards` - to indicate it is moving backwards,"]
2203 #[doc = " * - 2 - `unavailable` - to indicate that the information is unavailable."]
2204 #[doc = " *"]
2205 #[doc = " * @category: Kinematic information"]
2206 #[doc = " * @revision: editorial update in V2.1.1"]
2207 #[doc = " "]
2208 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2209 #[rasn(enumerated)]
2210 pub enum DriveDirection {
2211 forward = 0,
2212 backward = 1,
2213 unavailable = 2,
2214 }
2215 #[doc = "*"]
2216 #[doc = " * This DE indicates whether a driving lane is open to traffic."]
2217 #[doc = " * "]
2218 #[doc = " * A lane is counted from inside border of the road excluding the hard shoulder. The size of the bit string shall"]
2219 #[doc = " * correspond to the total number of the driving lanes in the carriageway."]
2220 #[doc = " * "]
2221 #[doc = " * The numbering is matched to @ref LanePosition."]
2222 #[doc = " * The bit `0` is used to indicate the innermost lane, bit `1` is used to indicate the second lane from inside border."]
2223 #[doc = " * "]
2224 #[doc = " * If a lane is closed to traffic, the corresponding bit shall be set to `1`. Otherwise, it shall be set to `0`."]
2225 #[doc = " * "]
2226 #[doc = " * @note: hard shoulder status is not provided by this DE but in @ref HardShoulderStatus."]
2227 #[doc = " * "]
2228 #[doc = " * @category: Traffic information"]
2229 #[doc = " * @revision: V1.3.1"]
2230 #[doc = " "]
2231 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2232 #[rasn(delegate, size("1..=13"))]
2233 pub struct DrivingLaneStatus(pub BitString);
2234 #[doc = "* "]
2235 #[doc = " * "]
2236 #[doc = " * This DF represents the shape of an elliptical area or right elliptical cylinder that is centred on the shape's reference point. "]
2237 #[doc = " *"]
2238 #[doc = " * It shall include the following components: "]
2239 #[doc = " * "]
2240 #[doc = " * @field shapeReferencePoint: optional reference point which represents the centre of the ellipse, relative to an externally specified reference position. "]
2241 #[doc = " * If this component is absent, the externally specified reference position represents the shape's reference point. "]
2242 #[doc = " *"]
2243 #[doc = " * @field semiMajorAxisLength: half length of the major axis of the ellipse."]
2244 #[doc = " * "]
2245 #[doc = " * @field semiMinorAxisLength: half length of the minor axis of the ellipse."]
2246 #[doc = " *"]
2247 #[doc = " * @field orientation: the optional orientation of the major axis of the ellipse in the WGS84 coordinate system."]
2248 #[doc = " * "]
2249 #[doc = " * @field height: the optional height, present if the shape is a right elliptical cylinder extending in the positive z-axis."]
2250 #[doc = " *"]
2251 #[doc = " * @category: GeoReference information"]
2252 #[doc = " * @revision: Created in V2.1.1"]
2253 #[doc = ""]
2254 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2255 #[rasn(automatic_tags)]
2256 pub struct EllipticalShape {
2257 #[rasn(identifier = "shapeReferencePoint")]
2258 pub shape_reference_point: Option<CartesianPosition3d>,
2259 #[rasn(identifier = "semiMajorAxisLength")]
2260 pub semi_major_axis_length: StandardLength12b,
2261 #[rasn(identifier = "semiMinorAxisLength")]
2262 pub semi_minor_axis_length: StandardLength12b,
2263 pub orientation: Option<Wgs84AngleValue>,
2264 pub height: Option<StandardLength12b>,
2265 }
2266 impl EllipticalShape {
2267 pub fn new(
2268 shape_reference_point: Option<CartesianPosition3d>,
2269 semi_major_axis_length: StandardLength12b,
2270 semi_minor_axis_length: StandardLength12b,
2271 orientation: Option<Wgs84AngleValue>,
2272 height: Option<StandardLength12b>,
2273 ) -> Self {
2274 Self {
2275 shape_reference_point,
2276 semi_major_axis_length,
2277 semi_minor_axis_length,
2278 orientation,
2279 height,
2280 }
2281 }
2282 }
2283 #[doc = "*"]
2284 #[doc = " * This DE indicates whether a vehicle (e.g. public transport vehicle, truck) is under the embarkation process."]
2285 #[doc = " * If that is the case, the value is *TRUE*, otherwise *FALSE*."]
2286 #[doc = " *"]
2287 #[doc = " * @category: Vehicle information"]
2288 #[doc = " * @revision: editorial update in V2.1.1"]
2289 #[doc = " "]
2290 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2291 #[rasn(delegate)]
2292 pub struct EmbarkationStatus(pub bool);
2293 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2294 #[rasn(delegate)]
2295 pub struct EmergencyPriority(pub FixedBitString<2usize>);
2296 #[doc = "*"]
2297 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode \"emergencyVehicleApproaching\". "]
2298 #[doc = " * "]
2299 #[doc = " * The value shall be set to:"]
2300 #[doc = " * - 0 - `unavailable` - in case further detailed information on the emergency vehicle approaching event "]
2301 #[doc = " * is unavailable,"]
2302 #[doc = " * - 1 - `emergencyVehicleApproaching` - in case an operating emergency vehicle is approaching,"]
2303 #[doc = " * - 2 - `prioritizedVehicleApproaching` - in case a prioritized vehicle is approaching,"]
2304 #[doc = " * - 3-255 - reserved for future usage."]
2305 #[doc = " *"]
2306 #[doc = " * @category: Traffic information"]
2307 #[doc = " * @revision: V1.3.1"]
2308 #[doc = " "]
2309 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2310 #[rasn(delegate, value("0..=255"))]
2311 pub struct EmergencyVehicleApproachingSubCauseCode(pub u8);
2312 #[doc = "*"]
2313 #[doc = " * This DE indicated the type of energy being used and stored in vehicle."]
2314 #[doc = " *"]
2315 #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
2316 #[doc = " * - 0 - `hydrogenStorage` - when hydrogen is being used and stored in vehicle,"]
2317 #[doc = " * - 1 - `electricEnergyStorage` - when electric energy is being used and stored in vehicle,"]
2318 #[doc = " * - 2 - `liquidPropaneGas` - when liquid Propane Gas (LPG) is being used and stored in vehicle, "]
2319 #[doc = " * - 3 - `compressedNaturalGas ` - when compressedNaturalGas (CNG) is being used and stored in vehicle,"]
2320 #[doc = " * - 4 - `diesel` - when diesel is being used and stored in vehicle,"]
2321 #[doc = " * - 5 - `gasoline` - when gasoline is being used and stored in vehicle,"]
2322 #[doc = " * - 6 - `ammonia` - when ammonia is being used and stored in vehicle."]
2323 #[doc = " *"]
2324 #[doc = " * - Otherwise, the corresponding bit shall be set to `0`."]
2325 #[doc = " *"]
2326 #[doc = " * @category: Vehicle information"]
2327 #[doc = " * @revision: editorial revision in V2.1.1 "]
2328 #[doc = " "]
2329 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2330 #[rasn(delegate)]
2331 pub struct EnergyStorageType(pub FixedBitString<7usize>);
2332 #[doc = "* "]
2333 #[doc = " * "]
2334 #[doc = " * This DF represents a vehicle category according to the UNECE/TRANS/WP.29/78/Rev.4 [16]."]
2335 #[doc = " * The following options are available:"]
2336 #[doc = " * "]
2337 #[doc = " * @field euVehicleCategoryL: indicates a vehicle in the L category."]
2338 #[doc = " *"]
2339 #[doc = " * @field euVehicleCategoryM: indicates a vehicle in the M category."]
2340 #[doc = " *"]
2341 #[doc = " * @field euVehicleCategoryN: indicates a vehicle in the N category."]
2342 #[doc = " *"]
2343 #[doc = " * @field euVehicleCategoryO: indicates a vehicle in the O category."]
2344 #[doc = " *"]
2345 #[doc = " * @field euVehicleCategoryT: indicates a vehicle in the T category."]
2346 #[doc = " *"]
2347 #[doc = " * @field euVehicleCategoryG: indicates a vehicle in the G category."]
2348 #[doc = " * "]
2349 #[doc = " * @category: Vehicle information"]
2350 #[doc = " * @revision: Created in V2.1.1"]
2351 #[doc = ""]
2352 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2353 #[rasn(choice, automatic_tags)]
2354 pub enum EuVehicleCategoryCode {
2355 euVehicleCategoryL(EuVehicleCategoryL),
2356 euVehicleCategoryM(EuVehicleCategoryM),
2357 euVehicleCategoryN(EuVehicleCategoryN),
2358 euVehicleCategoryO(EuVehicleCategoryO),
2359 euVehicleCategoryT(()),
2360 euVehicleCategoryG(()),
2361 }
2362 #[doc = "*"]
2363 #[doc = " * This DE represents one of the specific categories in the L category: L1, L2, L3, L4, L5, L6, or L7 according to UNECE/TRANS/WP.29/78/Rev.4 [16]."]
2364 #[doc = " *"]
2365 #[doc = " *"]
2366 #[doc = " * @category: Vehicle information"]
2367 #[doc = " * @revision: V2.1.1"]
2368 #[doc = " "]
2369 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2370 #[rasn(enumerated)]
2371 pub enum EuVehicleCategoryL {
2372 l1 = 0,
2373 l2 = 1,
2374 l3 = 2,
2375 l4 = 3,
2376 l5 = 4,
2377 l6 = 5,
2378 l7 = 6,
2379 }
2380 #[doc = "*"]
2381 #[doc = " * This DE represents one of the specific categories in the M category: M1, M2, or M3 according to UNECE/TRANS/WP.29/78/Rev.4 [16]."]
2382 #[doc = " *"]
2383 #[doc = " *"]
2384 #[doc = " * @category: Vehicle information"]
2385 #[doc = " * @revision: V2.1.1"]
2386 #[doc = " "]
2387 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2388 #[rasn(enumerated)]
2389 pub enum EuVehicleCategoryM {
2390 m1 = 0,
2391 m2 = 1,
2392 m3 = 2,
2393 }
2394 #[doc = "*"]
2395 #[doc = " * This DE represents one of the specific categories in the N category: N1, N2, or N3 according to UNECE/TRANS/WP.29/78/Rev.4 [16]."]
2396 #[doc = " *"]
2397 #[doc = " *"]
2398 #[doc = " * @category: Vehicle information"]
2399 #[doc = " * @revision: V2.1.1"]
2400 #[doc = " "]
2401 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2402 #[rasn(enumerated)]
2403 pub enum EuVehicleCategoryN {
2404 n1 = 0,
2405 n2 = 1,
2406 n3 = 2,
2407 }
2408 #[doc = "*"]
2409 #[doc = " * This DE represents one of the specific categories in the O category: O1, O2, O3 or O4 according to UNECE/TRANS/WP.29/78/Rev.4 [16]."]
2410 #[doc = " *"]
2411 #[doc = " *"]
2412 #[doc = " * @category: Vehicle information"]
2413 #[doc = " * @revision: V2.1.1"]
2414 #[doc = " "]
2415 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2416 #[rasn(enumerated)]
2417 pub enum EuVehicleCategoryO {
2418 o1 = 0,
2419 o2 = 1,
2420 o3 = 2,
2421 o4 = 3,
2422 }
2423 #[doc = "* "]
2424 #[doc = " * This DF represents the Euler angles which describe the orientation of an object bounding box in a Cartesian coordinate system with an associated confidence level for each angle."]
2425 #[doc = " *"]
2426 #[doc = " * It shall include the following components: "]
2427 #[doc = " *"]
2428 #[doc = " * @field zAngle: z-angle of object bounding box at the time of measurement, with the associated confidence."]
2429 #[doc = " * The angle is measured with positive values considering the object orientation turning around the z-axis using the right-hand rule, starting from the x-axis. "]
2430 #[doc = " * This extrinsic rotation shall be applied around the centre point of the object bounding box before all other rotations."]
2431 #[doc = " *"]
2432 #[doc = " * @field yAngle: optional y-angle of object bounding box at the time of measurement, with the associated confidence."]
2433 #[doc = " * The angle is measured with positive values considering the object orientation turning around the y-axis using the right-hand rule, starting from the z-axis. "]
2434 #[doc = " * This extrinsic rotation shall be applied around the centre point of the object bounding box after the rotation by zAngle and before the rotation by xAngle."]
2435 #[doc = " *"]
2436 #[doc = " * @field xAngle: optional x-angle of object bounding box at the time of measurement, with the associated confidence."]
2437 #[doc = " * The angle is measured with positive values considering the object orientation turning around the x-axis using the right-hand rule, starting from the z-axis. "]
2438 #[doc = " * This extrinsic rotation shall be applied around the centre point of the object bounding box after all other rotations."]
2439 #[doc = " * "]
2440 #[doc = " * @category: Basic information"]
2441 #[doc = " * @revision: Created in V2.1.1"]
2442 #[doc = ""]
2443 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2444 #[rasn(automatic_tags)]
2445 pub struct EulerAnglesWithConfidence {
2446 #[rasn(identifier = "zAngle")]
2447 pub z_angle: CartesianAngle,
2448 #[rasn(identifier = "yAngle")]
2449 pub y_angle: Option<CartesianAngle>,
2450 #[rasn(identifier = "xAngle")]
2451 pub x_angle: Option<CartesianAngle>,
2452 }
2453 impl EulerAnglesWithConfidence {
2454 pub fn new(
2455 z_angle: CartesianAngle,
2456 y_angle: Option<CartesianAngle>,
2457 x_angle: Option<CartesianAngle>,
2458 ) -> Self {
2459 Self {
2460 z_angle,
2461 y_angle,
2462 x_angle,
2463 }
2464 }
2465 }
2466 #[doc = "*"]
2467 #[doc = " * The DF shall contain a list of @ref EventPoint. "]
2468 #[doc = " *"]
2469 #[doc = " * The eventPosition of each @ref EventPoint is defined with respect to the previous @ref EventPoint in the list. "]
2470 #[doc = " * Except for the first @ref EventPoint which is defined with respect to a position outside of the context of this DF."]
2471 #[doc = " *"]
2472 #[doc = " * @category: GeoReference information, Traffic information"]
2473 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref EventZone instead. "]
2474 #[doc = " * @revision: Generalized the semantics in V2.1.1"]
2475 #[doc = " "]
2476 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2477 #[rasn(delegate, size("1..=23"))]
2478 pub struct EventHistory(pub SequenceOf<EventPoint>);
2479 #[doc = "*"]
2480 #[doc = " * This DF provides information related to an event at a defined position."]
2481 #[doc = " *"]
2482 #[doc = " * It shall include the following components: "]
2483 #[doc = " * "]
2484 #[doc = " * @field eventPosition: offset position of a detected event point to a defined position. "]
2485 #[doc = " * "]
2486 #[doc = " * @field eventDeltaTime: optional time travelled by the detecting ITS-S since the previous detected event point."]
2487 #[doc = " * "]
2488 #[doc = " * @field informationQuality: Information quality of the detection for this event point."]
2489 #[doc = " * "]
2490 #[doc = " * @category: GeoReference information, Traffic information"]
2491 #[doc = " * @revision: generalized the semantics in V2.1.1"]
2492 #[doc = " "]
2493 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2494 #[rasn(automatic_tags)]
2495 pub struct EventPoint {
2496 #[rasn(identifier = "eventPosition")]
2497 pub event_position: DeltaReferencePosition,
2498 #[rasn(identifier = "eventDeltaTime")]
2499 pub event_delta_time: Option<PathDeltaTime>,
2500 #[rasn(identifier = "informationQuality")]
2501 pub information_quality: InformationQuality,
2502 }
2503 impl EventPoint {
2504 pub fn new(
2505 event_position: DeltaReferencePosition,
2506 event_delta_time: Option<PathDeltaTime>,
2507 information_quality: InformationQuality,
2508 ) -> Self {
2509 Self {
2510 event_position,
2511 event_delta_time,
2512 information_quality,
2513 }
2514 }
2515 }
2516 #[doc = "*"]
2517 #[doc = " * The DF shall contain a list of @ref EventPoint, where all @ref EventPoint either contain the COMPONENT eventDeltaTime "]
2518 #[doc = " * or do not contain the COMPONENT eventDeltaTime. "]
2519 #[doc = " *"]
2520 #[doc = " * The eventPosition of each @ref EventPoint is defined with respect to the previous @ref EventPoint in the list. "]
2521 #[doc = " * Except for the first @ref EventPoint which is defined with respect to a position outside of the context of this DF."]
2522 #[doc = " *"]
2523 #[doc = " * @category: GeoReference information, Traffic information"]
2524 #[doc = " * @revision: created in V2.1.1 based on EventHistory"]
2525 #[doc = " "]
2526 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2527 #[rasn(delegate)]
2528 pub struct EventZone(pub EventHistory);
2529 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2530 #[rasn(choice)]
2531 pub enum Ext1 {
2532 #[rasn(value("128..=16511"), tag(context, 0))]
2533 content(u16),
2534 #[rasn(tag(context, 1))]
2535 extension(Ext2),
2536 }
2537 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2538 #[rasn(choice)]
2539 pub enum Ext2 {
2540 #[rasn(value("16512..=2113663"), tag(context, 0))]
2541 content(u32),
2542 #[rasn(tag(context, 1))]
2543 extension(Ext3),
2544 }
2545 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2546 #[rasn(delegate, value("2113664..=270549119", extensible))]
2547 pub struct Ext3(pub Integer);
2548 #[doc = "*"]
2549 #[doc = " * This DE describes the status of the exterior light switches of a vehicle incl. VRU vehicles."]
2550 #[doc = " *"]
2551 #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
2552 #[doc = " * - 0 - `lowBeamHeadlightsOn` - when the low beam head light switch is on,"]
2553 #[doc = " * - 1 - `highBeamHeadlightsOn` - when the high beam head light switch is on,"]
2554 #[doc = " * - 2 - `leftTurnSignalOn` - when the left turnSignal switch is on,"]
2555 #[doc = " * - 3 - `rightTurnSignalOn` - when the right turn signal switch is on,"]
2556 #[doc = " * - 4 - `daytimeRunningLightsOn` - when the daytime running light switch is on,"]
2557 #[doc = " * - 5 - `reverseLightOn` - when the reverse light switch is on,"]
2558 #[doc = " * - 6 - `fogLightOn` - when the tail fog light switch is on,"]
2559 #[doc = " * - 7 - `parkingLightsOn` - when the parking light switch is on."]
2560 #[doc = " * "]
2561 #[doc = " * @note: The value of each bit indicates the state of the switch, which commands the corresponding light."]
2562 #[doc = " * The bit corresponding to a specific light is set to `1`, when the corresponding switch is turned on,"]
2563 #[doc = " * either manually by the driver or automatically by a vehicle system. The bit value does not indicate"]
2564 #[doc = " * if the corresponding lamps are alight or not."]
2565 #[doc = " * "]
2566 #[doc = " * If a vehicle is not equipped with a certain light or if the light switch status information is not available,"]
2567 #[doc = " * the corresponding bit shall be set to `0`."]
2568 #[doc = " * "]
2569 #[doc = " * As the bit value indicates only the state of the switch, the turn signal and hazard signal bit values shall not"]
2570 #[doc = " * alternate with the blinking interval."]
2571 #[doc = " * "]
2572 #[doc = " * For hazard indicator, the `leftTurnSignalOn (2)` and `rightTurnSignalOn (3)` shall be both set to `1`."]
2573 #[doc = " * "]
2574 #[doc = " * @category Vehicle information"]
2575 #[doc = " * @revision: Description revised in V2.1.1"]
2576 #[doc = " "]
2577 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2578 #[rasn(delegate)]
2579 pub struct ExteriorLights(pub FixedBitString<8usize>);
2580 #[doc = "*"]
2581 #[doc = " * This DF indicates a transversal position in relation to the different lanes of the road. "]
2582 #[doc = " * It is an extension of DE_LanePosition to cover locations (sidewalks, bicycle paths), where Vehicle ITS-S would normally not be present. "]
2583 #[doc = " *"]
2584 #[doc = " * The following options are available:"]
2585 #[doc = " *"]
2586 #[doc = " * @field trafficLanePosition: a position on a traffic lane. "]
2587 #[doc = " * "]
2588 #[doc = " * @field nonTrafficLanePosition: a position on a lane which is not a traffic lane."]
2589 #[doc = " * "]
2590 #[doc = " * @field trafficIslandPosition: a position on a traffic island"]
2591 #[doc = " * "]
2592 #[doc = " * @field mapPosition: a position on a lane identified in a MAPEM."]
2593 #[doc = " * "]
2594 #[doc = " * @category: Road Topology information"]
2595 #[doc = " * @revision: created in V2.1.1"]
2596 #[doc = " "]
2597 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2598 #[rasn(choice, automatic_tags)]
2599 #[non_exhaustive]
2600 pub enum GeneralizedLanePosition {
2601 trafficLanePosition(LanePosition),
2602 nonTrafficLanePosition(LanePositionAndType),
2603 trafficIslandPosition(TrafficIslandPosition),
2604 mapPosition(MapPosition),
2605 }
2606 #[doc = "*"]
2607 #[doc = " * This DE represents a timestamp based on TimestampIts modulo 65 536."]
2608 #[doc = " * This means that generationDeltaTime = TimestampIts mod 65 536."]
2609 #[doc = " *"]
2610 #[doc = " * @category: Basic information"]
2611 #[doc = " * @revision: Created in V2.1.1 based on ETSI TS 103 900 [1]"]
2612 #[doc = ""]
2613 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2614 #[rasn(delegate, value("0..=65535"))]
2615 pub struct GenerationDeltaTime(pub u16);
2616 #[doc = "*"]
2617 #[doc = " * This DE indicates the current status of a hard shoulder: whether it is available for special usage"]
2618 #[doc = " * (e.g. for stopping or for driving) or closed for all vehicles."]
2619 #[doc = " * "]
2620 #[doc = " * The value shall be set to:"]
2621 #[doc = " * - 0 - `availableForStopping` - if the hard shoulder is available for stopping in e.g. emergency situations,"]
2622 #[doc = " * - 1 - `closed` - if the hard shoulder is closed and cannot be occupied in any case,"]
2623 #[doc = " * - 2 - `availableForDriving` - if the hard shoulder is available for regular driving."]
2624 #[doc = " *"]
2625 #[doc = " * @category: Traffic information"]
2626 #[doc = " * @revision: Description revised in V2.1.1"]
2627 #[doc = " "]
2628 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2629 #[rasn(enumerated)]
2630 pub enum HardShoulderStatus {
2631 availableForStopping = 0,
2632 closed = 1,
2633 availableForDriving = 2,
2634 }
2635 #[doc = "*"]
2636 #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-AnimalOnTheRoad`."]
2637 #[doc = " * "]
2638 #[doc = " * The value shall be set to:"]
2639 #[doc = " * - 0 - `unavailable` - in case further detailed information on the animal on the road event is unavailable,"]
2640 #[doc = " * - 1 - `wildAnimals` - in case wild animals are detected on the road,"]
2641 #[doc = " * - 2 - `herdOfAnimals`- in case herd of animals are detected on the road,"]
2642 #[doc = " * - 3 - `smallAnimals` - in case small size animals are detected on the road,"]
2643 #[doc = " * - 4 - `largeAnimals` - in case large size animals are detected on the road."]
2644 #[doc = " * - 5-255 - are reserved for future usage."]
2645 #[doc = " *"]
2646 #[doc = " * @category: Traffic information"]
2647 #[doc = " * @revision: V1.3.1"]
2648 #[doc = " "]
2649 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2650 #[rasn(
2651 delegate,
2652 identifier = "HazardousLocation-AnimalOnTheRoadSubCauseCode",
2653 value("0..=255")
2654 )]
2655 pub struct HazardousLocationAnimalOnTheRoadSubCauseCode(pub u8);
2656 #[doc = "*"]
2657 #[doc = " * This DE represents the sub cause code of the @ref CauseCode `hazardousLocation-DangerousCurve`."]
2658 #[doc = " * "]
2659 #[doc = " * The value shall be set to:"]
2660 #[doc = " * - 0 - `unavailable` - in case further detailed information on the dangerous curve is unavailable,"]
2661 #[doc = " * - 1 - `dangerousLeftTurnCurve` - in case the dangerous curve is a left turn curve,"]
2662 #[doc = " * - 2 - `dangerousRightTurnCurve` - in case the dangerous curve is a right turn curve,"]
2663 #[doc = " * - 3 - `multipleCurvesStartingWithUnknownTurningDirection` - in case of multiple curves for which the starting curve turning direction is not known,"]
2664 #[doc = " * - 4 - `multipleCurvesStartingWithLeftTurn` - in case of multiple curves starting with a left turn curve,"]
2665 #[doc = " * - 5 - `multipleCurvesStartingWithRightTurn` - in case of multiple curves starting with a right turn curve."]
2666 #[doc = " * - 6-255 - are reserved for future usage."]
2667 #[doc = " * "]
2668 #[doc = " * The definition of whether a curve is dangerous may vary according to region and according to vehicle types/mass"]
2669 #[doc = " * and vehicle speed driving on the curve. This definition is out of scope of the present document."]
2670 #[doc = " *"]
2671 #[doc = " * @category: Traffic information"]
2672 #[doc = " * @revision: V1.3.1"]
2673 #[doc = " "]
2674 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2675 #[rasn(
2676 delegate,
2677 identifier = "HazardousLocation-DangerousCurveSubCauseCode",
2678 value("0..=255")
2679 )]
2680 pub struct HazardousLocationDangerousCurveSubCauseCode(pub u8);
2681 #[doc = "*"]
2682 #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-ObstacleOnTheRoad`. "]
2683 #[doc = " * "]
2684 #[doc = " * The value shall be set to:"]
2685 #[doc = " * - 0 - `unavailable` - in case further detailed information on the detected obstacle is unavailable,"]
2686 #[doc = " * - 1 - `shedLoad` - in case detected obstacle is large amount of obstacles (shedload),"]
2687 #[doc = " * - 2 - `partsOfVehicles`- in case detected obstacles are parts of vehicles,"]
2688 #[doc = " * - 3 - `partsOfTyres` - in case the detected obstacles are parts of tyres,"]
2689 #[doc = " * - 4 - `bigObjects` - in case the detected obstacles are big objects,"]
2690 #[doc = " * - 5 - `fallenTrees` - in case the detected obstacles are fallen trees,"]
2691 #[doc = " * - 6 - `hubCaps` - in case the detected obstacles are hub caps,"]
2692 #[doc = " * - 7 - `waitingVehicles`- in case the detected obstacles are waiting vehicles."]
2693 #[doc = " * - 8-255 - are reserved for future usage."]
2694 #[doc = " *"]
2695 #[doc = " * @category: Traffic information"]
2696 #[doc = " * @revision: V1.3.1"]
2697 #[doc = " "]
2698 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2699 #[rasn(
2700 delegate,
2701 identifier = "HazardousLocation-ObstacleOnTheRoadSubCauseCode",
2702 value("0..=255")
2703 )]
2704 pub struct HazardousLocationObstacleOnTheRoadSubCauseCode(pub u8);
2705 #[doc = "*"]
2706 #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-SurfaceCondition`. "]
2707 #[doc = " * "]
2708 #[doc = "The value shall be set to:"]
2709 #[doc = " * - 0 - `unavailable` - in case further detailed information on the road surface condition is unavailable,"]
2710 #[doc = " * - 1 - `rockfalls` - in case rock falls are detected on the road surface,"]
2711 #[doc = " * - 2 - `earthquakeDamage`- in case the road surface is damaged by earthquake,"]
2712 #[doc = " * - 3 - `sewerCollapse` - in case of sewer collapse on the road surface,"]
2713 #[doc = " * - 4 - `subsidence` - in case road surface is damaged by subsidence,"]
2714 #[doc = " * - 5 - `snowDrifts` - in case road surface is damaged due to snow drift,"]
2715 #[doc = " * - 6 - `stormDamage` - in case road surface is damaged by strong storm,"]
2716 #[doc = " * - 7 - `burstPipe` - in case road surface is damaged due to pipe burst,"]
2717 #[doc = " * - 8 - `volcanoEruption` - in case road surface is damaged due to volcano eruption,"]
2718 #[doc = " * - 9 - `fallingIce` - in case road surface damage is due to falling ice,"]
2719 #[doc = " * - 10 - `fire` - in case there is fire on or near to the road surface."]
2720 #[doc = " * - 11-255 - are reserved for future usage."]
2721 #[doc = " *"]
2722 #[doc = " * @category: Traffic information"]
2723 #[doc = " * @revision: V1.3.1"]
2724 #[doc = " "]
2725 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2726 #[rasn(
2727 delegate,
2728 identifier = "HazardousLocation-SurfaceConditionSubCauseCode",
2729 value("0..=255")
2730 )]
2731 pub struct HazardousLocationSurfaceConditionSubCauseCode(pub u8);
2732 #[doc = "*"]
2733 #[doc = " * This DF represents the Heading in a WGS84 co-ordinates system."]
2734 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
2735 #[doc = " *"]
2736 #[doc = " * It shall include the following components: "]
2737 #[doc = " * "]
2738 #[doc = " * @field headingValue: the heading value."]
2739 #[doc = " * "]
2740 #[doc = " * @field headingConfidence: the confidence value of the heading value with a predefined confidence level."]
2741 #[doc = " * "]
2742 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84Angle instead. "]
2743 #[doc = " * @category: Kinematic Information"]
2744 #[doc = " * @revision: Description revised in V2.1.1"]
2745 #[doc = " "]
2746 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2747 #[rasn(automatic_tags)]
2748 pub struct Heading {
2749 #[rasn(identifier = "headingValue")]
2750 pub heading_value: HeadingValue,
2751 #[rasn(identifier = "headingConfidence")]
2752 pub heading_confidence: HeadingConfidence,
2753 }
2754 impl Heading {
2755 pub fn new(heading_value: HeadingValue, heading_confidence: HeadingConfidence) -> Self {
2756 Self {
2757 heading_value,
2758 heading_confidence,
2759 }
2760 }
2761 }
2762 #[doc = "*"]
2763 #[doc = " * This DF provides information associated to heading change indicators such as a change of direction."]
2764 #[doc = " *"]
2765 #[doc = " * It shall include the following components: "]
2766 #[doc = " * "]
2767 #[doc = " * @field direction: the direction of heading change value."]
2768 #[doc = " * "]
2769 #[doc = " * @field actionDeltaTime: the period over which a direction change action is performed. "]
2770 #[doc = " * "]
2771 #[doc = " * @category: Kinematic Information"]
2772 #[doc = " * @revision: created in V2.1.1"]
2773 #[doc = " "]
2774 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2775 #[rasn(automatic_tags)]
2776 #[non_exhaustive]
2777 pub struct HeadingChangeIndication {
2778 pub direction: TurningDirection,
2779 #[rasn(identifier = "actionDeltaTime")]
2780 pub action_delta_time: DeltaTimeTenthOfSecond,
2781 }
2782 impl HeadingChangeIndication {
2783 pub fn new(direction: TurningDirection, action_delta_time: DeltaTimeTenthOfSecond) -> Self {
2784 Self {
2785 direction,
2786 action_delta_time,
2787 }
2788 }
2789 }
2790 #[doc = "*"]
2791 #[doc = " * This DE indicates the heading confidence value which represents the estimated absolute accuracy of a heading value with a confidence level of 95 %."]
2792 #[doc = " * "]
2793 #[doc = " * The value shall be set to:"]
2794 #[doc = " * - `n` (`n > 0` and `n < 126`) if the confidence value is equal to or less than n x 0,1 degree and more than (n-1) x 0,1 degree,"]
2795 #[doc = " * - `126` if the confidence value is out of range, i.e. greater than 12,5 degrees,"]
2796 #[doc = " * - `127` if the confidence value information is not available."]
2797 #[doc = " * "]
2798 #[doc = " * @note:\tThe fact that a value is received with confidence value set to `unavailable(127)` can be caused by several reasons,"]
2799 #[doc = " * such as:"]
2800 #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
2801 #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
2802 #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
2803 #[doc = " * In all 3 cases above, the heading value may be valid and used by the application."]
2804 #[doc = " *"]
2805 #[doc = " * @note: If a heading value is received and its confidence value is set to `outOfRange(126)`, it means that the "]
2806 #[doc = " * heading value is not valid and therefore cannot be trusted. Such value is not useful for the application."]
2807 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84AngleConfidence instead. "]
2808 #[doc = " * "]
2809 #[doc = " * @unit: 0,1 degree"]
2810 #[doc = " * @category: GeoReference information"]
2811 #[doc = " * @revision: Description revised in V2.1.1"]
2812 #[doc = " "]
2813 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2814 #[rasn(delegate, value("1..=127"))]
2815 pub struct HeadingConfidence(pub u8);
2816 #[doc = "*"]
2817 #[doc = " * This DE represents the orientation of the horizontal velocity vector with regards to the WGS84 north."]
2818 #[doc = " * When the information is not available, the DE shall be set to 3 601. The value 3600 shall not be used."]
2819 #[doc = " *"]
2820 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84AngleValue instead. "]
2821 #[doc = " *"]
2822 #[doc = " * Unit: 0,1 degree"]
2823 #[doc = " * Categories: GeoReference information"]
2824 #[doc = " * @revision: Description revised in V2.1.1 (usage of value 3600 specified) "]
2825 #[doc = ""]
2826 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2827 #[rasn(delegate, value("0..=3601"))]
2828 pub struct HeadingValue(pub u16);
2829 #[doc = "*"]
2830 #[doc = " * This DE represents the height of the left or right longitude carrier of vehicle from base to top (left or right carrier seen from vehicle"]
2831 #[doc = " * rear to front). "]
2832 #[doc = " *"]
2833 #[doc = " * The value shall be set to:"]
2834 #[doc = " * - `n` (`n >= 1` and `n < 99`) if the height information is equal to or less than n x 0,01 metre and more than (n-1) x 0,01 metre,"]
2835 #[doc = " * - `99` if the height is out of range, i.e. equal to or greater than 0,98 m,"]
2836 #[doc = " * - `100` if the height information is not available."]
2837 #[doc = " *"]
2838 #[doc = " * @unit 0,01 metre"]
2839 #[doc = " * @category Vehicle information"]
2840 #[doc = " * @revision: Description revised in V2.1.1 (the definition of 99 has changed slightly) "]
2841 #[doc = " "]
2842 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2843 #[rasn(delegate, value("1..=100"))]
2844 pub struct HeightLonCarr(pub u8);
2845 #[doc = "*"]
2846 #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `humanPresenceOnTheRoad`."]
2847 #[doc = " * "]
2848 #[doc = " * The value shall be set to:"]
2849 #[doc = " * - 0 - `unavailable` - in case further detailed information on human presence on the road is unavailable,"]
2850 #[doc = " * - 1 - `childrenOnRoadway` - in case children are detected on the road,"]
2851 #[doc = " * - 2 - `cyclistOnRoadway` - in case cyclist presence is detected on the road,"]
2852 #[doc = " * - 3 - `motorcyclistOnRoadway`- in case motorcyclist presence is detected on the road."]
2853 #[doc = " * - 4-255 - are reserved for future usage."]
2854 #[doc = " *"]
2855 #[doc = " * @category: Traffic information"]
2856 #[doc = " * @revision: editorial revision in V2.1.1"]
2857 #[doc = " "]
2858 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2859 #[rasn(delegate, value("0..=255"))]
2860 pub struct HumanPresenceOnTheRoadSubCauseCode(pub u8);
2861 #[doc = "*"]
2862 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode \"humanProblem\"."]
2863 #[doc = " * "]
2864 #[doc = " * The value shall be set to:"]
2865 #[doc = " * - 0 - `unavailable` - in case further detailed information on human health problem is unavailable,"]
2866 #[doc = " * - 1 - `glycemiaProblem`- in case human problem is due to glycaemia problem,"]
2867 #[doc = " * - 2 - `heartProblem` - in case human problem is due to heart problem."]
2868 #[doc = " * - 3-255 - reserved for future usage."]
2869 #[doc = " *"]
2870 #[doc = " * @category: Traffic information"]
2871 #[doc = " * @revision: V1.3.1"]
2872 #[doc = " "]
2873 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2874 #[rasn(delegate, value("0..=255"))]
2875 pub struct HumanProblemSubCauseCode(pub u8);
2876 #[doc = "* "]
2877 #[doc = " * This DE is a general identifier."]
2878 #[doc = " * "]
2879 #[doc = " * @category: Basic information"]
2880 #[doc = " * @revision: Created in V2.1.1"]
2881 #[doc = ""]
2882 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2883 #[rasn(delegate, value("0..=255"))]
2884 pub struct Identifier1B(pub u8);
2885 #[doc = "* "]
2886 #[doc = " * This DE is a general identifier."]
2887 #[doc = " * "]
2888 #[doc = " * @category: Basic information"]
2889 #[doc = " * @revision: Created in V2.1.1"]
2890 #[doc = ""]
2891 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2892 #[rasn(delegate, value("0..=65535"))]
2893 pub struct Identifier2B(pub u16);
2894 #[doc = "*"]
2895 #[doc = " * This DE represents the quality level of provided information."]
2896 #[doc = " * "]
2897 #[doc = " * The value shall be set to:"]
2898 #[doc = " * - `0` if the information is unavailable,"]
2899 #[doc = " * - `1` if the quality level is lowest,"]
2900 #[doc = " * - `n` (`n > 1` and `n < 7`) if the quality level is n, "]
2901 #[doc = " * - `7` if the quality level is highest."]
2902 #[doc = " *"]
2903 #[doc = " * @note: Definition of quality level is out of scope of the present document."]
2904 #[doc = " * @category: Basic information"]
2905 #[doc = " * @revision: Editorial update in V2.1.1"]
2906 #[doc = " "]
2907 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2908 #[rasn(delegate, value("0..=7"))]
2909 pub struct InformationQuality(pub u8);
2910 #[doc = "*"]
2911 #[doc = " * This DF represents a frequency channel "]
2912 #[doc = " *"]
2913 #[doc = " * It shall include the following components: "]
2914 #[doc = " *"]
2915 #[doc = " * @field centreFrequency: the centre frequency of the channel in 10^(exp+2) Hz (where exp is exponent)"]
2916 #[doc = " * "]
2917 #[doc = " * @field channelWidth: width of the channel in 10^exp Hz (where exp is exponent)"]
2918 #[doc = " *"]
2919 #[doc = " * @field exponent: exponent of the power of 10 used in the calculation of the components above."]
2920 #[doc = " *"]
2921 #[doc = " * @category: Communication information"]
2922 #[doc = " * @revision: created in V2.1.1"]
2923 #[doc = ""]
2924 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2925 #[rasn(automatic_tags)]
2926 pub struct InterferenceManagementChannel {
2927 #[rasn(value("1..=99999"), identifier = "centreFrequency")]
2928 pub centre_frequency: u32,
2929 #[rasn(value("0..=9999"), identifier = "channelWidth")]
2930 pub channel_width: u16,
2931 #[rasn(value("0..=15"))]
2932 pub exponent: u8,
2933 }
2934 impl InterferenceManagementChannel {
2935 pub fn new(centre_frequency: u32, channel_width: u16, exponent: u8) -> Self {
2936 Self {
2937 centre_frequency,
2938 channel_width,
2939 exponent,
2940 }
2941 }
2942 }
2943 #[doc = "*"]
2944 #[doc = " * This DF shall contain a list of up to 16 definitions containing interference management information, per affected frequency channels."]
2945 #[doc = " * "]
2946 #[doc = " * @category: Communication information."]
2947 #[doc = " * @revision: created in V2.1.1"]
2948 #[doc = " "]
2949 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2950 #[rasn(delegate, size("1..=16", extensible))]
2951 pub struct InterferenceManagementInfo(pub SequenceOf<InterferenceManagementInfoPerChannel>);
2952 #[doc = "*"]
2953 #[doc = " * This DF contains interference management information for one affected frequency channel."]
2954 #[doc = " *"]
2955 #[doc = " * It shall include the following components: "]
2956 #[doc = " *"]
2957 #[doc = " * @field interferenceManagementChannel: frequency channel for which the zone should be applied interference management "]
2958 #[doc = " *"]
2959 #[doc = " * @field interferenceManagementZoneType: type of the interference management zone. "]
2960 #[doc = " *"]
2961 #[doc = " * @field interferenceManagementMitigationType: optional type of the mitigation to be used in the interference management zone. "]
2962 #[doc = " * In the case where no mitigation should be applied by the ITS-S, this is indicated by the field interferenceManagementMitigationType being absent."]
2963 #[doc = " *"]
2964 #[doc = " * @field expiryTime: optional time at which the validity of the interference management communication zone will expire. "]
2965 #[doc = " * This component is present when the interference management is temporarily valid"]
2966 #[doc = " *"]
2967 #[doc = " * @category: Communication information"]
2968 #[doc = " * @revision: created in V2.1.1"]
2969 #[doc = " "]
2970 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2971 #[rasn(automatic_tags)]
2972 #[non_exhaustive]
2973 pub struct InterferenceManagementInfoPerChannel {
2974 #[rasn(identifier = "interferenceManagementChannel")]
2975 pub interference_management_channel: InterferenceManagementChannel,
2976 #[rasn(identifier = "interferenceManagementZoneType")]
2977 pub interference_management_zone_type: InterferenceManagementZoneType,
2978 #[rasn(identifier = "interferenceManagementMitigationType")]
2979 pub interference_management_mitigation_type: Option<MitigationForTechnologies>,
2980 #[rasn(identifier = "expiryTime")]
2981 pub expiry_time: Option<TimestampIts>,
2982 }
2983 impl InterferenceManagementInfoPerChannel {
2984 pub fn new(
2985 interference_management_channel: InterferenceManagementChannel,
2986 interference_management_zone_type: InterferenceManagementZoneType,
2987 interference_management_mitigation_type: Option<MitigationForTechnologies>,
2988 expiry_time: Option<TimestampIts>,
2989 ) -> Self {
2990 Self {
2991 interference_management_channel,
2992 interference_management_zone_type,
2993 interference_management_mitigation_type,
2994 expiry_time,
2995 }
2996 }
2997 }
2998 #[doc = "*"]
2999 #[doc = " * "]
3000 #[doc = " * This DF represents a zone inside which the ITS communication should be restricted in order to manage interference."]
3001 #[doc = " *"]
3002 #[doc = " * It shall include the following components: "]
3003 #[doc = " *"]
3004 #[doc = " * @field zoneDefinition: contains the geographical definition of the zone."]
3005 #[doc = " *"]
3006 #[doc = " * @field managementInfo: contains interference management information applicable in the zone defined in the component zoneDefinition."]
3007 #[doc = " *"]
3008 #[doc = " * @category: Communication information"]
3009 #[doc = " * @revision: created in V2.1.1"]
3010 #[doc = " "]
3011 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3012 #[rasn(automatic_tags)]
3013 pub struct InterferenceManagementZone {
3014 #[rasn(identifier = "zoneDefinition")]
3015 pub zone_definition: InterferenceManagementZoneDefinition,
3016 #[rasn(identifier = "managementInfo")]
3017 pub management_info: InterferenceManagementInfo,
3018 }
3019 impl InterferenceManagementZone {
3020 pub fn new(
3021 zone_definition: InterferenceManagementZoneDefinition,
3022 management_info: InterferenceManagementInfo,
3023 ) -> Self {
3024 Self {
3025 zone_definition,
3026 management_info,
3027 }
3028 }
3029 }
3030 #[doc = "*"]
3031 #[doc = " * This DF represents the geographical definition of the zone where band sharing occurs. "]
3032 #[doc = " *"]
3033 #[doc = " * It shall include the following components: "]
3034 #[doc = " *"]
3035 #[doc = " * @field interferenceManagementZoneLatitude: Latitude of the centre point of the interference management zone."]
3036 #[doc = " *"]
3037 #[doc = " * @field interferenceManagementZoneLongitude: Longitude of the centre point of the interference management zone."]
3038 #[doc = " *"]
3039 #[doc = " * @field interferenceManagementZoneId: optional identification of the interference management zone. "]
3040 #[doc = " *"]
3041 #[doc = " * @field interferenceManagementZoneShape: shape of the interference management zone placed at the centre point. "]
3042 #[doc = " *"]
3043 #[doc = " * @category: Communication information"]
3044 #[doc = " * @revision: created in V2.1.1"]
3045 #[doc = " "]
3046 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3047 #[rasn(automatic_tags)]
3048 #[non_exhaustive]
3049 pub struct InterferenceManagementZoneDefinition {
3050 #[rasn(identifier = "interferenceManagementZoneLatitude")]
3051 pub interference_management_zone_latitude: Latitude,
3052 #[rasn(identifier = "interferenceManagementZoneLongitude")]
3053 pub interference_management_zone_longitude: Longitude,
3054 #[rasn(identifier = "interferenceManagementZoneId")]
3055 pub interference_management_zone_id: Option<ProtectedZoneId>,
3056 #[rasn(value("0.."), identifier = "interferenceManagementZoneShape")]
3057 pub interference_management_zone_shape: Option<Shape>,
3058 }
3059 impl InterferenceManagementZoneDefinition {
3060 pub fn new(
3061 interference_management_zone_latitude: Latitude,
3062 interference_management_zone_longitude: Longitude,
3063 interference_management_zone_id: Option<ProtectedZoneId>,
3064 interference_management_zone_shape: Option<Shape>,
3065 ) -> Self {
3066 Self {
3067 interference_management_zone_latitude,
3068 interference_management_zone_longitude,
3069 interference_management_zone_id,
3070 interference_management_zone_shape,
3071 }
3072 }
3073 }
3074 #[doc = "* "]
3075 #[doc = " * This DE defines the type of an interference management zone, so that an ITS-S can "]
3076 #[doc = " * assert the actions to do while passing by such zone (e.g. reduce the transmit power in case of a DSRC tolling station)."]
3077 #[doc = " * It is an extension of the type @ref ProtectedZoneType."]
3078 #[doc = " *"]
3079 #[doc = " * The value shall be set to:"]
3080 #[doc = " * - 0 - `permanentCenDsrcTolling` - as specified in ETSI TS 102 792 [14],"]
3081 #[doc = " * - 1 - `temporaryCenDsrcTolling` - as specified in ETSI TS 102 792 [14],"]
3082 #[doc = " * - 2 - `unavailable` - default value. Set to 2 for backwards compatibility with DSRC tolling,"]
3083 #[doc = " * - 3 - `urbanRail` - as specified in ETSI TS 103 724 [13], clause 7,"]
3084 #[doc = " * - 4 - `satelliteStation` - as specified in ETSI TS 103 724 [13], clause 7,"]
3085 #[doc = " * - 5 - `fixedLinks` - as specified in ETSI TS 103 724 [13], clause 7."]
3086 #[doc = " *"]
3087 #[doc = " * @category: Communication information"]
3088 #[doc = " * @revision: Created in V2.1.1"]
3089 #[doc = " "]
3090 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3091 #[rasn(enumerated)]
3092 #[non_exhaustive]
3093 pub enum InterferenceManagementZoneType {
3094 permanentCenDsrcTolling = 0,
3095 temporaryCenDsrcTolling = 1,
3096 unavailable = 2,
3097 urbanRail = 3,
3098 satelliteStation = 4,
3099 fixedLinks = 5,
3100 }
3101 #[doc = "*"]
3102 #[doc = " * This DF shall contain a list of up to 16 interference management zones. "]
3103 #[doc = " *"]
3104 #[doc = " * **EXAMPLE**: An interference management communication zone may be defined around a CEN DSRC road side equipment or an urban rail operational area."]
3105 #[doc = " * "]
3106 #[doc = " * @category: Communication information"]
3107 #[doc = " * @revision: created in V2.1.1"]
3108 #[doc = " "]
3109 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3110 #[rasn(delegate, size("1..=16", extensible))]
3111 pub struct InterferenceManagementZones(pub SequenceOf<InterferenceManagementZone>);
3112 #[doc = "*"]
3113 #[doc = " * This DF represents a unique id for an intersection, in accordance with ETSI TS 103 301 [15]."]
3114 #[doc = " *"]
3115 #[doc = " * It shall include the following components: "]
3116 #[doc = " *"]
3117 #[doc = " * @field region: the optional identifier of the entity that is responsible for the region in which the intersection is placed."]
3118 #[doc = " * It is the duty of that entity to guarantee that the @ref Id is unique within the region."]
3119 #[doc = " *"]
3120 #[doc = " * @field id: the identifier of the intersection"]
3121 #[doc = " *"]
3122 #[doc = " * @note: when the component region is present, the IntersectionReferenceId is guaranteed to be globally unique."]
3123 #[doc = " * @category: Road topology information"]
3124 #[doc = " * @revision: created in V2.1.1"]
3125 #[doc = " "]
3126 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3127 #[rasn(automatic_tags)]
3128 pub struct IntersectionReferenceId {
3129 pub region: Option<Identifier2B>,
3130 pub id: Identifier2B,
3131 }
3132 impl IntersectionReferenceId {
3133 pub fn new(region: Option<Identifier2B>, id: Identifier2B) -> Self {
3134 Self { region, id }
3135 }
3136 }
3137 #[doc = "*"]
3138 #[doc = " * This DE represents the vehicle type according to ISO 3833 [22]."]
3139 #[doc = " * A \"term No\" refers to the number of the corresponding term and its definition in ISO 3833."]
3140 #[doc = " *"]
3141 #[doc = " * The value shall be set to:"]
3142 #[doc = " * - 0\t- `passengerCar` - term No 3.1.1"]
3143 #[doc = " * - 1\t- `saloon` - term No 3.1.1.1 (sedan)"]
3144 #[doc = " * - 2\t- `convertibleSaloon` - term No 3.1.1.2"]
3145 #[doc = " * - 3\t- `pullmanSaloon` - term No 3.1.1.3"]
3146 #[doc = " * - 4\t- `stationWagon` - term No 3.1.1.4"]
3147 #[doc = " * - 5\t- `truckStationWagon` - term No 3.1.1.4.1"]
3148 #[doc = " * - 6\t- `coupe` - term No 3.1.1.5 (coupe)"]
3149 #[doc = " * - 7\t- `convertible` - term No 3.1.1.6 (open tourer, roadstar, spider)"]
3150 #[doc = " * - 8\t- `multipurposePassengerCar` - term No 3.1.1.7"]
3151 #[doc = " * - 9\t- `forwardControlPassengerCar`- term No 3.1.1.8"]
3152 #[doc = " * - 10\t- `specialPassengerCar` - term No 3.1.1.9"]
3153 #[doc = " * - 11\t- `bus` - term No 3.1.2"]
3154 #[doc = " * - 12\t- `minibus` - term No 3.1.2.1"]
3155 #[doc = " * - 13\t- `urbanBus` - term No 3.1.2.2"]
3156 #[doc = " * - 14\t- `interurbanCoach` - term No 3.1.2.3"]
3157 #[doc = " * - 15\t- `longDistanceCoach` - term No 3.1.2.4"]
3158 #[doc = " * - 16\t- `articulatedBus` - term No 3.1.2.5"]
3159 #[doc = " * - 17\t- `trolleyBus\t` - term No 3.1.2.6"]
3160 #[doc = " * - 18\t- `specialBus` - term No 3.1.2.7"]
3161 #[doc = " * - 19\t- `commercialVehicle` - term No 3.1.3"]
3162 #[doc = " * - 20\t- `specialCommercialVehicle` - term No 3.1.3.1"]
3163 #[doc = " * - 21\t- `specialVehicle` - term No 3.1.4"]
3164 #[doc = " * - 22\t- `trailingTowingVehicle` - term No 3.1.5 (draw-bar tractor)"]
3165 #[doc = " * - 23\t- `semiTrailerTowingVehicle` - term No 3.1.6 (fifth wheel tractor)"]
3166 #[doc = " * - 24\t- `trailer` - term No 3.2.1"]
3167 #[doc = " * - 25\t- `busTrailer` - term No 3.2.1.1"]
3168 #[doc = " * - 26\t- `generalPurposeTrailer` - term No 3.2.1.2"]
3169 #[doc = " * - 27\t- `caravan` - term No 3.2.1.3"]
3170 #[doc = " * - 28\t- `specialTrailer` - term No 3.2.1.4"]
3171 #[doc = " * - 29\t- `semiTrailer` - term No 3.2.2"]
3172 #[doc = " * - 30\t- `busSemiTrailer` - term No 3.2.2.1"]
3173 #[doc = " * - 31\t- `generalPurposeSemiTrailer` - term No 3.2.2.2"]
3174 #[doc = " * - 32\t- `specialSemiTrailer` - term No 3.2.2.3"]
3175 #[doc = " * - 33\t- `roadTrain` - term No 3.3.1"]
3176 #[doc = " * - 34\t- `passengerRoadTrain` - term No 3.3.2"]
3177 #[doc = " * - 35\t- `articulatedRoadTrain` - term No 3.3.3"]
3178 #[doc = " * - 36\t- `doubleRoadTrain` - term No 3.3.4"]
3179 #[doc = " * - 37\t- `compositeRoadTrain` - term No 3.3.5"]
3180 #[doc = " * - 38\t- `specialRoadTrain` - term No 3.3.6"]
3181 #[doc = " * - 39\t- `moped` - term No 3.4"]
3182 #[doc = " * - 40\t- `motorCycle` - term No 3.5"]
3183 #[doc = " * - 41-255 - reserved for future use"]
3184 #[doc = " * "]
3185 #[doc = " * @category: Vehicle information"]
3186 #[doc = " * @revision: Created in V2.1.1"]
3187 #[doc = " "]
3188 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3189 #[rasn(delegate, value("0..=255"))]
3190 pub struct Iso3833VehicleType(pub u8);
3191 #[doc = "*"]
3192 #[doc = " * This DF shall contain a list of waypoints @ref ReferencePosition."]
3193 #[doc = " *"]
3194 #[doc = " * @category: GeoReference information"]
3195 #[doc = " * @revision: Editorial update in V2.1.1"]
3196 #[doc = " "]
3197 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3198 #[rasn(delegate, size("1..=40"))]
3199 pub struct ItineraryPath(pub SequenceOf<ReferencePosition>);
3200 #[doc = "*"]
3201 #[doc = " * This DF represents a common message header for application and facilities layer messages."]
3202 #[doc = " * It is included at the beginning of an ITS message as the message header."]
3203 #[doc = " *"]
3204 #[doc = " * It shall include the following components: "]
3205 #[doc = " *"]
3206 #[doc = " * @field protocolVersion: version of the ITS message."]
3207 #[doc = " *"]
3208 #[doc = " * @field messageId: type of the ITS message."]
3209 #[doc = " *"]
3210 #[doc = " * @field stationId: the identifier of the ITS-S that generated the ITS message."]
3211 #[doc = " *"]
3212 #[doc = " * @category: Communication information"]
3213 #[doc = " * @revision: update in V2.1.1: messageID and stationID changed to messageId and stationId; messageId is of type MessageId."]
3214 #[doc = " "]
3215 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3216 #[rasn(automatic_tags)]
3217 pub struct ItsPduHeader {
3218 #[rasn(identifier = "protocolVersion")]
3219 pub protocol_version: OrdinalNumber1B,
3220 #[rasn(identifier = "messageId")]
3221 pub message_id: MessageId,
3222 #[rasn(identifier = "stationId")]
3223 pub station_id: StationId,
3224 }
3225 impl ItsPduHeader {
3226 pub fn new(
3227 protocol_version: OrdinalNumber1B,
3228 message_id: MessageId,
3229 station_id: StationId,
3230 ) -> Self {
3231 Self {
3232 protocol_version,
3233 message_id,
3234 station_id,
3235 }
3236 }
3237 }
3238 #[doc = "*"]
3239 #[doc = " * This DE indicates a transversal position on the carriageway at a specific longitudinal position, in resolution of lanes of the carriageway. "]
3240 #[doc = " *"]
3241 #[doc = " * For right-hand traffic roads, the value shall be set to:"]
3242 #[doc = " * - `-1` if the position is off, i.e. besides the road,"]
3243 #[doc = " * - `0` if the position is on the inner hard shoulder, i.e. the hard should adjacent to the leftmost lane,"]
3244 #[doc = " * - `n` (`n > 0` and `n < 14`), if the position is on the n-th driving lane counted from the leftmost lane to the rightmost lane of a specific traffic direction,"]
3245 #[doc = " * - `14` if the position is on the outer hard shoulder, i.e. the hard should adjacent to rightmost lane (if present)."]
3246 #[doc = " *"]
3247 #[doc = " * For left-hand traffic roads, the value shall be set to:"]
3248 #[doc = " * - `-1` if the position is off, i.e. besides the road,"]
3249 #[doc = " * - `0` if the position is on the inner hard shoulder, i.e. the hard should adjacent to the rightmost lane,"]
3250 #[doc = " * - `n` (`n > 0` and `n < 14`), if the position is on the n-th driving lane counted from the rightmost lane to the leftmost lane of a specific traffic direction,"]
3251 #[doc = " * - `14` if the position is on the outer hard shoulder, i.e. the hard should adjacent to leftmost lane (if present)."]
3252 #[doc = ""]
3253 #[doc = " * @note: in practice this means that the position is counted from \"inside\" to \"outside\" no matter which traffic practice is used."]
3254 #[doc = " *"]
3255 #[doc = " * If the carriageway allows only traffic in one direction (e.g. in case of dual or multiple carriageway roads), the position is counted from the physical border of the carriageway. "]
3256 #[doc = " * If the carriageway allows traffic in both directions and there is no physical delimitation between traffic directions (e.g. on a single carrriageway road), "]
3257 #[doc = " * the position is counted from the legal (i.e. optical) separation between traffic directions (horizontal marking). "]
3258 #[doc = ""]
3259 #[doc = " * @category: Road topology information"]
3260 #[doc = " * @revision: Description revised in V2.1.1"]
3261 #[doc = ""]
3262 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3263 #[rasn(delegate, value("-1..=14"))]
3264 pub struct LanePosition(pub i8);
3265 #[doc = "*"]
3266 #[doc = " * This DF indicates a transversal position in resolution of lanes and the associated lane type."]
3267 #[doc = " *"]
3268 #[doc = " * It shall include the following components: "]
3269 #[doc = " * "]
3270 #[doc = " * @field transversalPosition: the transversal position."]
3271 #[doc = " * "]
3272 #[doc = " * @field laneType: the type of the lane identified in the component transversalPosition."]
3273 #[doc = " * "]
3274 #[doc = " * @category Road topology information"]
3275 #[doc = " * @revision: Created in V2.1.1"]
3276 #[doc = " "]
3277 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3278 #[rasn(automatic_tags)]
3279 #[non_exhaustive]
3280 pub struct LanePositionAndType {
3281 #[rasn(identifier = "transversalPosition")]
3282 pub transversal_position: LanePosition,
3283 #[rasn(identifier = "laneType")]
3284 pub lane_type: LaneType,
3285 }
3286 impl LanePositionAndType {
3287 pub fn new(transversal_position: LanePosition, lane_type: LaneType) -> Self {
3288 Self {
3289 transversal_position,
3290 lane_type,
3291 }
3292 }
3293 }
3294 #[doc = "*"]
3295 #[doc = " * This DE represents the type of a lane. "]
3296 #[doc = " * "]
3297 #[doc = " * The value shall be set to:"]
3298 #[doc = " * - 0\t- `traffic` - Lane dedicated to the movement of vehicles,"]
3299 #[doc = " * - 1\t- `through` - Lane dedicated to the movement of vehicles travelling ahead and not turning,"]
3300 #[doc = " * - 2\t- `reversible` - Lane where the direction of traffic can be changed to match the peak flow,"]
3301 #[doc = " * - 3\t- `acceleration`\t - Lane that allows vehicles entering a road to accelerate to the speed of through traffic before merging with it,"]
3302 #[doc = " * - 4\t- `deceleration` - Lane that allows vehicles exiting a road to decelerate before leaving it,"]
3303 #[doc = " * - 5\t- `leftHandTurning` - Lane reserved for slowing down and making a left turn, so as not to disrupt traffic,"]
3304 #[doc = " * - 6\t- `rightHandTurning` - Lane reserved for slowing down and making a right turn so as not to disrupt traffic,"]
3305 #[doc = " * - 7\t- `dedicatedVehicle` - Lane dedicated to movement of motor vehicles with specific characteristics, such as heavy goods vehicles, etc., "]
3306 #[doc = " * - 8\t- `bus` - Lane dedicated to movement of buses providing public transport,"]
3307 #[doc = " * - 9\t- `taxi` - Lane dedicated to movement of taxis,"]
3308 #[doc = " * - 10\t- `hov` - Carpooling lane or high occupancy vehicle lane,"]
3309 #[doc = " * - 11\t- `hot` - High occupancy vehicle lanes that is allowed to be used without meeting the occupancy criteria by paying a toll,"]
3310 #[doc = " * - 12\t- `pedestrian` - Lanes dedicated to pedestrians such as pedestrian sidewalk paths,"]
3311 #[doc = " * - 13\t- `cycleLane`\t - Lane dedicated to exclusive or preferred use by bicycles,"]
3312 #[doc = " * - 14\t- `median` - Lane not dedicated to movement of vehicles but representing a median / central reservation such as the central median, "]
3313 #[doc = " separating the two directional carriageways of the highway,"]
3314 #[doc = " * - 15\t- `striping`\t - Lane not dedicated to movement of vehicles but covered with roadway markings,"]
3315 #[doc = " * - 16\t- `trackedVehicle` - Lane dedicated to movement of trains, trams and trolleys,"]
3316 #[doc = " * - 17\t- `parking` - Lanes dedicated to vehicles parking, stopping and loading lanes,"]
3317 #[doc = " * - 18\t- `emergency` - Lane dedicated to vehicles in breakdown or to emergency vehicles also called hard shoulder,"]
3318 #[doc = " * - 19\t- `verge` - Lane representing the verge, i.e. a narrow strip of grass or plants and sometimes also trees located between "]
3319 #[doc = " the road surface edge and the boundary of a road,"]
3320 #[doc = " * - 20\t`minimumRiskManoeuvre` - Lane dedicated to automated vehicles making a minimum risk manoeuvre."]
3321 #[doc = " * - values 21 to 30 reserved for future use. "]
3322 #[doc = " *"]
3323 #[doc = " * @category: Road topology information"]
3324 #[doc = " * @revision: Created in V2.1.1"]
3325 #[doc = ""]
3326 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3327 #[rasn(delegate, value("0..=31"))]
3328 pub struct LaneType(pub u8);
3329 #[doc = "*"]
3330 #[doc = " * This DE represents the width of a lane measured at a defined position."]
3331 #[doc = " *"]
3332 #[doc = " * The value shall be set to:"]
3333 #[doc = " * - `n` (`n > 0` and `n < 1022`) if the lane width information is equal to or less than n x 0,01 metre and more than (n-1) x 0,01 metre,"]
3334 #[doc = " * - `1022` if the lane width is out of range, i.e. greater than 10,21 m,"]
3335 #[doc = " * - `1023` if the lane width information is not available."]
3336 #[doc = " *"]
3337 #[doc = " * The value 0 shall not be used."]
3338 #[doc = " *"]
3339 #[doc = " * @unit: 0,01 metre"]
3340 #[doc = " * @category: Road topology information"]
3341 #[doc = " * @revision: Created in V2.1.1"]
3342 #[doc = " "]
3343 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3344 #[rasn(delegate, value("0..=1023"))]
3345 pub struct LaneWidth(pub u16);
3346 #[doc = "*"]
3347 #[doc = " * This DF indicates the vehicle acceleration at lateral direction and the confidence value of the lateral acceleration."]
3348 #[doc = " *"]
3349 #[doc = " * It shall include the following components: "]
3350 #[doc = " * "]
3351 #[doc = " * @field lateralAccelerationValue: lateral acceleration value at a point in time."]
3352 #[doc = " * "]
3353 #[doc = " * @field lateralAccelerationConfidence: confidence value of the lateral acceleration value."]
3354 #[doc = " *"]
3355 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead."]
3356 #[doc = " * @category Vehicle information"]
3357 #[doc = " * @revision: Description revised in V2.1.1"]
3358 #[doc = " "]
3359 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3360 #[rasn(automatic_tags)]
3361 pub struct LateralAcceleration {
3362 #[rasn(identifier = "lateralAccelerationValue")]
3363 pub lateral_acceleration_value: LateralAccelerationValue,
3364 #[rasn(identifier = "lateralAccelerationConfidence")]
3365 pub lateral_acceleration_confidence: AccelerationConfidence,
3366 }
3367 impl LateralAcceleration {
3368 pub fn new(
3369 lateral_acceleration_value: LateralAccelerationValue,
3370 lateral_acceleration_confidence: AccelerationConfidence,
3371 ) -> Self {
3372 Self {
3373 lateral_acceleration_value,
3374 lateral_acceleration_confidence,
3375 }
3376 }
3377 }
3378 #[doc = "*"]
3379 #[doc = " * This DE represents the vehicle acceleration at lateral direction in the centre of the mass of the empty vehicle."]
3380 #[doc = " * It corresponds to the vehicle coordinate system as specified in ISO 8855 [21]."]
3381 #[doc = " *"]
3382 #[doc = " * The value shall be set to:"]
3383 #[doc = " * - `-160` for acceleration values equal to or less than -16 m/s^2,"]
3384 #[doc = " * - `n` (`n > -160` and `n <= 0`) to indicate that the vehicle is accelerating towards the right side with regards to the vehicle orientation "]
3385 #[doc = " * with acceleration equal to or less than n x 0,1 m/s^2 and greater than (n-1) x 0,1 m/s^2,"]
3386 #[doc = " * - `n` (`n > 0` and `n < 160`) to indicate that the vehicle is accelerating towards the left hand side with regards to the vehicle orientation "]
3387 #[doc = "\t\t\t\t\t\t with acceleration equal to or less than n x 0,1 m/s^2 and greater than (n-1) x 0,1 m/s^2,"]
3388 #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
3389 #[doc = " * - `161` when the data is unavailable."]
3390 #[doc = " *"]
3391 #[doc = " * @note: the empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
3392 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationValue instead."]
3393 #[doc = " * "]
3394 #[doc = " * @unit: 0,1 m/s^2"]
3395 #[doc = " * @category: Vehicle information"]
3396 #[doc = " * @revision: Description updated in V2.1.1 (the meaning of 160 has changed slightly). "]
3397 #[doc = " "]
3398 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3399 #[rasn(delegate, value("-160..=161"))]
3400 pub struct LateralAccelerationValue(pub i16);
3401 #[doc = "*"]
3402 #[doc = " * This DE represents the absolute geographical latitude in a WGS84 coordinate system, providing a range of 90 degrees in north or"]
3403 #[doc = " * in south hemisphere."]
3404 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
3405 #[doc = " *"]
3406 #[doc = " * The value shall be set to:"]
3407 #[doc = " * - `n` (`n >= -900 000 000` and `n < 0`) x 10^-7 degree, i.e. negative values for latitudes south of the Equator,"]
3408 #[doc = " * - `0` is used for the latitude of the equator,"]
3409 #[doc = " * - `n` (`n > 0` and `n < 900 000 001`) x 10^-7 degree, i.e. positive values for latitudes north of the Equator,"]
3410 #[doc = " * - `900 000 001` when the information is unavailable."]
3411 #[doc = " *"]
3412 #[doc = " * @unit: 10^-7 degree"]
3413 #[doc = " * @category: GeoReference information"]
3414 #[doc = " * @revision: Editorial update in V2.1.1"]
3415 #[doc = " "]
3416 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3417 #[rasn(delegate, value("-900000000..=900000001"))]
3418 pub struct Latitude(pub i32);
3419 #[doc = "*"]
3420 #[doc = " * This DE indicates the status of light bar and any sort of audible alarm system besides the horn."]
3421 #[doc = " * This includes various common sirens as well as backup up beepers and other slow speed manoeuvring alerts."]
3422 #[doc = " *"]
3423 #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
3424 #[doc = " * - 0 - `lightBarActivated` - when the light bar is activated,"]
3425 #[doc = " * - 1 - `sirenActivated` - when the siren is activated."]
3426 #[doc = " *"]
3427 #[doc = " * Otherwise, it shall be set to 0."]
3428 #[doc = " *"]
3429 #[doc = " * @category Vehicle information"]
3430 #[doc = " * @revision: Editorial update in V2.1.1"]
3431 #[doc = " "]
3432 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3433 #[rasn(delegate)]
3434 pub struct LightBarSirenInUse(pub FixedBitString<2usize>);
3435 #[doc = "*"]
3436 #[doc = " * This DE represents the absolute geographical longitude in a WGS84 coordinate system, providing a range of 180 degrees"]
3437 #[doc = " * to the east or to the west of the prime meridian."]
3438 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
3439 #[doc = " *"]
3440 #[doc = " * The value shall be set to:"]
3441 #[doc = " * - `n` (`n > -1 800 000 000` and `n < 0`) x 10^-7 degree, i.e. negative values for longitudes to the west,"]
3442 #[doc = " * - `0` to indicate the prime meridian,"]
3443 #[doc = " * - `n` (`n > 0` and `n < 1 800 000 001`) x 10^-7 degree, i.e. positive values for longitudes to the east,"]
3444 #[doc = " * - `1 800 000 001` when the information is unavailable."]
3445 #[doc = " *"]
3446 #[doc = " * The value -1 800 000 000 shall not be used. "]
3447 #[doc = " * "]
3448 #[doc = " * @unit: 10^-7 degree"]
3449 #[doc = " * @category: GeoReference information"]
3450 #[doc = " * @revision: Description revised in V2.1.1"]
3451 #[doc = " "]
3452 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3453 #[rasn(delegate, value("-1800000000..=1800000001"))]
3454 pub struct Longitude(pub i32);
3455 #[doc = "*"]
3456 #[doc = " * This DF indicates the vehicle acceleration at longitudinal direction and the confidence value of the longitudinal acceleration."]
3457 #[doc = " *"]
3458 #[doc = " * It shall include the following components: "]
3459 #[doc = " *"]
3460 #[doc = " * @field longitudinalAccelerationValue: longitudinal acceleration value at a point in time."]
3461 #[doc = ""]
3462 #[doc = " * @field longitudinalAccelerationConfidence: confidence value of the longitudinal acceleration value."]
3463 #[doc = " *"]
3464 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead. "]
3465 #[doc = " * @category: Vehicle information"]
3466 #[doc = " * @revision: V1.3.1"]
3467 #[doc = " "]
3468 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3469 #[rasn(automatic_tags)]
3470 pub struct LongitudinalAcceleration {
3471 #[rasn(identifier = "longitudinalAccelerationValue")]
3472 pub longitudinal_acceleration_value: LongitudinalAccelerationValue,
3473 #[rasn(identifier = "longitudinalAccelerationConfidence")]
3474 pub longitudinal_acceleration_confidence: AccelerationConfidence,
3475 }
3476 impl LongitudinalAcceleration {
3477 pub fn new(
3478 longitudinal_acceleration_value: LongitudinalAccelerationValue,
3479 longitudinal_acceleration_confidence: AccelerationConfidence,
3480 ) -> Self {
3481 Self {
3482 longitudinal_acceleration_value,
3483 longitudinal_acceleration_confidence,
3484 }
3485 }
3486 }
3487 #[doc = "*"]
3488 #[doc = " * This DE represents the vehicle acceleration at longitudinal direction in the centre of the mass of the empty vehicle."]
3489 #[doc = " * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11."]
3490 #[doc = " *"]
3491 #[doc = " * The value shall be set to:"]
3492 #[doc = " * - `-160` for acceleration values equal to or less than -16 m/s^2,"]
3493 #[doc = " * - `n` (`n > -160` and `n <= 0`) to indicate that the vehicle is braking with acceleration equal to or less than n x 0,1 m/s^2, and greater than (n-1) x 0,1 m/s^2"]
3494 #[doc = " * - `n` (`n > 0` and `n < 160`) to indicate that the vehicle is accelerating with acceleration equal to or less than n x 0,1 m/s^2, and greater than (n-1) x 0,1 m/s^2,"]
3495 #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
3496 #[doc = " * - `161` when the data is unavailable. "]
3497 #[doc = " * "]
3498 #[doc = " * This acceleration is along the tangent plane of the road surface and does not include gravity components."]
3499 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationValue instead."]
3500 #[doc = " * "]
3501 #[doc = " * @note: The empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
3502 #[doc = " * @unit: 0,1 m/s^2"]
3503 #[doc = " * @category: Vehicle information"]
3504 #[doc = " * @revision: description revised in V2.1.1 (the meaning of 160 has changed slightly). T"]
3505 #[doc = " "]
3506 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3507 #[rasn(delegate, value("-160..=161"))]
3508 pub struct LongitudinalAccelerationValue(pub i16);
3509 #[doc = "* "]
3510 #[doc = " * This DF represents the estimated position along the longitudinal length of a particular lane. "]
3511 #[doc = " *"]
3512 #[doc = " * It shall include the following components: "]
3513 #[doc = " *"]
3514 #[doc = " * @field longitudinalLanePositionValue: the mean value of the longitudinal position within a particular length."]
3515 #[doc = " *"]
3516 #[doc = " * @field longitudinalLanePositionConfidence: The confidence value associated to the value."]
3517 #[doc = " *"]
3518 #[doc = " * @category: Road topology information"]
3519 #[doc = " * @revision: created in V2.1.1"]
3520 #[doc = " "]
3521 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3522 #[rasn(automatic_tags)]
3523 pub struct LongitudinalLanePosition {
3524 #[rasn(identifier = "longitudinalLanePositionValue")]
3525 pub longitudinal_lane_position_value: LongitudinalLanePositionValue,
3526 #[rasn(identifier = "longitudinalLanePositionConfidence")]
3527 pub longitudinal_lane_position_confidence: LongitudinalLanePositionConfidence,
3528 }
3529 impl LongitudinalLanePosition {
3530 pub fn new(
3531 longitudinal_lane_position_value: LongitudinalLanePositionValue,
3532 longitudinal_lane_position_confidence: LongitudinalLanePositionConfidence,
3533 ) -> Self {
3534 Self {
3535 longitudinal_lane_position_value,
3536 longitudinal_lane_position_confidence,
3537 }
3538 }
3539 }
3540 #[doc = "* "]
3541 #[doc = " * This DE indicates the longitudinal lane position confidence value which represents the estimated accuracy of longitudinal lane position measurement with a default confidence level of 95 %."]
3542 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
3543 #[doc = " *"]
3544 #[doc = " * The value shall be set to:"]
3545 #[doc = " * - `n` (`n > 0` and `n < 1 022`) if the confidence value is equal to or less than n x 0,1 m, and more than (n-1) x 0,1 m,"]
3546 #[doc = " * - `1 022` if the confidence value is out of range i.e. greater than 102,1 m,"]
3547 #[doc = " * - `1 023` if the confidence value is unavailable."]
3548 #[doc = " *"]
3549 #[doc = " * @unit 0,1 metre"]
3550 #[doc = " * @category: GeoReference information"]
3551 #[doc = " * @revision: Created in V2.1.1"]
3552 #[doc = ""]
3553 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3554 #[rasn(delegate, value("0..=1023"))]
3555 pub struct LongitudinalLanePositionConfidence(pub u16);
3556 #[doc = "* "]
3557 #[doc = " * This DE represents the longitudinal offset of a map-matched position along a matched lane, beginning from the lane's starting point."]
3558 #[doc = " * "]
3559 #[doc = " * The value shall be set to:"]
3560 #[doc = " * - `n` (`n >= 0` and `n < 32766`) if the longitudinal offset information is equal to or less than n x 0,1 metre and more than (n-1) x 0,1 metre,"]
3561 #[doc = " * - `32 766` if the longitudinal offset is out of range, i.e. greater than 3276,5 m,"]
3562 #[doc = " * - `32 767` if the longitudinal offset information is not available. "]
3563 #[doc = " *"]
3564 #[doc = " * @unit 0,1 metre"]
3565 #[doc = " * @category: GeoReference information"]
3566 #[doc = " * @revision: Created in V2.1.1"]
3567 #[doc = ""]
3568 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3569 #[rasn(delegate, value("0..=32767"))]
3570 pub struct LongitudinalLanePositionValue(pub u16);
3571 #[doc = "* "]
3572 #[doc = " * This DF shall contain a list of a lower triangular positive semi-definite matrices."]
3573 #[doc = " *"]
3574 #[doc = " * @category: Sensing information"]
3575 #[doc = " * @revision: Created in V2.1.1"]
3576 #[doc = ""]
3577 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3578 #[rasn(delegate, size("1..=4"))]
3579 pub struct LowerTriangularPositiveSemidefiniteMatrices(
3580 pub SequenceOf<LowerTriangularPositiveSemidefiniteMatrix>,
3581 );
3582 #[doc = "* "]
3583 #[doc = " * This DF represents a lower triangular positive semi-definite matrix. "]
3584 #[doc = " *"]
3585 #[doc = " * It shall include the following components: "]
3586 #[doc = " *"]
3587 #[doc = " * @field componentsIncludedIntheMatrix: the indication of which components of a @ref PerceivedObject are included in the matrix. "]
3588 #[doc = " * This component also implicitly indicates the number n of included components which defines the size (n x n) of the full correlation matrix \"A\"."]
3589 #[doc = " *"]
3590 #[doc = " * @field matrix: the list of cells of the lower triangular positive semi-definite matrix ordered by columns and by rows. "]
3591 #[doc = " *"]
3592 #[doc = " * The number of columns to be included \"k\" is equal to the number of included components \"n\" indicated by componentsIncludedIntheMatrix minus 1: k = n-1."]
3593 #[doc = " * These components shall be included in the order or their appearance in componentsIncludedIntheMatrix."]
3594 #[doc = " * Each column \"i\" of the lowerTriangularCorrelationMatrixColumns contains k-(i-1) values."]
3595 #[doc = " *"]
3596 #[doc = " * @category: Sensing information"]
3597 #[doc = " * @revision: Created in V2.1.1"]
3598 #[doc = ""]
3599 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3600 #[rasn(automatic_tags)]
3601 pub struct LowerTriangularPositiveSemidefiniteMatrix {
3602 #[rasn(identifier = "componentsIncludedIntheMatrix")]
3603 pub components_included_inthe_matrix: MatrixIncludedComponents,
3604 pub matrix: LowerTriangularPositiveSemidefiniteMatrixColumns,
3605 }
3606 impl LowerTriangularPositiveSemidefiniteMatrix {
3607 pub fn new(
3608 components_included_inthe_matrix: MatrixIncludedComponents,
3609 matrix: LowerTriangularPositiveSemidefiniteMatrixColumns,
3610 ) -> Self {
3611 Self {
3612 components_included_inthe_matrix,
3613 matrix,
3614 }
3615 }
3616 }
3617 #[doc = "* "]
3618 #[doc = " * This DF represents the columns of a lower triangular positive semi-definite matrix, each column not including the main diagonal cell of the matrix."]
3619 #[doc = " * Given a matrix \"A\" of size n x n, the number of @ref CorrelationColumn to be included in the lower triangular matrix is k=n-1."]
3620 #[doc = " *"]
3621 #[doc = " * @category: Sensing information"]
3622 #[doc = " * @revision: Created in V2.1.1"]
3623 #[doc = ""]
3624 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3625 #[rasn(delegate, size("1..=13"))]
3626 pub struct LowerTriangularPositiveSemidefiniteMatrixColumns(pub SequenceOf<CorrelationColumn>);
3627 #[doc = "*"]
3628 #[doc = " * This DF indicates a position on a topology description transmitted in a MAPEM according to ETSI TS 103 301 [15]."]
3629 #[doc = " *"]
3630 #[doc = " * It shall include the following components: "]
3631 #[doc = " * "]
3632 #[doc = " * @field mapReference: optionally identifies the MAPEM containing the topology information."]
3633 #[doc = " * It is absent if the MAPEM topology is known from the context."]
3634 #[doc = " * "]
3635 #[doc = " * @field laneId: optionally identifies the lane in the road segment or intersection topology on which the position is located."]
3636 #[doc = " *"]
3637 #[doc = " * @field connectionId: optionally identifies the connection inside the conflict area of an intersection, i.e. it identifies a trajectory for travelling through the"]
3638 #[doc = " * conflict area of an intersection which connects e.g an ingress with an egress lane."]
3639 #[doc = " *"]
3640 #[doc = " * @field longitudinalLanePosition: optionally indicates the longitudinal offset of the map-matched position of the object along the lane or connection."]
3641 #[doc = " * "]
3642 #[doc = " * @category: Road topology information"]
3643 #[doc = " * @revision: Created in V2.1.1"]
3644 #[doc = " "]
3645 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3646 #[rasn(automatic_tags)]
3647 #[non_exhaustive]
3648 pub struct MapPosition {
3649 #[rasn(identifier = "mapReference")]
3650 pub map_reference: Option<MapReference>,
3651 #[rasn(identifier = "laneId")]
3652 pub lane_id: Option<Identifier1B>,
3653 #[rasn(identifier = "connectionId")]
3654 pub connection_id: Option<Identifier1B>,
3655 #[rasn(identifier = "longitudinalLanePosition")]
3656 pub longitudinal_lane_position: Option<LongitudinalLanePosition>,
3657 }
3658 impl MapPosition {
3659 pub fn new(
3660 map_reference: Option<MapReference>,
3661 lane_id: Option<Identifier1B>,
3662 connection_id: Option<Identifier1B>,
3663 longitudinal_lane_position: Option<LongitudinalLanePosition>,
3664 ) -> Self {
3665 Self {
3666 map_reference,
3667 lane_id,
3668 connection_id,
3669 longitudinal_lane_position,
3670 }
3671 }
3672 }
3673 #[doc = "*"]
3674 #[doc = " * This DF provides the reference to the information contained in a MAPEM according to ETSI TS 103 301 [15]. "]
3675 #[doc = " *"]
3676 #[doc = " * The following options are provided:"]
3677 #[doc = " * "]
3678 #[doc = " * @field roadsegment: option that identifies the description of a road segment contained in a MAPEM."]
3679 #[doc = " * "]
3680 #[doc = " * @field intersection: option that identifies the description of an intersection contained in a MAPEM."]
3681 #[doc = " *"]
3682 #[doc = " * @category: Road topology information"]
3683 #[doc = " * @revision: Created in V2.1.1"]
3684 #[doc = " "]
3685 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3686 #[rasn(choice, automatic_tags)]
3687 pub enum MapReference {
3688 roadsegment(RoadSegmentReferenceId),
3689 intersection(IntersectionReferenceId),
3690 }
3691 #[doc = "*"]
3692 #[doc = " * This DE indicates the components of an @ref PerceivedObject that are included in the @ref LowerTriangularPositiveSemidefiniteMatrix."]
3693 #[doc = " *"]
3694 #[doc = " * The corresponding bit shall be set to 1 if the component is included:"]
3695 #[doc = " * - 0 - `xCoordinate` - when the component xCoordinate of the component @ref CartesianPosition3dWithConfidence is included,"]
3696 #[doc = " * - 1 - `yCoordinate` - when the component yCoordinate of the component @ref CartesianPosition3dWithConfidence is included, "]
3697 #[doc = " * - 2 - `zCoordinate` - when the component zCoordinate of the component @ref CartesianPosition3dWithConfidence is included, "]
3698 #[doc = " * - 3 - `xVelocityOrVelocityMagnitude` - when the component xVelocity of the component @ref VelocityCartesian or the component VelocityMagnitude of the component @ref VelocityPolarWithZ is included, "]
3699 #[doc = " * - 4 - `yVelocityOrVelocityDirection` - when the component yVelocity of the component @ref VelocityCartesian or the component VelocityDirection of the component @ref VelocityPolarWithZ is included, "]
3700 #[doc = " * - 5 - `zVelocity` - when the component zVelocity of the component @ref VelocityCartesian or of the component @ref VelocityPolarWithZ is included,"]
3701 #[doc = " * - 6 - `xAccelOrAccelMagnitude` - when the component xAcceleration of the component @ref AccelerationCartesian or the component AccelerationMagnitude of the component @ref AccelerationPolarWithZ is included, "]
3702 #[doc = " * - 7 - `yAccelOrAccelDirection` - when the component yAcceleration of the component @ref AccelerationCartesian or the component AccelerationDirection of the component @ref AccelerationPolarWithZ is included, "]
3703 #[doc = " * - 8 - `zAcceleration` - when the component zAcceleration of the component @ref AccelerationCartesian or of the component @ref AccelerationPolarWithZ is included,"]
3704 #[doc = " * - 9 - `zAngle` - when the component zAngle is included,"]
3705 #[doc = " * - 10 - `yAngle` - when the component yAngle is included, "]
3706 #[doc = " * - 11 - `xAngle` - when the component xAngle is included, "]
3707 #[doc = " * - 12 - `zAngularVelocity` - when the component zAngularVelocity is included. "]
3708 #[doc = " *"]
3709 #[doc = " * Otherwise, it shall be set to 0."]
3710 #[doc = " *"]
3711 #[doc = " * @category: Sensing information"]
3712 #[doc = " * @revision: Created in V2.1.1"]
3713 #[doc = " "]
3714 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3715 #[rasn(delegate, size("13", extensible))]
3716 pub struct MatrixIncludedComponents(pub BitString);
3717 #[doc = "* "]
3718 #[doc = " * This DE represents the type of facility layer message."]
3719 #[doc = " *"]
3720 #[doc = " * The value shall be set to:"]
3721 #[doc = " *\t- 1 - `denm` - for Decentralized Environmental Notification Message (DENM) as specified in ETSI EN 302 637-3 [2],"]
3722 #[doc = " * - 2 - `cam` - for Cooperative Awareness Message (CAM) as specified in ETSI EN 302 637-2 [1],"]
3723 #[doc = " * - 3 - `poi` - for Point of Interest message as specified in ETSI TS 101 556-1 [9],"]
3724 #[doc = " * - 4 - `spatem` - for Signal Phase And Timing Extended Message (SPATEM) as specified in ETSI TS 103 301 [15],"]
3725 #[doc = " * - 5 - `mapem` - for MAP Extended Message (MAPEM) as specified in ETSI TS 103 301 [15],"]
3726 #[doc = " * - 6 - `ivim` - for in Vehicle Information Message (IVIM) as specified in ETSI TS 103 301 [15],"]
3727 #[doc = " * - 7 - `ev-rsr` - for Electric vehicle recharging spot reservation message, as defined in ETSI TS 101 556-3 [11],"]
3728 #[doc = " * - 8 - `tistpgtransaction` - for messages for Tyre Information System (TIS) and Tyre Pressure Gauge (TPG) interoperability, as specified in ETSI TS 101 556-2 [10],"]
3729 #[doc = " * - 9 - `srem` - for Signal Request Extended Message as specified in ETSI TS 103 301 [15],"]
3730 #[doc = " * - 10 - `ssem` - for Signal request Status Extended Message as specified in ETSI TS 103 301 [15],"]
3731 #[doc = " * - 11 - `evcsn` - for Electrical Vehicle Charging Spot Notification message as specified in ETSI TS 101 556-1 [9],"]
3732 #[doc = " * - 12 - `saem` - for Services Announcement Extended Message as specified in ETSI EN 302 890-1 [17],"]
3733 #[doc = " * - 13 - `rtcmem` - for Radio Technical Commission for Maritime Services Extended Message (RTCMEM) as specified in ETSI TS 103 301 [15],"]
3734 #[doc = " * - 14 - `cpm` - reserved for Collective Perception Message (CPM), "]
3735 #[doc = " * - 15 - `imzm` - for Interference Management Zone Message (IMZM) as specified in ETSI TS 103 724 [13],"]
3736 #[doc = " * - 16 - `vam` - for Vulnerable Road User Awareness Message as specified in ETSI TS 130 300-3 [12], "]
3737 #[doc = " * - 17 - `dsm` - reserved for Diagnosis, logging and Status Message,"]
3738 #[doc = " * - 18 - `pcim` - reserved for Parking Control Infrastructure Message,"]
3739 #[doc = " * - 19 - `pcvm` - reserved for Parking Control Vehicle Message,"]
3740 #[doc = " * - 20 - `mcm` - reserved for Manoeuvre Coordination Message,"]
3741 #[doc = " * - 21 - `pam` - reserved for Parking Availability Message,"]
3742 #[doc = " * - 22-255 - reserved for future usage."]
3743 #[doc = " *"]
3744 #[doc = " * @category: Communication information"]
3745 #[doc = " * @revision: Created in V2.1.1 from @ref ItsPduHeader."]
3746 #[doc = " "]
3747 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3748 #[rasn(delegate, value("0..=255"))]
3749 pub struct MessageId(pub u8);
3750 #[doc = "*"]
3751 #[doc = " * This DE indicates a message rate."]
3752 #[doc = " *"]
3753 #[doc = " * @field mantissa: indicates the mantissa."]
3754 #[doc = " *"]
3755 #[doc = " * @field exponent: indicates the exponent."]
3756 #[doc = " *"]
3757 #[doc = " * The specified message rate is: mantissa*(10^exponent) "]
3758 #[doc = " *"]
3759 #[doc = " * @unit: Hz"]
3760 #[doc = " * @category: Communication information"]
3761 #[doc = " * @revision: Created in V2.1.1"]
3762 #[doc = " "]
3763 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3764 #[rasn(automatic_tags)]
3765 pub struct MessageRateHz {
3766 #[rasn(value("1..=100"))]
3767 pub mantissa: u8,
3768 #[rasn(value("-5..=2"))]
3769 pub exponent: i8,
3770 }
3771 impl MessageRateHz {
3772 pub fn new(mantissa: u8, exponent: i8) -> Self {
3773 Self { mantissa, exponent }
3774 }
3775 }
3776 #[doc = "*"]
3777 #[doc = " * This DF provides information about a message with respect to the segmentation process at the sender."]
3778 #[doc = " *"]
3779 #[doc = " * It shall include the following components: "]
3780 #[doc = " * "]
3781 #[doc = " * @field totalMsgNo: indicates the total number of messages that has been used on the transmitter side to encode the information."]
3782 #[doc = " *"]
3783 #[doc = " * @field thisMsgNo: indicates the position of the message within of the total set of messages."]
3784 #[doc = " *"]
3785 #[doc = " * @category: Communication information"]
3786 #[doc = " * @revision: Created in V2.1.1"]
3787 #[doc = " "]
3788 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3789 #[rasn(automatic_tags)]
3790 pub struct MessageSegmentationInfo {
3791 #[rasn(identifier = "totalMsgNo")]
3792 pub total_msg_no: CardinalNumber3b,
3793 #[rasn(identifier = "thisMsgNo")]
3794 pub this_msg_no: OrdinalNumber3b,
3795 }
3796 impl MessageSegmentationInfo {
3797 pub fn new(total_msg_no: CardinalNumber3b, this_msg_no: OrdinalNumber3b) -> Self {
3798 Self {
3799 total_msg_no,
3800 this_msg_no,
3801 }
3802 }
3803 }
3804 #[doc = "*"]
3805 #[doc = " * This DF shall contain a list of @ref MitigationPerTechnologyClass."]
3806 #[doc = " *"]
3807 #[doc = " * @category: Communication information"]
3808 #[doc = " * @revision: Created in V2.1.1"]
3809 #[doc = ""]
3810 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3811 #[rasn(delegate, size("1..=8"))]
3812 pub struct MitigationForTechnologies(pub SequenceOf<MitigationPerTechnologyClass>);
3813 #[doc = "*"]
3814 #[doc = " * This DF represents a set of mitigation parameters for a specific technology, as specified in ETSI TS 103 724 [24], clause 7."]
3815 #[doc = " *"]
3816 #[doc = " * It shall include the following components: "]
3817 #[doc = " *"]
3818 #[doc = " * @field accessTechnologyClass: channel access technology to which this mitigation is intended to be applied."]
3819 #[doc = " *"]
3820 #[doc = " * @field lowDutyCycle: duty cycle limit."]
3821 #[doc = " * @unit: 0,01 % steps"]
3822 #[doc = " *"]
3823 #[doc = " * @field powerReduction: the delta value of power to be reduced."]
3824 #[doc = " * @unit: dB"]
3825 #[doc = " *"]
3826 #[doc = " * @field dmcToffLimit: idle time limit as defined in ETSI TS 103 175 [19]."]
3827 #[doc = " * @unit: ms"]
3828 #[doc = " *"]
3829 #[doc = " * @field dmcTonLimit: Transmission duration limit, as defined in ETSI EN 302 571 [20]."]
3830 #[doc = " * @unit: ms"]
3831 #[doc = " *"]
3832 #[doc = " * @note: All parameters are optional, as they may not apply to some of the technologies or"]
3833 #[doc = " * interference management zone types. Specification details are in ETSI TS 103 724 [24], clause 7. "]
3834 #[doc = " *"]
3835 #[doc = " * @category: Communication information"]
3836 #[doc = " * @revision: Created in V2.1.1"]
3837 #[doc = " "]
3838 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3839 #[rasn(automatic_tags)]
3840 #[non_exhaustive]
3841 pub struct MitigationPerTechnologyClass {
3842 #[rasn(identifier = "accessTechnologyClass")]
3843 pub access_technology_class: AccessTechnologyClass,
3844 #[rasn(value("0..=10000"), identifier = "lowDutyCycle")]
3845 pub low_duty_cycle: Option<u16>,
3846 #[rasn(value("0..=30"), identifier = "powerReduction")]
3847 pub power_reduction: Option<u8>,
3848 #[rasn(value("0..=1200"), identifier = "dmcToffLimit")]
3849 pub dmc_toff_limit: Option<u16>,
3850 #[rasn(value("0..=20"), identifier = "dmcTonLimit")]
3851 pub dmc_ton_limit: Option<u8>,
3852 }
3853 impl MitigationPerTechnologyClass {
3854 pub fn new(
3855 access_technology_class: AccessTechnologyClass,
3856 low_duty_cycle: Option<u16>,
3857 power_reduction: Option<u8>,
3858 dmc_toff_limit: Option<u16>,
3859 dmc_ton_limit: Option<u8>,
3860 ) -> Self {
3861 Self {
3862 access_technology_class,
3863 low_duty_cycle,
3864 power_reduction,
3865 dmc_toff_limit,
3866 dmc_ton_limit,
3867 }
3868 }
3869 }
3870 #[doc = "*"]
3871 #[doc = " * This DE represents the number of occupants in a vehicle."]
3872 #[doc = " *"]
3873 #[doc = " * The value shall be set to:"]
3874 #[doc = " * - `n` (`n >= 0` and `n < 126`) for the number n of occupants,"]
3875 #[doc = " * - `126` for values equal to or higher than 125,"]
3876 #[doc = " * - `127` if information is not available."]
3877 #[doc = " *"]
3878 #[doc = " * @unit: 1 person"]
3879 #[doc = " * @category: Vehicle information"]
3880 #[doc = " * @revision: Editorial update in V2.1.1"]
3881 #[doc = " "]
3882 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3883 #[rasn(delegate, value("0..=127"))]
3884 pub struct NumberOfOccupants(pub u8);
3885 #[doc = "* "]
3886 #[doc = " * This DF indicates both the class and associated subclass that best describes an object."]
3887 #[doc = " *"]
3888 #[doc = " * The following options are available:"]
3889 #[doc = " *"]
3890 #[doc = " * @field vehicleSubClass: the object is a road vehicle and the specific subclass is specified."]
3891 #[doc = " *"]
3892 #[doc = " * @field vruSubClass: the object is a VRU and the specific subclass is specified."]
3893 #[doc = " *"]
3894 #[doc = " * @field groupSubClass: the object is a VRU group or cluster and the cluster information is specified."]
3895 #[doc = " *"]
3896 #[doc = " * @field otherSubClass: the object is of a different type than the above and the specific subclass is specified."]
3897 #[doc = " *"]
3898 #[doc = " * @category: Sensing information"]
3899 #[doc = " * @revision: Created in V2.1.1"]
3900 #[doc = " "]
3901 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3902 #[rasn(choice, automatic_tags)]
3903 #[non_exhaustive]
3904 pub enum ObjectClass {
3905 #[rasn(value("0..=14"))]
3906 vehicleSubClass(TrafficParticipantType),
3907 vruSubClass(VruProfileAndSubprofile),
3908 #[rasn(value("0.."))]
3909 groupSubClass(VruClusterInformation),
3910 otherSubClass(OtherSubClass),
3911 }
3912 #[doc = "* "]
3913 #[doc = " * This DF shall contain a list of object classes."]
3914 #[doc = " *"]
3915 #[doc = " * @category: Sensing information"]
3916 #[doc = " * @revision: Created in V2.1.1"]
3917 #[doc = ""]
3918 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3919 #[rasn(delegate, size("1..=8"))]
3920 pub struct ObjectClassDescription(pub SequenceOf<ObjectClassWithConfidence>);
3921 #[doc = "* "]
3922 #[doc = " * This DF represents the classification of a detected object together with a confidence level."]
3923 #[doc = " *"]
3924 #[doc = " * It shall include the following components: "]
3925 #[doc = " *"]
3926 #[doc = " * @field objectClass: the class of the object."]
3927 #[doc = " *"]
3928 #[doc = " * @field Confidence: the associated confidence level."]
3929 #[doc = " *"]
3930 #[doc = " * @category: Sensing information"]
3931 #[doc = " * @revision: Created in V2.1.1"]
3932 #[doc = ""]
3933 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3934 #[rasn(automatic_tags)]
3935 pub struct ObjectClassWithConfidence {
3936 #[rasn(identifier = "objectClass")]
3937 pub object_class: ObjectClass,
3938 pub confidence: ConfidenceLevel,
3939 }
3940 impl ObjectClassWithConfidence {
3941 pub fn new(object_class: ObjectClass, confidence: ConfidenceLevel) -> Self {
3942 Self {
3943 object_class,
3944 confidence,
3945 }
3946 }
3947 }
3948 #[doc = "* "]
3949 #[doc = " * This DF represents a dimension of an object together with a confidence value."]
3950 #[doc = " *"]
3951 #[doc = " * It shall include the following components: "]
3952 #[doc = " * "]
3953 #[doc = " * @field value: the object dimension value which can be estimated as the mean of the current distribution."]
3954 #[doc = " *"]
3955 #[doc = " * @field confidence: the associated confidence value."]
3956 #[doc = " *"]
3957 #[doc = " * @category: Sensing information"]
3958 #[doc = " * @revision: Created in V2.1.1"]
3959 #[doc = ""]
3960 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3961 #[rasn(automatic_tags)]
3962 pub struct ObjectDimension {
3963 pub value: ObjectDimensionValue,
3964 pub confidence: ObjectDimensionConfidence,
3965 }
3966 impl ObjectDimension {
3967 pub fn new(value: ObjectDimensionValue, confidence: ObjectDimensionConfidence) -> Self {
3968 Self { value, confidence }
3969 }
3970 }
3971 #[doc = "* "]
3972 #[doc = " * This DE indicates the object dimension confidence value which represents the estimated absolute accuracy of an object dimension value with a default confidence level of 95 %."]
3973 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
3974 #[doc = " *"]
3975 #[doc = " * The value shall be set to:"]
3976 #[doc = " * - `n` (`n > 0` and `n < 31`) if the confidence value is equal to or less than n x 0,1 metre, and more than (n-1) x 0,1 metre,"]
3977 #[doc = " * - `31` if the confidence value is out of range i.e. greater than 3,0 m,"]
3978 #[doc = " * - `32` if the confidence value is unavailable."]
3979 #[doc = " *"]
3980 #[doc = " * @unit 0,1 m"]
3981 #[doc = " * @category: Sensing information"]
3982 #[doc = " * @revision: Created in V2.1.1 "]
3983 #[doc = ""]
3984 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3985 #[rasn(delegate, value("1..=32"))]
3986 pub struct ObjectDimensionConfidence(pub u8);
3987 #[doc = "* "]
3988 #[doc = " * This DE represents a single dimension of an object."]
3989 #[doc = " *"]
3990 #[doc = " * The value shall be set to:"]
3991 #[doc = " * - `n` (`n > 0` and `n < 255`) if the accuracy is equal to or less than n x 0,1 m, and more than (n-1) x 0,1 m,"]
3992 #[doc = " * - `255` if the accuracy is out of range i.e. greater than 25,4 m,"]
3993 #[doc = " * - `256` if the data is unavailable."]
3994 #[doc = " *"]
3995 #[doc = " * @unit 0,1 m"]
3996 #[doc = " * @category: Basic information"]
3997 #[doc = " * @revision: Created in V2.1.1 "]
3998 #[doc = ""]
3999 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4000 #[rasn(delegate, value("1..=256"))]
4001 pub struct ObjectDimensionValue(pub u16);
4002 #[doc = "*"]
4003 #[doc = " * This DE indicates the face or part of a face of a solid object."]
4004 #[doc = " *"]
4005 #[doc = " * The object is modelled as a rectangular prism that has a length that is greater than its width, with the faces of the object being defined as:"]
4006 #[doc = " * - front: the face defined by the prism's width and height, and which is the first face in direction of longitudinal movement of the object,"]
4007 #[doc = " * - back: the face defined by the prism's width and height, and which is the last face in direction of longitudinal movement of the object,"]
4008 #[doc = " * - side: the faces defined by the prism's length and height with \"left\" and \"right\" defined by looking at the front face and \"front\" and \"back\" defined w.r.t to the front and back faces. "]
4009 #[doc = " *"]
4010 #[doc = " * Note: It is permissible to derive the required object dimensions and orientation from models to provide a best guess."]
4011 #[doc = " * "]
4012 #[doc = " * @category: Basic information"]
4013 #[doc = " * @revision: V2.1.1"]
4014 #[doc = ""]
4015 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
4016 #[rasn(enumerated)]
4017 pub enum ObjectFace {
4018 front = 0,
4019 sideLeftFront = 1,
4020 sideLeftBack = 2,
4021 sideRightFront = 3,
4022 sideRightBack = 4,
4023 back = 5,
4024 }
4025 #[doc = "* "]
4026 #[doc = " * This DE represents a single-value indication about the overall information quality of a perceived object."]
4027 #[doc = " * "]
4028 #[doc = " * The value shall be set to: "]
4029 #[doc = " * - `0` : if there is no confidence in detected object, e.g. for \"ghost\"-objects or if confidence could not be computed,"]
4030 #[doc = " * - `n` (`n > 0` and `n < 15`) : for the applicable confidence value,"]
4031 #[doc = " * - `15` : if there is full confidence in the detected Object."]
4032 #[doc = " * "]
4033 #[doc = " * @unit n/a"]
4034 #[doc = " * @category: Sensing information"]
4035 #[doc = " * @revision: Created in V2.1.1 "]
4036 #[doc = ""]
4037 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4038 #[rasn(delegate, value("0..=15"))]
4039 pub struct ObjectPerceptionQuality(pub u8);
4040 #[doc = "*"]
4041 #[doc = " * This DE represents a time period to describe the opening days and hours of a Point of Interest."]
4042 #[doc = " * (for example local commerce)."]
4043 #[doc = " *"]
4044 #[doc = " * @category: Basic information"]
4045 #[doc = " * @revision: V1.3.1"]
4046 #[doc = " "]
4047 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4048 #[rasn(delegate)]
4049 pub struct OpeningDaysHours(pub Utf8String);
4050 #[doc = "*"]
4051 #[doc = " * The DE represents an ordinal number that indicates the position of an element in a set. "]
4052 #[doc = " * "]
4053 #[doc = " * @category: Basic information"]
4054 #[doc = " * @revision: Created in V2.1.1"]
4055 #[doc = ""]
4056 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4057 #[rasn(delegate, value("0..=255"))]
4058 pub struct OrdinalNumber1B(pub u8);
4059 #[doc = "*"]
4060 #[doc = " * The DE represents an ordinal number that indicates the position of an element in a set. "]
4061 #[doc = " * "]
4062 #[doc = " * @category: Basic information"]
4063 #[doc = " * @revision: Created in V2.1.1"]
4064 #[doc = ""]
4065 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4066 #[rasn(delegate, value("1..=8"))]
4067 pub struct OrdinalNumber3b(pub u8);
4068 #[doc = "* "]
4069 #[doc = " * This DE indicates the subclass of a detected object for @ref ObjectClass \"otherSubclass\"."]
4070 #[doc = " *"]
4071 #[doc = " * The value shall be set to:"]
4072 #[doc = " * - `0` - unknown - if the subclass is unknown."]
4073 #[doc = " * - `1` - singleObject - if the object is a single object."]
4074 #[doc = " * - `2` - multipleObjects - if the object is a group of multiple objects."]
4075 #[doc = " * - `3` - bulkMaterial - if the object is a bulk material."]
4076 #[doc = " *"]
4077 #[doc = " * @category: Sensing information"]
4078 #[doc = " * @revision: Created in V2.1.1"]
4079 #[doc = " "]
4080 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4081 #[rasn(delegate, value("0..=255"))]
4082 pub struct OtherSubClass(pub u8);
4083 #[doc = "*"]
4084 #[doc = " * This DF represents a path with a set of path points."]
4085 #[doc = " * It shall contain up to `40` @ref PathPoint. "]
4086 #[doc = " * "]
4087 #[doc = " * The first PathPoint presents an offset delta position with regards to an external reference position."]
4088 #[doc = " * Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
4089 #[doc = " *"]
4090 #[doc = " * @category: GeoReference information, Vehicle information"]
4091 #[doc = " * @revision: created in V2.1.1 based on PathHistory"]
4092 #[doc = " "]
4093 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4094 #[rasn(delegate, size("0..=40"))]
4095 pub struct Path(pub SequenceOf<PathPoint>);
4096 #[doc = "*"]
4097 #[doc = " * This DE represents the recorded or estimated travel time between a position and a predefined reference position. "]
4098 #[doc = " *"]
4099 #[doc = " * @unit 0,01 second"]
4100 #[doc = " * @category: GeoReference information"]
4101 #[doc = " * @revision: V1.3.1"]
4102 #[doc = " "]
4103 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4104 #[rasn(delegate, value("1..=65535", extensible))]
4105 pub struct PathDeltaTime(pub Integer);
4106 #[doc = "*"]
4107 #[doc = " * This DF represents a path history with a set of path points."]
4108 #[doc = " * It shall contain up to `40` @ref PathPoint. "]
4109 #[doc = " * "]
4110 #[doc = " * The first PathPoint presents an offset delta position with regards to an external reference position."]
4111 #[doc = " * Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
4112 #[doc = " *"]
4113 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref Path instead."]
4114 #[doc = " * @category: GeoReference information, Vehicle information"]
4115 #[doc = " * @revision: semantics updated in V2.1.1"]
4116 #[doc = " "]
4117 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4118 #[rasn(delegate, size("40"))]
4119 pub struct PathHistory(pub SequenceOf<PathPoint>);
4120 #[doc = "*"]
4121 #[doc = " * This DF defines an offset waypoint position within a path."]
4122 #[doc = " *"]
4123 #[doc = " * It shall include the following components: "]
4124 #[doc = " *"]
4125 #[doc = " * @field pathPosition: The waypoint position defined as an offset position with regards to a pre-defined reference position. "]
4126 #[doc = " *"]
4127 #[doc = " * @field pathDeltaTime: The optional travel time separated from a waypoint to the predefined reference position."]
4128 #[doc = " *"]
4129 #[doc = " * @category GeoReference information"]
4130 #[doc = " * @revision: semantics updated in V2.1.1"]
4131 #[doc = " "]
4132 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4133 #[rasn(automatic_tags)]
4134 pub struct PathPoint {
4135 #[rasn(identifier = "pathPosition")]
4136 pub path_position: DeltaReferencePosition,
4137 #[rasn(identifier = "pathDeltaTime")]
4138 pub path_delta_time: Option<PathDeltaTime>,
4139 }
4140 impl PathPoint {
4141 pub fn new(
4142 path_position: DeltaReferencePosition,
4143 path_delta_time: Option<PathDeltaTime>,
4144 ) -> Self {
4145 Self {
4146 path_position,
4147 path_delta_time,
4148 }
4149 }
4150 }
4151 #[doc = "*"]
4152 #[doc = " * This DF defines a predicted offset waypoint position within a path."]
4153 #[doc = " *"]
4154 #[doc = " * It shall include the following components: "]
4155 #[doc = " *"]
4156 #[doc = " * @field deltaLatitude: an offset latitude with regards to a pre-defined reference position. "]
4157 #[doc = " *"]
4158 #[doc = " * @field deltaLongitude: an offset longitude with regards to a pre-defined reference position. "]
4159 #[doc = " * "]
4160 #[doc = " * @field horizontalPositionConfidence: the confidence value associated to the horizontal geographical position."]
4161 #[doc = " *"]
4162 #[doc = " * @field deltaAltitude: an offset altitude with regards to a pre-defined reference position. "]
4163 #[doc = " *"]
4164 #[doc = " * @field altitudeConfidence: the confidence value associated to the altitude value of the geographical position."]
4165 #[doc = " * "]
4166 #[doc = " * @field pathDeltaTime: The travel time separated from the waypoint to the predefined reference position."]
4167 #[doc = " *"]
4168 #[doc = " * @category GeoReference information"]
4169 #[doc = " * @revision: semantics updated in V2.1.1"]
4170 #[doc = " "]
4171 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4172 #[rasn(automatic_tags)]
4173 #[non_exhaustive]
4174 pub struct PathPointPredicted {
4175 #[rasn(identifier = "deltaLatitude")]
4176 pub delta_latitude: DeltaLatitude,
4177 #[rasn(identifier = "deltaLongitude")]
4178 pub delta_longitude: DeltaLongitude,
4179 #[rasn(identifier = "horizontalPositionConfidence")]
4180 pub horizontal_position_confidence: Option<PosConfidenceEllipse>,
4181 #[rasn(
4182 default = "path_point_predicted_delta_altitude_default",
4183 identifier = "deltaAltitude"
4184 )]
4185 pub delta_altitude: DeltaAltitude,
4186 #[rasn(
4187 default = "path_point_predicted_altitude_confidence_default",
4188 identifier = "altitudeConfidence"
4189 )]
4190 pub altitude_confidence: AltitudeConfidence,
4191 #[rasn(identifier = "pathDeltaTime")]
4192 pub path_delta_time: DeltaTimeTenthOfSecond,
4193 }
4194 impl PathPointPredicted {
4195 pub fn new(
4196 delta_latitude: DeltaLatitude,
4197 delta_longitude: DeltaLongitude,
4198 horizontal_position_confidence: Option<PosConfidenceEllipse>,
4199 delta_altitude: DeltaAltitude,
4200 altitude_confidence: AltitudeConfidence,
4201 path_delta_time: DeltaTimeTenthOfSecond,
4202 ) -> Self {
4203 Self {
4204 delta_latitude,
4205 delta_longitude,
4206 horizontal_position_confidence,
4207 delta_altitude,
4208 altitude_confidence,
4209 path_delta_time,
4210 }
4211 }
4212 }
4213 fn path_point_predicted_delta_altitude_default() -> DeltaAltitude {
4214 DeltaAltitude(12800)
4215 }
4216 fn path_point_predicted_altitude_confidence_default() -> AltitudeConfidence {
4217 AltitudeConfidence::unavailable
4218 }
4219 #[doc = "*"]
4220 #[doc = " * This DF represents a predicted path with a set of path points."]
4221 #[doc = " * It shall contain up to `15` @ref PathPoint. "]
4222 #[doc = " * "]
4223 #[doc = " * The first PathPoint presents an offset delta position with regards to an external reference position."]
4224 #[doc = " * Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
4225 #[doc = " *"]
4226 #[doc = " * @category: GeoReference information"]
4227 #[doc = " * @revision: created in V2.1.1 based on PathHistory"]
4228 #[doc = " "]
4229 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4230 #[rasn(delegate, size("0..=15", extensible))]
4231 pub struct PathPredicted(pub SequenceOf<PathPointPredicted>);
4232 #[doc = "* "]
4233 #[doc = " * This DF contains information about a perceived object including its kinematic state and attitude vector in a pre-defined coordinate system and with respect to a reference time."]
4234 #[doc = " * "]
4235 #[doc = " * It shall include the following components: "]
4236 #[doc = " *"]
4237 #[doc = " * @field objectId: optional identifier assigned to a detected object."]
4238 #[doc = " *"]
4239 #[doc = " * @field measurementDeltaTime: the time difference from a reference time to the time of the measurement of the object. "]
4240 #[doc = " * Negative values indicate that the provided object state refers to a point in time before the reference time."]
4241 #[doc = " *"]
4242 #[doc = " * @field position: the position of the geometric centre of the object's bounding box within the pre-defined coordinate system."]
4243 #[doc = " *"]
4244 #[doc = " * @field velocity: the velocity vector of the object within the pre-defined coordinate system."]
4245 #[doc = " *"]
4246 #[doc = " * @field acceleration: the acceleration vector of the object within the pre-defined coordinate system."]
4247 #[doc = " *"]
4248 #[doc = " * @field angles: optional Euler angles of the object bounding box at the time of measurement. "]
4249 #[doc = " * "]
4250 #[doc = " * @field zAngularVelocity: optional angular velocity of the object around the z-axis at the time of measurement."]
4251 #[doc = " * The angular velocity is measured with positive values considering the object orientation turning around the z-axis using the right-hand rule."]
4252 #[doc = " *"]
4253 #[doc = " * @field lowerTriangularCorrelationMatrices: optional set of lower triangular correlation matrices for selected components of the provided kinematic state and attitude vector."]
4254 #[doc = " *"]
4255 #[doc = " * @field objectDimensionZ: optional z-dimension of object bounding box. "]
4256 #[doc = " * This dimension shall be measured along the direction of the z-axis after all the rotations have been applied. "]
4257 #[doc = " *"]
4258 #[doc = " * @field objectDimensionY: optional y-dimension of the object bounding box. "]
4259 #[doc = " * This dimension shall be measured along the direction of the y-axis after all the rotations have been applied. "]
4260 #[doc = " *"]
4261 #[doc = " * @field objectDimensionX: optional x-dimension of object bounding box."]
4262 #[doc = " * This dimension shall be measured along the direction of the x-axis after all the rotations have been applied."]
4263 #[doc = " * "]
4264 #[doc = " * @field objectAge: optional age of the detected and described object, i.e. the difference in time between the moment "]
4265 #[doc = " * it has been first detected and the reference time of the message. Value `1500` indicates that the object has been observed for more than 1.5s."]
4266 #[doc = " *"]
4267 #[doc = " * @field objectPerceptionQuality: optional confidence associated to the object. "]
4268 #[doc = " *"]
4269 #[doc = " * @field sensorIdList: optional list of sensor-IDs which provided the measurement data. "]
4270 #[doc = " *"]
4271 #[doc = " * @field classification: optional classification of the described object"]
4272 #[doc = " *"]
4273 #[doc = " * @field matchedPosition: optional map-matched position of an object."]
4274 #[doc = " *"]
4275 #[doc = " * @category Sensing information"]
4276 #[doc = " * @revision: created in V2.1.1"]
4277 #[doc = " "]
4278 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4279 #[rasn(automatic_tags)]
4280 #[non_exhaustive]
4281 pub struct PerceivedObject {
4282 #[rasn(identifier = "objectId")]
4283 pub object_id: Option<Identifier2B>,
4284 #[rasn(identifier = "measurementDeltaTime")]
4285 pub measurement_delta_time: DeltaTimeMilliSecondSigned,
4286 pub position: CartesianPosition3dWithConfidence,
4287 pub velocity: Option<Velocity3dWithConfidence>,
4288 pub acceleration: Option<Acceleration3dWithConfidence>,
4289 pub angles: Option<EulerAnglesWithConfidence>,
4290 #[rasn(identifier = "zAngularVelocity")]
4291 pub z_angular_velocity: Option<CartesianAngularVelocityComponent>,
4292 #[rasn(identifier = "lowerTriangularCorrelationMatrices")]
4293 pub lower_triangular_correlation_matrices:
4294 Option<LowerTriangularPositiveSemidefiniteMatrices>,
4295 #[rasn(identifier = "objectDimensionZ")]
4296 pub object_dimension_z: Option<ObjectDimension>,
4297 #[rasn(identifier = "objectDimensionY")]
4298 pub object_dimension_y: Option<ObjectDimension>,
4299 #[rasn(identifier = "objectDimensionX")]
4300 pub object_dimension_x: Option<ObjectDimension>,
4301 #[rasn(value("0..=2047"), identifier = "objectAge")]
4302 pub object_age: Option<DeltaTimeMilliSecondSigned>,
4303 #[rasn(identifier = "objectPerceptionQuality")]
4304 pub object_perception_quality: Option<ObjectPerceptionQuality>,
4305 #[rasn(identifier = "sensorIdList")]
4306 pub sensor_id_list: Option<SequenceOfIdentifier1B>,
4307 pub classification: Option<ObjectClassDescription>,
4308 #[rasn(identifier = "mapPosition")]
4309 pub map_position: Option<MapPosition>,
4310 }
4311 impl PerceivedObject {
4312 pub fn new(
4313 object_id: Option<Identifier2B>,
4314 measurement_delta_time: DeltaTimeMilliSecondSigned,
4315 position: CartesianPosition3dWithConfidence,
4316 velocity: Option<Velocity3dWithConfidence>,
4317 acceleration: Option<Acceleration3dWithConfidence>,
4318 angles: Option<EulerAnglesWithConfidence>,
4319 z_angular_velocity: Option<CartesianAngularVelocityComponent>,
4320 lower_triangular_correlation_matrices: Option<
4321 LowerTriangularPositiveSemidefiniteMatrices,
4322 >,
4323 object_dimension_z: Option<ObjectDimension>,
4324 object_dimension_y: Option<ObjectDimension>,
4325 object_dimension_x: Option<ObjectDimension>,
4326 object_age: Option<DeltaTimeMilliSecondSigned>,
4327 object_perception_quality: Option<ObjectPerceptionQuality>,
4328 sensor_id_list: Option<SequenceOfIdentifier1B>,
4329 classification: Option<ObjectClassDescription>,
4330 map_position: Option<MapPosition>,
4331 ) -> Self {
4332 Self {
4333 object_id,
4334 measurement_delta_time,
4335 position,
4336 velocity,
4337 acceleration,
4338 angles,
4339 z_angular_velocity,
4340 lower_triangular_correlation_matrices,
4341 object_dimension_z,
4342 object_dimension_y,
4343 object_dimension_x,
4344 object_age,
4345 object_perception_quality,
4346 sensor_id_list,
4347 classification,
4348 map_position,
4349 }
4350 }
4351 }
4352 #[doc = "*"]
4353 #[doc = " * This DE denotes the ability of an ITS-S to provide up-to-date information."]
4354 #[doc = " * A performance class value is used to describe age of data. The exact values are out of scope of the present document."]
4355 #[doc = " * "]
4356 #[doc = " * The value shall be set to:"]
4357 #[doc = " * - `0` if the performance class is unknown,"]
4358 #[doc = " * - `1` for performance class A as defined in ETSI TS 101 539-1 [5],"]
4359 #[doc = " * - `2` for performance class B as defined in ETSI TS 101 539-1 [5],"]
4360 #[doc = " * - 3-7 reserved for future use."]
4361 #[doc = " *"]
4362 #[doc = " * @category: Vehicle information"]
4363 #[doc = " * @revision: Editorial update in V2.1.1"]
4364 #[doc = " "]
4365 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4366 #[rasn(delegate, value("0..=7"))]
4367 pub struct PerformanceClass(pub u8);
4368 #[doc = "*"]
4369 #[doc = " * This DE represents a telephone number"]
4370 #[doc = " * "]
4371 #[doc = " * @category: Basic information"]
4372 #[doc = " * @revision: V1.3.1"]
4373 #[doc = " "]
4374 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4375 #[rasn(delegate, size("1..=16"))]
4376 pub struct PhoneNumber(pub NumericString);
4377 #[doc = "* "]
4378 #[doc = " * This DF represents the shape of a polygonal area or of a right prism."]
4379 #[doc = " *"]
4380 #[doc = " * It shall include the following components: "]
4381 #[doc = " *"]
4382 #[doc = " * @field shapeReferencePoint: the optional reference point used for the definition of the shape, relative to an externally specified reference position. "]
4383 #[doc = " * If this component is absent, the externally specified reference position represents the shape's reference point. "]
4384 #[doc = " *"]
4385 #[doc = " * @field polygon: the polygonal area represented by a list of minimum `3` to maximum `16` @ref CartesianPosition3d."]
4386 #[doc = " * All nodes of the polygon shall be considered relative to the shape's reference point."]
4387 #[doc = " *"]
4388 #[doc = " * @field height: the optional height, present if the shape is a right prism extending in the positive z-axis."]
4389 #[doc = " * "]
4390 #[doc = " * @category GeoReference information"]
4391 #[doc = " * @revision: created in V2.1.1"]
4392 #[doc = " *"]
4393 #[doc = " "]
4394 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4395 #[rasn(automatic_tags)]
4396 pub struct PolygonalShape {
4397 #[rasn(identifier = "shapeReferencePoint")]
4398 pub shape_reference_point: Option<CartesianPosition3d>,
4399 #[rasn(size("3..=16", extensible))]
4400 pub polygon: SequenceOfCartesianPosition3d,
4401 pub height: Option<StandardLength12b>,
4402 }
4403 impl PolygonalShape {
4404 pub fn new(
4405 shape_reference_point: Option<CartesianPosition3d>,
4406 polygon: SequenceOfCartesianPosition3d,
4407 height: Option<StandardLength12b>,
4408 ) -> Self {
4409 Self {
4410 shape_reference_point,
4411 polygon,
4412 height,
4413 }
4414 }
4415 }
4416 #[doc = "*"]
4417 #[doc = " * This DE indicates the perpendicular distance from the centre of mass of an empty load vehicle to the front line of"]
4418 #[doc = " * the vehicle bounding box of the empty load vehicle."]
4419 #[doc = " *"]
4420 #[doc = " * The value shall be set to:"]
4421 #[doc = " * - `n` (`n > 0` and `n < 62`) for any aplicable value n between 0,1 metre and 6,2 metres, "]
4422 #[doc = " * - `62` for values equal to or higher than 6.1 metres,"]
4423 #[doc = " * - `63` if the information is unavailable."]
4424 #[doc = " * "]
4425 #[doc = " * @note:\tThe empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
4426 #[doc = " *"]
4427 #[doc = " * @unit 0,1 metre "]
4428 #[doc = " * @category Vehicle information"]
4429 #[doc = " * @revision: description revised in V2.1.1 (the meaning of 62 has changed slightly) "]
4430 #[doc = " "]
4431 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4432 #[rasn(delegate, value("1..=63"))]
4433 pub struct PosCentMass(pub u8);
4434 #[doc = "*"]
4435 #[doc = " * This DF indicates the horizontal position confidence ellipse which represents the estimated accuracy with a "]
4436 #[doc = " * confidence level of 95 %. The centre of the ellipse shape corresponds to the reference"]
4437 #[doc = " * position point for which the position accuracy is evaluated."]
4438 #[doc = " *"]
4439 #[doc = " * It shall include the following components: "]
4440 #[doc = " *"]
4441 #[doc = " * @field semiMajorConfidence: half of length of the major axis, i.e. distance between the centre point"]
4442 #[doc = " * and major axis point of the position accuracy ellipse. "]
4443 #[doc = " *"]
4444 #[doc = " * @field semiMinorConfidence: half of length of the minor axis, i.e. distance between the centre point"]
4445 #[doc = " * and minor axis point of the position accuracy ellipse. "]
4446 #[doc = " *"]
4447 #[doc = " * @field semiMajorOrientation: orientation direction of the ellipse major axis of the position accuracy"]
4448 #[doc = " * ellipse with regards to the WGS84 north. "]
4449 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
4450 #[doc = " *"]
4451 #[doc = " *"]
4452 #[doc = " * @category GeoReference information"]
4453 #[doc = " * @revision: V1.3.1"]
4454 #[doc = " "]
4455 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4456 #[rasn(automatic_tags)]
4457 pub struct PosConfidenceEllipse {
4458 #[rasn(identifier = "semiMajorConfidence")]
4459 pub semi_major_confidence: SemiAxisLength,
4460 #[rasn(identifier = "semiMinorConfidence")]
4461 pub semi_minor_confidence: SemiAxisLength,
4462 #[rasn(identifier = "semiMajorOrientation")]
4463 pub semi_major_orientation: HeadingValue,
4464 }
4465 impl PosConfidenceEllipse {
4466 pub fn new(
4467 semi_major_confidence: SemiAxisLength,
4468 semi_minor_confidence: SemiAxisLength,
4469 semi_major_orientation: HeadingValue,
4470 ) -> Self {
4471 Self {
4472 semi_major_confidence,
4473 semi_minor_confidence,
4474 semi_major_orientation,
4475 }
4476 }
4477 }
4478 #[doc = "*"]
4479 #[doc = " * This DE indicates the perpendicular distance between the vehicle front line of the bounding box and the front wheel axle in 0,1 metre."]
4480 #[doc = " *"]
4481 #[doc = " * The value shall be set to:"]
4482 #[doc = " * - `n` (`n > 0` and `n < 19`) for any aplicable value between 0,1 metre and 1,9 metres,"]
4483 #[doc = " * - `19` for values equal to or higher than 1.8 metres,"]
4484 #[doc = " * - `20` if the information is unavailable."]
4485 #[doc = " *"]
4486 #[doc = " * @category: Vehicle information"]
4487 #[doc = " * @unit 0,1 metre"]
4488 #[doc = " * @revision: description revised in V2.1.1 (the meaning of 19 has changed slightly) "]
4489 #[doc = " "]
4490 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4491 #[rasn(delegate, value("1..=20"))]
4492 pub struct PosFrontAx(pub u8);
4493 #[doc = "*"]
4494 #[doc = " * This DE represents the distance from the centre of vehicle front bumper to the right or left longitudinal carrier of vehicle."]
4495 #[doc = " * The left/right carrier refers to the left/right as seen from a passenger sitting in the vehicle."]
4496 #[doc = " *"]
4497 #[doc = " * The value shall be set to:"]
4498 #[doc = " * - `n` (`n > 0` and `n < 126`) for any aplicable value between 0,01 metre and 1,26 metres, "]
4499 #[doc = " * - `126` for values equal to or higher than 1.25 metres,"]
4500 #[doc = " * - `127` if the information is unavailable."]
4501 #[doc = " *"]
4502 #[doc = " * @unit 0,01 metre "]
4503 #[doc = " * @category Vehicle information"]
4504 #[doc = " * @revision: description revised in V2.1.1 (the meaning of 126 has changed slightly) "]
4505 #[doc = " "]
4506 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4507 #[rasn(delegate, value("1..=127"))]
4508 pub struct PosLonCarr(pub u8);
4509 #[doc = "*"]
4510 #[doc = " * This DE represents the perpendicular inter-distance of neighbouring pillar axis of vehicle starting from the"]
4511 #[doc = " * middle point of the front line of the vehicle bounding box."]
4512 #[doc = " *"]
4513 #[doc = " * The value shall be set to:"]
4514 #[doc = " * - `n` (`n > 0` and `n < 29`) for any aplicable value between 0,1 metre and 2,9 metres, "]
4515 #[doc = " * - `29` for values equal to or greater than 2.8 metres,"]
4516 #[doc = " * - `30` if the information is unavailable."]
4517 #[doc = " * "]
4518 #[doc = " * @unit 0,1 metre "]
4519 #[doc = " * @category Vehicle information"]
4520 #[doc = " * @revision: description revised in V2.1.1 (the meaning of 29 has changed slightly) "]
4521 #[doc = " "]
4522 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4523 #[rasn(delegate, value("1..=30"))]
4524 pub struct PosPillar(pub u8);
4525 #[doc = "*"]
4526 #[doc = " * This DF indicates the horizontal position confidence ellipse which represents the estimated accuracy with a "]
4527 #[doc = " * confidence level of 95 %. The centre of the ellipse shape corresponds to the reference"]
4528 #[doc = " * position point for which the position accuracy is evaluated."]
4529 #[doc = " *"]
4530 #[doc = " * It shall include the following components: "]
4531 #[doc = " *"]
4532 #[doc = " * @field semiMajorAxisLength: half of length of the major axis, i.e. distance between the centre point"]
4533 #[doc = " * and major axis point of the position accuracy ellipse. "]
4534 #[doc = " *"]
4535 #[doc = " * @field semiMinorAxisLength: half of length of the minor axis, i.e. distance between the centre point"]
4536 #[doc = " * and minor axis point of the position accuracy ellipse. "]
4537 #[doc = " *"]
4538 #[doc = " * @field semiMajorAxisOrientation: orientation direction of the ellipse major axis of the position accuracy"]
4539 #[doc = " * ellipse with regards to the WGS84 north. "]
4540 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
4541 #[doc = " *"]
4542 #[doc = " * @category GeoReference information"]
4543 #[doc = " * @revision: created in V2.1.1 based on @ref PosConfidenceEllipse"]
4544 #[doc = " "]
4545 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4546 #[rasn(automatic_tags)]
4547 pub struct PositionConfidenceEllipse {
4548 #[rasn(identifier = "semiMajorAxisLength")]
4549 pub semi_major_axis_length: SemiAxisLength,
4550 #[rasn(identifier = "semiMinorAxisLength")]
4551 pub semi_minor_axis_length: SemiAxisLength,
4552 #[rasn(identifier = "semiMajorAxisOrientation")]
4553 pub semi_major_axis_orientation: Wgs84AngleValue,
4554 }
4555 impl PositionConfidenceEllipse {
4556 pub fn new(
4557 semi_major_axis_length: SemiAxisLength,
4558 semi_minor_axis_length: SemiAxisLength,
4559 semi_major_axis_orientation: Wgs84AngleValue,
4560 ) -> Self {
4561 Self {
4562 semi_major_axis_length,
4563 semi_minor_axis_length,
4564 semi_major_axis_orientation,
4565 }
4566 }
4567 }
4568 #[doc = "*"]
4569 #[doc = " * This DE indicates whether a passenger seat is occupied or whether the occupation status is detectable or not."]
4570 #[doc = " * "]
4571 #[doc = " * The number of row in vehicle seats layout is counted in rows from the driver row backwards from front to the rear"]
4572 #[doc = " * of the vehicle."]
4573 #[doc = " * The left side seat of a row refers to the left hand side seen from vehicle rear to front."]
4574 #[doc = " * Additionally, a bit is reserved for each seat row, to indicate if the seat occupation of a row is detectable or not,"]
4575 #[doc = " * i.e. `row1NotDetectable (3)`, `row2NotDetectable(8)`, `row3NotDetectable(13)` and `row4NotDetectable(18)`."]
4576 #[doc = " * Finally, a bit is reserved for each row seat to indicate if the seat row is present or not in the vehicle,"]
4577 #[doc = " * i.e. `row1NotPresent (4)`, `row2NotPresent (9)`, `row3NotPresent(14)`, `row4NotPresent(19)`."]
4578 #[doc = " * "]
4579 #[doc = " * When a seat is detected to be occupied, the corresponding seat occupation bit shall be set to `1`."]
4580 #[doc = " * For example, when the row 1 left seat is occupied, `row1LeftOccupied(0)` bit shall be set to `1`."]
4581 #[doc = " * When a seat is detected to be not occupied, the corresponding seat occupation bit shall be set to `0`."]
4582 #[doc = " * Otherwise, the value of seat occupation bit shall be set according to the following conditions:"]
4583 #[doc = " * - If the seat occupation of a seat row is not detectable, the corresponding bit shall be set to `1`."]
4584 #[doc = " * When any seat row not detectable bit is set to `1`, all corresponding seat occupation bits of the same row"]
4585 #[doc = " * shall be set to `1`."]
4586 #[doc = " * - If the seat row is not present, the corresponding not present bit of the same row shall be set to `1`."]
4587 #[doc = " * When any of the seat row not present bit is set to `1`, the corresponding not detectable bit for that row"]
4588 #[doc = " * shall be set to `1`, and all the corresponding seat occupation bits in that row shall be set to `0`."]
4589 #[doc = " * "]
4590 #[doc = " * @category: Vehicle information"]
4591 #[doc = " * @revision: V1.3.1"]
4592 #[doc = " "]
4593 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4594 #[rasn(delegate)]
4595 pub struct PositionOfOccupants(pub FixedBitString<20usize>);
4596 #[doc = "*"]
4597 #[doc = " * This DF shall contain a list of distances @ref PosPillar that refer to the perpendicular distance between centre of vehicle front bumper"]
4598 #[doc = " * and vehicle pillar A, between neighbour pillars until the last pillar of the vehicle."]
4599 #[doc = " *"]
4600 #[doc = " * Vehicle pillars refer to the vertical or near vertical support of vehicle,"]
4601 #[doc = " * designated respectively as the A, B, C or D and other pillars moving in side profile view from the front to rear."]
4602 #[doc = " * "]
4603 #[doc = " * The first value of the DF refers to the perpendicular distance from the centre of vehicle front bumper to "]
4604 #[doc = " * vehicle A pillar. The second value refers to the perpendicular distance from the centre position of A pillar"]
4605 #[doc = " * to the B pillar of vehicle and so on until the last pillar."]
4606 #[doc = " *"]
4607 #[doc = " * @category: Vehicle information"]
4608 #[doc = " * @revision: V1.3.1"]
4609 #[doc = " "]
4610 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4611 #[rasn(delegate, size("1..=3", extensible))]
4612 pub struct PositionOfPillars(pub SequenceOf<PosPillar>);
4613 #[doc = "*"]
4614 #[doc = " * This DE indicates the positioning technology being used to estimate a geographical position."]
4615 #[doc = " *"]
4616 #[doc = " * The value shall be set to:"]
4617 #[doc = " * - 0 `noPositioningSolution` - no positioning solution used,"]
4618 #[doc = " * - 1 `sGNSS` - Global Navigation Satellite System used,"]
4619 #[doc = " * - 2 `dGNSS` - Differential GNSS used,"]
4620 #[doc = " * - 3 `sGNSSplusDR` - GNSS and dead reckoning used,"]
4621 #[doc = " * - 4 `dGNSSplusDR` - Differential GNSS and dead reckoning used,"]
4622 #[doc = " * - 5 `dR` - dead reckoning used."]
4623 #[doc = " *"]
4624 #[doc = " * @category: GeoReference information"]
4625 #[doc = " * @revision: V1.3.1"]
4626 #[doc = " "]
4627 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
4628 #[rasn(enumerated)]
4629 #[non_exhaustive]
4630 pub enum PositioningSolutionType {
4631 noPositioningSolution = 0,
4632 sGNSS = 1,
4633 dGNSS = 2,
4634 sGNSSplusDR = 3,
4635 dGNSSplusDR = 4,
4636 dR = 5,
4637 }
4638 #[doc = "*"]
4639 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `postCrash` ."]
4640 #[doc = " * "]
4641 #[doc = " * The value shall be set to:"]
4642 #[doc = " * - 0 `unavailable` - in case further detailed information on post crash event is unavailable,"]
4643 #[doc = " * - 1 `accidentWithoutECallTriggered` - in case no eCall has been triggered for an accident,"]
4644 #[doc = " * - 2 `accidentWithECallManuallyTriggered` - in case eCall has been manually triggered and transmitted to eCall back end,"]
4645 #[doc = " * - 3 `accidentWithECallAutomaticallyTriggered` - in case eCall has been automatically triggered and transmitted to eCall back end,"]
4646 #[doc = " * - 4 `accidentWithECallTriggeredWithoutAccessToCellularNetwork` - in case eCall has been triggered but cellular network is not accessible from triggering vehicle."]
4647 #[doc = " * - 5-255 - are reserved for future usage."]
4648 #[doc = " *"]
4649 #[doc = " * @category: Traffic information"]
4650 #[doc = " * @revision: V1.3.1"]
4651 #[doc = " "]
4652 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4653 #[rasn(delegate, value("0..=255"))]
4654 pub struct PostCrashSubCauseCode(pub u8);
4655 #[doc = "*"]
4656 #[doc = "* This DE represent the total amount of rain falling during one hour. It is measured in mm per hour at an area of 1 square metre. "]
4657 #[doc = "* "]
4658 #[doc = "* The following values are specified:"]
4659 #[doc = "* - `n` (`n > 0` and `n < 2000`) if the amount of rain falling is equal to or less than n x 0,1 mm/h and greater than (n-1) x 0,1 mm/h,"]
4660 #[doc = "* - `2000` if the amount of rain falling is greater than 199.9 mm/h, "]
4661 #[doc = "* - `2001` if the information is not available."]
4662 #[doc = "*"]
4663 #[doc = "* @unit: 0,1 mm/h "]
4664 #[doc = "* @category: Basic Information"]
4665 #[doc = "* @revision: created in V2.1.1"]
4666 #[doc = ""]
4667 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4668 #[rasn(delegate, value("1..=2001"))]
4669 pub struct PrecipitationIntensity(pub u16);
4670 #[doc = "*"]
4671 #[doc = " * This DF describes a zone of protection inside which the ITS communication should be restricted."]
4672 #[doc = " *"]
4673 #[doc = " * It shall include the following components: "]
4674 #[doc = " * "]
4675 #[doc = " * @field protectedZoneType: type of the protected zone. "]
4676 #[doc = " * "]
4677 #[doc = " * @field expiryTime: optional time at which the validity of the protected communication zone will expire."]
4678 #[doc = " * "]
4679 #[doc = " * @field protectedZoneLatitude: latitude of the centre point of the protected communication zone."]
4680 #[doc = " * "]
4681 #[doc = " * @field protectedZoneLongitude: longitude of the centre point of the protected communication zone."]
4682 #[doc = " * "]
4683 #[doc = " * @field protectedZoneRadius: optional radius of the protected communication zone in metres."]
4684 #[doc = " * "]
4685 #[doc = " * @field protectedZoneId: the optional ID of the protected communication zone."]
4686 #[doc = " * "]
4687 #[doc = " * @note: A protected communication zone may be defined around a CEN DSRC road side equipment."]
4688 #[doc = " * "]
4689 #[doc = " * @category: Infrastructure information, Communication information"]
4690 #[doc = " * @revision: revised in V2.1.1 (changed protectedZoneID to protectedZoneId)"]
4691 #[doc = " "]
4692 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4693 #[rasn(automatic_tags)]
4694 #[non_exhaustive]
4695 pub struct ProtectedCommunicationZone {
4696 #[rasn(identifier = "protectedZoneType")]
4697 pub protected_zone_type: ProtectedZoneType,
4698 #[rasn(identifier = "expiryTime")]
4699 pub expiry_time: Option<TimestampIts>,
4700 #[rasn(identifier = "protectedZoneLatitude")]
4701 pub protected_zone_latitude: Latitude,
4702 #[rasn(identifier = "protectedZoneLongitude")]
4703 pub protected_zone_longitude: Longitude,
4704 #[rasn(identifier = "protectedZoneRadius")]
4705 pub protected_zone_radius: Option<ProtectedZoneRadius>,
4706 #[rasn(identifier = "protectedZoneId")]
4707 pub protected_zone_id: Option<ProtectedZoneId>,
4708 }
4709 impl ProtectedCommunicationZone {
4710 pub fn new(
4711 protected_zone_type: ProtectedZoneType,
4712 expiry_time: Option<TimestampIts>,
4713 protected_zone_latitude: Latitude,
4714 protected_zone_longitude: Longitude,
4715 protected_zone_radius: Option<ProtectedZoneRadius>,
4716 protected_zone_id: Option<ProtectedZoneId>,
4717 ) -> Self {
4718 Self {
4719 protected_zone_type,
4720 expiry_time,
4721 protected_zone_latitude,
4722 protected_zone_longitude,
4723 protected_zone_radius,
4724 protected_zone_id,
4725 }
4726 }
4727 }
4728 #[doc = "*"]
4729 #[doc = " * This DF shall contain a list of @ref ProtectedCommunicationZone provided by a road side ITS-S (Road Side Unit RSU)."]
4730 #[doc = " *"]
4731 #[doc = " * It may provide up to 16 protected communication zones information."]
4732 #[doc = " *"]
4733 #[doc = " * @category: Infrastructure information, Communication information"]
4734 #[doc = " * @revision: V1.3.1"]
4735 #[doc = " "]
4736 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4737 #[rasn(delegate, size("1..=16"))]
4738 pub struct ProtectedCommunicationZonesRSU(pub SequenceOf<ProtectedCommunicationZone>);
4739 #[doc = "*"]
4740 #[doc = " * This DE represents the indentifier of a protected communication zone."]
4741 #[doc = " * "]
4742 #[doc = " * "]
4743 #[doc = " * @category: Infrastructure information, Communication information"]
4744 #[doc = " * @revision: Revision in V2.1.1 (changed name from ProtectedZoneID to ProtectedZoneId)"]
4745 #[doc = " "]
4746 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4747 #[rasn(delegate, value("0..=134217727"))]
4748 pub struct ProtectedZoneId(pub u32);
4749 #[doc = "*"]
4750 #[doc = " * This DE represents the radius of a protected communication zone. "]
4751 #[doc = " * "]
4752 #[doc = " * "]
4753 #[doc = " * @unit: metre"]
4754 #[doc = " * @category: Infrastructure information, Communication information"]
4755 #[doc = " * @revision: V1.3.1"]
4756 #[doc = " "]
4757 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4758 #[rasn(delegate, value("1..=255", extensible))]
4759 pub struct ProtectedZoneRadius(pub Integer);
4760 #[doc = "*"]
4761 #[doc = " * This DE indicates the type of a protected communication zone, so that an ITS-S is aware of the actions to do"]
4762 #[doc = " * while passing by such zone (e.g. reduce the transmit power in case of a DSRC tolling station)."]
4763 #[doc = " * "]
4764 #[doc = " * The protected zone type is defined in ETSI TS 102 792 [14]."]
4765 #[doc = " * "]
4766 #[doc = " * "]
4767 #[doc = " * @category: Communication information"]
4768 #[doc = " * @revision: V1.3.1"]
4769 #[doc = " "]
4770 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
4771 #[rasn(enumerated)]
4772 #[non_exhaustive]
4773 pub enum ProtectedZoneType {
4774 permanentCenDsrcTolling = 0,
4775 #[rasn(extension_addition)]
4776 temporaryCenDsrcTolling = 1,
4777 }
4778 #[doc = "*"]
4779 #[doc = " * This DF represents activation data for real-time systems designed for operations control, traffic light priorities, track switches, barriers, etc."]
4780 #[doc = " * using a range of activation devices equipped in public transport vehicles."]
4781 #[doc = " *"]
4782 #[doc = " * The activation of the corresponding equipment is triggered by the approach or passage of a public transport"]
4783 #[doc = " * vehicle at a certain point (e.g. a beacon)."]
4784 #[doc = " *"]
4785 #[doc = " * @field ptActivationType: type of activation. "]
4786 #[doc = " *"]
4787 #[doc = " * @field ptActicationData: data of activation. "]
4788 #[doc = " *"]
4789 #[doc = " * Today there are different payload variants defined for public transport activation-data. The R09.x is one of"]
4790 #[doc = " * the industry standard used by public transport vehicles (e.g. buses, trams) in Europe (e.g. Germany Austria)"]
4791 #[doc = " * for controlling traffic lights, barriers, bollards, etc. This DF shall include information like route, course,"]
4792 #[doc = " * destination, priority, etc."]
4793 #[doc = " * "]
4794 #[doc = " * The R09.x content is defined in VDV recommendation 420 [7]. It includes following information:"]
4795 #[doc = " * - Priority Request Information (pre-request, request, ready to start)"]
4796 #[doc = " * - End of Prioritization procedure"]
4797 #[doc = " * - Priority request direction"]
4798 #[doc = " * - Public Transport line number"]
4799 #[doc = " * - Priority of public transport"]
4800 #[doc = " * - Route line identifier of the public transport"]
4801 #[doc = " * - Route number identification"]
4802 #[doc = " * - Destination of public transport vehicle"]
4803 #[doc = " *"]
4804 #[doc = " * Other countries may use different message sets defined by the local administration."]
4805 #[doc = " * @category: Vehicle information"]
4806 #[doc = " * @revision: V1.3.1"]
4807 #[doc = " "]
4808 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4809 #[rasn(automatic_tags)]
4810 pub struct PtActivation {
4811 #[rasn(identifier = "ptActivationType")]
4812 pub pt_activation_type: PtActivationType,
4813 #[rasn(identifier = "ptActivationData")]
4814 pub pt_activation_data: PtActivationData,
4815 }
4816 impl PtActivation {
4817 pub fn new(
4818 pt_activation_type: PtActivationType,
4819 pt_activation_data: PtActivationData,
4820 ) -> Self {
4821 Self {
4822 pt_activation_type,
4823 pt_activation_data,
4824 }
4825 }
4826 }
4827 #[doc = "*"]
4828 #[doc = " * This DE is used for various tasks in the public transportation environment, especially for controlling traffic"]
4829 #[doc = " * signal systems to prioritize and speed up public transportation in urban area (e.g. intersection \"_bottlenecks_\")."]
4830 #[doc = " * The traffic lights may be controlled by an approaching bus or tram automatically. This permits \"_In Time_\" activation"]
4831 #[doc = " * of the green phase, will enable the individual traffic to clear a potential traffic jam in advance. Thereby the"]
4832 #[doc = " * approaching bus or tram may pass an intersection with activated green light without slowing down the speed due to"]
4833 #[doc = " * traffic congestion. Other usage of the DE is the provision of information like the public transport line number"]
4834 #[doc = " * or the schedule delay of a public transport vehicle."]
4835 #[doc = " * "]
4836 #[doc = " * @category: Vehicle information"]
4837 #[doc = " * @revision: V1.3.1"]
4838 #[doc = " "]
4839 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4840 #[rasn(delegate, size("1..=20"))]
4841 pub struct PtActivationData(pub OctetString);
4842 #[doc = "*"]
4843 #[doc = " * This DE indicates a certain coding type of the PtActivationData data."]
4844 #[doc = " *"]
4845 #[doc = " * The folowing value are specified:"]
4846 #[doc = " * - 0 `undefinedCodingType` : undefined coding type,"]
4847 #[doc = " * - 1 `r09-16CodingType` : coding of PtActivationData conform to VDV recommendation 420 [7],"]
4848 #[doc = " * - 2 `vdv-50149CodingType` : coding of PtActivationData based on VDV recommendation 420 [7]."]
4849 #[doc = " * - 3 - 255 : reserved for alternative and future use."]
4850 #[doc = " * "]
4851 #[doc = " * @category: Vehicle information "]
4852 #[doc = " * @revision: V1.3.1"]
4853 #[doc = " "]
4854 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4855 #[rasn(delegate, value("0..=255"))]
4856 pub struct PtActivationType(pub u8);
4857 #[doc = "*"]
4858 #[doc = " * This DF describes a radial shape. The triangular or cone-shaped volume is"]
4859 #[doc = " * constructed by sweeping the provided range about the reference point between a horizontal start "]
4860 #[doc = " * and a horizontal end angle in positive angular direction of the WGS84"]
4861 #[doc = " * coordinate system. A vertical opening angle may be provided in a Cartesian coordinate system with"]
4862 #[doc = " * the x-axis located in the North-East plane of the WGS84 coordinate system. The sensor height may"]
4863 #[doc = " * be provided to reflect characteristics of sensors mounted at an altitude (e.g. sensors mounted"]
4864 #[doc = " * above intersections)."]
4865 #[doc = " *"]
4866 #[doc = " * It shall include the following components:"]
4867 #[doc = " * "]
4868 #[doc = " * @field shapeReferencePoint: the optional reference point used for the definition of the shape, relative to an externally specified reference position. "]
4869 #[doc = " * If this component is absent, the externally specified reference position represents the shape's reference point. "]
4870 #[doc = " *"]
4871 #[doc = " * @field range: the radial range of the shape from the shape's reference point. "]
4872 #[doc = " *"]
4873 #[doc = " * @field stationaryHorizontalOpeningAngleStart: the orientation indicating the beginning of the "]
4874 #[doc = " * shape's horizontal opening angle in positive angular direction with respect to the "]
4875 #[doc = " * WGS84 coordinate system."]
4876 #[doc = " *"]
4877 #[doc = " * @field stationaryHorizontalOpeningAngleEnd: The orientation indicating the end of the shape's "]
4878 #[doc = " * horizontal opening angle in positive angular direction with respect to the WGS84 coordinate system."]
4879 #[doc = " *"]
4880 #[doc = " * @field verticalOpeningAngleStart: optional orientation indicating the beginning of the shape's"]
4881 #[doc = " * opening angle in positive angular direction of a Cartesian coordinate system with its x-axis "]
4882 #[doc = " * located in the north-east plane of the WGS84 coordinate system."]
4883 #[doc = " *"]
4884 #[doc = " * @field verticalOpeningAngleEnd: optional orientation indicating the end of the shape's "]
4885 #[doc = " * vertical opening angle in positive angular direction of a Cartesian coordinate system with its x-axis "]
4886 #[doc = " * located in the north-east plane of the WGS84 coordinate system. "]
4887 #[doc = " *"]
4888 #[doc = " * @category GeoReference information"]
4889 #[doc = " * @revision: created in V2.1.1"]
4890 #[doc = ""]
4891 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4892 #[rasn(automatic_tags)]
4893 pub struct RadialShape {
4894 #[rasn(identifier = "shapeReferencePoint")]
4895 pub shape_reference_point: Option<CartesianPosition3d>,
4896 pub range: StandardLength12b,
4897 #[rasn(identifier = "stationaryHorizontalOpeningAngleStart")]
4898 pub stationary_horizontal_opening_angle_start: Wgs84AngleValue,
4899 #[rasn(identifier = "stationaryHorizontalOpeningAngleEnd")]
4900 pub stationary_horizontal_opening_angle_end: Wgs84AngleValue,
4901 #[rasn(identifier = "verticalOpeningAngleStart")]
4902 pub vertical_opening_angle_start: Option<CartesianAngleValue>,
4903 #[rasn(identifier = "verticalOpeningAngleEnd")]
4904 pub vertical_opening_angle_end: Option<CartesianAngleValue>,
4905 }
4906 impl RadialShape {
4907 pub fn new(
4908 shape_reference_point: Option<CartesianPosition3d>,
4909 range: StandardLength12b,
4910 stationary_horizontal_opening_angle_start: Wgs84AngleValue,
4911 stationary_horizontal_opening_angle_end: Wgs84AngleValue,
4912 vertical_opening_angle_start: Option<CartesianAngleValue>,
4913 vertical_opening_angle_end: Option<CartesianAngleValue>,
4914 ) -> Self {
4915 Self {
4916 shape_reference_point,
4917 range,
4918 stationary_horizontal_opening_angle_start,
4919 stationary_horizontal_opening_angle_end,
4920 vertical_opening_angle_start,
4921 vertical_opening_angle_end,
4922 }
4923 }
4924 }
4925 #[doc = "*"]
4926 #[doc = " * This DF describes a radial shape details. The triangular or cone-shaped volume is"]
4927 #[doc = " * constructed by sweeping the provided range about the reference point or about the offset"]
4928 #[doc = " * point (if provided) between a horizontal start and a horizontal end angle in positive angular direction of the WGS84"]
4929 #[doc = " * coordinate system. A vertical opening angle may be provided in a Cartesian coordinate system with"]
4930 #[doc = " * the x-axis located in the North-East plane of the WGS84 coordinate system. The sensor height may"]
4931 #[doc = " * be provided to reflect characteristics of sensors mounted at an altitude (e.g. sensors mounted"]
4932 #[doc = " * above intersections)."]
4933 #[doc = " *"]
4934 #[doc = " * It shall include the following components:"]
4935 #[doc = " * "]
4936 #[doc = " * @field range: the radial range of the sensor from the reference point or sensor point offset. "]
4937 #[doc = " *"]
4938 #[doc = " * @field horizontalOpeningAngleStart: the orientation indicating the beginning of the "]
4939 #[doc = " * shape's horizontal opening angle in positive angular direction."]
4940 #[doc = " *"]
4941 #[doc = " * @field horizontalOpeningAngleEnd: The orientation indicating the end of the shape's horizontal "]
4942 #[doc = " * opening angle in positive angular direction."]
4943 #[doc = " *"]
4944 #[doc = " * @field verticalOpeningAngleStart: optional orientation indicating the beginning of the shape's "]
4945 #[doc = " * vertical opening angle in positive angular direction of a Cartesian coordinate system with its x-axis "]
4946 #[doc = " * located in the north-east plane of the WGS84 coordinate system."]
4947 #[doc = " *"]
4948 #[doc = " * @field verticalOpeningAngleEnd: optional orientation indicating the end of the shape's "]
4949 #[doc = " * vertical opening angle in positive angular direction of a Cartesian coordinate system with its x-axis "]
4950 #[doc = " * located in the north-east plane of the WGS84 coordinate system. "]
4951 #[doc = " *"]
4952 #[doc = " * @category: Georeference information"]
4953 #[doc = " * @revision: created in V2.1.1"]
4954 #[doc = " "]
4955 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4956 #[rasn(automatic_tags)]
4957 pub struct RadialShapeDetails {
4958 pub range: StandardLength12b,
4959 #[rasn(identifier = "horizontalOpeningAngleStart")]
4960 pub horizontal_opening_angle_start: CartesianAngleValue,
4961 #[rasn(identifier = "horizontalOpeningAngleEnd")]
4962 pub horizontal_opening_angle_end: CartesianAngleValue,
4963 #[rasn(identifier = "verticalOpeningAngleStart")]
4964 pub vertical_opening_angle_start: Option<CartesianAngleValue>,
4965 #[rasn(identifier = "verticalOpeningAngleEnd")]
4966 pub vertical_opening_angle_end: Option<CartesianAngleValue>,
4967 }
4968 impl RadialShapeDetails {
4969 pub fn new(
4970 range: StandardLength12b,
4971 horizontal_opening_angle_start: CartesianAngleValue,
4972 horizontal_opening_angle_end: CartesianAngleValue,
4973 vertical_opening_angle_start: Option<CartesianAngleValue>,
4974 vertical_opening_angle_end: Option<CartesianAngleValue>,
4975 ) -> Self {
4976 Self {
4977 range,
4978 horizontal_opening_angle_start,
4979 horizontal_opening_angle_end,
4980 vertical_opening_angle_start,
4981 vertical_opening_angle_end,
4982 }
4983 }
4984 }
4985 #[doc = "*"]
4986 #[doc = " * This DF describes a list of radial shapes. "]
4987 #[doc = " *"]
4988 #[doc = " * It shall include the following components:"]
4989 #[doc = ""]
4990 #[doc = " * @field refPointId: the identification of the reference point in case of a sensor mounted to trailer. Defaults to ITS ReferencePoint (0)."]
4991 #[doc = " * "]
4992 #[doc = " * @field xCoordinate: the x-coordinate of the offset point."]
4993 #[doc = " *"]
4994 #[doc = " * @field yCoordinate: the y-coordinate of the offset point."]
4995 #[doc = " *"]
4996 #[doc = " * @field zCoordinate: the optional z-coordinate of the offset point."]
4997 #[doc = " *"]
4998 #[doc = " * @field radialShapesList: the list of radial shape details."]
4999 #[doc = " *"]
5000 #[doc = " * @category: Georeference information"]
5001 #[doc = " * @revision: created in V2.1.1"]
5002 #[doc = " "]
5003 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5004 #[rasn(automatic_tags)]
5005 pub struct RadialShapes {
5006 #[rasn(identifier = "refPointId")]
5007 pub ref_point_id: Identifier1B,
5008 #[rasn(identifier = "xCoordinate")]
5009 pub x_coordinate: CartesianCoordinateSmall,
5010 #[rasn(identifier = "yCoordinate")]
5011 pub y_coordinate: CartesianCoordinateSmall,
5012 #[rasn(identifier = "zCoordinate")]
5013 pub z_coordinate: Option<CartesianCoordinateSmall>,
5014 #[rasn(identifier = "radialShapesList")]
5015 pub radial_shapes_list: RadialShapesList,
5016 }
5017 impl RadialShapes {
5018 pub fn new(
5019 ref_point_id: Identifier1B,
5020 x_coordinate: CartesianCoordinateSmall,
5021 y_coordinate: CartesianCoordinateSmall,
5022 z_coordinate: Option<CartesianCoordinateSmall>,
5023 radial_shapes_list: RadialShapesList,
5024 ) -> Self {
5025 Self {
5026 ref_point_id,
5027 x_coordinate,
5028 y_coordinate,
5029 z_coordinate,
5030 radial_shapes_list,
5031 }
5032 }
5033 }
5034 #[doc = "* "]
5035 #[doc = " * The DF contains a list of @ref RadialShapeDetails."]
5036 #[doc = " *"]
5037 #[doc = " * @category: Georeference information"]
5038 #[doc = " * @revision: created in V2.1.1"]
5039 #[doc = " "]
5040 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5041 #[rasn(delegate, size("1..=16", extensible))]
5042 pub struct RadialShapesList(pub SequenceOf<RadialShapeDetails>);
5043 #[doc = "*"]
5044 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `railwayLevelCrossing` ."]
5045 #[doc = " * "]
5046 #[doc = " * The value shall be set to:"]
5047 #[doc = " * - 0 `unavailable` - in case no further detailed information on the railway level crossing status is available,"]
5048 #[doc = " * - 1 `doNotCrossAbnormalSituation` - in case when something wrong is detected by equation or sensors of the railway level crossing, "]
5049 #[doc = " including level crossing is closed for too long (e.g. more than 10 minutes long ; default value),"]
5050 #[doc = " * - 2 `closed` - in case the crossing is closed (barriers down),"]
5051 #[doc = " * - 3 `unguarded` - in case the level crossing is unguarded (i.e a Saint Andrew cross level crossing without detection of train),"]
5052 #[doc = " * - 4 `nominal` - in case the barriers are up and lights are off."]
5053 #[doc = " * - 5-255: reserved for future usage."]
5054 #[doc = " *"]
5055 #[doc = " * @category: Traffic information"]
5056 #[doc = " * @revision: V1.3.1"]
5057 #[doc = " "]
5058 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5059 #[rasn(delegate, value("0..=255"))]
5060 pub struct RailwayLevelCrossingSubCauseCode(pub u8);
5061 #[doc = "* "]
5062 #[doc = " * This DF represents the shape of a rectangular area or a right rectangular prism that is centred on a reference position defined outside of the context of this DF. "]
5063 #[doc = " *"]
5064 #[doc = " * It shall include the following components: "]
5065 #[doc = " * "]
5066 #[doc = " * @field centerPoint: represents an optional offset point which the rectangle is centred on with respect to the reference position."]
5067 #[doc = " *"]
5068 #[doc = " * @field semiLength: represents half the length of the rectangle."]
5069 #[doc = " * "]
5070 #[doc = " * @field semiBreadth: represents half the breadth of the rectangle."]
5071 #[doc = " *"]
5072 #[doc = " * @field orientation: represents the optional orientation of the lenght of the rectangle in the WGS84 coordinate system."]
5073 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
5074 #[doc = " *"]
5075 #[doc = " * @field height: represents the optional height, present if the shape is a right rectangular prism with height extending in the positive z-axis."]
5076 #[doc = " *"]
5077 #[doc = " * @category GeoReference information"]
5078 #[doc = " * @revision: created in V2.1.1"]
5079 #[doc = " "]
5080 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5081 #[rasn(automatic_tags)]
5082 pub struct RectangularShape {
5083 #[rasn(identifier = "centerPoint")]
5084 pub center_point: Option<CartesianPosition3d>,
5085 #[rasn(identifier = "semiLength")]
5086 pub semi_length: StandardLength12b,
5087 #[rasn(identifier = "semiBreadth")]
5088 pub semi_breadth: StandardLength12b,
5089 pub orientation: Option<Wgs84AngleValue>,
5090 pub height: Option<StandardLength12b>,
5091 }
5092 impl RectangularShape {
5093 pub fn new(
5094 center_point: Option<CartesianPosition3d>,
5095 semi_length: StandardLength12b,
5096 semi_breadth: StandardLength12b,
5097 orientation: Option<Wgs84AngleValue>,
5098 height: Option<StandardLength12b>,
5099 ) -> Self {
5100 Self {
5101 center_point,
5102 semi_length,
5103 semi_breadth,
5104 orientation,
5105 height,
5106 }
5107 }
5108 }
5109 #[doc = "*"]
5110 #[doc = " * A position within a geographic coordinate system together with a confidence ellipse. "]
5111 #[doc = " *"]
5112 #[doc = " * It shall include the following components: "]
5113 #[doc = " *"]
5114 #[doc = " * @field latitude: the latitude of the geographical point."]
5115 #[doc = " *"]
5116 #[doc = " * @field longitude: the longitude of the geographical point."]
5117 #[doc = " *"]
5118 #[doc = " * @field positionConfidenceEllipse: the confidence ellipse associated to the geographical position."]
5119 #[doc = " *"]
5120 #[doc = " * @field altitude: the altitude and an altitude accuracy of the geographical point."]
5121 #[doc = " *"]
5122 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref ReferencePositionWithConfidence instead. "]
5123 #[doc = " * @category: GeoReference information"]
5124 #[doc = " * @revision: description updated in V2.1.1"]
5125 #[doc = " "]
5126 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5127 #[rasn(automatic_tags)]
5128 pub struct ReferencePosition {
5129 pub latitude: Latitude,
5130 pub longitude: Longitude,
5131 #[rasn(identifier = "positionConfidenceEllipse")]
5132 pub position_confidence_ellipse: PosConfidenceEllipse,
5133 pub altitude: Altitude,
5134 }
5135 impl ReferencePosition {
5136 pub fn new(
5137 latitude: Latitude,
5138 longitude: Longitude,
5139 position_confidence_ellipse: PosConfidenceEllipse,
5140 altitude: Altitude,
5141 ) -> Self {
5142 Self {
5143 latitude,
5144 longitude,
5145 position_confidence_ellipse,
5146 altitude,
5147 }
5148 }
5149 }
5150 #[doc = "*"]
5151 #[doc = " * A position within a geographic coordinate system together with a confidence ellipse. "]
5152 #[doc = " *"]
5153 #[doc = " * It shall include the following components: "]
5154 #[doc = " *"]
5155 #[doc = " * @field latitude: the latitude of the geographical point."]
5156 #[doc = " *"]
5157 #[doc = " * @field longitude: the longitude of the geographical point."]
5158 #[doc = " *"]
5159 #[doc = " * @field positionConfidenceEllipse: the confidence ellipse associated to the geographical position."]
5160 #[doc = " *"]
5161 #[doc = " * @field altitude: the altitude and an altitude accuracy of the geographical point."]
5162 #[doc = " *"]
5163 #[doc = " * @category: GeoReference information"]
5164 #[doc = " * @revision: created in V2.1.1 based on @ref ReferencePosition but using @ref PositionConfidenceEllipse."]
5165 #[doc = " "]
5166 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5167 #[rasn(automatic_tags)]
5168 pub struct ReferencePositionWithConfidence {
5169 pub latitude: Latitude,
5170 pub longitude: Longitude,
5171 #[rasn(identifier = "positionConfidenceEllipse")]
5172 pub position_confidence_ellipse: PositionConfidenceEllipse,
5173 pub altitude: Altitude,
5174 }
5175 impl ReferencePositionWithConfidence {
5176 pub fn new(
5177 latitude: Latitude,
5178 longitude: Longitude,
5179 position_confidence_ellipse: PositionConfidenceEllipse,
5180 altitude: Altitude,
5181 ) -> Self {
5182 Self {
5183 latitude,
5184 longitude,
5185 position_confidence_ellipse,
5186 altitude,
5187 }
5188 }
5189 }
5190 #[doc = "*"]
5191 #[doc = " * This DE describes a distance of relevance for information indicated in a message."]
5192 #[doc = " *"]
5193 #[doc = " * The value shall be set to:"]
5194 #[doc = " * - 0 `lessThan50m` - for distances below 50 m,"]
5195 #[doc = " * - 1 `lessThan100m` - for distances below 100 m, "]
5196 #[doc = " * - 2 `lessThan200m` - for distances below 200 m, "]
5197 #[doc = " * - 3 `lessThan500m` - for distances below 300 m, "]
5198 #[doc = " * - 4 `lessThan1000m` - for distances below 1 000 m, "]
5199 #[doc = " * - 5 `lessThan5km` - for distances below 5 000 m, "]
5200 #[doc = " * - 6 `lessThan10km` - for distances below 10 000 m, "]
5201 #[doc = " * - 7 `over10km` - for distances over 10 000 m. "]
5202 #[doc = " * "]
5203 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref StandardLength3b instead. "]
5204 #[doc = " *"]
5205 #[doc = " * @category: GeoReference information"]
5206 #[doc = " * @revision: Editorial update in V2.1.1"]
5207 #[doc = " "]
5208 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5209 #[rasn(enumerated)]
5210 pub enum RelevanceDistance {
5211 lessThan50m = 0,
5212 lessThan100m = 1,
5213 lessThan200m = 2,
5214 lessThan500m = 3,
5215 lessThan1000m = 4,
5216 lessThan5km = 5,
5217 lessThan10km = 6,
5218 over10km = 7,
5219 }
5220 #[doc = "*"]
5221 #[doc = " * This DE indicates a traffic direction that is relevant to information indicated in a message."]
5222 #[doc = " * "]
5223 #[doc = " * The value shall be set to:"]
5224 #[doc = " * - 0 `allTrafficDirections` - for all traffic directions, "]
5225 #[doc = " * - 1 `upstreamTraffic` - for upstream traffic, "]
5226 #[doc = " * - 2 `downstreamTraffic` - for downstream traffic, "]
5227 #[doc = " * - 3 `oppositeTraffic` - for traffic in the opposite direction. "]
5228 #[doc = " *"]
5229 #[doc = " * The terms `upstream`, `downstream` and `oppositeTraffic` are relative to the event position."]
5230 #[doc = " *"]
5231 #[doc = " * @note: Upstream traffic corresponds to the incoming traffic towards the event position,"]
5232 #[doc = " * and downstream traffic to the departing traffic away from the event position."]
5233 #[doc = " *"]
5234 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrafficDirection instead. "]
5235 #[doc = " *"]
5236 #[doc = " * @category: GeoReference information"]
5237 #[doc = " * @revision: Editorial update in V2.1.1"]
5238 #[doc = " "]
5239 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5240 #[rasn(enumerated)]
5241 pub enum RelevanceTrafficDirection {
5242 allTrafficDirections = 0,
5243 upstreamTraffic = 1,
5244 downstreamTraffic = 2,
5245 oppositeTraffic = 3,
5246 }
5247 #[doc = "*"]
5248 #[doc = " * This DE indicates whether an ITS message is transmitted as request from ITS-S or a response transmitted from"]
5249 #[doc = " * ITS-S after receiving request from other ITS-Ss."]
5250 #[doc = " *"]
5251 #[doc = " * The value shall be set to:"]
5252 #[doc = " * - 0 `request` - for a request message, "]
5253 #[doc = " * - 1 `response` - for a response message. "]
5254 #[doc = " *"]
5255 #[doc = " * @category Communication information"]
5256 #[doc = " * @revision: Editorial update in V2.1.1"]
5257 #[doc = " "]
5258 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5259 #[rasn(enumerated)]
5260 pub enum RequestResponseIndication {
5261 request = 0,
5262 response = 1,
5263 }
5264 #[doc = "*"]
5265 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `rescueAndRecoveryWorkInProgress` "]
5266 #[doc = " * "]
5267 #[doc = " * The value shall be set to:"]
5268 #[doc = " * - 0 `unavailable` - in case further detailed information on rescue and recovery work is unavailable,"]
5269 #[doc = " * - 1 `emergencyVehicles` - in case rescue work is ongoing by emergency vehicles,"]
5270 #[doc = " * - 2 `rescueHelicopterLanding` - in case rescue helicopter is landing,"]
5271 #[doc = " * - 3 `policeActivityOngoing` - in case police activity is ongoing,"]
5272 #[doc = " * - 4 `medicalEmergencyOngoing` - in case medical emergency recovery is ongoing,"]
5273 #[doc = " * - 5 `childAbductionInProgress`- in case a child kidnapping alarm is activated and rescue work is ongoing,"]
5274 #[doc = " * - 6-255: reserved for future usage."]
5275 #[doc = " *"]
5276 #[doc = " * @category: Traffic information"]
5277 #[doc = " * @revision: V1.3.1"]
5278 #[doc = " "]
5279 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5280 #[rasn(delegate, value("0..=255"))]
5281 pub struct RescueAndRecoveryWorkInProgressSubCauseCode(pub u8);
5282 #[doc = "*"]
5283 #[doc = " * This DF shall contain a list of @ref StationType. to which a certain traffic restriction, e.g. the speed limit, applies."]
5284 #[doc = " * "]
5285 #[doc = " * @category: Infrastructure information, Traffic information"]
5286 #[doc = " * @revision: V1.3.1"]
5287 #[doc = " "]
5288 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5289 #[rasn(delegate, size("1..=3", extensible))]
5290 pub struct RestrictedTypes(pub SequenceOf<StationType>);
5291 #[doc = "*"]
5292 #[doc = " * This DF represents a unique id for a road segment"]
5293 #[doc = " *"]
5294 #[doc = " * It shall include the following components: "]
5295 #[doc = " *"]
5296 #[doc = " * @field region: the optional identifier of the entity that is responsible for the region in which the road segment is placed."]
5297 #[doc = " * It is the duty of that entity to guarantee that the @ref Id is unique within the region."]
5298 #[doc = " *"]
5299 #[doc = " * @field id: the identifier of the road segment."]
5300 #[doc = " *"]
5301 #[doc = " * @note: when the component region is present, the RoadSegmentReferenceId is guaranteed to be globally unique."]
5302 #[doc = " * @category: GeoReference information"]
5303 #[doc = " * @revision: created in V2.1.1"]
5304 #[doc = " "]
5305 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5306 #[rasn(automatic_tags)]
5307 pub struct RoadSegmentReferenceId {
5308 pub region: Option<Identifier2B>,
5309 pub id: Identifier2B,
5310 }
5311 impl RoadSegmentReferenceId {
5312 pub fn new(region: Option<Identifier2B>, id: Identifier2B) -> Self {
5313 Self { region, id }
5314 }
5315 }
5316 #[doc = "*"]
5317 #[doc = " * This DE indicates the type of a road segment."]
5318 #[doc = " * "]
5319 #[doc = " * The value shall be set to:"]
5320 #[doc = " * - 0 `urban-NoStructuralSeparationToOppositeLanes` - for an urban road with no structural separation between lanes carrying traffic in opposite directions,"]
5321 #[doc = " * - 1 `urban-WithStructuralSeparationToOppositeLanes` - for an urban road with structural separation between lanes carrying traffic in opposite directions,"]
5322 #[doc = " * - 2 `nonUrban-NoStructuralSeparationToOppositeLanes` - for an non urban road with no structural separation between lanes carrying traffic in opposite directions,"]
5323 #[doc = " * - 3 `nonUrban-WithStructuralSeparationToOppositeLanes` - for an non urban road with structural separation between lanes carrying traffic in opposite directions."]
5324 #[doc = " *"]
5325 #[doc = " * @category: Road Topology Information"]
5326 #[doc = " * @revision: Editorial update in V2.1.1"]
5327 #[doc = " "]
5328 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5329 #[rasn(enumerated)]
5330 pub enum RoadType {
5331 #[rasn(identifier = "urban-NoStructuralSeparationToOppositeLanes")]
5332 urban_NoStructuralSeparationToOppositeLanes = 0,
5333 #[rasn(identifier = "urban-WithStructuralSeparationToOppositeLanes")]
5334 urban_WithStructuralSeparationToOppositeLanes = 1,
5335 #[rasn(identifier = "nonUrban-NoStructuralSeparationToOppositeLanes")]
5336 nonUrban_NoStructuralSeparationToOppositeLanes = 2,
5337 #[rasn(identifier = "nonUrban-WithStructuralSeparationToOppositeLanes")]
5338 nonUrban_WithStructuralSeparationToOppositeLanes = 3,
5339 }
5340 #[doc = "*"]
5341 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `roadworks`."]
5342 #[doc = " * "]
5343 #[doc = "The value shall be set to:"]
5344 #[doc = " * - 0 `unavailable` - in case further detailed information on roadworks is unavailable,"]
5345 #[doc = " * - 1 `majorRoadworks` - in case a major roadworks is ongoing,"]
5346 #[doc = " * - 2 `roadMarkingWork` - in case a road marking work is ongoing,"]
5347 #[doc = " * - 3 `slowMovingRoadMaintenance` - in case slow moving road maintenance work is ongoing,"]
5348 #[doc = " * - 4 `shortTermStationaryRoadworks`- in case a short term stationary roadwork is ongoing,"]
5349 #[doc = " * - 5 `streetCleaning` - in case a vehicle street cleaning work is ongoing,"]
5350 #[doc = " * - 6 `winterService` - in case winter service work is ongoing."]
5351 #[doc = " * - 7-255 - are reserved for future usage."]
5352 #[doc = " *"]
5353 #[doc = " * @category: Traffic information"]
5354 #[doc = " * @revision: V1.3.1"]
5355 #[doc = " "]
5356 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5357 #[rasn(delegate, value("0..=255"))]
5358 pub struct RoadworksSubCauseCode(pub u8);
5359 #[doc = "*"]
5360 #[doc = " * This DF provides the safe distance indication of a traffic participant with other traffic participant(s)."]
5361 #[doc = " *"]
5362 #[doc = " * It shall include the following components: "]
5363 #[doc = " * "]
5364 #[doc = " * @field subjectStation: optionally indicates one \"other\" traffic participant identified by its ITS-S."]
5365 #[doc = " * "]
5366 #[doc = " * @field safeDistanceIndicator: indicates whether the distance between the ego ITS-S and the traffic participant(s) is safe."]
5367 #[doc = " * If subjectStation is present then it indicates whether the distance between the ego ITS-S and the traffic participant indicated in the component subjectStation is safe. "]
5368 #[doc = " *"]
5369 #[doc = " * @field timeToCollision: optionally indicated the time-to-collision calculated as sqrt(LaDi^2 + LoDi^2 + VDi^2/relative speed "]
5370 #[doc = " * and represented in the nearest 100 ms. This component may be present only if subjectStation is present. "]
5371 #[doc = " *"]
5372 #[doc = " * @note: the abbreviations used are Lateral Distance (LaD), Longitudinal Distance (LoD) and Vertical Distance (VD) "]
5373 #[doc = " * and their respective thresholds, Minimum Safe Lateral Distance (MSLaD), Minimum Safe Longitudinal Distance (MSLoD), and Minimum Safe Vertical Distance (MSVD)."]
5374 #[doc = " *"]
5375 #[doc = " * @category: Traffic information, Kinematic information"]
5376 #[doc = " * @revision: created in V2.1.1"]
5377 #[doc = " "]
5378 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5379 #[rasn(automatic_tags)]
5380 #[non_exhaustive]
5381 pub struct SafeDistanceIndication {
5382 #[rasn(identifier = "subjectStation")]
5383 pub subject_station: Option<StationId>,
5384 #[rasn(identifier = "safeDistanceIndicator")]
5385 pub safe_distance_indicator: SafeDistanceIndicator,
5386 #[rasn(identifier = "timeToCollision")]
5387 pub time_to_collision: Option<DeltaTimeTenthOfSecond>,
5388 }
5389 impl SafeDistanceIndication {
5390 pub fn new(
5391 subject_station: Option<StationId>,
5392 safe_distance_indicator: SafeDistanceIndicator,
5393 time_to_collision: Option<DeltaTimeTenthOfSecond>,
5394 ) -> Self {
5395 Self {
5396 subject_station,
5397 safe_distance_indicator,
5398 time_to_collision,
5399 }
5400 }
5401 }
5402 #[doc = "*"]
5403 #[doc = " * This DE indicates if a distance is safe. "]
5404 #[doc = " *"]
5405 #[doc = " * The value shall be set to:"]
5406 #[doc = " * - `FALSE` if the triple {LaD, LoD, VD} < {MSLaD, MSLoD, MSVD} is simultaneously satisfied with confidence level of 90 % or more, "]
5407 #[doc = " * - `TRUE` otherwise. "]
5408 #[doc = " *"]
5409 #[doc = " * @note: the abbreviations used are Lateral Distance (LaD), Longitudinal Distance (LoD) and Vertical Distance (VD) "]
5410 #[doc = " * and their respective thresholds, Minimum Safe Lateral Distance (MSLaD), Minimum Safe Longitudinal Distance (MSLoD), and Minimum Safe Vertical Distance (MSVD)."]
5411 #[doc = " *"]
5412 #[doc = " * @category: Traffic information, Kinematic information"]
5413 #[doc = " * @revision: created in V2.1.1"]
5414 #[doc = ""]
5415 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5416 #[rasn(delegate)]
5417 pub struct SafeDistanceIndicator(pub bool);
5418 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5419 #[rasn(delegate, value("0..=4095"))]
5420 pub struct SemiAxisLength(pub u16);
5421 #[doc = "* "]
5422 #[doc = " * This DE indicates the type of sensor."]
5423 #[doc = " * "]
5424 #[doc = " * The value shall be set to:"]
5425 #[doc = " * - 0 `undefined` - in case the sensor type is undefined. "]
5426 #[doc = " * - 1 `radar` - in case the sensor is a radar,"]
5427 #[doc = " * - 2 `lidar` - in case the sensor is a lidar,"]
5428 #[doc = " * - 3 `monovideo` - in case the sensor is mono video,"]
5429 #[doc = " * - 4 `stereovision` - in case the sensor is stereo vision,"]
5430 #[doc = " * - 5 `nightvision` - in case the sensor is night vision,"]
5431 #[doc = " * - 6 `ultrasonic` - in case the sensor is ultrasonic,"]
5432 #[doc = " * - 7 `pmd` - in case the sensor is photonic mixing device,"]
5433 #[doc = " * - 8 `inductionLoop` - in case the sensor is an induction loop,"]
5434 #[doc = " * - 9 `sphericalCamera` - in case the sensor is a spherical camera,"]
5435 #[doc = " * - 10 `uwb` - in case the sensor is ultra wide band,"]
5436 #[doc = " * - 11 `acoustic` - in case the sensor is acoustic,"]
5437 #[doc = " * - 12 `localAggregation` - in case the information is provided by a system that aggregates information from different local sensors. Aggregation may include fusion,"]
5438 #[doc = " * - 13 `itsAggregation` - in case the information is provided by a system that aggregates information from other received ITS messages."]
5439 #[doc = " * - 14-31 - are reserved for future usage."]
5440 #[doc = " *"]
5441 #[doc = " * @category: Sensing Information"]
5442 #[doc = " * @revision: created in V2.1.1"]
5443 #[doc = ""]
5444 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5445 #[rasn(delegate, value("0..=31"))]
5446 pub struct SensorType(pub u8);
5447 #[doc = "*"]
5448 #[doc = " * This DE represents a sequence number."]
5449 #[doc = " * "]
5450 #[doc = " * @category: Basic information"]
5451 #[doc = " * @revision: V1.3.1"]
5452 #[doc = " "]
5453 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5454 #[rasn(delegate, value("0..=65535"))]
5455 pub struct SequenceNumber(pub u16);
5456 #[doc = "* "]
5457 #[doc = " * This DF shall contain a list of DF @ref CartesianPosition3d."]
5458 #[doc = " * "]
5459 #[doc = " * @category: GeoReference information"]
5460 #[doc = " * @revision: created in V2.1.1"]
5461 #[doc = " "]
5462 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5463 #[rasn(delegate, size("1..=16", extensible))]
5464 pub struct SequenceOfCartesianPosition3d(pub SequenceOf<CartesianPosition3d>);
5465 #[doc = "* "]
5466 #[doc = " * The DF contains a list of DE @ref Identifier1B."]
5467 #[doc = " *"]
5468 #[doc = " * @category: Basic information"]
5469 #[doc = " * @revision: created in V2.1.1"]
5470 #[doc = ""]
5471 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5472 #[rasn(delegate, size("1..=128", extensible))]
5473 pub struct SequenceOfIdentifier1B(pub SequenceOf<Identifier1B>);
5474 #[doc = "*"]
5475 #[doc = " * The DF contains a list of DF @ref SafeDistanceIndication."]
5476 #[doc = " *"]
5477 #[doc = " * @category: Traffic information, Kinematic information"]
5478 #[doc = " * @revision: created in V2.1.1"]
5479 #[doc = ""]
5480 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5481 #[rasn(delegate, size("1..=8", extensible))]
5482 pub struct SequenceOfSafeDistanceIndication(pub SequenceOf<SafeDistanceIndication>);
5483 #[doc = "*"]
5484 #[doc = " * The DF shall contain a list of DF @ref TrajectoryInterceptionIndication."]
5485 #[doc = " *"]
5486 #[doc = " * @category: Traffic information, Kinematic information"]
5487 #[doc = " * @revision: created in V2.1.1"]
5488 #[doc = ""]
5489 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5490 #[rasn(delegate, size("1..=8", extensible))]
5491 pub struct SequenceOfTrajectoryInterceptionIndication(
5492 pub SequenceOf<TrajectoryInterceptionIndication>,
5493 );
5494 #[doc = "*"]
5495 #[doc = " * This DF provides the definition of a geographical area or volume, based on different options."]
5496 #[doc = " *"]
5497 #[doc = " * It is a choice of the following components: "]
5498 #[doc = " *"]
5499 #[doc = " * @field rectangular: definition of an rectangular area or a right rectangular prism (with a rectangular base) also called a cuboid, or informally a rectangular box."]
5500 #[doc = " *"]
5501 #[doc = " * @field circular: definition of an area of circular shape or a right circular cylinder."]
5502 #[doc = " *"]
5503 #[doc = " * @field polygonal: definition of an area of polygonal shape or a right prism."]
5504 #[doc = " *"]
5505 #[doc = " * @field elliptical: definition of an area of elliptical shape or a right elliptical cylinder."]
5506 #[doc = " *"]
5507 #[doc = " * @field radial: definition of a radial shape."]
5508 #[doc = " *"]
5509 #[doc = " * @field radialList: definition of list of radial shapes."]
5510 #[doc = " *"]
5511 #[doc = " * @category: GeoReference information"]
5512 #[doc = " * @revision: Created in V2.1.1"]
5513 #[doc = " "]
5514 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5515 #[rasn(choice, automatic_tags)]
5516 #[non_exhaustive]
5517 pub enum Shape {
5518 rectangular(RectangularShape),
5519 circular(CircularShape),
5520 polygonal(PolygonalShape),
5521 elliptical(EllipticalShape),
5522 radial(RadialShape),
5523 radialShapes(RadialShapes),
5524 }
5525 #[doc = "*"]
5526 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `signalViolation`."]
5527 #[doc = " * "]
5528 #[doc = " * The value shall be set to:"]
5529 #[doc = " * - 0 `unavailable` - in case further detailed information on signal violation event is unavailable,"]
5530 #[doc = " * - 1 `stopSignViolation` - in case a stop sign violation is detected,"]
5531 #[doc = " * - 2 `trafficLightViolation` - in case a traffic light violation is detected,"]
5532 #[doc = " * - 3 `turningRegulationViolation`- in case a turning regulation violation is detected."]
5533 #[doc = " * - 4-255 - are reserved for future usage."]
5534 #[doc = " *"]
5535 #[doc = " * @category: Traffic information"]
5536 #[doc = " * @revision: V1.3.1"]
5537 #[doc = " "]
5538 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5539 #[rasn(delegate, value("0..=255"))]
5540 pub struct SignalViolationSubCauseCode(pub u8);
5541 #[doc = "*"]
5542 #[doc = " * This DE represents the sub cause codes of the @ref CauseCode \"slowVehicle\"."]
5543 #[doc = " * "]
5544 #[doc = " * The value shall be set to:"]
5545 #[doc = " * - 0 `unavailable` - in case further detailed information on slow vehicle driving event is"]
5546 #[doc = " * unavailable,"]
5547 #[doc = " * - 1 `maintenanceVehicle` - in case of a slow driving maintenance vehicle on the road,"]
5548 #[doc = " * - 2 `vehiclesSlowingToLookAtAccident`- in case vehicle is temporally slowing down to look at accident, spot, etc.,"]
5549 #[doc = " * - 3 `abnormalLoad` - in case an abnormal loaded vehicle is driving slowly on the road,"]
5550 #[doc = " * - 4 `abnormalWideLoad` - in case an abnormal wide load vehicle is driving slowly on the road,"]
5551 #[doc = " * - 5 `convoy` - in case of slow driving convoy on the road,"]
5552 #[doc = " * - 6 `snowplough` - in case of slow driving snow plough on the road,"]
5553 #[doc = " * - 7 `deicing` - in case of slow driving de-icing vehicle on the road,"]
5554 #[doc = " * - 8 `saltingVehicles` - in case of slow driving salting vehicle on the road."]
5555 #[doc = " * - 9-255 - are reserved for future usage."]
5556 #[doc = " * "]
5557 #[doc = " * @category: Traffic information"]
5558 #[doc = " * @revision: V1.3.1"]
5559 #[doc = " "]
5560 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5561 #[rasn(delegate, value("0..=255"))]
5562 pub struct SlowVehicleSubCauseCode(pub u8);
5563 #[doc = "*"]
5564 #[doc = " * The DE indicates if a vehicle is carrying goods in the special transport conditions."]
5565 #[doc = " *"]
5566 #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
5567 #[doc = " * - 0 `heavyLoad` - the vehicle is carrying goods with heavy load,"]
5568 #[doc = " * - 1 `excessWidth` - the vehicle is carrying goods in excess of width,"]
5569 #[doc = " * - 2 `excessLength` - the vehicle is carrying goods in excess of length,"]
5570 #[doc = " * - 3 `excessHeight` - the vehicle is carrying goods in excess of height."]
5571 #[doc = " *"]
5572 #[doc = " * Otherwise, the corresponding bit shall be set to 0."]
5573 #[doc = " * @category Vehicle information"]
5574 #[doc = " * @revision: Description revised in V2.1.1"]
5575 #[doc = " "]
5576 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5577 #[rasn(delegate)]
5578 pub struct SpecialTransportType(pub FixedBitString<4usize>);
5579 #[doc = "*"]
5580 #[doc = " * This DF represents the speed and associated confidence value."]
5581 #[doc = " *"]
5582 #[doc = " * It shall include the following components: "]
5583 #[doc = " * "]
5584 #[doc = " * @field speedValue: the speed value."]
5585 #[doc = " * "]
5586 #[doc = " * @field speedConfidence: the confidence value of the speed value."]
5587 #[doc = " *"]
5588 #[doc = " * @category: Kinematic information"]
5589 #[doc = " * @revision: V1.3.1"]
5590 #[doc = " "]
5591 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5592 #[rasn(automatic_tags)]
5593 pub struct Speed {
5594 #[rasn(identifier = "speedValue")]
5595 pub speed_value: SpeedValue,
5596 #[rasn(identifier = "speedConfidence")]
5597 pub speed_confidence: SpeedConfidence,
5598 }
5599 impl Speed {
5600 pub fn new(speed_value: SpeedValue, speed_confidence: SpeedConfidence) -> Self {
5601 Self {
5602 speed_value,
5603 speed_confidence,
5604 }
5605 }
5606 }
5607 #[doc = "*"]
5608 #[doc = " * This DE indicates the speed confidence value which represents the estimated absolute accuracy of a speed value with a default confidence level of 95 %."]
5609 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
5610 #[doc = " * "]
5611 #[doc = " * The value shall be set to:"]
5612 #[doc = " * - `n` (`n > 0` and `n < 126`) if the confidence value is equal to or less than n * 0,01 m/s."]
5613 #[doc = " * - `126` if the confidence value is out of range, i.e. greater than 1,25 m/s,"]
5614 #[doc = " * - `127` if the confidence value information is not available."]
5615 #[doc = " * "]
5616 #[doc = " * @note: The fact that a speed value is received with confidence value set to `unavailable(127)` can be caused by several reasons, such as:"]
5617 #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
5618 #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
5619 #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
5620 #[doc = " * In all 3 cases above, the speed value may be valid and used by the application."]
5621 #[doc = " * "]
5622 #[doc = " * @note: If a speed value is received and its confidence value is set to `outOfRange(126)`, it means that the speed value is not valid "]
5623 #[doc = " * and therefore cannot be trusted. Such is not useful for the application."]
5624 #[doc = " *"]
5625 #[doc = " * @unit: 0,01 m/s"]
5626 #[doc = " * @category: Vehicle information"]
5627 #[doc = " * @revision: Description revised in V2.1.1 "]
5628 #[doc = " "]
5629 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5630 #[rasn(delegate, value("1..=127"))]
5631 pub struct SpeedConfidence(pub u8);
5632 #[doc = "*"]
5633 #[doc = " * This DE represents a speed limitation applied to a geographical position, a road section or a geographical region."]
5634 #[doc = " * "]
5635 #[doc = " * @unit: km/h"]
5636 #[doc = " * @category: Infrastructure information, Traffic information"]
5637 #[doc = " * @revision: V1.3.1"]
5638 #[doc = " "]
5639 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5640 #[rasn(delegate, value("1..=255"))]
5641 pub struct SpeedLimit(pub u8);
5642 #[doc = "*"]
5643 #[doc = " * This DE represents a speed value, i.e. the magnitude of the velocity-vector. "]
5644 #[doc = " *"]
5645 #[doc = " * The value shall be set to:"]
5646 #[doc = " * - `0` in a standstill situation."]
5647 #[doc = " * - `n` (`n > 0` and `n < 16 382`) if the applicable value is equal to or less than n x 0,01 m/s, and greater than (n-1) x 0,01 m/s,"]
5648 #[doc = " * - `16 382` for speed values greater than 163,81 m/s,"]
5649 #[doc = " * - `16 383` if the speed accuracy information is not available."]
5650 #[doc = " * "]
5651 #[doc = " * @note: the definition of standstill is out of scope of the present document."]
5652 #[doc = " *"]
5653 #[doc = " * @unit: 0,01 m/s"]
5654 #[doc = " * @category: Kinematic information"]
5655 #[doc = " * @revision: Description revised in V2.1.1 (the meaning of 16382 has changed slightly) "]
5656 #[doc = ""]
5657 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5658 #[rasn(delegate, value("0..=16383"))]
5659 pub struct SpeedValue(pub u16);
5660 #[doc = "*"]
5661 #[doc = " * This DF provides the indication of change in stability."]
5662 #[doc = " *"]
5663 #[doc = " * It shall include the following components: "]
5664 #[doc = " * "]
5665 #[doc = " * @field lossProbability: the probability of stability loss. "]
5666 #[doc = " * "]
5667 #[doc = " * @field actionDeltaTime: the period over which the the probability of stability loss is estimated. "]
5668 #[doc = " *"]
5669 #[doc = " * @category: Kinematic information"]
5670 #[doc = " * @revision: V2.1.1"]
5671 #[doc = " "]
5672 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5673 #[rasn(automatic_tags)]
5674 #[non_exhaustive]
5675 pub struct StabilityChangeIndication {
5676 #[rasn(identifier = "lossProbability")]
5677 pub loss_probability: StabilityLossProbability,
5678 #[rasn(identifier = "actionDeltaTime")]
5679 pub action_delta_time: DeltaTimeTenthOfSecond,
5680 }
5681 impl StabilityChangeIndication {
5682 pub fn new(
5683 loss_probability: StabilityLossProbability,
5684 action_delta_time: DeltaTimeTenthOfSecond,
5685 ) -> Self {
5686 Self {
5687 loss_probability,
5688 action_delta_time,
5689 }
5690 }
5691 }
5692 #[doc = "*"]
5693 #[doc = " * This DE indicates the estimated probability of a stability level and conversely also the probability of a stability loss."]
5694 #[doc = " *"]
5695 #[doc = " * The value shall be set to:"]
5696 #[doc = " * - `0` to indicate an estimated probability of a loss of stability of 0 %, i.e. \"stable\", "]
5697 #[doc = " * - `n` (`n > 0` and `n < 50`) to indicate the actual stability level,"]
5698 #[doc = " * - `50` to indicate a estimated probability of a loss of stability of 100 %, i.e. \"total loss of stability\","]
5699 #[doc = " * - the values between 51 and 62 are reserved for future use,"]
5700 #[doc = " * - `63`: this value indicates that the information is unavailable."]
5701 #[doc = " *"]
5702 #[doc = " * @unit: 2 %"]
5703 #[doc = " * @category: Kinematic information"]
5704 #[doc = " * @revision: Created in V2.1.1"]
5705 #[doc = " "]
5706 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5707 #[rasn(delegate, value("0..=63"))]
5708 pub struct StabilityLossProbability(pub u8);
5709 #[doc = "*"]
5710 #[doc = " * The DE represents length as a measure of distance between points or as a dimension of an object or shape. "]
5711 #[doc = " *"]
5712 #[doc = " * @unit: 0,1 metre"]
5713 #[doc = " * @category: Basic information"]
5714 #[doc = " * @revision: Created in V2.1.1"]
5715 #[doc = " "]
5716 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5717 #[rasn(delegate, value("0..=4095"))]
5718 pub struct StandardLength12b(pub u16);
5719 #[doc = "*"]
5720 #[doc = " * The DE represents length as a measure of distance between points or as a dimension of an object. "]
5721 #[doc = " *"]
5722 #[doc = " * @unit: 0,1 metre"]
5723 #[doc = " * @category: Basic information"]
5724 #[doc = " * @revision: Created in V2.1.1"]
5725 #[doc = " "]
5726 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5727 #[rasn(delegate, value("0..=255"))]
5728 pub struct StandardLength1B(pub u8);
5729 #[doc = "*"]
5730 #[doc = " * The DE represents length as a measure of distance between points or as a dimension of an object. "]
5731 #[doc = " *"]
5732 #[doc = " * @unit: 0,1 metre"]
5733 #[doc = " * @category: Basic information"]
5734 #[doc = " * @revision: Created in V2.1.1"]
5735 #[doc = " "]
5736 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5737 #[rasn(delegate, value("0..=65535"))]
5738 pub struct StandardLength2B(pub u16);
5739 #[doc = "*"]
5740 #[doc = " * The DE represents length as a measure of distance between points. "]
5741 #[doc = " *"]
5742 #[doc = " * The value shall be set to:"]
5743 #[doc = " * - 0 `lessThan50m` - for distances below 50 m, "]
5744 #[doc = " * - 1 `lessThan100m` - for distances below 100 m,"]
5745 #[doc = " * - 2 `lessThan200m` - for distances below 200 m, "]
5746 #[doc = " * - 3 `lessThan500m` - for distances below 300 m, "]
5747 #[doc = " * - 4 `lessThan1000m` - for distances below 1 000 m,"]
5748 #[doc = " * - 5 `lessThan5km` - for distances below 5 000 m, "]
5749 #[doc = " * - 6 `lessThan10km` - for distances below 10 000 m, "]
5750 #[doc = " * - 7 `over10km` - for distances over 10 000 m."]
5751 #[doc = " *"]
5752 #[doc = " * @category: GeoReference information"]
5753 #[doc = " * @revision: Created in V2.1.1 from RelevanceDistance"]
5754 #[doc = " "]
5755 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5756 #[rasn(enumerated)]
5757 pub enum StandardLength3b {
5758 lessThan50m = 0,
5759 lessThan100m = 1,
5760 lessThan200m = 2,
5761 lessThan500m = 3,
5762 lessThan1000m = 4,
5763 lessThan5km = 5,
5764 lessThan10km = 6,
5765 over10km = 7,
5766 }
5767 #[doc = "*"]
5768 #[doc = " * The DE represents length as a measure of distance between points or as a dimension of an object. "]
5769 #[doc = " *"]
5770 #[doc = " * @unit: 0,1 metre"]
5771 #[doc = " * @category: Basic information"]
5772 #[doc = " * @revision: Created in V2.1.1"]
5773 #[doc = " "]
5774 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5775 #[rasn(delegate, value("0..=511"))]
5776 pub struct StandardLength9b(pub u16);
5777 #[doc = "*"]
5778 #[doc = " * This DE represents the identifier of an ITS-S."]
5779 #[doc = " * The ITS-S ID may be a pseudonym. It may change over space and/or over time."]
5780 #[doc = " *"]
5781 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref StationId instead."]
5782 #[doc = " * @category: Basic information"]
5783 #[doc = " * @revision: V1.3.1"]
5784 #[doc = " "]
5785 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5786 #[rasn(delegate, value("0..=4294967295"))]
5787 pub struct StationID(pub u32);
5788 #[doc = "*"]
5789 #[doc = " * This DE represents the identifier of an ITS-S."]
5790 #[doc = " * The ITS-S ID may be a pseudonym. It may change over space and/or over time."]
5791 #[doc = " *"]
5792 #[doc = " * @category: Basic information"]
5793 #[doc = " * @revision: Created in V2.1.1 based on @ref StationID"]
5794 #[doc = " "]
5795 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5796 #[rasn(delegate, value("0..=4294967295"))]
5797 pub struct StationId(pub u32);
5798 #[doc = "*"]
5799 #[doc = " * This DE represents the type of technical context the ITS-S is integrated in."]
5800 #[doc = " * The station type depends on the integration environment of ITS-S into vehicle, mobile devices or at infrastructure."]
5801 #[doc = " * "]
5802 #[doc = " * The value shall be set to:"]
5803 #[doc = " * - 0 `unknown` - information about the ITS-S context is not provided,"]
5804 #[doc = " * - 1 `pedestrian` - ITS-S carried by human being not using a mechanical device for their trip (VRU profile 1),"]
5805 #[doc = " * - 2 `cyclist` - ITS-S mounted on non-motorized unicycles, bicycles , tricycles, quadracycles (VRU profile 2),"]
5806 #[doc = " * - 3 `moped` - ITS-S mounted on light motor vehicles with less than four wheels as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] "]
5807 #[doc = " class L1, L2 (VRU Profile 3),"]
5808 #[doc = " * - 4 `motorcycles` - ITS-S mounted on motor vehicles with less than four wheels as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] "]
5809 #[doc = " class L3, L4, L5, L6, L7 (VRU Profile 3),"]
5810 #[doc = " * - 5 `passengerCar` - ITS-S mounted on small passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class M1,"]
5811 #[doc = " * - 6 `bus` - ITS-S mounted on large passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class M2, M3,"]
5812 #[doc = " * - 7 `lightTruck` - ITS-S mounted on light Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class N1,"]
5813 #[doc = " * - 8 `heavyTruck` - ITS-S mounted on Heavy Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class N2 and N3,"]
5814 #[doc = " * - 9 `trailer` - ITS-S mounted on an unpowered vehicle that is intended to be towed by a powered vehicle as defined in "]
5815 #[doc = " UNECE/TRANS/WP.29/78/Rev.4 [16] class O,"]
5816 #[doc = " * - 10 `specialVehicles` - ITS-S mounted on vehicles which have special purposes other than the above (e.g. moving road works vehicle),"]
5817 #[doc = " * - 11 `tram` - ITS-S mounted on a vehicle which runs on tracks along public streets,"]
5818 #[doc = " * - 12 `lightVruVehicle` - ITS-S carried by a human being traveling on light vehicle , incl. possible use of roller skates or skateboards (VRU profile 2),"]
5819 #[doc = " * - 13 `animal` - ITS-S carried by an animal presenting a safety risk to other road users e.g. domesticated dog in a city or horse (VRU Profile 4),"]
5820 #[doc = " * - 14 - reserved for future usage,"]
5821 #[doc = " * - 15 `roadSideUnit` - ITS-S mounted on an infrastructure typically positioned outside of the drivable roadway (e.g. on a gantry, on a pole, "]
5822 #[doc = " on a stationary road works trailer); the infrastructure is static during the entire operation period of the ITS-S (e.g. no stop and go activity),"]
5823 #[doc = " * - 16-255 - are reserved for future usage."]
5824 #[doc = " * "]
5825 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrafficParticipantType instead."]
5826 #[doc = " * @category: Communication information."]
5827 #[doc = " * @revision: revised in V2.1.1 (named values 12 and 13 added and note to value 9 deleted)"]
5828 #[doc = " "]
5829 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5830 #[rasn(delegate, value("0..=255"))]
5831 pub struct StationType(pub u8);
5832 #[doc = "*"]
5833 #[doc = " * This DE indicates the duration in minutes since which something is stationary."]
5834 #[doc = " * "]
5835 #[doc = " * The value shall be set to:"]
5836 #[doc = " * - 0 `lessThan1Minute` - for being stationary since less than 1 minute, "]
5837 #[doc = " * - 1 `lessThan2Minutes` - for being stationary since less than 2 minute and for equal to or more than 1 minute,"]
5838 #[doc = " * - 2 `lessThan15Minutes` - for being stationary since less than 15 minutes and for equal to or more than 1 minute,"]
5839 #[doc = " * - 3 `equalOrGreater15Minutes` - for being stationary since equal to or more than 15 minutes."]
5840 #[doc = " *"]
5841 #[doc = " * @category: Kinematic information"]
5842 #[doc = " * @revision: Created in V2.1.1"]
5843 #[doc = " "]
5844 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5845 #[rasn(enumerated)]
5846 pub enum StationarySince {
5847 lessThan1Minute = 0,
5848 lessThan2Minutes = 1,
5849 lessThan15Minutes = 2,
5850 equalOrGreater15Minutes = 3,
5851 }
5852 #[doc = "*"]
5853 #[doc = " * This DE provides the value of the sub cause codes of the @ref CauseCode \"stationaryVehicle\". "]
5854 #[doc = " * "]
5855 #[doc = " * The value shall be set to:"]
5856 #[doc = " * - 0 `unavailable` - in case further detailed information on stationary vehicle is unavailable,"]
5857 #[doc = " * - 1 `humanProblem` - in case stationary vehicle is due to health problem of driver or passenger,"]
5858 #[doc = " * - 2 `vehicleBreakdown` - in case stationary vehicle is due to vehicle break down,"]
5859 #[doc = " * - 3 `postCrash` - in case stationary vehicle is caused by collision,"]
5860 #[doc = " * - 4 `publicTransportStop` - in case public transport vehicle is stationary at bus stop,"]
5861 #[doc = " * - 5 `carryingDangerousGoods`- in case the stationary vehicle is carrying dangerous goods,"]
5862 #[doc = " * - 6 `vehicleOnFire` - in case of vehicle on fire."]
5863 #[doc = " * - 7-255 reserved for future usage."]
5864 #[doc = " *"]
5865 #[doc = " * @category: Traffic information"]
5866 #[doc = " * @revision: V1.3.1"]
5867 #[doc = " "]
5868 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5869 #[rasn(delegate, value("0..=255"))]
5870 pub struct StationaryVehicleSubCauseCode(pub u8);
5871 #[doc = "*"]
5872 #[doc = " * This DF represents the steering wheel angle of the vehicle at certain point in time."]
5873 #[doc = " *"]
5874 #[doc = " * It shall include the following components: "]
5875 #[doc = " * "]
5876 #[doc = " * @field steeringWheelAngleValue: steering wheel angle value."]
5877 #[doc = " * "]
5878 #[doc = " * @field steeringWheelAngleConfidence: confidence value of the steering wheel angle value."]
5879 #[doc = " * "]
5880 #[doc = " * @category: Vehicle information"]
5881 #[doc = " * @revision: Created in V2.1.1"]
5882 #[doc = " "]
5883 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5884 #[rasn(automatic_tags)]
5885 pub struct SteeringWheelAngle {
5886 #[rasn(identifier = "steeringWheelAngleValue")]
5887 pub steering_wheel_angle_value: SteeringWheelAngleValue,
5888 #[rasn(identifier = "steeringWheelAngleConfidence")]
5889 pub steering_wheel_angle_confidence: SteeringWheelAngleConfidence,
5890 }
5891 impl SteeringWheelAngle {
5892 pub fn new(
5893 steering_wheel_angle_value: SteeringWheelAngleValue,
5894 steering_wheel_angle_confidence: SteeringWheelAngleConfidence,
5895 ) -> Self {
5896 Self {
5897 steering_wheel_angle_value,
5898 steering_wheel_angle_confidence,
5899 }
5900 }
5901 }
5902 #[doc = "*"]
5903 #[doc = " * This DE indicates the steering wheel angle confidence value which represents the estimated absolute accuracy for a steering wheel angle value with a confidence level of 95 %."]
5904 #[doc = " * "]
5905 #[doc = " * The value shall be set to:"]
5906 #[doc = " * - `n` (`n > 0` and `n < 126`) if the confidence value is equal to or less than n x 1,5 degrees,"]
5907 #[doc = " * - `126` if the confidence value is out of range, i.e. greater than 187,5 degrees,"]
5908 #[doc = " * - `127` if the confidence value is not available."]
5909 #[doc = " * "]
5910 #[doc = " * @note: The fact that a steering wheel angle value is received with confidence value set to `unavailable(127)`"]
5911 #[doc = " * can be caused by several reasons, such as:"]
5912 #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
5913 #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
5914 #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
5915 #[doc = " * In all 3 cases above, the steering wheel angle value may be valid and used by the application."]
5916 #[doc = " * "]
5917 #[doc = " * If a steering wheel angle value is received and its confidence value is set to `outOfRange(126)`,"]
5918 #[doc = " * it means that the steering wheel angle value is not valid and therefore cannot be trusted."]
5919 #[doc = " * Such value is not useful for the application."]
5920 #[doc = " * "]
5921 #[doc = " * @unit: 1,5 degree"]
5922 #[doc = " * @category: Vehicle Information"]
5923 #[doc = " * @revision: Description revised in V2.1.1"]
5924 #[doc = ""]
5925 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5926 #[rasn(delegate, value("1..=127"))]
5927 pub struct SteeringWheelAngleConfidence(pub u8);
5928 #[doc = "*"]
5929 #[doc = " * This DE represents the steering wheel angle of the vehicle at certain point in time."]
5930 #[doc = " * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11."]
5931 #[doc = " * "]
5932 #[doc = " * The value shall be set to:"]
5933 #[doc = " * - `-511` if the steering wheel angle is equal to or greater than 511 x 1,5 degrees = 766,5 degrees to the right,"]
5934 #[doc = " * - `n` (`n > -511` and `n <= 0`) if the steering wheel angle is equal to or less than n x 1,5 degrees, and greater than (n-1) x 1,5 degrees, "]
5935 #[doc = " turning clockwise (i.e. to the right),"]
5936 #[doc = " * - `n` (`n >= 1` and `n < 511`) if the steering wheel angle is equal to or less than n x 0,1 degrees, and greater than (n-1) x 0,1 degrees, "]
5937 #[doc = " turning counter-clockwise (i.e. to the left),"]
5938 #[doc = " * - `511` if the steering wheel angle is greater than 510 x 1,5 degrees = 765 degrees to the left,"]
5939 #[doc = " * - `512` if information is not available."]
5940 #[doc = " *"]
5941 #[doc = " * @unit: 1,5 degree"]
5942 #[doc = " * @revision: Description revised in V2.1.1 (meaning of value 511 has changed slightly)."]
5943 #[doc = " "]
5944 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5945 #[rasn(delegate, value("-511..=512"))]
5946 pub struct SteeringWheelAngleValue(pub i16);
5947 #[doc = "*"]
5948 #[doc = " * This DE indicates the generic sub cause of a detected event."]
5949 #[doc = " * "]
5950 #[doc = " * @note: The sub cause code value assignment varies based on value of @ref CauseCode."]
5951 #[doc = " *"]
5952 #[doc = " * @category: Traffic information"]
5953 #[doc = " * @revision: Description revised in V2.1.1 (this is the generic sub cause type)"]
5954 #[doc = " "]
5955 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5956 #[rasn(delegate, value("0..=255"))]
5957 pub struct SubCauseCodeType(pub u8);
5958 #[doc = "*"]
5959 #[doc = " * This DE indicates a temperature value."]
5960 #[doc = ""]
5961 #[doc = " * The value shall be set to:"]
5962 #[doc = " * - `-60` for temperature equal to or less than -60 degrees C,"]
5963 #[doc = " * - `n` (`n > -60` and `n < 67`) for the actual temperature n in degrees C,"]
5964 #[doc = " * - `67` for temperature equal to or greater than 67 degrees C."]
5965 #[doc = " * "]
5966 #[doc = " * @unit: degrees Celsius"]
5967 #[doc = " * @category: Basic information"]
5968 #[doc = " * @revision: Editorial update in V2.1.1"]
5969 #[doc = " "]
5970 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5971 #[rasn(delegate, value("-60..=67"))]
5972 pub struct Temperature(pub i8);
5973 #[doc = "*"]
5974 #[doc = " * This DE represents the number of elapsed (TAI) milliseconds since the ITS Epoch. "]
5975 #[doc = " * The ITS epoch is `00:00:00.000 UTC, 1 January 2004`."]
5976 #[doc = " * \"Elapsed\" means that the true number of milliseconds is continuously counted without interruption,"]
5977 #[doc = " * i.e. it is not altered by leap seconds, which occur in UTC."]
5978 #[doc = " * "]
5979 #[doc = " * @note: International Atomic Time (TAI) is the time reference coordinate on the basis of the readings of atomic clocks, "]
5980 #[doc = " * operated in accordance with the definition of the second, the unit of time of the International System of Units. "]
5981 #[doc = " * TAI is a continuous time scale. UTC has discontinuities, as it is occasionally adjusted by leap seconds. "]
5982 #[doc = " * As of 1 January, 2022, TimestampIts is 5 seconds ahead of UTC, because since the ITS epoch on 1 January 2004 00:00:00.000 UTC, "]
5983 #[doc = " * further 5 leap seconds have been inserted in UTC."]
5984 #[doc = " * "]
5985 #[doc = " * EXAMPLE: The value for TimestampIts for 1 January 2007 00:00:00.000 UTC is `94 694 401 000` milliseconds,"]
5986 #[doc = " * which includes one leap second insertion since the ITS epoch."]
5987 #[doc = " * @unit: 0,001 s"]
5988 #[doc = " * @category: Basic information"]
5989 #[doc = " * @revision: Description revised in in V2.1.1"]
5990 #[doc = " "]
5991 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5992 #[rasn(delegate, value("0..=4398046511103"))]
5993 pub struct TimestampIts(pub u64);
5994 #[doc = "*"]
5995 #[doc = " * This DF represents one or more paths using @ref PathHistory."]
5996 #[doc = " * "]
5997 #[doc = " * @category: GeoReference information"]
5998 #[doc = " * @revision: Description revised in V2.1.1. Is is now based on Path and not on PathHistory"]
5999 #[doc = " "]
6000 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6001 #[rasn(delegate, size("1..=7"))]
6002 pub struct Traces(pub SequenceOf<Path>);
6003 #[doc = "*"]
6004 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `trafficCondition`. "]
6005 #[doc = " * "]
6006 #[doc = " * The value shall be set to:"]
6007 #[doc = " * - 0 `unavailable` - in case further detailed information on traffic jam is unavailable,"]
6008 #[doc = " * - 1 `increasedVolumeOfTraffic` - in case detected jam volume is increased,"]
6009 #[doc = " * - 2 `trafficJamSlowlyIncreasing` - in case detected traffic jam volume is increasing slowly,"]
6010 #[doc = " * - 3 `trafficJamIncreasing` - in case traffic jam volume is increasing,"]
6011 #[doc = " * - 4 `trafficJamStronglyIncreasing`- in case traffic jam volume is strongly increasing,"]
6012 #[doc = " * - 5 `trafficStationary` - in case traffic is stationary,"]
6013 #[doc = " * - 6 `trafficJamSlightlyDecreasing`- in case traffic jam volume is decreasing slowly,"]
6014 #[doc = " * - 7 `trafficJamDecreasing` - in case traffic jam volume is decreasing,"]
6015 #[doc = " * - 8 `trafficJamStronglyDecreasing`- in case traffic jam volume is decreasing rapidly,"]
6016 #[doc = " * - 9-255: reserved for future usage."]
6017 #[doc = " *"]
6018 #[doc = " * @category: Traffic information"]
6019 #[doc = " * @revision: V1.3.1"]
6020 #[doc = " "]
6021 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6022 #[rasn(delegate, value("0..=255"))]
6023 pub struct TrafficConditionSubCauseCode(pub u8);
6024 #[doc = "*"]
6025 #[doc = " * This DE indicates a traffic direction that is relevant to information indicated in a message."]
6026 #[doc = " * "]
6027 #[doc = " * The value shall be set to:"]
6028 #[doc = " * - 0 `allTrafficDirections` - for all traffic directions, "]
6029 #[doc = " * - 1 `upstreamTraffic` - for upstream traffic, "]
6030 #[doc = " * - 2 `downstreamTraffic` - for downstream traffic, "]
6031 #[doc = " * - 3 `oppositeTraffic` - for traffic in the opposite direction. "]
6032 #[doc = " *"]
6033 #[doc = " * The terms `upstream`, `downstream` and `oppositeTraffic` are relative to the event position."]
6034 #[doc = " *"]
6035 #[doc = " * @note: Upstream traffic corresponds to the incoming traffic towards the event position,"]
6036 #[doc = " * and downstream traffic to the departing traffic away from the event position."]
6037 #[doc = " *"]
6038 #[doc = " * @category: GeoReference information"]
6039 #[doc = " * @revision: Created in V2.1.1 from RelevanceTrafficDirection"]
6040 #[doc = " "]
6041 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6042 #[rasn(enumerated)]
6043 pub enum TrafficDirection {
6044 allTrafficDirections = 0,
6045 upstreamTraffic = 1,
6046 downstreamTraffic = 2,
6047 oppositeTraffic = 3,
6048 }
6049 #[doc = "*"]
6050 #[doc = " * Ths DF represents the a position on a traffic island between two lanes. "]
6051 #[doc = " *"]
6052 #[doc = " * It shall include the following components: "]
6053 #[doc = " *"]
6054 #[doc = " * @field oneSide: represents one lane."]
6055 #[doc = " * "]
6056 #[doc = " * @field otherSide: represents the other lane."]
6057 #[doc = " * "]
6058 #[doc = " * @category: Road Topology information"]
6059 #[doc = " * @revision: Created in V2.1.1"]
6060 #[doc = " "]
6061 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6062 #[rasn(automatic_tags)]
6063 #[non_exhaustive]
6064 pub struct TrafficIslandPosition {
6065 #[rasn(identifier = "oneSide")]
6066 pub one_side: LanePositionAndType,
6067 #[rasn(identifier = "otherSide")]
6068 pub other_side: LanePositionAndType,
6069 }
6070 impl TrafficIslandPosition {
6071 pub fn new(one_side: LanePositionAndType, other_side: LanePositionAndType) -> Self {
6072 Self {
6073 one_side,
6074 other_side,
6075 }
6076 }
6077 }
6078 #[doc = "*"]
6079 #[doc = " * This DE represents the type of a traffic participant."]
6080 #[doc = " * "]
6081 #[doc = " * The value shall be set to:"]
6082 #[doc = " * - 0 `unknown` - information about traffic participant is not provided,"]
6083 #[doc = " * - 1 `pedestrian` - human being not using a mechanical device for their trip (VRU profile 1),"]
6084 #[doc = " * - 2 `cyclist` - non-motorized unicycles, bicycles , tricycles, quadracycles (VRU profile 2),"]
6085 #[doc = " * - 3 `moped` - light motor vehicles with less than four wheels as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class L1, L2 (VRU Profile 3),"]
6086 #[doc = " * - 4 `motorcycles` - motor vehicles with less than four wheels as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class L3, L4, L5, L6, L7 (VRU Profile 3),"]
6087 #[doc = " * - 5 `passengerCar` - small passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class M1,"]
6088 #[doc = " * - 6 `bus` - large passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class M2, M3,"]
6089 #[doc = " * - 7 `lightTruck` - light Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class N1,"]
6090 #[doc = " * - 8 `heavyTruck` - Heavy Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class N2 and N3,"]
6091 #[doc = " * - 9 `trailer` - unpowered vehicle that is intended to be towed by a powered vehicle as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class O,"]
6092 #[doc = " * - 10 `specialVehicles` - vehicles which have special purposes other than the above (e.g. moving road works vehicle),"]
6093 #[doc = " * - 11 `tram` - vehicle which runs on tracks along public streets,"]
6094 #[doc = " * - 12 `lightVruVehicle` - human being traveling on light vehicle, incl. possible use of roller skates or skateboards (VRU profile 2),"]
6095 #[doc = " * - 13 `animal` - animal presenting a safety risk to other road users e.g. domesticated dog in a city or horse (VRU Profile 4),"]
6096 #[doc = " * - 14 `agricultural` - agricultural and forestry vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class T,"]
6097 #[doc = " * - 15 `roadSideUnit` - infrastructure typically positioned outside of the drivable roadway (e.g. on a gantry, on a pole, "]
6098 #[doc = " on a stationary road works trailer); the infrastructure is static during the entire operation period of the ITS-S (e.g. no stop and go activity),"]
6099 #[doc = " * - 16-255 - are reserved for future usage."]
6100 #[doc = " * "]
6101 #[doc = " * @category: Communication information."]
6102 #[doc = " * @revision: Created in V2.1.1 based on StationType"]
6103 #[doc = " "]
6104 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6105 #[rasn(delegate, value("0..=255"))]
6106 pub struct TrafficParticipantType(pub u8);
6107 #[doc = "*"]
6108 #[doc = " * This DE indicates traffic rules that apply to vehicles at a certain position."]
6109 #[doc = " *"]
6110 #[doc = " * The value shall be set to:"]
6111 #[doc = " * - `0` - if overtaking is prohibited for all vehicles,"]
6112 #[doc = " * - `1` - if overtaking is prohibited for trucks,"]
6113 #[doc = " * - `2` - if vehicles should pass to the right lane,"]
6114 #[doc = " * - `3` - if vehicles should pass to the left lane."]
6115 #[doc = " *"]
6116 #[doc = " * @category: Infrastructure information, Traffic information"]
6117 #[doc = " * @revision: Editorial update in V2.1.1"]
6118 #[doc = " "]
6119 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6120 #[rasn(enumerated)]
6121 #[non_exhaustive]
6122 pub enum TrafficRule {
6123 noPassing = 0,
6124 noPassingForTrucks = 1,
6125 passToRight = 2,
6126 passToLeft = 3,
6127 }
6128 #[doc = "* "]
6129 #[doc = " * This DF provides detailed information about an attached trailer."]
6130 #[doc = " *"]
6131 #[doc = " * It shall include the following components: "]
6132 #[doc = " *"]
6133 #[doc = " * @field refPointId: identifier of the reference point of the trailer."]
6134 #[doc = " *"]
6135 #[doc = " * @field hitchPointOffset: optional position of the hitch point in negative x-direction (according to ISO 8855) from the"]
6136 #[doc = " * vehicle Reference Point."]
6137 #[doc = " *"]
6138 #[doc = " * @field frontOverhang: optional length of the trailer overhang in the positive x direction (according to ISO 8855) from the"]
6139 #[doc = " * trailer Reference Point indicated by the refPointID. The value defaults to 0 in case the trailer"]
6140 #[doc = " * is not overhanging to the front with respect to the trailer reference point."]
6141 #[doc = " *"]
6142 #[doc = " * @field rearOverhang: optional length of the trailer overhang in the negative x direction (according to ISO 8855) from the"]
6143 #[doc = " * trailer Reference Point indicated by the refPointID."]
6144 #[doc = " *"]
6145 #[doc = " * @field trailerWidth: optional width of the trailer."]
6146 #[doc = " *"]
6147 #[doc = " * @field hitchAngle: optional Value and confidence value of the angle between the trailer orientation (corresponding to the x"]
6148 #[doc = " * direction of the ISO 8855 [21] coordinate system centered on the trailer) and the direction of"]
6149 #[doc = " * the segment having as end points the reference point of the trailer and the reference point of"]
6150 #[doc = " * the pulling vehicle, which can be another trailer or a vehicle looking on the horizontal plane"]
6151 #[doc = " * xy, described in the local Cartesian coordinate system of the trailer. The"]
6152 #[doc = " * angle is measured with negative values considering the trailer orientation turning clockwise"]
6153 #[doc = " * starting from the segment direction. The angle value accuracy is provided with the"]
6154 #[doc = " * confidence level of 95 %."]
6155 #[doc = " *"]
6156 #[doc = " * @category: Vehicle information"]
6157 #[doc = " * @revision: Created in V2.1.1"]
6158 #[doc = ""]
6159 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6160 #[rasn(automatic_tags)]
6161 #[non_exhaustive]
6162 pub struct TrailerData {
6163 #[rasn(identifier = "refPointId")]
6164 pub ref_point_id: Identifier1B,
6165 #[rasn(identifier = "hitchPointOffset")]
6166 pub hitch_point_offset: StandardLength1B,
6167 #[rasn(identifier = "frontOverhang")]
6168 pub front_overhang: Option<StandardLength1B>,
6169 #[rasn(identifier = "rearOverhang")]
6170 pub rear_overhang: Option<StandardLength1B>,
6171 #[rasn(identifier = "trailerWidth")]
6172 pub trailer_width: Option<VehicleWidth>,
6173 #[rasn(identifier = "hitchAngle")]
6174 pub hitch_angle: CartesianAngle,
6175 }
6176 impl TrailerData {
6177 pub fn new(
6178 ref_point_id: Identifier1B,
6179 hitch_point_offset: StandardLength1B,
6180 front_overhang: Option<StandardLength1B>,
6181 rear_overhang: Option<StandardLength1B>,
6182 trailer_width: Option<VehicleWidth>,
6183 hitch_angle: CartesianAngle,
6184 ) -> Self {
6185 Self {
6186 ref_point_id,
6187 hitch_point_offset,
6188 front_overhang,
6189 rear_overhang,
6190 trailer_width,
6191 hitch_angle,
6192 }
6193 }
6194 }
6195 #[doc = "*"]
6196 #[doc = " * This DE provides information about the presence of a trailer. "]
6197 #[doc = " *"]
6198 #[doc = " * The value shall be set to:"]
6199 #[doc = " * - 0 `noTrailerPresent` - to indicate that no trailer is present, i.e. either the vehicle is physically not enabled to tow a trailer or it has been detected that no trailer is present."]
6200 #[doc = " * - 1 `trailerPresentWithKnownLength` - to indicate that a trailer has been detected as present and the length is included in the vehicle length value."]
6201 #[doc = " * - 2 `trailerPresentWithUnknownLength` - to indicate that a trailer has been detected as present and the length is not included in the vehicle length value."]
6202 #[doc = " * - 3 `trailerPresenceIsUnknown` - to indicate that information about the trailer presence is unknown, i.e. the vehicle is physically enabled to tow a trailer but the detection of trailer presence/absence is not possible."]
6203 #[doc = " * - 4 `unavailable` - to indicate that the information about the presence of a trailer is not available, i.e. it is neither known whether the vehicle is able to tow a trailer "]
6204 #[doc = " * nor the detection of trailer presence/absence is possible."]
6205 #[doc = " * "]
6206 #[doc = " * @category: Vehicle information"]
6207 #[doc = " * @revision: Created in V2.1.1 based on VehicleLengthConfidenceIndication"]
6208 #[doc = ""]
6209 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6210 #[rasn(enumerated)]
6211 pub enum TrailerPresenceInformation {
6212 noTrailerPresent = 0,
6213 trailerPresentWithKnownLength = 1,
6214 trailerPresentWithUnknownLength = 2,
6215 trailerPresenceIsUnknown = 3,
6216 unavailable = 4,
6217 }
6218 #[doc = "*"]
6219 #[doc = " * This DE defines the confidence level of the trajectoryInterceptionProbability."]
6220 #[doc = " *"]
6221 #[doc = " * The value shall be set to:"]
6222 #[doc = " * - `0` - to indicate confidence level less than 50 %,"]
6223 #[doc = " * - `1` - to indicate confidence level greater than or equal to 50 % and less than 70 %,"]
6224 #[doc = " * - `2` - to indicate confidence level greater than or equal to 70 % and less than 90 %,"]
6225 #[doc = " * - `3` - to indicate confidence level greater than or equal to 90%."]
6226 #[doc = " * "]
6227 #[doc = " * @category: Kinematic information"]
6228 #[doc = " * @revision: Created in V2.1.1"]
6229 #[doc = " "]
6230 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6231 #[rasn(delegate, value("0..=3"))]
6232 pub struct TrajectoryInterceptionConfidence(pub u8);
6233 #[doc = "*"]
6234 #[doc = " * This DF provides the trajectory interception indication of ego-VRU ITS-S with another ITS-Ss. "]
6235 #[doc = " *"]
6236 #[doc = " * It shall include the following components: "]
6237 #[doc = " * "]
6238 #[doc = " * @field subjectStation: indicates the subject station."]
6239 #[doc = " * "]
6240 #[doc = " * @field trajectoryInterceptionProbability: indicates the propbability of the interception of the subject station trajectory "]
6241 #[doc = " * with the trajectory of the station indicated in the component subjectStation."]
6242 #[doc = " *"]
6243 #[doc = " * @field trajectoryInterceptionConfidence: indicates the confidence of interception of the subject station trajectory "]
6244 #[doc = " * with the trajectory of the station indicated in the component subjectStation."]
6245 #[doc = " * "]
6246 #[doc = " * @category: Vehicle information"]
6247 #[doc = " * @revision: Created in V2.1.1"]
6248 #[doc = " "]
6249 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6250 #[rasn(automatic_tags)]
6251 #[non_exhaustive]
6252 pub struct TrajectoryInterceptionIndication {
6253 #[rasn(identifier = "subjectStation")]
6254 pub subject_station: Option<StationId>,
6255 #[rasn(identifier = "trajectoryInterceptionProbability")]
6256 pub trajectory_interception_probability: TrajectoryInterceptionProbability,
6257 #[rasn(identifier = "trajectoryInterceptionConfidence")]
6258 pub trajectory_interception_confidence: Option<TrajectoryInterceptionConfidence>,
6259 }
6260 impl TrajectoryInterceptionIndication {
6261 pub fn new(
6262 subject_station: Option<StationId>,
6263 trajectory_interception_probability: TrajectoryInterceptionProbability,
6264 trajectory_interception_confidence: Option<TrajectoryInterceptionConfidence>,
6265 ) -> Self {
6266 Self {
6267 subject_station,
6268 trajectory_interception_probability,
6269 trajectory_interception_confidence,
6270 }
6271 }
6272 }
6273 #[doc = "*"]
6274 #[doc = " * This DE defines the probability that the ego trajectory intercepts with any other object's trajectory on the road. "]
6275 #[doc = " * "]
6276 #[doc = " * The value shall be set to:"]
6277 #[doc = " * - `n` (`n >= 0` and `n <= 50`) to indicate the actual probability,"]
6278 #[doc = " * - the values between 51 and 62 are reserved,"]
6279 #[doc = " * - `63`: to indicate that the information is unavailable. "]
6280 #[doc = " *"]
6281 #[doc = " * @unit: 2 %"]
6282 #[doc = " * @category: Kinematic information"]
6283 #[doc = " * @revision: Created in V2.1.1"]
6284 #[doc = " "]
6285 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6286 #[rasn(delegate, value("0..=63"))]
6287 pub struct TrajectoryInterceptionProbability(pub u8);
6288 #[doc = "*"]
6289 #[doc = " * This DE represents the time interval between two consecutive message transmissions."]
6290 #[doc = " * "]
6291 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref DeltaTimeMilliSecondPos instead."]
6292 #[doc = " * @unit: 0,001 s"]
6293 #[doc = " * @category: Basic information"]
6294 #[doc = " * @revision: V1.3.1"]
6295 #[doc = " "]
6296 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6297 #[rasn(delegate, value("1..=10000"))]
6298 pub struct TransmissionInterval(pub u16);
6299 #[doc = "*"]
6300 #[doc = " * This DE provides the turning direction. "]
6301 #[doc = " * "]
6302 #[doc = " * The value shall be set to:"]
6303 #[doc = " * - `left` for turning to te left."]
6304 #[doc = " * - `right` for turing to the right."]
6305 #[doc = " *"]
6306 #[doc = " * @category: Kinematic information"]
6307 #[doc = " * @revision: Created in V2.1.1"]
6308 #[doc = " "]
6309 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6310 #[rasn(enumerated)]
6311 pub enum TurningDirection {
6312 left = 0,
6313 right = 1,
6314 }
6315 #[doc = "*"]
6316 #[doc = " * This DE represents the smallest circular turn (i.e. U-turn) that the vehicle is capable of making."]
6317 #[doc = " *"]
6318 #[doc = " * The value shall be set to:"]
6319 #[doc = " * - `n` (`n > 0` and `n < 254`) to indicate the applicable value is equal to or less than n x 0,4 metre, and greater than (n-1) x 0,4 metre,"]
6320 #[doc = " * - `254` to indicate that the turning radius is greater than 253 x 0,4 metre = 101.2 metres,"]
6321 #[doc = " * - `255` to indicate that the information is unavailable."]
6322 #[doc = " * "]
6323 #[doc = " * For vehicle with tracker, the turning radius applies to the vehicle only."]
6324 #[doc = " *"]
6325 #[doc = " * @category: Vehicle information"]
6326 #[doc = " * @unit 0,4 metre"]
6327 #[doc = " * @revision: Description revised V2.1.1 (the meaning of 254 has changed slightly)"]
6328 #[doc = " "]
6329 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6330 #[rasn(delegate, value("1..=255"))]
6331 pub struct TurningRadius(pub u8);
6332 #[doc = "*"]
6333 #[doc = " * This DE represents the Vehicle Descriptor Section (VDS). The values are assigned according to ISO 3779 [6]."]
6334 #[doc = " * "]
6335 #[doc = " * @category: Vehicle information"]
6336 #[doc = " * @revision: V1.3.1"]
6337 #[doc = " "]
6338 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6339 #[rasn(delegate, size("6"))]
6340 pub struct VDS(pub Ia5String);
6341 #[doc = "* "]
6342 #[doc = " * This DE represents the duration of a traffic event validity. "]
6343 #[doc = " *"]
6344 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref DeltaTimeSecond instead."]
6345 #[doc = " * @unit: 1 s"]
6346 #[doc = " * @category: Basic information"]
6347 #[doc = " * @revision: V1.3.1"]
6348 #[doc = ""]
6349 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6350 #[rasn(delegate, value("0..=86400"))]
6351 pub struct ValidityDuration(pub u32);
6352 #[doc = "*"]
6353 #[doc = " * This DF together with its sub DFs Ext1, Ext2 and the DE Ext3 provides the custom (i.e. not ASN.1 standard) definition of an integer with variable lenght, that can be used for example to encode the ITS-AID. "]
6354 #[doc = " *"]
6355 #[doc = " * @category: Basic information"]
6356 #[doc = " * @revision: Created in V2.1.1"]
6357 #[doc = " "]
6358 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6359 #[rasn(choice)]
6360 pub enum VarLengthNumber {
6361 #[rasn(value("0..=127"), tag(context, 0))]
6362 content(u8),
6363 #[rasn(tag(context, 1))]
6364 extension(Ext1),
6365 }
6366 #[doc = "*"]
6367 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `vehicleBreakdown`. "]
6368 #[doc = " * "]
6369 #[doc = " * The value shall be set to:"]
6370 #[doc = " * - 0 `unavailable` - in case further detailed information on cause of vehicle break down is unavailable,"]
6371 #[doc = " * - 1 `lackOfFuel` - in case vehicle break down is due to lack of fuel,"]
6372 #[doc = " * - 2 `lackOfBatteryPower` - in case vehicle break down is caused by lack of battery power,"]
6373 #[doc = " * - 3 `engineProblem` - in case vehicle break down is caused by an engine problem,"]
6374 #[doc = " * - 4 `transmissionProblem` - in case vehicle break down is caused by transmission problem,"]
6375 #[doc = " * - 5 `engineCoolingProblem`- in case vehicle break down is caused by an engine cooling problem,"]
6376 #[doc = " * - 6 `brakingSystemProblem`- in case vehicle break down is caused by a braking system problem,"]
6377 #[doc = " * - 7 `steeringProblem` - in case vehicle break down is caused by a steering problem,"]
6378 #[doc = " * - 8 `tyrePuncture` - in case vehicle break down is caused by tyre puncture,"]
6379 #[doc = " * - 9 `tyrePressureProblem` - in case low tyre pressure in detected,"]
6380 #[doc = " * - 10 `vehicleOnFire` - in case the vehicle is on fire."]
6381 #[doc = " * - 11-255 - are reserved for future usage."]
6382 #[doc = " *"]
6383 #[doc = " * @category: Traffic information"]
6384 #[doc = ""]
6385 #[doc = " "]
6386 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6387 #[rasn(delegate, value("0..=255"))]
6388 pub struct VehicleBreakdownSubCauseCode(pub u8);
6389 #[doc = "* "]
6390 #[doc = " * This DE represents the height of the vehicle, measured from the ground to the highest point, excluding any antennas."]
6391 #[doc = " * In case vehicles are equipped with adjustable ride heights, camper shells, and any other"]
6392 #[doc = " * equipment which may result in varying height, the largest possible height shall be used."]
6393 #[doc = " *"]
6394 #[doc = " * The value shall be set to:"]
6395 #[doc = " * - `n` (`n >0` and `n < 127`) indicates the applicable value is equal to or less than n x 0,05 metre, and greater than (n-1) x 0,05 metre,"]
6396 #[doc = " * - `127` indicates that the vehicle width is greater than 6,3 metres,"]
6397 #[doc = " * - `128` indicates that the information in unavailable."]
6398 #[doc = " *"]
6399 #[doc = " * @unit: 0,05 metre "]
6400 #[doc = " * @category: Vehicle information"]
6401 #[doc = " * @revision: created in V2.1.1"]
6402 #[doc = ""]
6403 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6404 #[rasn(delegate, value("1..=128"))]
6405 pub struct VehicleHeight(pub u8);
6406 #[doc = "*"]
6407 #[doc = " * This DF provides information related to the identification of a vehicle."]
6408 #[doc = " *"]
6409 #[doc = " * It shall include the following components: "]
6410 #[doc = " * "]
6411 #[doc = " * @field wMInumber: World Manufacturer Identifier (WMI) code."]
6412 #[doc = " * "]
6413 #[doc = " * @field vDS: Vehicle Descriptor Section (VDS). "]
6414 #[doc = " * "]
6415 #[doc = " * @category: Vehicle information"]
6416 #[doc = " * @revision: V1.3.1"]
6417 #[doc = " "]
6418 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6419 #[rasn(automatic_tags)]
6420 #[non_exhaustive]
6421 pub struct VehicleIdentification {
6422 #[rasn(identifier = "wMInumber")]
6423 pub w_minumber: Option<WMInumber>,
6424 #[rasn(identifier = "vDS")]
6425 pub v_ds: Option<VDS>,
6426 }
6427 impl VehicleIdentification {
6428 pub fn new(w_minumber: Option<WMInumber>, v_ds: Option<VDS>) -> Self {
6429 Self { w_minumber, v_ds }
6430 }
6431 }
6432 #[doc = "*"]
6433 #[doc = " * This DF represents the length of vehicle and accuracy indication information."]
6434 #[doc = " *"]
6435 #[doc = " * It shall include the following components: "]
6436 #[doc = " * "]
6437 #[doc = " * @field vehicleLengthValue: length of vehicle. "]
6438 #[doc = " * "]
6439 #[doc = " * @field vehicleLengthConfidenceIndication: indication of the length value confidence."]
6440 #[doc = " * "]
6441 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref VehicleLengthV2 instead."]
6442 #[doc = " * @category: Vehicle information"]
6443 #[doc = " * @revision: V1.3.1"]
6444 #[doc = " "]
6445 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6446 #[rasn(automatic_tags)]
6447 pub struct VehicleLength {
6448 #[rasn(identifier = "vehicleLengthValue")]
6449 pub vehicle_length_value: VehicleLengthValue,
6450 #[rasn(identifier = "vehicleLengthConfidenceIndication")]
6451 pub vehicle_length_confidence_indication: VehicleLengthConfidenceIndication,
6452 }
6453 impl VehicleLength {
6454 pub fn new(
6455 vehicle_length_value: VehicleLengthValue,
6456 vehicle_length_confidence_indication: VehicleLengthConfidenceIndication,
6457 ) -> Self {
6458 Self {
6459 vehicle_length_value,
6460 vehicle_length_confidence_indication,
6461 }
6462 }
6463 }
6464 #[doc = "*"]
6465 #[doc = " * This DE provides information about the presence of a trailer. "]
6466 #[doc = " *"]
6467 #[doc = " * The value shall be set to:"]
6468 #[doc = " * - 0 `noTrailerPresent` - to indicate that no trailer is present, i.e. either the vehicle is physically not enabled to tow a trailer or it has been detected that no trailer is present,"]
6469 #[doc = " * - 1 `trailerPresentWithKnownLength` - to indicate that a trailer has been detected as present and the length is included in the vehicle length value,"]
6470 #[doc = " * - 2 `trailerPresentWithUnknownLength` - to indicate that a trailer has been detected as present and the length is not included in the vehicle length value,"]
6471 #[doc = " * - 3 `trailerPresenceIsUnknown` - to indicate that information about the trailer presence is unknown, i.e. the vehicle is physically enabled to tow a trailer but the detection of trailer presence/absence is not possible,"]
6472 #[doc = " * - 4 `unavailable` - to indicate that the information about the presence of a trailer is not available, i.e. it is neither known whether the vehicle is able to tow a trailer, "]
6473 #[doc = " * nor the detection of trailer presence/absence is possible."]
6474 #[doc = " * "]
6475 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrailerPresenceInformation instead. "]
6476 #[doc = " * @category: Vehicle information"]
6477 #[doc = " * @revision: Description revised in V2.1.1"]
6478 #[doc = ""]
6479 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6480 #[rasn(enumerated)]
6481 pub enum VehicleLengthConfidenceIndication {
6482 noTrailerPresent = 0,
6483 trailerPresentWithKnownLength = 1,
6484 trailerPresentWithUnknownLength = 2,
6485 trailerPresenceIsUnknown = 3,
6486 unavailable = 4,
6487 }
6488 #[doc = "*"]
6489 #[doc = " * This DF represents the length of vehicle and accuracy indication information."]
6490 #[doc = " *"]
6491 #[doc = " * It shall include the following components: "]
6492 #[doc = " * "]
6493 #[doc = " * @field vehicleLengthValue: length of vehicle. "]
6494 #[doc = " * "]
6495 #[doc = " * @field trailerPresenceInformation: information about the trailer presence."]
6496 #[doc = " * "]
6497 #[doc = " * @category: Vehicle information"]
6498 #[doc = " * @revision: created in V2.1.1 based on @ref VehicleLength but using @ref TrailerPresenceInformation."]
6499 #[doc = " "]
6500 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6501 #[rasn(automatic_tags)]
6502 pub struct VehicleLengthV2 {
6503 #[rasn(identifier = "vehicleLengthValue")]
6504 pub vehicle_length_value: VehicleLengthValue,
6505 #[rasn(identifier = "trailerPresenceInformation")]
6506 pub trailer_presence_information: TrailerPresenceInformation,
6507 }
6508 impl VehicleLengthV2 {
6509 pub fn new(
6510 vehicle_length_value: VehicleLengthValue,
6511 trailer_presence_information: TrailerPresenceInformation,
6512 ) -> Self {
6513 Self {
6514 vehicle_length_value,
6515 trailer_presence_information,
6516 }
6517 }
6518 }
6519 #[doc = "*"]
6520 #[doc = " * This DE represents the length of a vehicle."]
6521 #[doc = " *"]
6522 #[doc = " * The value shall be set to:"]
6523 #[doc = " * - `n` (`n > 0` and `n < 1022`) to indicate the applicable value n is equal to or less than n x 0,1 metre, and greater than (n-1) x 0,1 metre,"]
6524 #[doc = " * - `1 022` to indicate that the vehicle length is greater than 102.1 metres,"]
6525 #[doc = " * - `1 023` to indicate that the information in unavailable."]
6526 #[doc = " * "]
6527 #[doc = " * "]
6528 #[doc = " * @unit: 0,1 metre"]
6529 #[doc = " * @category: Vehicle information"]
6530 #[doc = " * @revision: Description updated in V2.1.1 (the meaning of 1 022 has changed slightly)."]
6531 #[doc = " "]
6532 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6533 #[rasn(delegate, value("1..=1023"))]
6534 pub struct VehicleLengthValue(pub u16);
6535 #[doc = "*"]
6536 #[doc = " * This DE represents the mass of an empty loaded vehicle."]
6537 #[doc = " *"]
6538 #[doc = " * The value shall be set to: "]
6539 #[doc = " * - `n` (`n > 0` and `n < 1023`) to indicate that the applicable value is equal to or less than n x 10^5 gramm, and greater than (n-1) x 10^5 gramm,"]
6540 #[doc = " * - `1 023` indicates that the vehicle mass is greater than 102 200 000 g,"]
6541 #[doc = " * - `1 024` indicates the vehicle mass information is unavailable."]
6542 #[doc = " * "]
6543 #[doc = " * @note:\tThe empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
6544 #[doc = " * "]
6545 #[doc = " * @unit: 10^5 gramm"]
6546 #[doc = " * @category: Vehicle information"]
6547 #[doc = " * @revision: Description updated in V2.1.1 (the meaning of 1 023 has changed slightly)."]
6548 #[doc = ""]
6549 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6550 #[rasn(delegate, value("1..=1024"))]
6551 pub struct VehicleMass(pub u16);
6552 #[doc = "*"]
6553 #[doc = " * This DE indicates the role played by a vehicle at a point in time."]
6554 #[doc = " *"]
6555 #[doc = " * The value shall be set to:"]
6556 #[doc = " * - 0 `default` - to indicate the default vehicle role as indicated by the vehicle type,"]
6557 #[doc = " * - 1 `publicTransport` - to indicate that the vehicle is used to operate public transport service,"]
6558 #[doc = " * - 2 `specialTransport` - to indicate that the vehicle is used for special transport purpose, e.g. oversized trucks,"]
6559 #[doc = " * - 3 `dangerousGoods` - to indicate that the vehicle is used for dangerous goods transportation,"]
6560 #[doc = " * - 4 `roadWork` - to indicate that the vehicle is used to realize roadwork or road maintenance mission,"]
6561 #[doc = " * - 5 `rescue` - to indicate that the vehicle is used for rescue purpose in case of an accident, e.g. as a towing service,"]
6562 #[doc = " * - 6 `emergency` - to indicate that the vehicle is used for emergency mission, e.g. ambulance, fire brigade,"]
6563 #[doc = " * - 7 `safetyCar` - to indicate that the vehicle is used for public safety, e.g. patrol,"]
6564 #[doc = " * - 8 `agriculture` - to indicate that the vehicle is used for agriculture, e.g. farm tractor, "]
6565 #[doc = " * - 9 `commercial` - to indicate that the vehicle is used for transportation of commercial goods,"]
6566 #[doc = " * - 10 `military` - to indicate that the vehicle is used for military purpose, "]
6567 #[doc = " * - 11 `roadOperator` - to indicate that the vehicle is used in road operator missions,"]
6568 #[doc = " * - 12 `taxi` - to indicate that the vehicle is used to provide an authorized taxi service."]
6569 #[doc = " * - 13 `reserved` - is reserved for future usage."]
6570 #[doc = " * - 14 `reserved` - is reserved for future usage."]
6571 #[doc = " * - 15 `reserved` - is reserved for future usage."]
6572 #[doc = " * "]
6573 #[doc = " * @category: Vehicle Information"]
6574 #[doc = " * @revision: Description updated in V2.1.1 (removed reference to CEN/TS 16157-3)"]
6575 #[doc = " "]
6576 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6577 #[rasn(enumerated)]
6578 pub enum VehicleRole {
6579 default = 0,
6580 publicTransport = 1,
6581 specialTransport = 2,
6582 dangerousGoods = 3,
6583 roadWork = 4,
6584 rescue = 5,
6585 emergency = 6,
6586 safetyCar = 7,
6587 agriculture = 8,
6588 commercial = 9,
6589 military = 10,
6590 roadOperator = 11,
6591 taxi = 12,
6592 reserved1 = 13,
6593 reserved2 = 14,
6594 reserved3 = 15,
6595 }
6596 #[doc = "*"]
6597 #[doc = " * This DE represents the width of a vehicle, excluding side mirrors and possible similar extensions."]
6598 #[doc = ""]
6599 #[doc = " * The value shall be set to:"]
6600 #[doc = " * - `n` (`n > 0` and `n < 61`) indicates the applicable value is equal to or less than n x 0,1 metre, and greater than (n-1) x 0,1 metre,"]
6601 #[doc = " * - `61` indicates that the vehicle width is greater than 6,0 metres,"]
6602 #[doc = " * - `62` indicates that the information in unavailable."]
6603 #[doc = " * "]
6604 #[doc = " * @unit: 0,1 metre"]
6605 #[doc = " * @category: Vehicle information "]
6606 #[doc = " * @revision: Description updated in V2.1.1 (the meaning of 61 has changed slightly)."]
6607 #[doc = " "]
6608 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6609 #[rasn(delegate, value("1..=62"))]
6610 pub struct VehicleWidth(pub u8);
6611 #[doc = "*"]
6612 #[doc = " * This DF represents a velocity vector with associated confidence value."]
6613 #[doc = " *"]
6614 #[doc = " * The following options are available:"]
6615 #[doc = " * "]
6616 #[doc = " * @field polarVelocity: the representation of the velocity vector in a polar or cylindrical coordinate system. "]
6617 #[doc = " * "]
6618 #[doc = " * @field cartesianVelocity: the representation of the velocity vector in a cartesian coordinate system."]
6619 #[doc = " * "]
6620 #[doc = " * @category: Kinematic information"]
6621 #[doc = " * @revision: Created in V2.1.1"]
6622 #[doc = " "]
6623 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6624 #[rasn(choice, automatic_tags)]
6625 pub enum Velocity3dWithConfidence {
6626 polarVelocity(VelocityPolarWithZ),
6627 cartesianVelocity(VelocityCartesian),
6628 }
6629 #[doc = "*"]
6630 #[doc = " * This DF represents a velocity vector in a cartesian coordinate system."]
6631 #[doc = " "]
6632 #[doc = " * It shall include the following components: "]
6633 #[doc = " * "]
6634 #[doc = " * @field xVelocity: the x component of the velocity vector with the associated confidence value."]
6635 #[doc = " * "]
6636 #[doc = " * @field yVelocity: the y component of the velocity vector with the associated confidence value."]
6637 #[doc = " *"]
6638 #[doc = " * @field zVelocity: the optional z component of the velocity vector with the associated confidence value."]
6639 #[doc = " * "]
6640 #[doc = " * @category: Kinematic information"]
6641 #[doc = " * @revision: Created in V2.1.1"]
6642 #[doc = " "]
6643 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6644 #[rasn(automatic_tags)]
6645 pub struct VelocityCartesian {
6646 #[rasn(identifier = "xVelocity")]
6647 pub x_velocity: VelocityComponent,
6648 #[rasn(identifier = "yVelocity")]
6649 pub y_velocity: VelocityComponent,
6650 #[rasn(identifier = "zVelocity")]
6651 pub z_velocity: Option<VelocityComponent>,
6652 }
6653 impl VelocityCartesian {
6654 pub fn new(
6655 x_velocity: VelocityComponent,
6656 y_velocity: VelocityComponent,
6657 z_velocity: Option<VelocityComponent>,
6658 ) -> Self {
6659 Self {
6660 x_velocity,
6661 y_velocity,
6662 z_velocity,
6663 }
6664 }
6665 }
6666 #[doc = "*"]
6667 #[doc = " * This DF represents a component of the velocity vector and the associated confidence value."]
6668 #[doc = " *"]
6669 #[doc = " * It shall include the following components: "]
6670 #[doc = " * "]
6671 #[doc = " * @field value: the value of the component."]
6672 #[doc = " * "]
6673 #[doc = " * @field confidence: the confidence value of the value."]
6674 #[doc = " *"]
6675 #[doc = " * @category: Kinematic information"]
6676 #[doc = " * @revision: V2.1.1"]
6677 #[doc = " "]
6678 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6679 #[rasn(automatic_tags)]
6680 pub struct VelocityComponent {
6681 pub value: VelocityComponentValue,
6682 pub confidence: SpeedConfidence,
6683 }
6684 impl VelocityComponent {
6685 pub fn new(value: VelocityComponentValue, confidence: SpeedConfidence) -> Self {
6686 Self { value, confidence }
6687 }
6688 }
6689 #[doc = "* "]
6690 #[doc = " * This DE represents the value of a velocity component in a defined coordinate system."]
6691 #[doc = " *"]
6692 #[doc = " * The value shall be set to:"]
6693 #[doc = " * - `-16 383` if the velocity is equal to or smaller than -163,83 m/s,"]
6694 #[doc = " * - `n` (`n > -16 383` and `n < 16 382`) if the applicable value is equal to or less than n x 0,01 m/s, and greater than (n-1) x 0,01 m/s,"]
6695 #[doc = " * - `16 382` for velocity values equal to or greater than 163,81 m/s,"]
6696 #[doc = " * - `16 383` if the velocity information is not available."]
6697 #[doc = " * "]
6698 #[doc = " * @unit: 0,01 m/s"]
6699 #[doc = " * @category: Kinematic information"]
6700 #[doc = " * @revision: Created in V2.1.1"]
6701 #[doc = ""]
6702 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6703 #[rasn(delegate, value("-16383..=16383"))]
6704 pub struct VelocityComponentValue(pub i16);
6705 #[doc = "*"]
6706 #[doc = " * This DF represents a velocity vector in a polar or cylindrical coordinate system."]
6707 #[doc = " *"]
6708 #[doc = " * It shall include the following components: "]
6709 #[doc = " * "]
6710 #[doc = " * @field velocityMagnitude: magnitude of the velocity vector on the reference plane, with the associated confidence value."]
6711 #[doc = " * "]
6712 #[doc = " * @field velocityDirection: polar angle of the velocity vector on the reference plane, with the associated confidence value."]
6713 #[doc = " *"]
6714 #[doc = " * @field zVelocity: the optional z component of the velocity vector along the reference axis of the cylindrical coordinate system, with the associated confidence value."]
6715 #[doc = " * "]
6716 #[doc = " * @category: Kinematic information"]
6717 #[doc = " * @revision: Created in V2.1.1"]
6718 #[doc = " "]
6719 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6720 #[rasn(automatic_tags)]
6721 pub struct VelocityPolarWithZ {
6722 #[rasn(identifier = "velocityMagnitude")]
6723 pub velocity_magnitude: Speed,
6724 #[rasn(identifier = "velocityDirection")]
6725 pub velocity_direction: CartesianAngle,
6726 #[rasn(identifier = "zVelocity")]
6727 pub z_velocity: Option<VelocityComponent>,
6728 }
6729 impl VelocityPolarWithZ {
6730 pub fn new(
6731 velocity_magnitude: Speed,
6732 velocity_direction: CartesianAngle,
6733 z_velocity: Option<VelocityComponent>,
6734 ) -> Self {
6735 Self {
6736 velocity_magnitude,
6737 velocity_direction,
6738 z_velocity,
6739 }
6740 }
6741 }
6742 #[doc = " four and more octets length"]
6743 #[doc = "*"]
6744 #[doc = " * This DF indicates the vehicle acceleration at vertical direction and the associated confidence value."]
6745 #[doc = " *"]
6746 #[doc = " * It shall include the following components: "]
6747 #[doc = " * "]
6748 #[doc = " * @field verticalAccelerationValue: vertical acceleration value at a point in time."]
6749 #[doc = " * "]
6750 #[doc = " * @field verticalAccelerationConfidence: confidence value of the vertical acceleration value with a predefined confidence level."]
6751 #[doc = " * "]
6752 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead."]
6753 #[doc = " * @category Vehicle information"]
6754 #[doc = " * @revision: Description revised in V2.1.1"]
6755 #[doc = " "]
6756 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6757 #[rasn(automatic_tags)]
6758 pub struct VerticalAcceleration {
6759 #[rasn(identifier = "verticalAccelerationValue")]
6760 pub vertical_acceleration_value: VerticalAccelerationValue,
6761 #[rasn(identifier = "verticalAccelerationConfidence")]
6762 pub vertical_acceleration_confidence: AccelerationConfidence,
6763 }
6764 impl VerticalAcceleration {
6765 pub fn new(
6766 vertical_acceleration_value: VerticalAccelerationValue,
6767 vertical_acceleration_confidence: AccelerationConfidence,
6768 ) -> Self {
6769 Self {
6770 vertical_acceleration_value,
6771 vertical_acceleration_confidence,
6772 }
6773 }
6774 }
6775 #[doc = "*"]
6776 #[doc = " * This DE represents the vehicle acceleration at vertical direction in the centre of the mass of the empty vehicle."]
6777 #[doc = " * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11."]
6778 #[doc = " *"]
6779 #[doc = " * The value shall be set to:"]
6780 #[doc = " * - `-160` for acceleration values equal to or less than -16 m/s^2,"]
6781 #[doc = " * - `n` (`n > -160` and `n <= 0`) to indicate downwards acceleration equal to or less than n x 0,1 m/s^2, and greater than (n-1) x 0,1 m/s^2,"]
6782 #[doc = " * - `n` (`n > 0` and `n < 160`) to indicate upwards acceleration equal to or less than n x 0,1 m/s^2, and greater than (n-1) x 0,1 m/s^2,"]
6783 #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
6784 #[doc = " * - `161` when the data is unavailable."]
6785 #[doc = " * "]
6786 #[doc = " * @note: The empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
6787 #[doc = " *"]
6788 #[doc = " * @category: Vehicle information"]
6789 #[doc = " * @unit: 0,1 m/s^2"]
6790 #[doc = " * @revision: Desciption updated in V2.1.1 (the meaning of 160 has changed slightly)."]
6791 #[doc = " * "]
6792 #[doc = ""]
6793 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6794 #[rasn(delegate, value("-160..=161"))]
6795 pub struct VerticalAccelerationValue(pub i16);
6796 #[doc = "* "]
6797 #[doc = " * This DF provides information about a VRU cluster."]
6798 #[doc = " *"]
6799 #[doc = " * It shall include the following components: "]
6800 #[doc = " *"]
6801 #[doc = " * @field clusterId: optional identifier of a VRU cluster ."]
6802 #[doc = " *"]
6803 #[doc = " * @field clusterBoundingBoxShape: optionally indicates the shape of the cluster bounding box."]
6804 #[doc = " *"]
6805 #[doc = " * @field clusterCardinalitySize: indicates an estimation of the number of VRUs in the group, i.e. the known members in the cluster + 1 (for the cluster leader) ."]
6806 #[doc = " *"]
6807 #[doc = " * @field clusterProfiles: optionally identifies all the VRU profile types that are known to be within the cluster."]
6808 #[doc = " * if this component is absent it means that the information is unavailable. "]
6809 #[doc = " *"]
6810 #[doc = " * @category: VRU information"]
6811 #[doc = " * @revision: Created in V2.1.1"]
6812 #[doc = ""]
6813 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6814 #[rasn(automatic_tags)]
6815 #[non_exhaustive]
6816 pub struct VruClusterInformation {
6817 #[rasn(identifier = "clusterId")]
6818 pub cluster_id: Option<Identifier1B>,
6819 #[rasn(value("0.."), identifier = "clusterBoundingBoxShape")]
6820 pub cluster_bounding_box_shape: Option<Shape>,
6821 #[rasn(identifier = "clusterCardinalitySize")]
6822 pub cluster_cardinality_size: CardinalNumber1B,
6823 #[rasn(identifier = "clusterProfiles")]
6824 pub cluster_profiles: Option<VruClusterProfiles>,
6825 }
6826 impl VruClusterInformation {
6827 pub fn new(
6828 cluster_id: Option<Identifier1B>,
6829 cluster_bounding_box_shape: Option<Shape>,
6830 cluster_cardinality_size: CardinalNumber1B,
6831 cluster_profiles: Option<VruClusterProfiles>,
6832 ) -> Self {
6833 Self {
6834 cluster_id,
6835 cluster_bounding_box_shape,
6836 cluster_cardinality_size,
6837 cluster_profiles,
6838 }
6839 }
6840 }
6841 #[doc = "* "]
6842 #[doc = " * This DE Identifies all the VRU profile types within a cluster."]
6843 #[doc = " * It consist of a Bitmap encoding VRU profiles, to allow multiple profiles to be indicated in a single cluster (heterogeneous cluster if more than one profile)."]
6844 #[doc = " * "]
6845 #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
6846 #[doc = " * - 0 `pedestrian` - indicates that the VRU cluster contains at least one pedestrian VRU,"]
6847 #[doc = " * - 1 `bicycle` - indicates that the VRU cluster contains at least one bicycle VRU member,"]
6848 #[doc = " * - 2 `motorcyclist`- indicates that the VRU cluster contains at least one motorcycle VRU member,"]
6849 #[doc = " * - 3 `animal` - indicates that the VRU cluster contains at least one animal VRU member."]
6850 #[doc = " * "]
6851 #[doc = " * Otherwise, the corresponding bit shall be set to 0."]
6852 #[doc = " *"]
6853 #[doc = " * @category: VRU information"]
6854 #[doc = " * @revision: Created in V2.1.1"]
6855 #[doc = ""]
6856 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6857 #[rasn(delegate)]
6858 pub struct VruClusterProfiles(pub FixedBitString<4usize>);
6859 #[doc = "*"]
6860 #[doc = " * This DE represents the possible usage conditions of the VRU device."]
6861 #[doc = ""]
6862 #[doc = " * - The value shall be set to:"]
6863 #[doc = " * - 0 `unavailable` - to indicate that the usage conditions are unavailable,"]
6864 #[doc = " * - 1 `other` - to indicate that the VRU device is in a state not defined below,"]
6865 #[doc = " * - 2 `idle` - to indicate that the human is currently not interacting with the device,"]
6866 #[doc = " * - 3 `listeningToAudio` - to indicate that any audio source other than calling is in use,"]
6867 #[doc = " * - 4 `typing` - to indicate that the human is texting or performaing any other manual input activity,"]
6868 #[doc = " * - 5 `calling` - to indicate that the VRU device is currently receiving a call,"]
6869 #[doc = " * - 6 `playingGames` - to indicate that the human is playing games,"]
6870 #[doc = " * - 7 `reading` - to indicate that the human is reading on the VRU device,"]
6871 #[doc = " * - 8 `viewing` - to indicate that the human is watching dynamic content, including following navigation prompts, viewing videos or other visual contents that are not static."]
6872 #[doc = " * - value 9 to 255 - are reserved for future usage. Value 255 set to \"max\" in order to bound the size of the encoded field."]
6873 #[doc = " *"]
6874 #[doc = " * @category: VRU information"]
6875 #[doc = " * @revision: Created in V2.1.1"]
6876 #[doc = " "]
6877 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6878 #[rasn(enumerated)]
6879 pub enum VruDeviceUsage {
6880 unavailable = 0,
6881 other = 1,
6882 idle = 2,
6883 listeningToAudio = 3,
6884 typing = 4,
6885 calling = 5,
6886 playingGames = 6,
6887 reading = 7,
6888 viewing = 8,
6889 max = 255,
6890 }
6891 #[doc = "*"]
6892 #[doc = " * This DE represents the possible VRU environment conditions."]
6893 #[doc = " *"]
6894 #[doc = " * - The value shall be set to:"]
6895 #[doc = " * - 0 `unavailable` - to indicate that the information on the type of environment is unavailable,"]
6896 #[doc = " * - 1 `intersectionCrossing` - to indicate that the VRU is on an intersection or crossing,"]
6897 #[doc = " * - 2 `zebraCrossing` - to indicate that the VRU is on a zebra crossing (crosswalk),"]
6898 #[doc = " * - 3 `sidewalk` - to indicate that the VRU is on a sidewalk,"]
6899 #[doc = " * - 4 `onVehicleRoad` - to indicate that the VRU is on a traffic lane,"]
6900 #[doc = " * - 5 `protectedGeographicArea`- to indicate that the VRU is in a protected area."]
6901 #[doc = " * - value 5 to 255 - are reserved for future usage. Value 255 is set to \"max\" in order to bound the size of the encoded field."]
6902 #[doc = " *"]
6903 #[doc = " * @category: VRU information"]
6904 #[doc = " * @revision: Created in V2.1.1"]
6905 #[doc = " "]
6906 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6907 #[rasn(enumerated)]
6908 pub enum VruEnvironment {
6909 unavailable = 0,
6910 intersectionCrossing = 1,
6911 zebraCrossing = 2,
6912 sidewalk = 3,
6913 onVehicleRoad = 4,
6914 protectedGeographicArea = 5,
6915 max = 255,
6916 }
6917 #[doc = "*"]
6918 #[doc = " * This DF represents the status of the exterior light switches of a VRU."]
6919 #[doc = " * This DF is an extension of the vehicular DE @ref ExteriorLights."]
6920 #[doc = " *"]
6921 #[doc = " * It shall include the following components: "]
6922 #[doc = " * "]
6923 #[doc = " * @field vehicular: represents the status of the exterior light switches of a road vehicle."]
6924 #[doc = " * "]
6925 #[doc = " * @field vruSpecific: represents the status of the exterior light switches of a VRU."]
6926 #[doc = " *"]
6927 #[doc = " * @category: VRU information"]
6928 #[doc = " * @revision: created in V2.1.1"]
6929 #[doc = " "]
6930 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6931 #[rasn(automatic_tags)]
6932 #[non_exhaustive]
6933 pub struct VruExteriorLights {
6934 pub vehicular: ExteriorLights,
6935 #[rasn(identifier = "vruSpecific")]
6936 pub vru_specific: VruSpecificExteriorLights,
6937 }
6938 impl VruExteriorLights {
6939 pub fn new(vehicular: ExteriorLights, vru_specific: VruSpecificExteriorLights) -> Self {
6940 Self {
6941 vehicular,
6942 vru_specific,
6943 }
6944 }
6945 }
6946 #[doc = "*"]
6947 #[doc = " * This DE indicates the status of the possible human control over a VRU vehicle."]
6948 #[doc = " *"]
6949 #[doc = " * The value shall be set to:"]
6950 #[doc = " * - 0 `unavailable` - to indicate that the information is unavailable,"]
6951 #[doc = " * - 1 `braking` - to indicate that the VRU is braking,"]
6952 #[doc = " * - 2 `hardBraking` - to indicate that the VRU is braking hard,"]
6953 #[doc = " * - 3 `stopPedaling` - to indicate that the VRU stopped pedaling,"]
6954 #[doc = " * - 4 `brakingAndStopPedaling` - to indicate that the VRU stopped pedaling an is braking,"]
6955 #[doc = " * - 5 `hardBrakingAndStopPedaling` - to indicate that the VRU stopped pedaling an is braking hard,"]
6956 #[doc = " * - 6 `noReaction` - to indicate that the VRU is not changing its behavior."]
6957 #[doc = " * - 7 to 255 - are reserved for future usage. Value 255 is set to \"max\" in order to bound the size of the encoded field."]
6958 #[doc = " *"]
6959 #[doc = " * @category: VRU information"]
6960 #[doc = " * @revision: Created in V2.1.1"]
6961 #[doc = " "]
6962 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6963 #[rasn(enumerated)]
6964 pub enum VruMovementControl {
6965 unavailable = 0,
6966 braking = 1,
6967 hardBraking = 2,
6968 stopPedaling = 3,
6969 brakingAndStopPedaling = 4,
6970 hardBrakingAndStopPedaling = 5,
6971 noReaction = 6,
6972 max = 255,
6973 }
6974 #[doc = "*"]
6975 #[doc = " * This DF indicates the profile of a VRU including sub-profile information"]
6976 #[doc = " * It identifies four options corresponding to the four types of VRU profiles specified in ETSI TS 103 300-2 [18]:"]
6977 #[doc = " *"]
6978 #[doc = " * @field pedestrian: VRU Profile 1 - Pedestrian."]
6979 #[doc = " *"]
6980 #[doc = " * @field bicyclistAndLightVruVehicle: VRU Profile 2 - Bicyclist."]
6981 #[doc = " *"]
6982 #[doc = " * @field motorcyclist: VRU Profile 3 - Motorcyclist."]
6983 #[doc = " *"]
6984 #[doc = " * @field animal: VRU Profile 4 - Animal."]
6985 #[doc = " *"]
6986 #[doc = " * @category: VRU information"]
6987 #[doc = " * @revision: Created in V2.1.1"]
6988 #[doc = " "]
6989 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6990 #[rasn(choice, automatic_tags)]
6991 #[non_exhaustive]
6992 pub enum VruProfileAndSubprofile {
6993 pedestrian(VruSubProfilePedestrian),
6994 bicyclistAndLightVruVehicle(VruSubProfileBicyclist),
6995 motorcyclist(VruSubProfileMotorcyclist),
6996 animal(VruSubProfileAnimal),
6997 }
6998 #[doc = "*"]
6999 #[doc = " * This DE indicates the approximate size of a VRU including the VRU vehicle used."]
7000 #[doc = " * "]
7001 #[doc = " * The value shall be set to:"]
7002 #[doc = " * - 0 `unavailable` - to indicate that there is no matched size class or due to privacy reasons in profile 1, "]
7003 #[doc = " * - 1 `low` - to indicate that the VRU size class is low depending on the VRU profile,"]
7004 #[doc = " * - 2 `medium` - to indicate that the VRU size class is medium depending on the VRU profile,"]
7005 #[doc = " * - 3 `high` - to indicate that the VRU size class is high depending on the VRU profile."]
7006 #[doc = " * - 4 to 15 - are reserved for future usage. Value 15 is set to \"max\" in order to bound the size of the encoded field."]
7007 #[doc = " *"]
7008 #[doc = " * @category: VRU information"]
7009 #[doc = " * @revision: Created in V2.1.1"]
7010 #[doc = " "]
7011 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7012 #[rasn(enumerated)]
7013 pub enum VruSizeClass {
7014 unavailable = 0,
7015 low = 1,
7016 medium = 2,
7017 high = 3,
7018 max = 15,
7019 }
7020 #[doc = "*"]
7021 #[doc = " * This DE describes the status of the exterior light switches of a VRU."]
7022 #[doc = " *"]
7023 #[doc = " * The value of each bit indicates the state of the switch, which commands the corresponding light. "]
7024 #[doc = " * The bit corresponding to a specific light shall be set to 1, when the corresponding switch is turned on, either manually by the driver or VRU "]
7025 #[doc = " * or automatically by a vehicle or VRU system: "]
7026 #[doc = " * - 0 `unavailable` - indicates no information available, "]
7027 #[doc = " * - 1 `backFlashLight ` - indicates the status of the back flash light,"]
7028 #[doc = " * - 2 `helmetLight` - indicates the status of the helmet light,"]
7029 #[doc = " * - 3 `armLight` - indicates the status of the arm light,"]
7030 #[doc = " * - 4 `legLight` - indicates the status of the leg light,"]
7031 #[doc = " * - 5 `wheelLight` - indicates the status of the wheel light. "]
7032 #[doc = " * - Bits 6 to 8 - are reserved for future use. "]
7033 #[doc = " * The bit values do not indicate if the corresponding lamps are alight or not."]
7034 #[doc = " * If VRU is not equipped with a certain light or if the light switch status information is not available, the corresponding bit shall be set to 0."]
7035 #[doc = " *"]
7036 #[doc = " * @category: VRU information"]
7037 #[doc = " * @revision: Created in V2.1.1"]
7038 #[doc = " "]
7039 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7040 #[rasn(delegate)]
7041 pub struct VruSpecificExteriorLights(pub FixedBitString<8usize>);
7042 #[doc = "*"]
7043 #[doc = " * This DE indicates the profile of an animal"]
7044 #[doc = " * "]
7045 #[doc = " * The value shall be set to:"]
7046 #[doc = " * - 0 `unavailable` - to indicate that the information is unavailable,"]
7047 #[doc = " * - 1 `wild-animal` - to indicate a animal living in the wildness, "]
7048 #[doc = " * - 2 `farm-animal` - to indicate an animal beloning to a farm,"]
7049 #[doc = " * - 3 `service-animal` - to indicate an animal that supports a human being."]
7050 #[doc = " * - 4 to 15 - are reserved for future usage. Value 15 is set to \"max\" in order to bound the size of the encoded field."]
7051 #[doc = " *"]
7052 #[doc = " * @category: VRU information"]
7053 #[doc = " * @revision: Created in V2.1.1"]
7054 #[doc = " "]
7055 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7056 #[rasn(enumerated)]
7057 pub enum VruSubProfileAnimal {
7058 unavailable = 0,
7059 #[rasn(identifier = "wild-animal")]
7060 wild_animal = 1,
7061 #[rasn(identifier = "farm-animal")]
7062 farm_animal = 2,
7063 #[rasn(identifier = "service-animal")]
7064 service_animal = 3,
7065 max = 15,
7066 }
7067 #[doc = "*"]
7068 #[doc = " * This DE indicates the profile of a VRU and its light VRU vehicle / mounted animal. "]
7069 #[doc = " *"]
7070 #[doc = " * The value shall be set to:"]
7071 #[doc = " * - 0 `unavailable` - to indicate that the information is unavailable,"]
7072 #[doc = " * - 1 `bicyclist ` - to indicate a cycle and bicyclist,"]
7073 #[doc = " * - 2 `wheelchair-user` - to indicate a wheelchair and its user,"]
7074 #[doc = " * - 3 `horse-and-rider` - to indicate a horse and rider,"]
7075 #[doc = " * - 4 `rollerskater` - to indicate a rolleskater and skater,"]
7076 #[doc = " * - 5 `e-scooter` - to indicate an e-scooter and rider,"]
7077 #[doc = " * - 6 `personal-transporter` - to indicate a personal-transporter and rider,"]
7078 #[doc = " * - 7 `pedelec` - to indicate a pedelec and rider,"]
7079 #[doc = " * - 8 `speed-pedelec` - to indicate a speed-pedelec and rider."]
7080 #[doc = " * - 9 to 15 - are reserved for future usage. Value 15 is set to \"max\" in order to bound the size of the encoded field."]
7081 #[doc = " *"]
7082 #[doc = " * @category: VRU information"]
7083 #[doc = " * @revision: Created in V2.1.1"]
7084 #[doc = " "]
7085 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7086 #[rasn(enumerated)]
7087 pub enum VruSubProfileBicyclist {
7088 unavailable = 0,
7089 bicyclist = 1,
7090 #[rasn(identifier = "wheelchair-user")]
7091 wheelchair_user = 2,
7092 #[rasn(identifier = "horse-and-rider")]
7093 horse_and_rider = 3,
7094 rollerskater = 4,
7095 #[rasn(identifier = "e-scooter")]
7096 e_scooter = 5,
7097 #[rasn(identifier = "personal-transporter")]
7098 personal_transporter = 6,
7099 pedelec = 7,
7100 #[rasn(identifier = "speed-pedelec")]
7101 speed_pedelec = 8,
7102 max = 15,
7103 }
7104 #[doc = "*"]
7105 #[doc = " * This DE indicates the profile of a motorcyclist and corresponding vehicle."]
7106 #[doc = " * "]
7107 #[doc = " * The value shall be set to:"]
7108 #[doc = " * - 0 `unavailable ` - to indicate that the information is unavailable,"]
7109 #[doc = " * - 1 `moped` - to indicate a moped and rider,"]
7110 #[doc = " * - 2 `motorcycle` - to indicate a motorcycle and rider,"]
7111 #[doc = " * - 3 `motorcycle-and-sidecar-right` - to indicate a motorcycle with sidecar on the right and rider,"]
7112 #[doc = " * - 4 `motorcycle-and-sidecar-left` - to indicate a motorcycle with sidecar on the left and rider."]
7113 #[doc = " * - 5 to 15 - are reserved for future usage. Value 15 is set to \"max\" in order to bound the size of the encoded field."]
7114 #[doc = " *"]
7115 #[doc = " * @category: VRU information"]
7116 #[doc = " * @revision: Created in V2.1.1"]
7117 #[doc = " "]
7118 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7119 #[rasn(enumerated)]
7120 pub enum VruSubProfileMotorcyclist {
7121 unavailable = 0,
7122 moped = 1,
7123 motorcycle = 2,
7124 #[rasn(identifier = "motorcycle-and-sidecar-right")]
7125 motorcycle_and_sidecar_right = 3,
7126 #[rasn(identifier = "motorcycle-and-sidecar-left")]
7127 motorcycle_and_sidecar_left = 4,
7128 max = 15,
7129 }
7130 #[doc = "*"]
7131 #[doc = " * This DE indicates the profile of a pedestrian."]
7132 #[doc = " * "]
7133 #[doc = " * The value shall be set to:"]
7134 #[doc = " * - 0 `unavailable` - to indicate that the information on is unavailable,"]
7135 #[doc = " * - 1 `ordinary-pedestrian` - to indicate a pedestrian to which no more-specific profile applies,"]
7136 #[doc = " * - 2 `road-worker` - to indicate a pedestrian with the role of a road worker,"]
7137 #[doc = " * - 3 `first-responder` - to indicate a pedestrian with the role of a first responder."]
7138 #[doc = " * - value 4 to 15 - are reserved for future usage. Value 15 is set to \"max\" in order to bound the size of the encoded field."]
7139 #[doc = " *"]
7140 #[doc = " * @category: VRU information"]
7141 #[doc = " * @revision: Created in V2.1.1"]
7142 #[doc = " "]
7143 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7144 #[rasn(enumerated)]
7145 pub enum VruSubProfilePedestrian {
7146 unavailable = 0,
7147 #[rasn(identifier = "ordinary-pedestrian")]
7148 ordinary_pedestrian = 1,
7149 #[rasn(identifier = "road-worker")]
7150 road_worker = 2,
7151 #[rasn(identifier = "first-responder")]
7152 first_responder = 3,
7153 max = 15,
7154 }
7155 #[doc = "*"]
7156 #[doc = " * This DE represents the World Manufacturer Identifier (WMI). The values are assigned according to ISO 3779 [6]."]
7157 #[doc = " * "]
7158 #[doc = " *"]
7159 #[doc = " * @category: Vehicle information"]
7160 #[doc = " * @revision: V1.3.1"]
7161 #[doc = " "]
7162 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7163 #[rasn(delegate, size("1..=3"))]
7164 pub struct WMInumber(pub Ia5String);
7165 #[doc = "* "]
7166 #[doc = " * This DF represents an angular component along with a confidence value in the WGS84 coordinate system."]
7167 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
7168 #[doc = " *"]
7169 #[doc = " * It shall include the following components: "]
7170 #[doc = " *"]
7171 #[doc = " * @field value: the angle value, which can be estimated as the mean of the current distribution."]
7172 #[doc = " *"]
7173 #[doc = " * @field confidence: the confidence value associated to the angle value."]
7174 #[doc = " *"]
7175 #[doc = " * @category: GeoReference information"]
7176 #[doc = " * @revision: Created in V2.1.1"]
7177 #[doc = ""]
7178 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7179 #[rasn(automatic_tags)]
7180 pub struct Wgs84Angle {
7181 pub value: Wgs84AngleValue,
7182 pub confidence: Wgs84AngleConfidence,
7183 }
7184 impl Wgs84Angle {
7185 pub fn new(value: Wgs84AngleValue, confidence: Wgs84AngleConfidence) -> Self {
7186 Self { value, confidence }
7187 }
7188 }
7189 #[doc = "* "]
7190 #[doc = " * This DE indicates the angle confidence value which represents the estimated accuracy of an angle value with a default confidence level of 95 %."]
7191 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
7192 #[doc = " * "]
7193 #[doc = " * The value shall be set to:"]
7194 #[doc = " * - `n` (`n >= 1` and `n < 126`) if the confidence value is equal to or less than n x 0,1 degrees and more than (n-1) x 0,1 degrees,"]
7195 #[doc = " * - `126` if the confidence value is out of range, i.e. greater than 12,5 degrees,"]
7196 #[doc = " * - `127` if the confidence value is not available."]
7197 #[doc = " *"]
7198 #[doc = " *"]
7199 #[doc = " * @unit 0,1 degrees"]
7200 #[doc = " * @category: GeoReference Information"]
7201 #[doc = " * @revision: Created in V2.1.1"]
7202 #[doc = ""]
7203 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7204 #[rasn(delegate, value("1..=127"))]
7205 pub struct Wgs84AngleConfidence(pub u8);
7206 #[doc = "* "]
7207 #[doc = " * This DE represents an angle value in degrees described in the WGS84 reference system with respect to the WGS84 north."]
7208 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
7209 #[doc = " * When the information is not available, the DE shall be set to 3 601. The value 3600 shall not be used."]
7210 #[doc = " *"]
7211 #[doc = " * @unit 0,1 degrees"]
7212 #[doc = " * @category: GeoReference Information"]
7213 #[doc = " * @revision: Created in V2.1.1"]
7214 #[doc = ""]
7215 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7216 #[rasn(delegate, value("0..=3601"))]
7217 pub struct Wgs84AngleValue(pub u16);
7218 #[doc = "*"]
7219 #[doc = " * This DE indicates the perpendicular distance between front and rear axle of the wheel base of vehicle."]
7220 #[doc = " *"]
7221 #[doc = " * The value shall be set to:"]
7222 #[doc = " * - `n` (`n >= 1` and `n < 126`) if the value is equal to or less than n x 0,1 metre and more than (n-1) x 0,1 metre,"]
7223 #[doc = " * - `126` indicates that the wheel base distance is equal to or greater than 12,5 metres,"]
7224 #[doc = " * - `127` indicates that the information is unavailable."]
7225 #[doc = " *"]
7226 #[doc = " * @unit 0,1 metre"]
7227 #[doc = " * @category: Vehicle information"]
7228 #[doc = " * @revision: Created in V2.1.1"]
7229 #[doc = " "]
7230 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7231 #[rasn(delegate, value("1..=127"))]
7232 pub struct WheelBaseVehicle(pub u8);
7233 #[doc = "*"]
7234 #[doc = " * This DE represents the sub cause codes of the @ref CauseCode `wrongWayDriving` ."]
7235 #[doc = " * "]
7236 #[doc = " * The value shall be set to:"]
7237 #[doc = " * - 0 `unavailable` - in case further detailed information on wrong way driving event is unavailable,"]
7238 #[doc = " * - 1 `wrongLane` - in case vehicle is driving on a lane for which it has no authorization to use,"]
7239 #[doc = " * - 2 `wrongDirection` - in case vehicle is driving in a direction that it is not allowed,"]
7240 #[doc = " * - 3-255 - reserved for future usage."]
7241 #[doc = " * "]
7242 #[doc = " * @category: Traffic information"]
7243 #[doc = " * @revision: V1.3.1"]
7244 #[doc = " "]
7245 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7246 #[rasn(delegate, value("0..=255"))]
7247 pub struct WrongWayDrivingSubCauseCode(pub u8);
7248 #[doc = "*"]
7249 #[doc = " * This DF represents a yaw rate of vehicle at a point in time."]
7250 #[doc = " *"]
7251 #[doc = " * It shall include the following components: "]
7252 #[doc = " * "]
7253 #[doc = " * @field yawRateValue: yaw rate value at a point in time."]
7254 #[doc = " * "]
7255 #[doc = " * @field yawRateConfidence: confidence value associated to the yaw rate value."]
7256 #[doc = " * "]
7257 #[doc = " * @category: Vehicle Information"]
7258 #[doc = " * @revision: V1.3.1"]
7259 #[doc = " "]
7260 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7261 #[rasn(automatic_tags)]
7262 pub struct YawRate {
7263 #[rasn(identifier = "yawRateValue")]
7264 pub yaw_rate_value: YawRateValue,
7265 #[rasn(identifier = "yawRateConfidence")]
7266 pub yaw_rate_confidence: YawRateConfidence,
7267 }
7268 impl YawRate {
7269 pub fn new(yaw_rate_value: YawRateValue, yaw_rate_confidence: YawRateConfidence) -> Self {
7270 Self {
7271 yaw_rate_value,
7272 yaw_rate_confidence,
7273 }
7274 }
7275 }
7276 #[doc = "*"]
7277 #[doc = " * This DE indicates the yaw rate confidence value which represents the estimated accuracy for a yaw rate value with a default confidence level of 95 %."]
7278 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
7279 #[doc = " * "]
7280 #[doc = " * The value shall be set to:"]
7281 #[doc = " * - `0` if the confidence value is equal to or less than 0,01 degree/second,"]
7282 #[doc = " * - `1` if the confidence value is equal to or less than 0,05 degrees/second or greater than 0,01 degree/second,"]
7283 #[doc = " * - `2` if the confidence value is equal to or less than 0,1 degree/second or greater than 0,05 degree/second,"]
7284 #[doc = " * - `3` if the confidence value is equal to or less than 1 degree/second or greater than 0,1 degree/second,"]
7285 #[doc = " * - `4` if the confidence value is equal to or less than 5 degrees/second or greater than 1 degrees/second,"]
7286 #[doc = " * - `5` if the confidence value is equal to or less than 10 degrees/second or greater than 5 degrees/second,"]
7287 #[doc = " * - `6` if the confidence value is equal to or less than 100 degrees/second or greater than 10 degrees/second,"]
7288 #[doc = " * - `7` if the confidence value is out of range, i.e. greater than 100 degrees/second,"]
7289 #[doc = " * - `8` if the confidence value is unavailable."]
7290 #[doc = " * "]
7291 #[doc = " * NOTE: The fact that a yaw rate value is received with confidence value set to `unavailable(8)` can be caused by"]
7292 #[doc = " * several reasons, such as:"]
7293 #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
7294 #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
7295 #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
7296 #[doc = " * In all 3 cases above, the yaw rate value may be valid and used by the application."]
7297 #[doc = " * "]
7298 #[doc = " * If a yaw rate value is received and its confidence value is set to `outOfRange(7)`, it means that the "]
7299 #[doc = " * yaw rate value is not valid and therefore cannot be trusted. Such value is not useful the application."]
7300 #[doc = " * "]
7301 #[doc = " * @category: Vehicle information"]
7302 #[doc = " * @revision: Description revised in V2.1.1"]
7303 #[doc = " "]
7304 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7305 #[rasn(enumerated)]
7306 pub enum YawRateConfidence {
7307 #[rasn(identifier = "degSec-000-01")]
7308 degSec_000_01 = 0,
7309 #[rasn(identifier = "degSec-000-05")]
7310 degSec_000_05 = 1,
7311 #[rasn(identifier = "degSec-000-10")]
7312 degSec_000_10 = 2,
7313 #[rasn(identifier = "degSec-001-00")]
7314 degSec_001_00 = 3,
7315 #[rasn(identifier = "degSec-005-00")]
7316 degSec_005_00 = 4,
7317 #[rasn(identifier = "degSec-010-00")]
7318 degSec_010_00 = 5,
7319 #[rasn(identifier = "degSec-100-00")]
7320 degSec_100_00 = 6,
7321 outOfRange = 7,
7322 unavailable = 8,
7323 }
7324 #[doc = "*"]
7325 #[doc = " * This DE represents the vehicle rotation around z-axis of the coordinate system centred on the centre of mass of the empty-loaded"]
7326 #[doc = " * vehicle. The leading sign denotes the direction of rotation."]
7327 #[doc = " * "]
7328 #[doc = " * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11."]
7329 #[doc = " *"]
7330 #[doc = " * The value shall be set to:"]
7331 #[doc = " * - `-32 766` to indicate that the yaw rate is equal to or greater than 327,66 degrees/second to the right,"]
7332 #[doc = " * - `n` (`n > -32 766` and `n <= 0`) to indicate that the rotation is clockwise (i.e. to the right) and is equal to or less than n x 0,01 degrees/s, "]
7333 #[doc = " and greater than (n-1) x 0,01 degrees/s,"]
7334 #[doc = " * - `n` (`n > 0` and `n < 32 766`) to indicate that the rotation is anti-clockwise (i.e. to the left) and is equal to or less than n x 0,01 degrees/s, "]
7335 #[doc = " and greater than (n-1) x 0,01 degrees/s,"]
7336 #[doc = " * - `32 766` to indicate that the yaw rate is greater than 327.65 degrees/second to the left,"]
7337 #[doc = " * - `32 767` to indicate that the information is not available."]
7338 #[doc = " * "]
7339 #[doc = " * The yaw rate value shall be a raw data value, i.e. not filtered, smoothed or otherwise modified."]
7340 #[doc = " * The reading instant should be the same as for the vehicle acceleration."]
7341 #[doc = " * "]
7342 #[doc = " * @note: The empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
7343 #[doc = " * "]
7344 #[doc = " * @unit: 0,01 degree per second. "]
7345 #[doc = " * @category: Vehicle Information"]
7346 #[doc = " * @revision: Desription revised in V2.1.1 (the meaning of 32766 has changed slightly). "]
7347 #[doc = ""]
7348 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7349 #[rasn(delegate, value("-32766..=32767"))]
7350 pub struct YawRateValue(pub i16);
7351}
7352#[allow(
7353 non_camel_case_types,
7354 non_snake_case,
7355 non_upper_case_globals,
7356 unused,
7357 clippy::too_many_arguments,
7358 clippy::doc_overindented_list_items
7359)]
7360pub mod vam_pdu_descriptions {
7361 extern crate alloc;
7362 use super::etsi_its_cdd::{
7363 AccelerationChangeIndication, BasicContainer, CartesianAngle, ClusterBreakupInfo,
7364 ClusterJoinInfo, ClusterLeaveInfo, Curvature, CurvatureCalculationMode,
7365 DeltaTimeQuarterSecond, GeneralizedLanePosition, GenerationDeltaTime,
7366 HeadingChangeIndication, ItsPduHeader, LanePosition, LateralAcceleration,
7367 LongitudinalAcceleration, PathHistory, PathPredicted, SequenceOfSafeDistanceIndication,
7368 SequenceOfTrajectoryInterceptionIndication, Speed, StabilityChangeIndication, StationId,
7369 TrajectoryInterceptionIndication, VerticalAcceleration, VruClusterInformation,
7370 VruDeviceUsage, VruEnvironment, VruExteriorLights, VruMovementControl,
7371 VruProfileAndSubprofile, VruSizeClass, Wgs84Angle, YawRate,
7372 };
7373 use core::borrow::Borrow;
7374 use rasn::prelude::*;
7375 use std::sync::LazyLock;
7376 #[doc = "*"]
7377 #[doc = " * @details ItsPduHeaderVam"]
7378 #[doc = " * The ITS PDU header for the VAM."]
7379 #[doc = " *"]
7380 #[doc = " * This DF includes DEs for the VAM _protocolVersion_, the VAM message type identifier _messageID_ "]
7381 #[doc = " * and the station identifier _stationID_ of the originating ITS-S."]
7382 #[doc = " *"]
7383 #[doc = " * @category: Communication information"]
7384 #[doc = " * @revision: V2.2.1"]
7385 #[doc = " "]
7386 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7387 #[rasn(delegate)]
7388 pub struct ItsPduHeaderVam(pub ItsPduHeader);
7389 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7390 #[rasn(automatic_tags)]
7391 pub struct VAM {
7392 pub header: ItsPduHeaderVam,
7393 pub vam: VruAwareness,
7394 }
7395 impl VAM {
7396 pub fn new(header: ItsPduHeaderVam, vam: VruAwareness) -> Self {
7397 Self { header, vam }
7398 }
7399 }
7400 #[doc = "*"]
7401 #[doc = " * @details VamParameters"]
7402 #[doc = " * The VAM payload includes the @ref BasicContainer and @ref VruHighFrequencyContainer. "]
7403 #[doc = " * The VAM payload may also include additional containers: @ref VruLowFrequencyContainer,"]
7404 #[doc = " * @ref VruClusterInformationContainer, @ref VruClusterOperationContainer and @ref VruMotionPredictionContainer."]
7405 #[doc = " * The selection of the additional containers depends on the dissemination criteria, "]
7406 #[doc = " * e.g. _vruCluster_ or _MotionDynamicPrediction_ availability."]
7407 #[doc = " * "]
7408 #[doc = " * @category: Communication information"]
7409 #[doc = " * @revision: V2.2.1"]
7410 #[doc = "*"]
7411 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7412 #[rasn(automatic_tags)]
7413 #[non_exhaustive]
7414 pub struct VamParameters {
7415 #[rasn(identifier = "basicContainer")]
7416 pub basic_container: BasicContainer,
7417 #[rasn(identifier = "vruHighFrequencyContainer")]
7418 pub vru_high_frequency_container: VruHighFrequencyContainer,
7419 #[rasn(identifier = "vruLowFrequencyContainer")]
7420 pub vru_low_frequency_container: Option<VruLowFrequencyContainer>,
7421 #[rasn(identifier = "vruClusterInformationContainer")]
7422 pub vru_cluster_information_container: Option<VruClusterInformationContainer>,
7423 #[rasn(identifier = "vruClusterOperationContainer")]
7424 pub vru_cluster_operation_container: Option<VruClusterOperationContainer>,
7425 #[rasn(identifier = "vruMotionPredictionContainer")]
7426 pub vru_motion_prediction_container: Option<VruMotionPredictionContainer>,
7427 }
7428 impl VamParameters {
7429 pub fn new(
7430 basic_container: BasicContainer,
7431 vru_high_frequency_container: VruHighFrequencyContainer,
7432 vru_low_frequency_container: Option<VruLowFrequencyContainer>,
7433 vru_cluster_information_container: Option<VruClusterInformationContainer>,
7434 vru_cluster_operation_container: Option<VruClusterOperationContainer>,
7435 vru_motion_prediction_container: Option<VruMotionPredictionContainer>,
7436 ) -> Self {
7437 Self {
7438 basic_container,
7439 vru_high_frequency_container,
7440 vru_low_frequency_container,
7441 vru_cluster_information_container,
7442 vru_cluster_operation_container,
7443 vru_motion_prediction_container,
7444 }
7445 }
7446 }
7447 #[doc = "*"]
7448 #[doc = " * @details VruAwareness"]
7449 #[doc = " * VAM payload."]
7450 #[doc = " *"]
7451 #[doc = " * It includes the time stamp of the VAM and the VAM different containers"]
7452 #[doc = " *"]
7453 #[doc = " * @category: Communication information"]
7454 #[doc = " * @revision: V2.2.1"]
7455 #[doc = " "]
7456 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7457 #[rasn(automatic_tags)]
7458 pub struct VruAwareness {
7459 #[rasn(identifier = "generationDeltaTime")]
7460 pub generation_delta_time: GenerationDeltaTime,
7461 #[rasn(identifier = "vamParameters")]
7462 pub vam_parameters: VamParameters,
7463 }
7464 impl VruAwareness {
7465 pub fn new(
7466 generation_delta_time: GenerationDeltaTime,
7467 vam_parameters: VamParameters,
7468 ) -> Self {
7469 Self {
7470 generation_delta_time,
7471 vam_parameters,
7472 }
7473 }
7474 }
7475 #[doc = "*"]
7476 #[doc = " * @details VruClusterInformationContainer"]
7477 #[doc = " * The VRU Cluster Information container of the VAM provides the information/parameters relevant to the VRU cluster."]
7478 #[doc = " * It is mandatory if the VAM is transmitted by VRU cluster leader."]
7479 #[doc = " * It includes the following components (setting indications are specified in clause 7.3.5 of TS 103 300-3): "]
7480 #[doc = " *"]
7481 #[doc = " * @field vruClusterInformation: set of parammeters releated to the VRU cluster. "]
7482 #[doc = " * When transmitted by a VRU ITS-S, the clusterId and clusterBoundingBoxShape fields inside this DF shall be present."]
7483 #[doc = " * The clusterBoundingBoxShape is positioned with respect to the position sent in the BasicContainer."]
7484 #[doc = " * "]
7485 #[doc = " * @category: VRU information"]
7486 #[doc = " * @revision: V2.2.1"]
7487 #[doc = " "]
7488 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7489 #[rasn(automatic_tags)]
7490 #[non_exhaustive]
7491 pub struct VruClusterInformationContainer {
7492 #[rasn(value("0.."), identifier = "vruClusterInformation")]
7493 pub vru_cluster_information: VruClusterInformation,
7494 }
7495 impl VruClusterInformationContainer {
7496 pub fn new(vru_cluster_information: VruClusterInformation) -> Self {
7497 Self {
7498 vru_cluster_information,
7499 }
7500 }
7501 }
7502 #[doc = "*"]
7503 #[doc = " * @details VruClusterOperationContainer"]
7504 #[doc = " * The VRU Cluster Operation container of the VAM provides information relevant to change of cluster state and composition."]
7505 #[doc = " * It is mandatory if the VAM is transmitted by a VRU joining, leaving or breaking up a cluster."]
7506 #[doc = " * It includes the following components (setting indications are specified in clause 7.3.5 of TS 103 300-3). "]
7507 #[doc = " * At least one of the fields below shall be present if the container is present in the VAM: "]
7508 #[doc = " *"]
7509 #[doc = " * @field clusterJoinInfo: indicates the intent of an individual VAM transmitter to join a cluster. "]
7510 #[doc = " * @field clusterLeaveInfo : indicates that an individual VAM transmitter has recently left the VRU cluster. "]
7511 #[doc = " * @field clusterBreakupInfo: indicates the intent of a cluster VAM transmitter to stop sending cluster VAMs. "]
7512 #[doc = " * @field clusterIdChangeTimeInfo: indicates the intent of a cluster VAM transmitter to change cluster ID. "]
7513 #[doc = " * "]
7514 #[doc = " * @category: VRU information"]
7515 #[doc = " * @revision: V2.2.1"]
7516 #[doc = " "]
7517 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7518 #[rasn(automatic_tags)]
7519 #[non_exhaustive]
7520 pub struct VruClusterOperationContainer {
7521 #[rasn(identifier = "clusterJoinInfo")]
7522 pub cluster_join_info: Option<ClusterJoinInfo>,
7523 #[rasn(identifier = "clusterLeaveInfo")]
7524 pub cluster_leave_info: Option<ClusterLeaveInfo>,
7525 #[rasn(identifier = "clusterBreakupInfo")]
7526 pub cluster_breakup_info: Option<ClusterBreakupInfo>,
7527 #[rasn(identifier = "clusterIdChangeTimeInfo")]
7528 pub cluster_id_change_time_info: Option<DeltaTimeQuarterSecond>,
7529 }
7530 impl VruClusterOperationContainer {
7531 pub fn new(
7532 cluster_join_info: Option<ClusterJoinInfo>,
7533 cluster_leave_info: Option<ClusterLeaveInfo>,
7534 cluster_breakup_info: Option<ClusterBreakupInfo>,
7535 cluster_id_change_time_info: Option<DeltaTimeQuarterSecond>,
7536 ) -> Self {
7537 Self {
7538 cluster_join_info,
7539 cluster_leave_info,
7540 cluster_breakup_info,
7541 cluster_id_change_time_info,
7542 }
7543 }
7544 }
7545 #[doc = "*"]
7546 #[doc = " * @details VruHighFrequencyContainer"]
7547 #[doc = " * The VRU HF container of the VAM contains potentially fast-changing status information of the VRU ITS-S."]
7548 #[doc = " * It includes the following components (setting indications are specified in clause 7.3.3 of TS 103 300-3): "]
7549 #[doc = " * "]
7550 #[doc = " * @field heading: heading and heading confidence of the originating VRU with regards to the true north. "]
7551 #[doc = " * @field speed: speed in moving direction and speed confidence of the originating VRU. "]
7552 #[doc = " * @field longitudinalAcceleration: longitudinal acceleration of the originating VRU. "]
7553 #[doc = " * @field curvature: related to the actual trajectory of the originating VRU vehicle."]
7554 #[doc = " _(recommended for VRU Profile 2)_"]
7555 #[doc = " * @field curvatureCalculationMode: indicates whether vehicle yaw-rate is used in the calculation of"]
7556 #[doc = " * the curvature of the VRU vehicle ITS-S that originates the VAM. _(recommended for VRU Profile 2)_"]
7557 #[doc = " * @field yawRate: yaw rate of originating VRU vehicle. _(recommended for VRU Profile 2)_"]
7558 #[doc = " * @field lateralAcceleration: originating VRU lateral acceleration in the street plane."]
7559 #[doc = " * This field shall be present if the data is available at the originating ITS-S. _(recommended for VRU Profile 2)_ "]
7560 #[doc = " * @field verticalAcceleration: vertical acceleration of the originating VRU."]
7561 #[doc = " * This field shall be present if the data is available at the originating ITS-S."]
7562 #[doc = " * @field vruLanePosition: lane position of the referencePosition of a VRU, which is either a VRU-specific non-traffic lane "]
7563 #[doc = " * or a standard traffic lane. This field shall be present if the data is available at the originating ITS-S."]
7564 #[doc = " * @field environment: provides contextual awareness of the VRU among other road users."]
7565 #[doc = " * This field shall be present only if the data is available at the originating ITS-S."]
7566 #[doc = " * @field movementControl: indicates the mechanism used by the VRU to control the longitudinal movement of the VRU vehicle."]
7567 #[doc = " * This field shall be present only if the data is available at the originating ITS-S. _(recommended for VRU Profile 2)_"]
7568 #[doc = " * @field orientation : complements the dimensions of the VRU vehicle by defining the angle of the VRU vehicle longitudinal"]
7569 #[doc = " * axis with regards to the WGS84 north. _(recommended for VRU Profile 2)_"]
7570 #[doc = " * @field rollAngle: provides the angle and angle accuracy between the ground plane and the current orientation of a vehicle's"]
7571 #[doc = " * y-axis with respect to the ground plane about the x-axis according to the ISO 8855. "]
7572 #[doc = " * This field shall be present only if the data is available at the originating ITS-S. _(recommended for VRU Profile 2)_"]
7573 #[doc = " * @field deviceUsage: provides indications from the personal device about the potential "]
7574 #[doc = " * activity of the VRU. This field shall be present only if the data is available at the originating ITS-S."]
7575 #[doc = " * _(recommended for VRU Profile 1)_"]
7576 #[doc = " * "]
7577 #[doc = " * @category: VRU information"]
7578 #[doc = " * @revision: V2.2.1"]
7579 #[doc = " "]
7580 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7581 #[rasn(automatic_tags)]
7582 #[non_exhaustive]
7583 pub struct VruHighFrequencyContainer {
7584 pub heading: Wgs84Angle,
7585 pub speed: Speed,
7586 #[rasn(identifier = "longitudinalAcceleration")]
7587 pub longitudinal_acceleration: LongitudinalAcceleration,
7588 pub curvature: Option<Curvature>,
7589 #[rasn(identifier = "curvatureCalculationMode")]
7590 pub curvature_calculation_mode: Option<CurvatureCalculationMode>,
7591 #[rasn(identifier = "yawRate")]
7592 pub yaw_rate: Option<YawRate>,
7593 #[rasn(identifier = "lateralAcceleration")]
7594 pub lateral_acceleration: Option<LateralAcceleration>,
7595 #[rasn(identifier = "verticalAcceleration")]
7596 pub vertical_acceleration: Option<VerticalAcceleration>,
7597 #[rasn(identifier = "vruLanePosition")]
7598 pub vru_lane_position: Option<GeneralizedLanePosition>,
7599 pub environment: Option<VruEnvironment>,
7600 #[rasn(identifier = "movementControl")]
7601 pub movement_control: Option<VruMovementControl>,
7602 pub orientation: Option<Wgs84Angle>,
7603 #[rasn(identifier = "rollAngle")]
7604 pub roll_angle: Option<CartesianAngle>,
7605 #[rasn(identifier = "deviceUsage")]
7606 pub device_usage: Option<VruDeviceUsage>,
7607 }
7608 impl VruHighFrequencyContainer {
7609 pub fn new(
7610 heading: Wgs84Angle,
7611 speed: Speed,
7612 longitudinal_acceleration: LongitudinalAcceleration,
7613 curvature: Option<Curvature>,
7614 curvature_calculation_mode: Option<CurvatureCalculationMode>,
7615 yaw_rate: Option<YawRate>,
7616 lateral_acceleration: Option<LateralAcceleration>,
7617 vertical_acceleration: Option<VerticalAcceleration>,
7618 vru_lane_position: Option<GeneralizedLanePosition>,
7619 environment: Option<VruEnvironment>,
7620 movement_control: Option<VruMovementControl>,
7621 orientation: Option<Wgs84Angle>,
7622 roll_angle: Option<CartesianAngle>,
7623 device_usage: Option<VruDeviceUsage>,
7624 ) -> Self {
7625 Self {
7626 heading,
7627 speed,
7628 longitudinal_acceleration,
7629 curvature,
7630 curvature_calculation_mode,
7631 yaw_rate,
7632 lateral_acceleration,
7633 vertical_acceleration,
7634 vru_lane_position,
7635 environment,
7636 movement_control,
7637 orientation,
7638 roll_angle,
7639 device_usage,
7640 }
7641 }
7642 }
7643 #[doc = "*"]
7644 #[doc = " * @details VruLowFrequencyContainer"]
7645 #[doc = " * The VRU LF container of the VAM contains potentially slow-changing information of the VRU ITS-S."]
7646 #[doc = " * It is mandatory with higher periodicity as specified in clause 6.2 or when VRU cluster operation container is present."]
7647 #[doc = " * It includes the following components (setting indications are specified in clause 7.3.4 of TS 103 300-3): "]
7648 #[doc = " *"]
7649 #[doc = " * @field profileAndSubprofile: profile of the ITS-S that originates the VAM, including sub-profile information. "]
7650 #[doc = " * @field sizeClass: information about the size of the VRU. "]
7651 #[doc = " * @field exteriorLights: status of the most important exterior lights switches of the VRU ITS-S that originates the VAM. "]
7652 #[doc = " * _(conditional mandatory as specified in clause 7.3.4 of TS 103 300-3)_ "]
7653 #[doc = " * "]
7654 #[doc = " * @category: VRU information"]
7655 #[doc = " * @revision: V2.2.1"]
7656 #[doc = " "]
7657 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7658 #[rasn(automatic_tags)]
7659 #[non_exhaustive]
7660 pub struct VruLowFrequencyContainer {
7661 #[rasn(identifier = "profileAndSubprofile")]
7662 pub profile_and_subprofile: VruProfileAndSubprofile,
7663 #[rasn(identifier = "sizeClass")]
7664 pub size_class: Option<VruSizeClass>,
7665 #[rasn(identifier = "exteriorLights")]
7666 pub exterior_lights: Option<VruExteriorLights>,
7667 }
7668 impl VruLowFrequencyContainer {
7669 pub fn new(
7670 profile_and_subprofile: VruProfileAndSubprofile,
7671 size_class: Option<VruSizeClass>,
7672 exterior_lights: Option<VruExteriorLights>,
7673 ) -> Self {
7674 Self {
7675 profile_and_subprofile,
7676 size_class,
7677 exterior_lights,
7678 }
7679 }
7680 }
7681 #[doc = "*"]
7682 #[doc = " * @details VruMotionPredictionContainer"]
7683 #[doc = " * The VRU Motion Prediction container of the VAM carries the past and future motion state information of the VRU."]
7684 #[doc = " * It includes the following components (setting indications are specified in clause 7.3.6 of TS 103 300-3). "]
7685 #[doc = " * At least one of the fields below shall be present if the container is present in the VAM: "]
7686 #[doc = " *"]
7687 #[doc = " * @field pathHistory: represents the VRU's recent movement over some past time and/or distance. "]
7688 #[doc = " * It consists of a list of path points. "]
7689 #[doc = " * @field pathPrediction: provides the set of predicted locations of the ITS-S, confidence values "]
7690 #[doc = " * and the corresponding future time instants. "]
7691 #[doc = " * @field safeDistance: provides indication of safe distance between an ego-VRU and up to 8 other ITS-S "]
7692 #[doc = " * or entity on the road to indicate whether the ego-VRU is at a safe distance (that is less likely to "]
7693 #[doc = " * physically collide) from another ITS-S or entity on the road. "]
7694 #[doc = " * @field trajectoryInterceptionIndication: provides the indication for possible trajectory interception "]
7695 #[doc = " * with up to 8 VRUs or other objects on the road.. "]
7696 #[doc = " * @field accelerationChangeIndication: provides an acceleration change indication of the VRU. "]
7697 #[doc = " * When present this DF indicates an anticipated change in the VRU speed for period of actionDeltaTime."]
7698 #[doc = " * @field headingChangeIndication: provides additional data elements associated to heading change indicators "]
7699 #[doc = " * such as a change of travel direction (left or right). "]
7700 #[doc = " * The direction change action is performed for a period of actionDeltaTime. "]
7701 #[doc = " * @field stabilityChangeIndication: provides an estimation of the VRU stability. "]
7702 #[doc = " * "]
7703 #[doc = " * @category: GeoReference information, VRU information"]
7704 #[doc = " * @revision: V2.2.1"]
7705 #[doc = " "]
7706 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7707 #[rasn(automatic_tags)]
7708 #[non_exhaustive]
7709 pub struct VruMotionPredictionContainer {
7710 #[rasn(identifier = "pathHistory")]
7711 pub path_history: Option<PathHistory>,
7712 #[rasn(identifier = "pathPrediction")]
7713 pub path_prediction: Option<PathPredicted>,
7714 #[rasn(identifier = "safeDistance")]
7715 pub safe_distance: Option<SequenceOfSafeDistanceIndication>,
7716 #[rasn(identifier = "trajectoryInterceptionIndication")]
7717 pub trajectory_interception_indication: Option<SequenceOfTrajectoryInterceptionIndication>,
7718 #[rasn(identifier = "accelerationChangeIndication")]
7719 pub acceleration_change_indication: Option<AccelerationChangeIndication>,
7720 #[rasn(identifier = "headingChangeIndication")]
7721 pub heading_change_indication: Option<HeadingChangeIndication>,
7722 #[rasn(identifier = "stabilityChangeIndication")]
7723 pub stability_change_indication: Option<StabilityChangeIndication>,
7724 }
7725 impl VruMotionPredictionContainer {
7726 pub fn new(
7727 path_history: Option<PathHistory>,
7728 path_prediction: Option<PathPredicted>,
7729 safe_distance: Option<SequenceOfSafeDistanceIndication>,
7730 trajectory_interception_indication: Option<SequenceOfTrajectoryInterceptionIndication>,
7731 acceleration_change_indication: Option<AccelerationChangeIndication>,
7732 heading_change_indication: Option<HeadingChangeIndication>,
7733 stability_change_indication: Option<StabilityChangeIndication>,
7734 ) -> Self {
7735 Self {
7736 path_history,
7737 path_prediction,
7738 safe_distance,
7739 trajectory_interception_indication,
7740 acceleration_change_indication,
7741 heading_change_indication,
7742 stability_change_indication,
7743 }
7744 }
7745 }
7746}