1#[allow(
2 non_camel_case_types,
3 non_snake_case,
4 non_upper_case_globals,
5 unused,
6 clippy::too_many_arguments
7)]
8pub mod etsi_its_cdd {
9 extern crate alloc;
10 use core::borrow::Borrow;
11
12 use rasn::prelude::*;
13
14 #[doc = " Specification of CDD Data Frames:"]
15 #[doc = "This DF represents an acceleration vector with associated confidence value."]
16 #[doc = ""]
17 #[doc = "It shall include the following components: "]
18 #[doc = ""]
19 #[doc = "- @field polarAcceleration: the representation of the acceleration vector in a polar or cylindrical coordinate system. "]
20 #[doc = ""]
21 #[doc = "- @field cartesianAcceleration: the representation of the acceleration vector in a cartesian coordinate system."]
22 #[doc = ""]
23 #[doc = "\n\n@category: Kinematic information"]
24 #[doc = "\n\n@revision: Created in V2.1.1"]
25 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
26 #[rasn(choice, automatic_tags)]
27 pub enum Acceleration3dWithConfidence {
28 polarAcceleration(AccelerationPolarWithZ),
29 cartesianAcceleration(AccelerationCartesian),
30 }
31
32 #[doc = "This DF represents a acceleration vector in a cartesian coordinate system."]
33 #[doc = "It shall include the following components: "]
34 #[doc = ""]
35 #[doc = "- @field xAcceleration: the x component of the acceleration vector with the associated confidence value."]
36 #[doc = ""]
37 #[doc = "- @field yAcceleration: the y component of the acceleration vector with the associated confidence value."]
38 #[doc = ""]
39 #[doc = "- @field zAcceleration: the optional z component of the acceleration vector with the associated confidence value."]
40 #[doc = ""]
41 #[doc = "\n\n@category: Kinematic information"]
42 #[doc = "\n\n@revision: Created in V2.1.1"]
43 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
44 #[rasn(automatic_tags)]
45 pub struct AccelerationCartesian {
46 #[rasn(identifier = "xAcceleration")]
47 pub x_acceleration: AccelerationComponent,
48 #[rasn(identifier = "yAcceleration")]
49 pub y_acceleration: AccelerationComponent,
50 #[rasn(identifier = "zAcceleration")]
51 pub z_acceleration: Option<AccelerationComponent>,
52 }
53 impl AccelerationCartesian {
54 pub fn new(
55 x_acceleration: AccelerationComponent,
56 y_acceleration: AccelerationComponent,
57 z_acceleration: Option<AccelerationComponent>,
58 ) -> Self {
59 Self {
60 x_acceleration,
61 y_acceleration,
62 z_acceleration,
63 }
64 }
65 }
66
67 #[doc = " Specification of CDD Data Elements: "]
68 #[doc = "This DE indicates a change of acceleration."]
69 #[doc = ""]
70 #[doc = "The value shall be set to:"]
71 #[doc = "- 0 - `accelerate` - if the magnitude of the horizontal velocity vector increases."]
72 #[doc = "- 1 - `decelerate` - if the magnitude of the horizontal velocity vector decreases."]
73 #[doc = ""]
74 #[doc = "\n\n@category: Kinematic information"]
75 #[doc = "\n\n@revision: Created in V2.1.1"]
76 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
77 #[rasn(enumerated)]
78 pub enum AccelerationChange {
79 accelerate = 0,
80 decelerate = 1,
81 }
82
83 #[doc = "This DF represents information associated to changes in acceleration. "]
84 #[doc = ""]
85 #[doc = "It shall include the following components: "]
86 #[doc = ""]
87 #[doc = "- @field accelOrDecel: the indication of an acceleration change."]
88 #[doc = ""]
89 #[doc = "- @field actionDeltaTime: the period over which the acceleration change action is performed."]
90 #[doc = ""]
91 #[doc = "\n\n@category: Kinematic Information"]
92 #[doc = "\n\n@revision: Created in V2.1.1"]
93 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
94 #[rasn(automatic_tags)]
95 #[non_exhaustive]
96 pub struct AccelerationChangeIndication {
97 #[rasn(identifier = "accelOrDecel")]
98 pub accel_or_decel: AccelerationChange,
99 #[rasn(identifier = "actionDeltaTime")]
100 pub action_delta_time: DeltaTimeTenthOfSecond,
101 }
102 impl AccelerationChangeIndication {
103 pub fn new(
104 accel_or_decel: AccelerationChange,
105 action_delta_time: DeltaTimeTenthOfSecond,
106 ) -> Self {
107 Self {
108 accel_or_decel,
109 action_delta_time,
110 }
111 }
112 }
113
114 #[doc = "This DF represents an acceleration component along with a confidence value."]
115 #[doc = ""]
116 #[doc = "It shall include the following components: "]
117 #[doc = ""]
118 #[doc = "- @field value: the value of the acceleration component which can be estimated as the mean of the current distribution."]
119 #[doc = ""]
120 #[doc = "- @field confidence: the confidence value associated to the provided value."]
121 #[doc = ""]
122 #[doc = "\n\n@category: Kinematic Information"]
123 #[doc = "\n\n@revision: Created in V2.1.1"]
124 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
125 #[rasn(automatic_tags)]
126 pub struct AccelerationComponent {
127 pub value: AccelerationValue,
128 pub confidence: AccelerationConfidence,
129 }
130 impl AccelerationComponent {
131 pub fn new(value: AccelerationValue, confidence: AccelerationConfidence) -> Self {
132 Self { value, confidence }
133 }
134 }
135
136 #[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 %. "]
137 #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
138 #[doc = ""]
139 #[doc = "The value shall be set to:"]
140 #[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,"]
141 #[doc = "- `101` if the confidence value is out of range i.e. greater than 10 m/s^2,"]
142 #[doc = "- `102` if the confidence value is unavailable."]
143 #[doc = ""]
144 #[doc = "The value 0 shall not be used."]
145 #[doc = ""]
146 #[doc = "\n\n@note: The fact that an acceleration value is received with confidence value set to `unavailable(102)` can be caused by several reasons, such as:"]
147 #[doc = "- the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
148 #[doc = "- the sensor cannot calculate the accuracy due to lack of variables, or"]
149 #[doc = "- there has been a vehicle bus (e.g. CAN bus) error."]
150 #[doc = "In all 3 cases above, the acceleration value may be valid and used by the application."]
151 #[doc = ""]
152 #[doc = "\n\n@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."]
153 #[doc = ""]
154 #[doc = "\n\n@unit 0,1 m/s^2"]
155 #[doc = "\n\n@category: Kinematic information"]
156 #[doc = "\n\n@revision: Description revised in V2.1.1"]
157 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
158 #[rasn(delegate, value("0..=102"))]
159 pub struct AccelerationConfidence(pub u8);
160
161 #[doc = "This DE indicates the current controlling mechanism for longitudinal movement of the vehicle."]
162 #[doc = "The data may be provided via the in-vehicle network. It indicates whether a specific in-vehicle"]
163 #[doc = "acceleration control system is engaged or not. Currently, this DE includes the information of the"]
164 #[doc = "vehicle brake pedal, gas pedal, emergency brake system, collision warning system, adaptive cruise"]
165 #[doc = "control system, cruise control system and speed limiter system."]
166 #[doc = ""]
167 #[doc = "The corresponding bit shall be set to 1 under the following conditions:"]
168 #[doc = "- 0 - `brakePedalEngaged` - Driver is stepping on the brake pedal,"]
169 #[doc = "- 1 - `gasPedalEngaged` - Driver is stepping on the gas pedal,"]
170 #[doc = "- 2 - `emergencyBrakeEngaged` - emergency brake system is engaged,"]
171 #[doc = "- 3 - `collisionWarningEngaged`- collision warning system is engaged,"]
172 #[doc = "- 4 - `accEngaged` - ACC is engaged,"]
173 #[doc = "- 5 - `cruiseControlEngaged` - cruise control is engaged,"]
174 #[doc = "- 6 - `speedLimiterEngaged` - speed limiter is engaged."]
175 #[doc = ""]
176 #[doc = "Otherwise (for example when the corresponding system is not available due to non equipped system"]
177 #[doc = "or information is unavailable), the corresponding bit shall be set to 0."]
178 #[doc = ""]
179 #[doc = "\n\n@note: The system engagement condition is OEM specific and therefore out of scope of the present document."]
180 #[doc = "\n\n@category: Vehicle information"]
181 #[doc = "\n\n@revision: V1.3.1"]
182 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
183 #[rasn(delegate)]
184 pub struct AccelerationControl(pub FixedBitString<7usize>);
185
186 #[doc = "This DF represents the magnitude of the acceleration vector and associated confidence value."]
187 #[doc = ""]
188 #[doc = "It shall include the following components: "]
189 #[doc = ""]
190 #[doc = "- @field accelerationMagnitudeValue: the magnitude of the acceleration vector."]
191 #[doc = ""]
192 #[doc = "- @field accelerationConfidence: the confidence value of the magnitude value."]
193 #[doc = ""]
194 #[doc = "\n\n@category: Kinematic information"]
195 #[doc = "\n\n@revision: Created in V2.1.1"]
196 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
197 #[rasn(automatic_tags)]
198 pub struct AccelerationMagnitude {
199 #[rasn(identifier = "accelerationMagnitudeValue")]
200 pub acceleration_magnitude_value: AccelerationMagnitudeValue,
201 #[rasn(identifier = "accelerationConfidence")]
202 pub acceleration_confidence: AccelerationConfidence,
203 }
204 impl AccelerationMagnitude {
205 pub fn new(
206 acceleration_magnitude_value: AccelerationMagnitudeValue,
207 acceleration_confidence: AccelerationConfidence,
208 ) -> Self {
209 Self {
210 acceleration_magnitude_value,
211 acceleration_confidence,
212 }
213 }
214 }
215
216 #[doc = "This DE represents the magnitude of the acceleration vector in a defined coordinate system."]
217 #[doc = ""]
218 #[doc = "The value shall be set to:"]
219 #[doc = "- `0` to indicate no acceleration,"]
220 #[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,"]
221 #[doc = "- `160` for acceleration values greater than 15,9 m/s^2,"]
222 #[doc = "- `161` when the data is unavailable."]
223 #[doc = ""]
224 #[doc = "\n\n@unit 0,1 m/s^2"]
225 #[doc = "\n\n@category: Kinematic information"]
226 #[doc = "\n\n@revision: Created in V2.1.1"]
227 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
228 #[rasn(delegate, value("0..=161"))]
229 pub struct AccelerationMagnitudeValue(pub u8);
230
231 #[doc = "This DF represents an acceleration vector in a polar or cylindrical coordinate system."]
232 #[doc = "It shall include the following components: "]
233 #[doc = ""]
234 #[doc = "- @field accelerationMagnitude: magnitude of the acceleration vector projected onto the reference plane, with the associated confidence value."]
235 #[doc = ""]
236 #[doc = "- @field accelerationDirection: polar angle of the acceleration vector projected onto the reference plane, with the associated confidence value."]
237 #[doc = ""]
238 #[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."]
239 #[doc = ""]
240 #[doc = "\n\n@category: Kinematic information"]
241 #[doc = "\n\n@revision: Created in V2.1.1"]
242 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
243 #[rasn(automatic_tags)]
244 pub struct AccelerationPolarWithZ {
245 #[rasn(identifier = "accelerationMagnitude")]
246 pub acceleration_magnitude: AccelerationMagnitude,
247 #[rasn(identifier = "accelerationDirection")]
248 pub acceleration_direction: CartesianAngle,
249 #[rasn(identifier = "zAcceleration")]
250 pub z_acceleration: Option<AccelerationComponent>,
251 }
252 impl AccelerationPolarWithZ {
253 pub fn new(
254 acceleration_magnitude: AccelerationMagnitude,
255 acceleration_direction: CartesianAngle,
256 z_acceleration: Option<AccelerationComponent>,
257 ) -> Self {
258 Self {
259 acceleration_magnitude,
260 acceleration_direction,
261 z_acceleration,
262 }
263 }
264 }
265
266 #[doc = "This DE represents the value of an acceleration component in a defined coordinate system."]
267 #[doc = ""]
268 #[doc = "The value shall be set to:"]
269 #[doc = "- `-160` for acceleration values equal to or less than -16 m/s^2,"]
270 #[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,"]
271 #[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,"]
272 #[doc = "- `160` for acceleration values greater than 15,9 m/s^2,"]
273 #[doc = "- `161` when the data is unavailable."]
274 #[doc = ""]
275 #[doc = "\n\n@note: the formula for values > -160 and <160 results in rounding up to the next value. Zero acceleration is indicated using n=0."]
276 #[doc = "\n\n@unit 0,1 m/s^2"]
277 #[doc = "\n\n@category: Kinematic information"]
278 #[doc = "\n\n@revision: Created in V2.1.1"]
279 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
280 #[rasn(delegate, value("-160..=161"))]
281 pub struct AccelerationValue(pub i16);
282
283 #[doc = "This DE indicates an access technology."]
284 #[doc = ""]
285 #[doc = "The value shall be set to:"]
286 #[doc = "- `0`: in case of any access technology class,"]
287 #[doc = "- `1`: in case of ITS-G5 access technology class,"]
288 #[doc = "- `2`: in case of LTE-V2X access technology class,"]
289 #[doc = "- `3`: in case of NR-V2X access technology class."]
290 #[doc = ""]
291 #[doc = "\n\n@category: Communication information"]
292 #[doc = "\n\n@revision: Created in V2.1.1"]
293 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
294 #[rasn(enumerated)]
295 #[non_exhaustive]
296 pub enum AccessTechnologyClass {
297 any = 0,
298 itsg5Class = 1,
299 ltev2xClass = 2,
300 nrv2xClass = 3,
301 }
302
303 #[doc = "This DE represents the value of the sub cause code of the @ref CauseCode `accident`."]
304 #[doc = ""]
305 #[doc = "The value shall be set to:"]
306 #[doc = "- 0 - `unavailable` - in case the information on the sub cause of the accident is unavailable,"]
307 #[doc = "- 1 - `multiVehicleAccident` - in case more than two vehicles are involved in accident,"]
308 #[doc = "- 2 - `heavyAccident` - in case the airbag of the vehicle involved in the accident is triggered, "]
309 #[doc = " the accident requires important rescue and/or recovery work,"]
310 #[doc = "- 3 - `accidentInvolvingLorry` - in case the accident involves a lorry,"]
311 #[doc = "- 4 - `accidentInvolvingBus` - in case the accident involves a bus,"]
312 #[doc = "- 5 - `accidentInvolvingHazardousMaterials`- in case the accident involves hazardous material,"]
313 #[doc = "- 6 - `accidentOnOppositeLane` - in case the accident happens on opposite lanes,"]
314 #[doc = "- 7 - `unsecuredAccident` - in case the accident is not secured,"]
315 #[doc = "- 8 - `assistanceRequested` - in case rescue and assistance are requested,"]
316 #[doc = "- 9-255 - reserved for future usage. "]
317 #[doc = ""]
318 #[doc = "\n\n@category: Traffic information"]
319 #[doc = "\n\n@revision: V1.3.1"]
320 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
321 #[rasn(delegate, value("0..=255"))]
322 pub struct AccidentSubCauseCode(pub u8);
323
324 #[doc = "This DF represents an identifier used to describe a protocol action taken by an ITS-S."]
325 #[doc = ""]
326 #[doc = "It shall include the following components: "]
327 #[doc = ""]
328 #[doc = "- @field originatingStationId: Id of the ITS-S that takes the action. "]
329 #[doc = ""]
330 #[doc = "- @field sequenceNumber: a sequence number. "]
331 #[doc = ""]
332 #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref ActionId instead. "]
333 #[doc = "\n\n@category: Communication information"]
334 #[doc = "\n\n@revision: V1.3.1"]
335 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
336 #[rasn(automatic_tags)]
337 pub struct ActionID {
338 #[rasn(identifier = "originatingStationId")]
339 pub originating_station_id: StationID,
340 #[rasn(identifier = "sequenceNumber")]
341 pub sequence_number: SequenceNumber,
342 }
343 impl ActionID {
344 pub fn new(originating_station_id: StationID, sequence_number: SequenceNumber) -> Self {
345 Self {
346 originating_station_id,
347 sequence_number,
348 }
349 }
350 }
351
352 #[doc = "This DF represents an identifier used to describe a protocol action taken by an ITS-S."]
353 #[doc = ""]
354 #[doc = "It shall include the following components: "]
355 #[doc = ""]
356 #[doc = "- @field originatingStationId: Id of the ITS-S that takes the action. "]
357 #[doc = ""]
358 #[doc = "- @field sequenceNumber: a sequence number. "]
359 #[doc = ""]
360 #[doc = "\n\n@category: Communication information"]
361 #[doc = "\n\n@revision: Created in V2.1.1 based on @ref ActionID."]
362 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
363 #[rasn(automatic_tags)]
364 pub struct ActionId {
365 #[rasn(identifier = "originatingStationId")]
366 pub originating_station_id: StationId,
367 #[rasn(identifier = "sequenceNumber")]
368 pub sequence_number: SequenceNumber,
369 }
370 impl ActionId {
371 pub fn new(originating_station_id: StationId, sequence_number: SequenceNumber) -> Self {
372 Self {
373 originating_station_id,
374 sequence_number,
375 }
376 }
377 }
378
379 #[doc = "This DF shall contain a list of @ref ActionId. "]
380 #[doc = "\n\n@category: Communication Information"]
381 #[doc = "\n\n@revision: Created in V2.1.1 based on ReferenceDenms from DENM Release 1"]
382 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
383 #[rasn(delegate, size("1..=8", extensible))]
384 pub struct ActionIdList(pub SequenceOf<ActionId>);
385
386 #[doc = "This DE represents the value of the sub cause code of the @ref CauseCode `adverseWeatherCondition-Adhesion`. "]
387 #[doc = ""]
388 #[doc = "The value shall be set to:"]
389 #[doc = "- 0 - `unavailable` - in case information on the cause of the low road adhesion is unavailable,"]
390 #[doc = "- 1 - `heavyFrostOnRoad`- in case the low road adhesion is due to heavy frost on the road,"]
391 #[doc = "- 2 - `fuelOnRoad` - in case the low road adhesion is due to fuel on the road,"]
392 #[doc = "- 3 - `mudOnRoad` - in case the low road adhesion is due to mud on the road,"]
393 #[doc = "- 4 - `snowOnRoad` - in case the low road adhesion is due to snow on the road,"]
394 #[doc = "- 5 - `iceOnRoad` - in case the low road adhesion is due to ice on the road,"]
395 #[doc = "- 6 - `blackIceOnRoad` - in case the low road adhesion is due to black ice on the road,"]
396 #[doc = "- 7 - `oilOnRoad` - in case the low road adhesion is due to oil on the road,"]
397 #[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,"]
398 #[doc = "- 9 - `instantBlackIce` - in case the low road adhesion is due to instant black ice on the road surface,"]
399 #[doc = "- 10 - `roadsSalted` - when the low road adhesion is due to salted road,"]
400 #[doc = "- 11-255 - are reserved for future usage."]
401 #[doc = ""]
402 #[doc = "\n\n@category: Traffic information"]
403 #[doc = "\n\n@revision: V1.3.1"]
404 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
405 #[rasn(
406 delegate,
407 identifier = "AdverseWeatherCondition-AdhesionSubCauseCode",
408 value("0..=255")
409 )]
410 pub struct AdverseWeatherConditionAdhesionSubCauseCode(pub u8);
411
412 #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-ExtremeWeatherCondition`."]
413 #[doc = ""]
414 #[doc = "The value shall be set to:"]
415 #[doc = "- 0 - `unavailable` - in case information on the type of extreme weather condition is unavailable,"]
416 #[doc = "- 1 - `strongWinds` - in case the type of extreme weather condition is strong wind,"]
417 #[doc = "- 2 - `damagingHail`- in case the type of extreme weather condition is damaging hail,"]
418 #[doc = "- 3 - `hurricane` - in case the type of extreme weather condition is hurricane,"]
419 #[doc = "- 4 - `thunderstorm`- in case the type of extreme weather condition is thunderstorm,"]
420 #[doc = "- 5 - `tornado` - in case the type of extreme weather condition is tornado,"]
421 #[doc = "- 6 - `blizzard` - in case the type of extreme weather condition is blizzard."]
422 #[doc = "- 7-255 - are reserved for future usage."]
423 #[doc = ""]
424 #[doc = "\n\n@category: Traffic information"]
425 #[doc = "\n\n@revision: V1.3.1"]
426 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
427 #[rasn(
428 delegate,
429 identifier = "AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode",
430 value("0..=255")
431 )]
432 pub struct AdverseWeatherConditionExtremeWeatherConditionSubCauseCode(pub u8);
433
434 #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-Precipitation`. "]
435 #[doc = ""]
436 #[doc = "The value shall be set to:"]
437 #[doc = "- 0 - `unavailable` - in case information on the type of precipitation is unavailable,"]
438 #[doc = "- 1 - `heavyRain` - in case the type of precipitation is heavy rain,"]
439 #[doc = "- 2 - `heavySnowfall` - in case the type of precipitation is heavy snow fall,"]
440 #[doc = "- 3 - `softHail` - in case the type of precipitation is soft hail."]
441 #[doc = "- 4-255 - are reserved for future usage"]
442 #[doc = ""]
443 #[doc = "\n\n@category: Traffic information"]
444 #[doc = "\n\n@revision: V1.3.1"]
445 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
446 #[rasn(
447 delegate,
448 identifier = "AdverseWeatherCondition-PrecipitationSubCauseCode",
449 value("0..=255")
450 )]
451 pub struct AdverseWeatherConditionPrecipitationSubCauseCode(pub u8);
452
453 #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-Visibility`."]
454 #[doc = ""]
455 #[doc = "The value shall be set to:"]
456 #[doc = "- 0 - `unavailable` - in case information on the cause of low visibility is unavailable,"]
457 #[doc = "- 1 - `fog` - in case the cause of low visibility is fog,"]
458 #[doc = "- 2 - `smoke` - in case the cause of low visibility is smoke,"]
459 #[doc = "- 3 - `heavySnowfall` - in case the cause of low visibility is heavy snow fall,"]
460 #[doc = "- 4 - `heavyRain` - in case the cause of low visibility is heavy rain,"]
461 #[doc = "- 5 - `heavyHail` - in case the cause of low visibility is heavy hail,"]
462 #[doc = "- 6 - `lowSunGlare` - in case the cause of low visibility is sun glare,"]
463 #[doc = "- 7 - `sandstorms` - in case the cause of low visibility is sand storm,"]
464 #[doc = "- 8 - `swarmsOfInsects`- in case the cause of low visibility is swarm of insects."]
465 #[doc = "- 9-255 - are reserved for future usage"]
466 #[doc = ""]
467 #[doc = "\n\n@category: Traffic information"]
468 #[doc = "\n\n@revision: V1.3.1"]
469 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
470 #[rasn(
471 delegate,
472 identifier = "AdverseWeatherCondition-VisibilitySubCauseCode",
473 value("0..=255")
474 )]
475 pub struct AdverseWeatherConditionVisibilitySubCauseCode(pub u8);
476
477 #[doc = "This DE represents the air humidity in tenths of percent."]
478 #[doc = ""]
479 #[doc = "The value shall be set to:"]
480 #[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."]
481 #[doc = "- `1001` indicates that the air humidity is unavailable."]
482 #[doc = ""]
483 #[doc = "\n\n@category: Basic information"]
484 #[doc = "\n\n@unit: 0,1 % "]
485 #[doc = "\n\n@revision: created in V2.1.1"]
486 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
487 #[rasn(delegate, value("1..=1001"))]
488 pub struct AirHumidity(pub u16);
489
490 #[doc = "This DF provides the altitude and confidence level of an altitude information in a WGS84 coordinate system."]
491 #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
492 #[doc = ""]
493 #[doc = "It shall include the following components: "]
494 #[doc = ""]
495 #[doc = "- @field altitudeValue: altitude of a geographical point."]
496 #[doc = ""]
497 #[doc = "- @field altitudeConfidence: confidence level of the altitudeValue."]
498 #[doc = ""]
499 #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref AltitudeWithConfidence instead. "]
500 #[doc = "\n\n@category: GeoReference information"]
501 #[doc = "\n\n@revision: Description revised in V2.1.1"]
502 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
503 #[rasn(automatic_tags)]
504 pub struct Altitude {
505 #[rasn(identifier = "altitudeValue")]
506 pub altitude_value: AltitudeValue,
507 #[rasn(identifier = "altitudeConfidence")]
508 pub altitude_confidence: AltitudeConfidence,
509 }
510 impl Altitude {
511 pub fn new(altitude_value: AltitudeValue, altitude_confidence: AltitudeConfidence) -> Self {
512 Self {
513 altitude_value,
514 altitude_confidence,
515 }
516 }
517 }
518
519 #[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 %."]
520 #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
521 #[doc = ""]
522 #[doc = "The value shall be set to: "]
523 #[doc = " - 0 - `alt-000-01` - if the confidence value is equal to or less than 0,01 metre,"]
524 #[doc = " - 1 - `alt-000-02` - if the confidence value is equal to or less than 0,02 metre and greater than 0,01 metre,"]
525 #[doc = " - 2 - `alt-000-05` - if the confidence value is equal to or less than 0,05 metre and greater than 0,02 metre, "]
526 #[doc = " - 3 - `alt-000-10` - if the confidence value is equal to or less than 0,1 metre and greater than 0,05 metre, "]
527 #[doc = " - 4 - `alt-000-20` - if the confidence value is equal to or less than 0,2 metre and greater than 0,1 metre, "]
528 #[doc = " - 5 - `alt-000-50` - if the confidence value is equal to or less than 0,5 metre and greater than 0,2 metre, "]
529 #[doc = " - 6 - `alt-001-00` - if the confidence value is equal to or less than 1 metre and greater than 0,5 metre, "]
530 #[doc = " - 7 - `alt-002-00` - if the confidence value is equal to or less than 2 metres and greater than 1 metre, "]
531 #[doc = " - 8 - `alt-005-00` - if the confidence value is equal to or less than 5 metres and greater than 2 metres, "]
532 #[doc = " - 9 - `alt-010-00` - if the confidence value is equal to or less than 10 metres and greater than 5 metres, "]
533 #[doc = " - 10 - `alt-020-00` - if the confidence value is equal to or less than 20 metres and greater than 10 metres, "]
534 #[doc = " - 11 - `alt-050-00` - if the confidence value is equal to or less than 50 metres and greater than 20 metres, "]
535 #[doc = " - 12 - `alt-100-00` - if the confidence value is equal to or less than 100 metres and greater than 50 metres, "]
536 #[doc = " - 13 - `alt-200-00` - if the confidence value is equal to or less than 200 metres and greater than 100 metres, "]
537 #[doc = " - 14 - `outOfRange` - if the confidence value is out of range, i.e. greater than 200 metres,"]
538 #[doc = " - 15 - `unavailable` - if the confidence value is unavailable. "]
539 #[doc = ""]
540 #[doc = "\n\n@note: The fact that an altitude value is received with confidence value set to `unavailable(15)` can be caused"]
541 #[doc = "by several reasons, such as:"]
542 #[doc = "- the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
543 #[doc = "- the sensor cannot calculate the accuracy due to lack of variables, or"]
544 #[doc = "- there has been a vehicle bus (e.g. CAN bus) error."]
545 #[doc = "In all 3 cases above, the altitude value may be valid and used by the application."]
546 #[doc = ""]
547 #[doc = "\n\n@note: If an altitude value is received and its confidence value is set to `outOfRange(14)`, it means that the "]
548 #[doc = "altitude value is not valid and therefore cannot be trusted. Such value is not useful for the application. "]
549 #[doc = ""]
550 #[doc = "\n\n@category: GeoReference information"]
551 #[doc = "\n\n@revision: Description revised in V2.1.1"]
552 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
553 #[rasn(enumerated)]
554 pub enum AltitudeConfidence {
555 #[rasn(identifier = "alt-000-01")]
556 alt_000_01 = 0,
557 #[rasn(identifier = "alt-000-02")]
558 alt_000_02 = 1,
559 #[rasn(identifier = "alt-000-05")]
560 alt_000_05 = 2,
561 #[rasn(identifier = "alt-000-10")]
562 alt_000_10 = 3,
563 #[rasn(identifier = "alt-000-20")]
564 alt_000_20 = 4,
565 #[rasn(identifier = "alt-000-50")]
566 alt_000_50 = 5,
567 #[rasn(identifier = "alt-001-00")]
568 alt_001_00 = 6,
569 #[rasn(identifier = "alt-002-00")]
570 alt_002_00 = 7,
571 #[rasn(identifier = "alt-005-00")]
572 alt_005_00 = 8,
573 #[rasn(identifier = "alt-010-00")]
574 alt_010_00 = 9,
575 #[rasn(identifier = "alt-020-00")]
576 alt_020_00 = 10,
577 #[rasn(identifier = "alt-050-00")]
578 alt_050_00 = 11,
579 #[rasn(identifier = "alt-100-00")]
580 alt_100_00 = 12,
581 #[rasn(identifier = "alt-200-00")]
582 alt_200_00 = 13,
583 outOfRange = 14,
584 unavailable = 15,
585 }
586
587 #[doc = "This DE represents the altitude value in a WGS84 coordinate system."]
588 #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
589 #[doc = ""]
590 #[doc = "The value shall be set to: "]
591 #[doc = "- `-100 000` if the altitude is equal to or less than -1 000 m,"]
592 #[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,"]
593 #[doc = "- `800 000` if the altitude greater than 7 999,99 m,"]
594 #[doc = "- `800 001` if the information is not available."]
595 #[doc = ""]
596 #[doc = "\n\n@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."]
597 #[doc = "\n\n@unit: 0,01 metre"]
598 #[doc = "\n\n@category: GeoReference information"]
599 #[doc = "\n\n@revision: Description revised in V2.1.1 (definition of 800 000 has slightly changed) "]
600 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
601 #[rasn(delegate, value("-100000..=800001"))]
602 pub struct AltitudeValue(pub i32);
603
604 #[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 %."]
605 #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
606 #[doc = ""]
607 #[doc = "The value shall be set to: "]
608 #[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,"]
609 #[doc = "- `126` if the accuracy is out of range, i.e. greater than 12,5 degrees,"]
610 #[doc = "- `127` if the accuracy information is not available."]
611 #[doc = ""]
612 #[doc = "\n\n@unit: 0,1 degrees"]
613 #[doc = "\n\n@category: Basic information"]
614 #[doc = "\n\n@revision: Created in V2.1.1"]
615 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
616 #[rasn(delegate, value("1..=127"))]
617 pub struct AngleConfidence(pub u8);
618
619 #[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 %."]
620 #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
621 #[doc = "For correlation computation, maximum interval levels shall be assumed."]
622 #[doc = ""]
623 #[doc = "The value shall be set to:"]
624 #[doc = "- 0 - `degSecSquared-01` - if the accuracy is equal to or less than 1 degree/second^2,"]
625 #[doc = "- 1 - `degSecSquared-02` - if the accuracy is equal to or less than 2 degrees/second^2 and greater than 1 degree/second^2,"]
626 #[doc = "- 2 - `degSecSquared-05` - if the accuracy is equal to or less than 5 degrees/second^2 and greater than 1 degree/second^2,"]
627 #[doc = "- 3 - `degSecSquared-10` - if the accuracy is equal to or less than 10 degrees/second^2 and greater than 5 degrees/second^2,"]
628 #[doc = "- 4 - `degSecSquared-20` - if the accuracy is equal to or less than 20 degrees/second^2 and greater than 10 degrees/second^2,"]
629 #[doc = "- 5 - `degSecSquared-50` - if the accuracy is equal to or less than 50 degrees/second^2 and greater than 20 degrees/second^2,"]
630 #[doc = "- 6 - `outOfRange` - if the accuracy is out of range, i.e. greater than 50 degrees/second^2,"]
631 #[doc = "- 7 - `unavailable` - if the accuracy information is unavailable."]
632 #[doc = ""]
633 #[doc = "\n\n@category: Kinematic information"]
634 #[doc = "\n\n@revision: Created in V2.1.1"]
635 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
636 #[rasn(enumerated)]
637 pub enum AngularAccelerationConfidence {
638 #[rasn(identifier = "degSecSquared-01")]
639 degSecSquared_01 = 0,
640 #[rasn(identifier = "degSecSquared-02")]
641 degSecSquared_02 = 1,
642 #[rasn(identifier = "degSecSquared-05")]
643 degSecSquared_05 = 2,
644 #[rasn(identifier = "degSecSquared-10")]
645 degSecSquared_10 = 3,
646 #[rasn(identifier = "degSecSquared-20")]
647 degSecSquared_20 = 4,
648 #[rasn(identifier = "degSecSquared-50")]
649 degSecSquared_50 = 5,
650 outOfRange = 6,
651 unavailable = 7,
652 }
653
654 #[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 %."]
655 #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
656 #[doc = "For correlation computation, maximum interval levels can be assumed."]
657 #[doc = ""]
658 #[doc = "The value shall be set to:"]
659 #[doc = "- 0 - `degSec-01` - if the accuracy is equal to or less than 1 degree/second,"]
660 #[doc = "- 1 - `degSec-02` - if the accuracy is equal to or less than 2 degrees/second and greater than 1 degree/second,"]
661 #[doc = "- 2 - `degSec-05` - if the accuracy is equal to or less than 5 degrees/second and greater than 2 degrees/second,"]
662 #[doc = "- 3 - `degSec-10` - if the accuracy is equal to or less than 10 degrees/second and greater than 5 degrees/second,"]
663 #[doc = "- 4 - `degSec-20` - if the accuracy is equal to or less than 20 degrees/second and greater than 10 degrees/second,"]
664 #[doc = "- 5 - `degSec-50` - if the accuracy is equal to or less than 50 degrees/second and greater than 20 degrees/second,"]
665 #[doc = "- 6 - `outOfRange` - if the accuracy is out of range, i.e. greater than 50 degrees/second,"]
666 #[doc = "- 7 - `unavailable` - if the accuracy information is unavailable."]
667 #[doc = ""]
668 #[doc = "\n\n@category: Kinematic information"]
669 #[doc = "\n\n@revision: Created in V2.1.1"]
670 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
671 #[rasn(enumerated)]
672 pub enum AngularSpeedConfidence {
673 #[rasn(identifier = "degSec-01")]
674 degSec_01 = 0,
675 #[rasn(identifier = "degSec-02")]
676 degSec_02 = 1,
677 #[rasn(identifier = "degSec-05")]
678 degSec_05 = 2,
679 #[rasn(identifier = "degSec-10")]
680 degSec_10 = 3,
681 #[rasn(identifier = "degSec-20")]
682 degSec_20 = 4,
683 #[rasn(identifier = "degSec-50")]
684 degSec_50 = 5,
685 outOfRange = 6,
686 unavailable = 7,
687 }
688
689 #[doc = "This DE indicates the number of axles of a passing train."]
690 #[doc = ""]
691 #[doc = "The value shall be set to:"]
692 #[doc = "- `n` (`n > 2` and `n < 1001`) indicates that the train has n x axles,"]
693 #[doc = "- `1001`indicates that the number of axles is out of range,"]
694 #[doc = "- `1002` the information is unavailable."]
695 #[doc = ""]
696 #[doc = ""]
697 #[doc = "\n\n@unit: Number of axles"]
698 #[doc = "\n\n@category: Vehicle information"]
699 #[doc = "\n\n@revision: Created in V2.1.1"]
700 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
701 #[rasn(delegate, value("2..=1002"))]
702 pub struct AxlesCount(pub u16);
703
704 #[doc = "This DE represents the measured uncompensated atmospheric pressure."]
705 #[doc = ""]
706 #[doc = "The value shall be set to:"]
707 #[doc = "- `2999` indicates that the applicable value is less than 29990 Pa,"]
708 #[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, "]
709 #[doc = "- `12001` indicates that the values is greater than 120000 Pa,"]
710 #[doc = "- `12002` indicates that the information is not available."]
711 #[doc = ""]
712 #[doc = "\n\n@category: Basic information"]
713 #[doc = "\n\n@unit: 10 Pascal"]
714 #[doc = "\n\n@revision: Created in V2.1.1"]
715 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
716 #[rasn(delegate, value("2999..=12002"))]
717 pub struct BarometricPressure(pub u16);
718
719 #[doc = "This DE represents a general container for usage in various types of messages."]
720 #[doc = ""]
721 #[doc = "It shall include the following components: "]
722 #[doc = ""]
723 #[doc = "- @field stationType: the type of technical context in which the ITS-S that has generated the message is integrated in."]
724 #[doc = ""]
725 #[doc = "- @field referencePosition: the reference position of the station that has generated the message that contains the basic container."]
726 #[doc = ""]
727 #[doc = "\n\n@category: Basic information"]
728 #[doc = "\n\n@revision: Created in V2.1.1"]
729 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
730 #[rasn(automatic_tags)]
731 #[non_exhaustive]
732 pub struct BasicContainer {
733 #[rasn(identifier = "stationType")]
734 pub station_type: TrafficParticipantType,
735 #[rasn(identifier = "referencePosition")]
736 pub reference_position: ReferencePositionWithConfidence,
737 }
738 impl BasicContainer {
739 pub fn new(
740 station_type: TrafficParticipantType,
741 reference_position: ReferencePositionWithConfidence,
742 ) -> Self {
743 Self {
744 station_type,
745 reference_position,
746 }
747 }
748 }
749
750 #[doc = "This DF provides information about the configuration of a road section in terms of lanes using a list of @ref LanePositionAndType ."]
751 #[doc = ""]
752 #[doc = "\n\n@category: Road topology information"]
753 #[doc = "\n\n@revision: Created in V2.2.1"]
754 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
755 #[rasn(delegate, size("1..=16", extensible))]
756 pub struct BasicLaneConfiguration(pub SequenceOf<BasicLaneInformation>);
757
758 #[doc = "This DF provides basic information about a single lane of a road segment."]
759 #[doc = "It includes the following components: "]
760 #[doc = ""]
761 #[doc = "- @field laneNumber: the number associated to the lane that provides a transversal identification. "]
762 #[doc = ""]
763 #[doc = "- @field direction: the direction of traffic flow allowed on the lane. "]
764 #[doc = ""]
765 #[doc = "- @field laneWidth: the optional width of the lane."]
766 #[doc = ""]
767 #[doc = "- @field connectingLane: the number of the connecting lane in the next road section, i.e. the number of the lane which the vehicle will use when travelling from one section to the next,"]
768 #[doc = "if it does not actively change lanes. If this component is absent, the lane name number remains the same in the next section."]
769 #[doc = ""]
770 #[doc = "- @field connectingRoadSection: the identifier of the next road section in direction of traffic, that is connecting to the current road section. "]
771 #[doc = "If this component is absent, the connecting road section is the one following the instance where this DF is placed in the @ref RoadConfigurationSectionList."]
772 #[doc = ""]
773 #[doc = "\n\n@category: Road topology information"]
774 #[doc = "\n\n@revision: Created in V2.2.1"]
775 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
776 #[rasn(automatic_tags)]
777 #[non_exhaustive]
778 pub struct BasicLaneInformation {
779 #[rasn(identifier = "laneNumber")]
780 pub lane_number: LanePosition,
781 pub direction: Direction,
782 #[rasn(identifier = "laneWidth")]
783 pub lane_width: Option<LaneWidth>,
784 #[rasn(identifier = "connectingLane")]
785 pub connecting_lane: Option<LanePosition>,
786 #[rasn(identifier = "connectingRoadSection")]
787 pub connecting_road_section: Option<RoadSectionId>,
788 }
789 impl BasicLaneInformation {
790 pub fn new(
791 lane_number: LanePosition,
792 direction: Direction,
793 lane_width: Option<LaneWidth>,
794 connecting_lane: Option<LanePosition>,
795 connecting_road_section: Option<RoadSectionId>,
796 ) -> Self {
797 Self {
798 lane_number,
799 direction,
800 lane_width,
801 connecting_lane,
802 connecting_road_section,
803 }
804 }
805 }
806
807 #[doc = "This DE indicates the cardinal number of bogies of a train."]
808 #[doc = ""]
809 #[doc = "The value shall be set to: "]
810 #[doc = "- `n` (`n > 1` and `n < 100`) indicates that the train has n x bogies,"]
811 #[doc = "- `100`indicates that the number of bogies is out of range, "]
812 #[doc = "- `101` the information is unavailable."]
813 #[doc = ""]
814 #[doc = "\n\n@unit: Number of bogies"]
815 #[doc = "\n\n@category: Vehicle information"]
816 #[doc = "\n\n@revision: Created in V2.1.1"]
817 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
818 #[rasn(delegate, value("2..=101"))]
819 pub struct BogiesCount(pub u8);
820
821 #[doc = "The DE represents a cardinal number that counts the size of a set. "]
822 #[doc = ""]
823 #[doc = "\n\n@category: Basic information"]
824 #[doc = "\n\n@revision: Created in V2.1.1"]
825 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
826 #[rasn(delegate, value("0..=255"))]
827 pub struct CardinalNumber1B(pub u8);
828
829 #[doc = "The DE represents a cardinal number that counts the size of a set. "]
830 #[doc = ""]
831 #[doc = "\n\n@category: Basic information"]
832 #[doc = "\n\n@revision: Created in V2.1.1"]
833 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
834 #[rasn(delegate, value("1..=8"))]
835 pub struct CardinalNumber3b(pub u8);
836
837 #[doc = "This DF represents a general Data Frame to describe an angle component along with a confidence value in a cartesian coordinate system."]
838 #[doc = ""]
839 #[doc = "It shall include the following components: "]
840 #[doc = ""]
841 #[doc = "- @field value: The angle value which can be estimated as the mean of the current distribution."]
842 #[doc = ""]
843 #[doc = "- @field confidence: The confidence value associated to the provided value."]
844 #[doc = ""]
845 #[doc = "\n\n@category: Basic information"]
846 #[doc = "\n\n@revision: Created in V2.1.1"]
847 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
848 #[rasn(automatic_tags)]
849 pub struct CartesianAngle {
850 pub value: CartesianAngleValue,
851 pub confidence: AngleConfidence,
852 }
853 impl CartesianAngle {
854 pub fn new(value: CartesianAngleValue, confidence: AngleConfidence) -> Self {
855 Self { value, confidence }
856 }
857 }
858
859 #[doc = "This DE represents an angle value described in a local Cartesian coordinate system, per default counted positive in"]
860 #[doc = "a right-hand local coordinate system from the abscissa."]
861 #[doc = ""]
862 #[doc = "The value shall be set to: "]
863 #[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,"]
864 #[doc = "- `3601` if the information is not available."]
865 #[doc = ""]
866 #[doc = "The value 3600 shall not be used. "]
867 #[doc = ""]
868 #[doc = "\n\n@unit 0,1 degrees"]
869 #[doc = "\n\n@category: Basic information"]
870 #[doc = "\n\n@revision: Created in V2.1.1, description and value for 3601 corrected in V2.2.1"]
871 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
872 #[rasn(delegate, value("0..=3601"))]
873 pub struct CartesianAngleValue(pub u16);
874
875 #[doc = "This DF represents a general Data Frame to describe an angular acceleration component along with a confidence value in a cartesian coordinate system."]
876 #[doc = ""]
877 #[doc = "It shall include the following components: "]
878 #[doc = ""]
879 #[doc = "- @field value: The angular acceleration component value."]
880 #[doc = ""]
881 #[doc = "- @field confidence: The confidence value associated to the provided value."]
882 #[doc = ""]
883 #[doc = "\n\n@category: Kinematic information"]
884 #[doc = "\n\n@revision: Created in V2.1.1 "]
885 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
886 #[rasn(automatic_tags)]
887 pub struct CartesianAngularAccelerationComponent {
888 pub value: CartesianAngularAccelerationComponentValue,
889 pub confidence: AngularAccelerationConfidence,
890 }
891 impl CartesianAngularAccelerationComponent {
892 pub fn new(
893 value: CartesianAngularAccelerationComponentValue,
894 confidence: AngularAccelerationConfidence,
895 ) -> Self {
896 Self { value, confidence }
897 }
898 }
899
900 #[doc = "This DE represents an angular acceleration value described in a local Cartesian coordinate system, per default counted positive in"]
901 #[doc = "a right-hand local coordinate system from the abscissa."]
902 #[doc = ""]
903 #[doc = " * The value shall be set to: "]
904 #[doc = "- `-255` if the acceleration is equal to or less than -255 degrees/s^2,"]
905 #[doc = "- `n` (`n > -255` and `n < 255`) if the acceleration is equal to or less than n x 1 degree/s^2,"]
906 #[doc = " and greater than `(n-1)` x 0,01 degree/s^2,"]
907 #[doc = "- `255` if the acceleration is greater than 254 degrees/s^2,"]
908 #[doc = "- `256` if the information is unavailable."]
909 #[doc = ""]
910 #[doc = "\n\n@unit: degree/s^2 (degrees per second squared)"]
911 #[doc = "\n\n@category: Kinematic information"]
912 #[doc = "\n\n@revision: Created in V2.1.1"]
913 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
914 #[rasn(delegate, value("-255..=256"))]
915 pub struct CartesianAngularAccelerationComponentValue(pub i16);
916
917 #[doc = "This DF represents an angular velocity component along with a confidence value in a cartesian coordinate system."]
918 #[doc = ""]
919 #[doc = "It shall include the following components: "]
920 #[doc = ""]
921 #[doc = "- @field value: The angular velocity component."]
922 #[doc = ""]
923 #[doc = "- @field confidence: The confidence value associated to the provided value."]
924 #[doc = ""]
925 #[doc = "\n\n@category: Kinematic information"]
926 #[doc = "\n\n@revision: Created in V2.1.1"]
927 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
928 #[rasn(automatic_tags)]
929 pub struct CartesianAngularVelocityComponent {
930 pub value: CartesianAngularVelocityComponentValue,
931 pub confidence: AngularSpeedConfidence,
932 }
933 impl CartesianAngularVelocityComponent {
934 pub fn new(
935 value: CartesianAngularVelocityComponentValue,
936 confidence: AngularSpeedConfidence,
937 ) -> Self {
938 Self { value, confidence }
939 }
940 }
941
942 #[doc = "This DE represents an angular velocity component described in a local Cartesian coordinate system, per default counted positive in"]
943 #[doc = "a right-hand local coordinate system from the abscissa."]
944 #[doc = ""]
945 #[doc = "The value shall be set to: "]
946 #[doc = "- `-255` if the velocity is equal to or less than -255 degrees/s,"]
947 #[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,"]
948 #[doc = "- `255` if the velocity is greater than 254 degrees/s,"]
949 #[doc = "- `256` if the information is unavailable."]
950 #[doc = ""]
951 #[doc = "\n\n@unit: degree/s"]
952 #[doc = "\n\n@category: Kinematic information"]
953 #[doc = "\n\n@revision: Created in V2.1.1"]
954 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
955 #[rasn(delegate, value("-255..=256"))]
956 pub struct CartesianAngularVelocityComponentValue(pub i16);
957
958 #[doc = "This DF represents the value of a cartesian coordinate with a range of -327,68 metres to +327,66 metres."]
959 #[doc = ""]
960 #[doc = "The value shall be set to:"]
961 #[doc = "- `-32 768` if the longitudinal offset is out of range, i.e. less than or equal to -327,68 metres,"]
962 #[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,"]
963 #[doc = "- `32 767` if the longitudinal offset is out of range, i.e. greater than + 327,66 metres."]
964 #[doc = ""]
965 #[doc = "\n\n@unit 0,01 m"]
966 #[doc = "\n\n@category: Basic information"]
967 #[doc = "\n\n@revision: Created in V2.1.1"]
968 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
969 #[rasn(delegate, value("-32768..=32767"))]
970 pub struct CartesianCoordinate(pub i16);
971
972 #[doc = "This DF represents the value of a cartesian coordinate with a range of -1 310,72 metres to +1 310,70 metres."]
973 #[doc = ""]
974 #[doc = "The value shall be set to:"]
975 #[doc = "- `-131072` if the longitudinal offset is out of range, i.e. less than or equal to -1 310,72 metres,"]
976 #[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,"]
977 #[doc = "- `131 071` if the longitudinal offset is out of range, i.e. greater than + 1 310,70 metres."]
978 #[doc = " "]
979 #[doc = "\n\n@unit 0,01 m"]
980 #[doc = "\n\n@category: Basic information"]
981 #[doc = "\n\n@revision: Created in V2.1.1"]
982 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
983 #[rasn(delegate, value("-131072..=131071"))]
984 pub struct CartesianCoordinateLarge(pub i32);
985
986 #[doc = "This DF represents the value of a cartesian coordinate with a range of -30,94 metres to +10,00 metres."]
987 #[doc = ""]
988 #[doc = "The value shall be set to:"]
989 #[doc = "- `3094` if the longitudinal offset is out of range, i.e. less than or equal to -30,94 metres,"]
990 #[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,"]
991 #[doc = "- `1001` if the longitudinal offset is out of range, i.e. greater than 10 metres."]
992 #[doc = ""]
993 #[doc = "\n\n@unit 0,01 m"]
994 #[doc = "\n\n@category: Basic information"]
995 #[doc = "\n\n@revision: Created in V2.1.1"]
996 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
997 #[rasn(delegate, value("-3094..=1001"))]
998 pub struct CartesianCoordinateSmall(pub i16);
999
1000 #[doc = "This DF represents a coordinate along with a confidence value in a cartesian reference system."]
1001 #[doc = ""]
1002 #[doc = "It shall include the following components: "]
1003 #[doc = ""]
1004 #[doc = "- @field value: the coordinate value, which can be estimated as the mean of the current distribution."]
1005 #[doc = ""]
1006 #[doc = "- @field confidence: the coordinate confidence value associated to the provided value."]
1007 #[doc = ""]
1008 #[doc = "\n\n@category: GeoReference information"]
1009 #[doc = "\n\n@revision: Created in V2.1.1"]
1010 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1011 #[rasn(automatic_tags)]
1012 pub struct CartesianCoordinateWithConfidence {
1013 pub value: CartesianCoordinateLarge,
1014 pub confidence: CoordinateConfidence,
1015 }
1016 impl CartesianCoordinateWithConfidence {
1017 pub fn new(value: CartesianCoordinateLarge, confidence: CoordinateConfidence) -> Self {
1018 Self { value, confidence }
1019 }
1020 }
1021
1022 #[doc = "This DF represents a position in a two- or three-dimensional cartesian coordinate system."]
1023 #[doc = ""]
1024 #[doc = "It shall include the following components: "]
1025 #[doc = ""]
1026 #[doc = "- @field xCoordinate: the X coordinate value."]
1027 #[doc = ""]
1028 #[doc = "- @field yCoordinate: the Y coordinate value."]
1029 #[doc = ""]
1030 #[doc = "- @field zCoordinate: the optional Z coordinate value."]
1031 #[doc = ""]
1032 #[doc = "\n\n@category: GeoReference information"]
1033 #[doc = "\n\n@revision: Created in V2.1.1"]
1034 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1035 #[rasn(automatic_tags)]
1036 pub struct CartesianPosition3d {
1037 #[rasn(identifier = "xCoordinate")]
1038 pub x_coordinate: CartesianCoordinate,
1039 #[rasn(identifier = "yCoordinate")]
1040 pub y_coordinate: CartesianCoordinate,
1041 #[rasn(identifier = "zCoordinate")]
1042 pub z_coordinate: Option<CartesianCoordinate>,
1043 }
1044 impl CartesianPosition3d {
1045 pub fn new(
1046 x_coordinate: CartesianCoordinate,
1047 y_coordinate: CartesianCoordinate,
1048 z_coordinate: Option<CartesianCoordinate>,
1049 ) -> Self {
1050 Self {
1051 x_coordinate,
1052 y_coordinate,
1053 z_coordinate,
1054 }
1055 }
1056 }
1057
1058 #[doc = "This DF represents a position in a two- or three-dimensional cartesian coordinate system with an associated confidence level for each coordinate."]
1059 #[doc = ""]
1060 #[doc = "It shall include the following components: "]
1061 #[doc = ""]
1062 #[doc = "- @field xCoordinate: the X coordinate value with the associated confidence level."]
1063 #[doc = ""]
1064 #[doc = "- @field yCoordinate: the Y coordinate value with the associated confidence level."]
1065 #[doc = ""]
1066 #[doc = "- @field zCoordinate: the optional Z coordinate value with the associated confidence level."]
1067 #[doc = ""]
1068 #[doc = "\n\n@category: GeoReference information"]
1069 #[doc = "\n\n@revision: Created in V2.1.1"]
1070 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1071 #[rasn(automatic_tags)]
1072 pub struct CartesianPosition3dWithConfidence {
1073 #[rasn(identifier = "xCoordinate")]
1074 pub x_coordinate: CartesianCoordinateWithConfidence,
1075 #[rasn(identifier = "yCoordinate")]
1076 pub y_coordinate: CartesianCoordinateWithConfidence,
1077 #[rasn(identifier = "zCoordinate")]
1078 pub z_coordinate: Option<CartesianCoordinateWithConfidence>,
1079 }
1080 impl CartesianPosition3dWithConfidence {
1081 pub fn new(
1082 x_coordinate: CartesianCoordinateWithConfidence,
1083 y_coordinate: CartesianCoordinateWithConfidence,
1084 z_coordinate: Option<CartesianCoordinateWithConfidence>,
1085 ) -> Self {
1086 Self {
1087 x_coordinate,
1088 y_coordinate,
1089 z_coordinate,
1090 }
1091 }
1092 }
1093
1094 #[doc = "This DF is a representation of the cause code value of a traffic event. "]
1095 #[doc = ""]
1096 #[doc = "It shall include the following components: "]
1097 #[doc = ""]
1098 #[doc = "- @field causeCode: the main cause of a detected event. "]
1099 #[doc = ""]
1100 #[doc = "- @field subCauseCode: the subordinate cause of a detected event. "]
1101 #[doc = ""]
1102 #[doc = "The semantics of the entire DF are completely defined by the component causeCode. The interpretation of the subCauseCode may "]
1103 #[doc = "provide additional information that is not strictly necessary to understand the causeCode itself, and is therefore optional."]
1104 #[doc = ""]
1105 #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref CauseCodeV2 instead. "]
1106 #[doc = ""]
1107 #[doc = "\n\n@category: Traffic information"]
1108 #[doc = "\n\n@revision: Editorial update in V2.1.1"]
1109 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1110 #[rasn(automatic_tags)]
1111 #[non_exhaustive]
1112 pub struct CauseCode {
1113 #[rasn(identifier = "causeCode")]
1114 pub cause_code: CauseCodeType,
1115 #[rasn(identifier = "subCauseCode")]
1116 pub sub_cause_code: SubCauseCodeType,
1117 }
1118 impl CauseCode {
1119 pub fn new(cause_code: CauseCodeType, sub_cause_code: SubCauseCodeType) -> Self {
1120 Self {
1121 cause_code,
1122 sub_cause_code,
1123 }
1124 }
1125 }
1126
1127 #[doc = "This DF is a representation of the cause code value and associated sub cause code value of a traffic event. "]
1128 #[doc = ""]
1129 #[doc = "The following options are available:"]
1130 #[doc = "- 0 - reserved for future use,"]
1131 #[doc = "- 1 - `trafficCondition1` - in case the type of event is an abnormal traffic condition,"]
1132 #[doc = "- 2 - `accident2` - in case the type of event is a road accident,"]
1133 #[doc = "- 3 - `roadworks3` - in case the type of event is roadwork,"]
1134 #[doc = "- 4 - reserved for future usage,"]
1135 #[doc = "- 5 - `impassability5` - in case the type of event is unmanaged road blocking, referring to any"]
1136 #[doc = " blocking of a road, partial or total, which has not been adequately secured and signposted,"]
1137 #[doc = "- 6 - `adverseWeatherCondition-Adhesion6` - in case the type of event is low adhesion,"]
1138 #[doc = "- 7 - `aquaplaning7` - danger of aquaplaning on the road,"]
1139 #[doc = "- 8 - reserved for future usage,"]
1140 #[doc = "- 9 - `hazardousLocation-SurfaceCondition9` - in case the type of event is abnormal road surface condition,"]
1141 #[doc = "- 10 - `hazardousLocation-ObstacleOnTheRoad10` - in case the type of event is obstacle on the road,"]
1142 #[doc = "- 11 - `hazardousLocation-AnimalOnTheRoad11` - in case the type of event is animal on the road,"]
1143 #[doc = "- 12 - `humanPresenceOnTheRoad` - in case the type of event is presence of human vulnerable road user on the road,"]
1144 #[doc = "- 13 - reserved for future usage,"]
1145 #[doc = "- 14 - `wrongWayDriving14` - in case the type of the event is vehicle driving in wrong way,"]
1146 #[doc = "- 15 - `rescueAndRecoveryWorkInProgress15` - in case the type of event is rescue and recovery work for accident or for a road hazard in progress,"]
1147 #[doc = "- 16 - reserved for future usage,"]
1148 #[doc = "- 17 - `adverseWeatherCondition-ExtremeWeatherCondition17` - in case the type of event is extreme weather condition,"]
1149 #[doc = "- 18 - `adverseWeatherCondition-Visibility18` - in case the type of event is low visibility,"]
1150 #[doc = "- 19 - `adverseWeatherCondition-Precipitation19` - in case the type of event is precipitation,"]
1151 #[doc = "- 20 - `violence20` - in case the the type of event is human violence on or near the road,"]
1152 #[doc = "- 21-25 - reserved for future usage,"]
1153 #[doc = "- 26 - `slowVehicle26` - in case the type of event is slow vehicle driving on the road,"]
1154 #[doc = "- 27 - `dangerousEndOfQueue27` - in case the type of event is dangerous end of vehicle queue,"]
1155 #[doc = "- 28 - `publicTransportVehicleApproaching - in case the type of event is a public transport vehicle approaching, with a priority defined by applicable traffic regulations,"]
1156 #[doc = "- 29-90 - are reserved for future usage,"]
1157 #[doc = "- 91 - `vehicleBreakdown91` - in case the type of event is break down vehicle on the road,"]
1158 #[doc = "- 92 - `postCrash92` - in case the type of event is a detected crash,"]
1159 #[doc = "- 93 - `humanProblem93` - in case the type of event is human health problem in vehicles involved in traffic,"]
1160 #[doc = "- 94 - `stationaryVehicle94` - in case the type of event is stationary vehicle,"]
1161 #[doc = "- 95 - `emergencyVehicleApproaching95` - in case the type of event is an approaching vehicle operating on a mission for which the "]
1162 #[doc = " applicable traffic regulations provide it with defined priority rights in traffic. "]
1163 #[doc = "- 96 - `hazardousLocation-DangerousCurve96` - in case the type of event is dangerous curve,"]
1164 #[doc = "- 97 - `collisionRisk97` - in case the type of event is a collision risk,"]
1165 #[doc = "- 98 - `signalViolation98` - in case the type of event is signal violation,"]
1166 #[doc = "- 99 - `dangerousSituation99` - in case the type of event is dangerous situation in which autonomous safety system in vehicle "]
1167 #[doc = " is activated,"]
1168 #[doc = "- 100 - `railwayLevelCrossing100` - in case the type of event is a railway level crossing. "]
1169 #[doc = "- 101-255 - are reserved for future usage."]
1170 #[doc = ""]
1171 #[doc = "\n\n@note: this DF is defined for use as part of CauseCodeV2. It is recommended to use CauseCodeV2."]
1172 #[doc = "\n\n@category: Traffic information"]
1173 #[doc = "\n\n@revision: Created in V2.1.1, the type of impassability5 changed to ImpassabilitySubCauseCode in V2.2.1, value 28 added in V2.2.1, definition of value 12 and 95 changed in V2.2.1"]
1174 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1175 #[rasn(choice, automatic_tags)]
1176 pub enum CauseCodeChoice {
1177 reserved0(SubCauseCodeType),
1178 trafficCondition1(TrafficConditionSubCauseCode),
1179 accident2(AccidentSubCauseCode),
1180 roadworks3(RoadworksSubCauseCode),
1181 reserved4(SubCauseCodeType),
1182 impassability5(ImpassabilitySubCauseCode),
1183 #[rasn(identifier = "adverseWeatherCondition-Adhesion6")]
1184 adverseWeatherCondition_Adhesion6(AdverseWeatherConditionAdhesionSubCauseCode),
1185 aquaplaning7(SubCauseCodeType),
1186 reserved8(SubCauseCodeType),
1187 #[rasn(identifier = "hazardousLocation-SurfaceCondition9")]
1188 hazardousLocation_SurfaceCondition9(HazardousLocationSurfaceConditionSubCauseCode),
1189 #[rasn(identifier = "hazardousLocation-ObstacleOnTheRoad10")]
1190 hazardousLocation_ObstacleOnTheRoad10(HazardousLocationObstacleOnTheRoadSubCauseCode),
1191 #[rasn(identifier = "hazardousLocation-AnimalOnTheRoad11")]
1192 hazardousLocation_AnimalOnTheRoad11(HazardousLocationAnimalOnTheRoadSubCauseCode),
1193 humanPresenceOnTheRoad12(HumanPresenceOnTheRoadSubCauseCode),
1194 reserved13(SubCauseCodeType),
1195 wrongWayDriving14(WrongWayDrivingSubCauseCode),
1196 rescueAndRecoveryWorkInProgress15(RescueAndRecoveryWorkInProgressSubCauseCode),
1197 reserved16(SubCauseCodeType),
1198 #[rasn(identifier = "adverseWeatherCondition-ExtremeWeatherCondition17")]
1199 adverseWeatherCondition_ExtremeWeatherCondition17(
1200 AdverseWeatherConditionExtremeWeatherConditionSubCauseCode,
1201 ),
1202 #[rasn(identifier = "adverseWeatherCondition-Visibility18")]
1203 adverseWeatherCondition_Visibility18(AdverseWeatherConditionVisibilitySubCauseCode),
1204 #[rasn(identifier = "adverseWeatherCondition-Precipitation19")]
1205 adverseWeatherCondition_Precipitation19(AdverseWeatherConditionPrecipitationSubCauseCode),
1206 violence20(SubCauseCodeType),
1207 reserved21(SubCauseCodeType),
1208 reserved22(SubCauseCodeType),
1209 reserved23(SubCauseCodeType),
1210 reserved24(SubCauseCodeType),
1211 reserved25(SubCauseCodeType),
1212 slowVehicle26(SlowVehicleSubCauseCode),
1213 dangerousEndOfQueue27(DangerousEndOfQueueSubCauseCode),
1214 publicTransportVehicleApproaching28(SubCauseCodeType),
1215 reserved29(SubCauseCodeType),
1216 reserved30(SubCauseCodeType),
1217 reserved31(SubCauseCodeType),
1218 reserved32(SubCauseCodeType),
1219 reserved33(SubCauseCodeType),
1220 reserved34(SubCauseCodeType),
1221 reserved35(SubCauseCodeType),
1222 reserved36(SubCauseCodeType),
1223 reserved37(SubCauseCodeType),
1224 reserved38(SubCauseCodeType),
1225 reserved39(SubCauseCodeType),
1226 reserved40(SubCauseCodeType),
1227 reserved41(SubCauseCodeType),
1228 reserved42(SubCauseCodeType),
1229 reserved43(SubCauseCodeType),
1230 reserved44(SubCauseCodeType),
1231 reserved45(SubCauseCodeType),
1232 reserved46(SubCauseCodeType),
1233 reserved47(SubCauseCodeType),
1234 reserved48(SubCauseCodeType),
1235 reserved49(SubCauseCodeType),
1236 reserved50(SubCauseCodeType),
1237 reserved51(SubCauseCodeType),
1238 reserved52(SubCauseCodeType),
1239 reserved53(SubCauseCodeType),
1240 reserved54(SubCauseCodeType),
1241 reserved55(SubCauseCodeType),
1242 reserved56(SubCauseCodeType),
1243 reserved57(SubCauseCodeType),
1244 reserved58(SubCauseCodeType),
1245 reserved59(SubCauseCodeType),
1246 reserved60(SubCauseCodeType),
1247 reserved61(SubCauseCodeType),
1248 reserved62(SubCauseCodeType),
1249 reserved63(SubCauseCodeType),
1250 reserved64(SubCauseCodeType),
1251 reserved65(SubCauseCodeType),
1252 reserved66(SubCauseCodeType),
1253 reserved67(SubCauseCodeType),
1254 reserved68(SubCauseCodeType),
1255 reserved69(SubCauseCodeType),
1256 reserved70(SubCauseCodeType),
1257 reserved71(SubCauseCodeType),
1258 reserved72(SubCauseCodeType),
1259 reserved73(SubCauseCodeType),
1260 reserved74(SubCauseCodeType),
1261 reserved75(SubCauseCodeType),
1262 reserved76(SubCauseCodeType),
1263 reserved77(SubCauseCodeType),
1264 reserved78(SubCauseCodeType),
1265 reserved79(SubCauseCodeType),
1266 reserved80(SubCauseCodeType),
1267 reserved81(SubCauseCodeType),
1268 reserved82(SubCauseCodeType),
1269 reserved83(SubCauseCodeType),
1270 reserved84(SubCauseCodeType),
1271 reserved85(SubCauseCodeType),
1272 reserved86(SubCauseCodeType),
1273 reserved87(SubCauseCodeType),
1274 reserved88(SubCauseCodeType),
1275 reserved89(SubCauseCodeType),
1276 reserved90(SubCauseCodeType),
1277 vehicleBreakdown91(VehicleBreakdownSubCauseCode),
1278 postCrash92(PostCrashSubCauseCode),
1279 humanProblem93(HumanProblemSubCauseCode),
1280 stationaryVehicle94(StationaryVehicleSubCauseCode),
1281 emergencyVehicleApproaching95(EmergencyVehicleApproachingSubCauseCode),
1282 #[rasn(identifier = "hazardousLocation-DangerousCurve96")]
1283 hazardousLocation_DangerousCurve96(HazardousLocationDangerousCurveSubCauseCode),
1284 collisionRisk97(CollisionRiskSubCauseCode),
1285 signalViolation98(SignalViolationSubCauseCode),
1286 dangerousSituation99(DangerousSituationSubCauseCode),
1287 railwayLevelCrossing100(RailwayLevelCrossingSubCauseCode),
1288 reserved101(SubCauseCodeType),
1289 reserved102(SubCauseCodeType),
1290 reserved103(SubCauseCodeType),
1291 reserved104(SubCauseCodeType),
1292 reserved105(SubCauseCodeType),
1293 reserved106(SubCauseCodeType),
1294 reserved107(SubCauseCodeType),
1295 reserved108(SubCauseCodeType),
1296 reserved109(SubCauseCodeType),
1297 reserved110(SubCauseCodeType),
1298 reserved111(SubCauseCodeType),
1299 reserved112(SubCauseCodeType),
1300 reserved113(SubCauseCodeType),
1301 reserved114(SubCauseCodeType),
1302 reserved115(SubCauseCodeType),
1303 reserved116(SubCauseCodeType),
1304 reserved117(SubCauseCodeType),
1305 reserved118(SubCauseCodeType),
1306 reserved119(SubCauseCodeType),
1307 reserved120(SubCauseCodeType),
1308 reserved121(SubCauseCodeType),
1309 reserved122(SubCauseCodeType),
1310 reserved123(SubCauseCodeType),
1311 reserved124(SubCauseCodeType),
1312 reserved125(SubCauseCodeType),
1313 reserved126(SubCauseCodeType),
1314 reserved127(SubCauseCodeType),
1315 reserved128(SubCauseCodeType),
1316 }
1317
1318 #[doc = "The DE represents the value of the cause code of an event. "]
1319 #[doc = ""]
1320 #[doc = "The value shall be set to:"]
1321 #[doc = "- 0 - reserved for future use,"]
1322 #[doc = "- 1 - `trafficCondition` - in case the type of event is an abnormal traffic condition,"]
1323 #[doc = "- 2 - `accident` - in case the type of event is a road accident,"]
1324 #[doc = "- 3 - `roadworks` - in case the type of event is roadwork,"]
1325 #[doc = "- 4 - reserved for future usage,"]
1326 #[doc = "- 5 - `impassability` - in case the type of event is unmanaged road blocking, referring to any"]
1327 #[doc = " blocking of a road, partial or total, which has not been adequately"]
1328 #[doc = " secured and signposted,"]
1329 #[doc = "- 6 - `adverseWeatherCondition-Adhesion` - in case the type of event is low adhesion,"]
1330 #[doc = "- 7 - `aquaplaning` - danger of aquaplaning on the road,"]
1331 #[doc = "- 8 - reserved for future usage,"]
1332 #[doc = "- 9 - `hazardousLocation-SurfaceCondition` - in case the type of event is abnormal road surface condition,"]
1333 #[doc = "- 10 - `hazardousLocation-ObstacleOnTheRoad` - in case the type of event is obstacle on the road,"]
1334 #[doc = "- 11 - `hazardousLocation-AnimalOnTheRoad` - in case the type of event is animal on the road,"]
1335 #[doc = "- 12 - `humanPresenceOnTheRoad` - in case the type of event is presence of human vulnerable road user on the road,"]
1336 #[doc = "- 13 - reserved for future usage,"]
1337 #[doc = "- 14 - `wrongWayDriving` - in case the type of the event is vehicle driving in wrong way,"]
1338 #[doc = "- 15 - `rescueAndRecoveryWorkInProgress` - in case the type of event is rescue and recovery work for accident or for a road hazard in progress,"]
1339 #[doc = "- 16 - reserved for future usage,"]
1340 #[doc = "- 17 - `adverseWeatherCondition-ExtremeWeatherCondition`- in case the type of event is extreme weather condition,"]
1341 #[doc = "- 18 - `adverseWeatherCondition-Visibility` - in case the type of event is low visibility,"]
1342 #[doc = "- 19 - `adverseWeatherCondition-Precipitation` - in case the type of event is precipitation,"]
1343 #[doc = "- 20 - `violence` - in case the the type of event is human violence on or near the road,"]
1344 #[doc = "- 21-25 - reserved for future usage,"]
1345 #[doc = "- 26 - `slowVehicle` - in case the type of event is slow vehicle driving on the road,"]
1346 #[doc = "- 27 - `dangerousEndOfQueue` - in case the type of event is dangerous end of vehicle queue,"]
1347 #[doc = "- 28 - `publicTransportVehicleApproaching - in case the type of event is a public transport vehicle approaching, with a priority defined by applicable traffic regulations,"]
1348 #[doc = "- 29-90 - are reserved for future usage,"]
1349 #[doc = "- 91 - `vehicleBreakdown` - in case the type of event is break down vehicle on the road,"]
1350 #[doc = "- 92 - `postCrash` - in case the type of event is a detected crash,"]
1351 #[doc = "- 93 - `humanProblem` - in case the type of event is human health problem in vehicles involved in traffic,"]
1352 #[doc = "- 94 - `stationaryVehicle` - in case the type of event is stationary vehicle,"]
1353 #[doc = "- 95 - `emergencyVehicleApproaching` - in case the type of event is an approaching vehicle operating on a mission for which the applicable "]
1354 #[doc = " traffic regulations provide it with defined priority rights in traffic. "]
1355 #[doc = "- 96 - `hazardousLocation-DangerousCurve` - in case the type of event is dangerous curve,"]
1356 #[doc = "- 97 - `collisionRisk` - in case the type of event is a collision risk,"]
1357 #[doc = "- 98 - `signalViolation` - in case the type of event is signal violation,"]
1358 #[doc = "- 99 - `dangerousSituation` - in case the type of event is dangerous situation in which autonomous safety system in vehicle "]
1359 #[doc = " is activated,"]
1360 #[doc = "- 100 - `railwayLevelCrossing` - in case the type of event is a railway level crossing. "]
1361 #[doc = "- 101-255 - are reserved for future usage."]
1362 #[doc = ""]
1363 #[doc = "\n\n@category: Traffic information"]
1364 #[doc = "\n\n@revision: V1.3.1, value 28 added in V2.2.1, definition of values 12 and 95 changed in V2.2.1"]
1365 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1366 #[rasn(delegate, value("0..=255"))]
1367 pub struct CauseCodeType(pub u8);
1368
1369 #[doc = "This DF is an alternative representation of the cause code value of a traffic event. "]
1370 #[doc = ""]
1371 #[doc = "It shall include the following components: "]
1372 #[doc = ""]
1373 #[doc = "- @field ccAndScc: the main cause of a detected event. Each entry is of a different type and represents the sub cause code."]
1374 #[doc = "The semantics of the entire DF are completely defined by the choice value which represents the cause code value. "]
1375 #[doc = "The interpretation of the sub cause code value may provide additional information that is not strictly necessary to understand "]
1376 #[doc = "the cause code itself, and is therefore optional."]
1377 #[doc = ""]
1378 #[doc = "\n\n@category: Traffic information"]
1379 #[doc = "\n\n@revision: Created in V2.1.1, description amended in V2.2.1"]
1380 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1381 #[rasn(automatic_tags)]
1382 #[non_exhaustive]
1383 pub struct CauseCodeV2 {
1384 #[rasn(identifier = "ccAndScc")]
1385 pub cc_and_scc: CauseCodeChoice,
1386 }
1387 impl CauseCodeV2 {
1388 pub fn new(cc_and_scc: CauseCodeChoice) -> Self {
1389 Self { cc_and_scc }
1390 }
1391 }
1392
1393 #[doc = "The DF describes the position of a CEN DSRC road side equipment."]
1394 #[doc = ""]
1395 #[doc = "It shall include the following components: "]
1396 #[doc = ""]
1397 #[doc = "- @field protectedZoneLatitude: the latitude of the CEN DSRC road side equipment."]
1398 #[doc = ""]
1399 #[doc = "- @field protectedZoneLongitude: the latitude of the CEN DSRC road side equipment. "]
1400 #[doc = ""]
1401 #[doc = "- @field cenDsrcTollingZoneID: the optional ID of the CEN DSRC road side equipment."]
1402 #[doc = ""]
1403 #[doc = "\n\n@category: Infrastructure information, Communication information"]
1404 #[doc = "\n\n@revision: revised in V2.1.1 (cenDsrcTollingZoneId is directly of type ProtectedZoneId)"]
1405 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1406 #[rasn(automatic_tags)]
1407 #[non_exhaustive]
1408 pub struct CenDsrcTollingZone {
1409 #[rasn(identifier = "protectedZoneLatitude")]
1410 pub protected_zone_latitude: Latitude,
1411 #[rasn(identifier = "protectedZoneLongitude")]
1412 pub protected_zone_longitude: Longitude,
1413 #[rasn(identifier = "cenDsrcTollingZoneId")]
1414 pub cen_dsrc_tolling_zone_id: Option<ProtectedZoneId>,
1415 }
1416 impl CenDsrcTollingZone {
1417 pub fn new(
1418 protected_zone_latitude: Latitude,
1419 protected_zone_longitude: Longitude,
1420 cen_dsrc_tolling_zone_id: Option<ProtectedZoneId>,
1421 ) -> Self {
1422 Self {
1423 protected_zone_latitude,
1424 protected_zone_longitude,
1425 cen_dsrc_tolling_zone_id,
1426 }
1427 }
1428 }
1429
1430 #[doc = "This DE represents the ID of a CEN DSRC tolling zone. "]
1431 #[doc = ""]
1432 #[doc = "\n\n@category: Communication information"]
1433 #[doc = "\n\n@revision: V1.3.1"]
1434 #[doc = "\n\n@note: this DE is deprecated and shall not be used anymore. "]
1435 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1436 #[rasn(delegate)]
1437 pub struct CenDsrcTollingZoneID(pub ProtectedZoneId);
1438
1439 #[doc = ""]
1440 #[doc = "This DF represents the shape of a circular area or a right cylinder that is centred on the shape's reference point. "]
1441 #[doc = ""]
1442 #[doc = "It shall include the following components: "]
1443 #[doc = ""]
1444 #[doc = "- @field shapeReferencePoint: optional reference point that represents the centre of the circle, relative to an externally specified reference position. "]
1445 #[doc = "If this component is absent, the externally specified reference position represents the shape's reference point. "]
1446 #[doc = ""]
1447 #[doc = "- @field radius: the radius of the circular area."]
1448 #[doc = ""]
1449 #[doc = "- @field height: the optional height, present if the shape is a right cylinder extending in the positive z-axis. "]
1450 #[doc = ""]
1451 #[doc = ""]
1452 #[doc = "\n\n@category: GeoReference information"]
1453 #[doc = "\n\n@revision: Created in V2.1.1"]
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
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 = "\n\n@category: Infrastructure information, Road topology information"]
1491 #[doc = "\n\n@revision: Description revised in V2.1.1"]
1492 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1493 #[rasn(automatic_tags)]
1494 #[non_exhaustive]
1495 pub struct ClosedLanes {
1496 #[rasn(identifier = "innerhardShoulderStatus")]
1497 pub innerhard_shoulder_status: Option<HardShoulderStatus>,
1498 #[rasn(identifier = "outerhardShoulderStatus")]
1499 pub outerhard_shoulder_status: Option<HardShoulderStatus>,
1500 #[rasn(identifier = "drivingLaneStatus")]
1501 pub driving_lane_status: Option<DrivingLaneStatus>,
1502 }
1503 impl ClosedLanes {
1504 pub fn new(
1505 innerhard_shoulder_status: Option<HardShoulderStatus>,
1506 outerhard_shoulder_status: Option<HardShoulderStatus>,
1507 driving_lane_status: Option<DrivingLaneStatus>,
1508 ) -> Self {
1509 Self {
1510 innerhard_shoulder_status,
1511 outerhard_shoulder_status,
1512 driving_lane_status,
1513 }
1514 }
1515 }
1516
1517 #[doc = "This DF provides information about the breakup of a cluster."]
1518 #[doc = ""]
1519 #[doc = "It shall include the following components: "]
1520 #[doc = ""]
1521 #[doc = "- @field clusterBreakupReason: indicates the reason for breakup."]
1522 #[doc = ""]
1523 #[doc = "- @field breakupTime: indicates the time of breakup. "]
1524 #[doc = ""]
1525 #[doc = "\n\n@category: Cluster Information"]
1526 #[doc = "\n\n@revision: Created in V2.1.1"]
1527 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1528 #[rasn(automatic_tags)]
1529 #[non_exhaustive]
1530 pub struct ClusterBreakupInfo {
1531 #[rasn(identifier = "clusterBreakupReason")]
1532 pub cluster_breakup_reason: ClusterBreakupReason,
1533 #[rasn(identifier = "breakupTime")]
1534 pub breakup_time: DeltaTimeQuarterSecond,
1535 }
1536 impl ClusterBreakupInfo {
1537 pub fn new(
1538 cluster_breakup_reason: ClusterBreakupReason,
1539 breakup_time: DeltaTimeQuarterSecond,
1540 ) -> Self {
1541 Self {
1542 cluster_breakup_reason,
1543 breakup_time,
1544 }
1545 }
1546 }
1547
1548 #[doc = "This DE indicates the reason why a cluster leader intends to break up the cluster."]
1549 #[doc = ""]
1550 #[doc = "The value shall be set to:"]
1551 #[doc = "- 0 - `notProvided` - if the information is not provided,"]
1552 #[doc = "- 1 - `clusteringPurposeCompleted` - if the cluster purpose has been completed,"]
1553 #[doc = "- 2 - `leaderMovedOutOfClusterBoundingBox` - if the leader moved out of the cluster's bounding box,"]
1554 #[doc = "- 3 - `joiningAnotherCluster` - if the cluster leader is about to join another cluster,"]
1555 #[doc = "- 4 - `enteringLowRiskAreaBasedOnMaps` - if the cluster is entering an area idenrified as low risk based on the use of maps,"]
1556 #[doc = "- 5 - `receptionOfCpmContainingCluster` - if the leader received a Collective Perception Message containing information about the same cluster. "]
1557 #[doc = "- 6 to 15 - are reserved for future use. "]
1558 #[doc = ""]
1559 #[doc = "\n\n@category: Cluster information"]
1560 #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
1561 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1562 #[rasn(delegate, value("0..=15"))]
1563 pub struct ClusterBreakupReason(pub u8);
1564
1565 #[doc = "This DF provides information about the joining of a cluster."]
1566 #[doc = ""]
1567 #[doc = "It shall include the following components: "]
1568 #[doc = ""]
1569 #[doc = "- @field clusterId: indicates the identifier of the cluster."]
1570 #[doc = ""]
1571 #[doc = "- @field joinTime: indicates the time of joining. "]
1572 #[doc = ""]
1573 #[doc = "\n\n@category: Cluster Information"]
1574 #[doc = "\n\n@revision: Created in V2.1.1"]
1575 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1576 #[rasn(automatic_tags)]
1577 #[non_exhaustive]
1578 pub struct ClusterJoinInfo {
1579 #[rasn(identifier = "clusterId")]
1580 pub cluster_id: Identifier1B,
1581 #[rasn(identifier = "joinTime")]
1582 pub join_time: DeltaTimeQuarterSecond,
1583 }
1584 impl ClusterJoinInfo {
1585 pub fn new(cluster_id: Identifier1B, join_time: DeltaTimeQuarterSecond) -> Self {
1586 Self {
1587 cluster_id,
1588 join_time,
1589 }
1590 }
1591 }
1592
1593 #[doc = "The DF provides information about the leaving of a cluster."]
1594 #[doc = ""]
1595 #[doc = "It shall include the following components: "]
1596 #[doc = ""]
1597 #[doc = "- @field clusterId: indicates the cluster."]
1598 #[doc = ""]
1599 #[doc = "- @field clusterLeaveReason: indicates the reason for leaving. "]
1600 #[doc = ""]
1601 #[doc = "\n\n@category: Cluster Information"]
1602 #[doc = "\n\n@revision: Created in V2.1.1"]
1603 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1604 #[rasn(automatic_tags)]
1605 #[non_exhaustive]
1606 pub struct ClusterLeaveInfo {
1607 #[rasn(identifier = "clusterId")]
1608 pub cluster_id: Identifier1B,
1609 #[rasn(identifier = "clusterLeaveReason")]
1610 pub cluster_leave_reason: ClusterLeaveReason,
1611 }
1612 impl ClusterLeaveInfo {
1613 pub fn new(cluster_id: Identifier1B, cluster_leave_reason: ClusterLeaveReason) -> Self {
1614 Self {
1615 cluster_id,
1616 cluster_leave_reason,
1617 }
1618 }
1619 }
1620
1621 #[doc = "This DE indicates the reason why a cluster participant is leaving the cluster."]
1622 #[doc = ""]
1623 #[doc = "The value shall be set to:"]
1624 #[doc = "- 0 - `notProvided ` - if the information is not provided,"]
1625 #[doc = "- 1 - `clusterLeaderLost` - if the cluster leader cannot be found anymore, "]
1626 #[doc = "- 2 - `clusterDisbandedByLeader` - if the cluster has been disbanded by the leader,"]
1627 #[doc = "- 3 - `outOfClusterBoundingBox` - if the participants moved out of the cluster's bounding box,"]
1628 #[doc = "- 4 - `outOfClusterSpeedRange` - if the cluster speed moved out of a defined range, "]
1629 #[doc = "- 5 - `joiningAnotherCluster` - if the participant is joining another cluster,"]
1630 #[doc = "- 6 - `cancelledJoin` - if the participant is cancelling a joining procedure,"]
1631 #[doc = "- 7 - `failedJoin` - if the participant failed to join the cluster,"]
1632 #[doc = "- 8 - `safetyCondition` - if a safety condition applies."]
1633 #[doc = "- 9 to 15 - are reserved for future use "]
1634 #[doc = ""]
1635 #[doc = "\n\n@category: Cluster information"]
1636 #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
1637 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1638 #[rasn(delegate, value("0..=15"))]
1639 pub struct ClusterLeaveReason(pub u8);
1640
1641 #[doc = "This DE represents the sub cause codes of the @ref CauseCode `collisionRisk`."]
1642 #[doc = ""]
1643 #[doc = "The value shall be set to:"]
1644 #[doc = "- 0 - `unavailable` - in case information on the type of collision risk is unavailable,"]
1645 #[doc = "- 1 - `longitudinalCollisionRisk` - in case the type of detected collision risk is longitudinal collision risk, "]
1646 #[doc = " e.g. forward collision or face to face collision,"]
1647 #[doc = "- 2 - `crossingCollisionRisk` - in case the type of detected collision risk is crossing collision risk,"]
1648 #[doc = "- 3 - `lateralCollisionRisk` - in case the type of detected collision risk is lateral collision risk,"]
1649 #[doc = "- 4 - `vulnerableRoadUser` - in case the type of detected collision risk involves vulnerable road users"]
1650 #[doc = " e.g. pedestrians or bicycles."]
1651 #[doc = "- 5 - `collisionRiskWithPedestrian` - in case the type of detected collision risk involves at least one pedestrian, "]
1652 #[doc = "- 6 - `collisionRiskWithCyclist` - in case the type of detected collision risk involves at least one cyclist (and no pedestrians),"]
1653 #[doc = "- 7 - `collisionRiskWithMotorVehicle` - in case the type of detected collision risk involves at least one motor vehicle (and no pedestrians or cyclists),"]
1654 #[doc = "- 8-255 - are reserved for future usage."]
1655 #[doc = ""]
1656 #[doc = "\n\n@category: Traffic information"]
1657 #[doc = "\n\n@revision: V1.3.1, values 5-7 assigned in V2.2.1"]
1658 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1659 #[rasn(delegate, value("0..=255"))]
1660 pub struct CollisionRiskSubCauseCode(pub u8);
1661
1662 #[doc = "This DE represents a confidence level in percentage."]
1663 #[doc = ""]
1664 #[doc = "The value shall be set to:"]
1665 #[doc = "- `n` (`n > 0` and `n < 101`) : for the confidence level in %,"]
1666 #[doc = "- `101` : in case the confidence level is not available."]
1667 #[doc = ""]
1668 #[doc = "\n\n@unit Percent "]
1669 #[doc = "\n\n@category: Basic information "]
1670 #[doc = "\n\n@revision: Created in V2.1.1 "]
1671 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1672 #[rasn(delegate, value("1..=101"))]
1673 pub struct ConfidenceLevel(pub u8);
1674
1675 #[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 %."]
1676 #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
1677 #[doc = ""]
1678 #[doc = "The value shall be set to: "]
1679 #[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,"]
1680 #[doc = "- `4095` if the confidence value is greater than 40,94 metres,"]
1681 #[doc = "- `4096` if the confidence value is not available."]
1682 #[doc = ""]
1683 #[doc = "\n\n@unit 0,01 m"]
1684 #[doc = "\n\n@category: Basic information"]
1685 #[doc = "\n\n@revision: Created in V2.1.1"]
1686 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1687 #[rasn(delegate, value("1..=4096"))]
1688 pub struct CoordinateConfidence(pub u16);
1689
1690 #[doc = "This DE represents the Bravais-Pearson correlation value for each cell of a lower triangular correlation matrix."]
1691 #[doc = ""]
1692 #[doc = "The value shall be set to: "]
1693 #[doc = "- `-100` in case of full negative correlation,"]
1694 #[doc = "- `n` (`n > -100` and `n < 0`) if the correlation is negative and equal to n x 100,"]
1695 #[doc = "- `0` in case of no correlation,"]
1696 #[doc = "- `n` (`n > 0` and `n < 100`) if the correlation is positive and equal to n x 100,"]
1697 #[doc = "- `100` in case of full positive correlation,"]
1698 #[doc = "- `101` in case the correlation information is unavailable. "]
1699 #[doc = ""]
1700 #[doc = "\n\n@unit: the value is scaled by 100"]
1701 #[doc = "\n\n@category: Basic information"]
1702 #[doc = "\n\n@revision: Created in V2.1.1"]
1703 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1704 #[rasn(delegate, value("-100..=101"))]
1705 pub struct CorrelationCellValue(pub i8);
1706
1707 #[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."]
1708 #[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."]
1709 #[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"]
1710 #[doc = "starting at 1 from the left."]
1711 #[doc = ""]
1712 #[doc = "\n\n@category: Sensing Information"]
1713 #[doc = "\n\n@revision: Created in V2.1.1"]
1714 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1715 #[rasn(delegate, size("1..=13", extensible))]
1716 pub struct CorrelationColumn(pub SequenceOf<CorrelationCellValue>);
1717
1718 #[doc = "This DE represents an ISO 3166-1 country code encoded using ITA-2 encoding."]
1719 #[doc = ""]
1720 #[doc = "\n\n@category: Basic information"]
1721 #[doc = "\n\n@revision: Created in V2.2.1 based on ISO 14816"]
1722 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1723 #[rasn(delegate)]
1724 pub struct CountryCode(pub FixedBitString<10usize>);
1725
1726 #[doc = "This DF represents the curvature of the vehicle trajectory and the associated confidence value."]
1727 #[doc = "The curvature detected by a vehicle represents the curvature of actual vehicle trajectory."]
1728 #[doc = ""]
1729 #[doc = "It shall include the following components: "]
1730 #[doc = ""]
1731 #[doc = "- @field curvatureValue: Detected curvature of the vehicle trajectory."]
1732 #[doc = ""]
1733 #[doc = "- @field curvatureConfidence: along with a confidence value of the curvature value with a predefined confidence level. "]
1734 #[doc = ""]
1735 #[doc = "\n\n@category: Vehicle information"]
1736 #[doc = "\n\n@revision: Description revised in V2.1.1"]
1737 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1738 #[rasn(automatic_tags)]
1739 pub struct Curvature {
1740 #[rasn(identifier = "curvatureValue")]
1741 pub curvature_value: CurvatureValue,
1742 #[rasn(identifier = "curvatureConfidence")]
1743 pub curvature_confidence: CurvatureConfidence,
1744 }
1745 impl Curvature {
1746 pub fn new(
1747 curvature_value: CurvatureValue,
1748 curvature_confidence: CurvatureConfidence,
1749 ) -> Self {
1750 Self {
1751 curvature_value,
1752 curvature_confidence,
1753 }
1754 }
1755 }
1756
1757 #[doc = "The DE describes whether the yaw rate is used to calculate the curvature for a curvature value."]
1758 #[doc = ""]
1759 #[doc = "The value shall be set to:"]
1760 #[doc = "- 0 - `yawRateUsed` - if the yaw rate is used,"]
1761 #[doc = "- 1 - `yawRateNotUsed` - if the yaw rate is not used,"]
1762 #[doc = "- 2 - `unavailable` - if the information of curvature calculation mode is unknown."]
1763 #[doc = ""]
1764 #[doc = "\n\n@category: Vehicle information"]
1765 #[doc = "\n\n@revision: V1.3.1"]
1766 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1767 #[rasn(enumerated)]
1768 #[non_exhaustive]
1769 pub enum CurvatureCalculationMode {
1770 yawRateUsed = 0,
1771 yawRateNotUsed = 1,
1772 unavailable = 2,
1773 }
1774
1775 #[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 %."]
1776 #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
1777 #[doc = ""]
1778 #[doc = "The value shall be set to:"]
1779 #[doc = "- 0 - `onePerMeter-0-00002` - if the confidence value is less than or equal to 0,00002 m-1,"]
1780 #[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,"]
1781 #[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,"]
1782 #[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,"]
1783 #[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,"]
1784 #[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,"]
1785 #[doc = "- 6 - `outOfRange` - if the confidence value is out of range, i.e. greater than 0,1 m-1,"]
1786 #[doc = "- 7 - `unavailable` - if the confidence value is not available."]
1787 #[doc = ""]
1788 #[doc = "\n\n@note:\tThe fact that a curvature value is received with confidence value set to `unavailable(7)` can be caused by"]
1789 #[doc = "several reasons, such as:"]
1790 #[doc = "- the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
1791 #[doc = "- the sensor cannot calculate the accuracy due to lack of variables, or"]
1792 #[doc = "- there has been a vehicle bus (e.g. CAN bus) error."]
1793 #[doc = "In all 3 cases above, the curvature value may be valid and used by the application."]
1794 #[doc = ""]
1795 #[doc = "\n\n@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 "]
1796 #[doc = "and therefore cannot be trusted. Such value is not useful for the application."]
1797 #[doc = ""]
1798 #[doc = "\n\n@category: Vehicle information"]
1799 #[doc = "\n\n@revision: Description revised in V2.1.1"]
1800 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1801 #[rasn(enumerated)]
1802 pub enum CurvatureConfidence {
1803 #[rasn(identifier = "onePerMeter-0-00002")]
1804 onePerMeter_0_00002 = 0,
1805 #[rasn(identifier = "onePerMeter-0-0001")]
1806 onePerMeter_0_0001 = 1,
1807 #[rasn(identifier = "onePerMeter-0-0005")]
1808 onePerMeter_0_0005 = 2,
1809 #[rasn(identifier = "onePerMeter-0-002")]
1810 onePerMeter_0_002 = 3,
1811 #[rasn(identifier = "onePerMeter-0-01")]
1812 onePerMeter_0_01 = 4,
1813 #[rasn(identifier = "onePerMeter-0-1")]
1814 onePerMeter_0_1 = 5,
1815 outOfRange = 6,
1816 unavailable = 7,
1817 }
1818
1819 #[doc = "This DE describes vehicle turning curve with the following information:"]
1820 #[doc = "```text"]
1821 #[doc = " Value = 1 / Radius * 10000"]
1822 #[doc = "```text"]
1823 #[doc = "wherein radius is the vehicle turning curve radius in metres. "]
1824 #[doc = ""]
1825 #[doc = "Positive values indicate a turning curve to the left hand side of the driver."]
1826 #[doc = "It corresponds to the vehicle coordinate system as defined in ISO 8855."]
1827 #[doc = ""]
1828 #[doc = "The value shall be set to:"]
1829 #[doc = "- `-1023` for values smaller than -1023,"]
1830 #[doc = "- `n` (`n > -1023` and `n < 0`) for negative values equal to or less than `n`, and greater than `(n-1)`,"]
1831 #[doc = "- `0` when the vehicle is moving straight,"]
1832 #[doc = "- `n` (`n > 0` and `n < 1022`) for positive values equal to or less than `n`, and greater than `(n-1)`,"]
1833 #[doc = "- `1022`, for values greater than 1021,"]
1834 #[doc = "- `1023`, if the information is not available."]
1835 #[doc = ""]
1836 #[doc = "\n\n@note: The present DE is limited to vehicle types as defined in ISO 8855."]
1837 #[doc = ""]
1838 #[doc = "\n\n@unit: 1 over 10 000 metres"]
1839 #[doc = "\n\n@category: Vehicle information"]
1840 #[doc = "\n\n@revision: description revised in V2.1.1 (the definition of value 1022 has changed slightly)"]
1841 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1842 #[rasn(delegate, value("-1023..=1023"))]
1843 pub struct CurvatureValue(pub i16);
1844
1845 #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `dangerousEndOfQueue`. "]
1846 #[doc = ""]
1847 #[doc = "The value shall be set to:"]
1848 #[doc = "- 0 - `unavailable` - in case information on the type of dangerous queue is unavailable,"]
1849 #[doc = "- 1 - `suddenEndOfQueue`- in case a sudden end of queue is detected, e.g. due to accident or obstacle,"]
1850 #[doc = "- 2 - `queueOverHill` - in case the dangerous end of queue is detected on the road hill,"]
1851 #[doc = "- 3 - `queueAroundBend` - in case the dangerous end of queue is detected around the road bend,"]
1852 #[doc = "- 4 - `queueInTunnel` - in case queue is detected in tunnel,"]
1853 #[doc = "- 5-255 - reserved for future usage."]
1854 #[doc = ""]
1855 #[doc = "\n\n@category: Traffic information"]
1856 #[doc = "\n\n@revision: V1.3.1"]
1857 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1858 #[rasn(delegate, value("0..=255"))]
1859 pub struct DangerousEndOfQueueSubCauseCode(pub u8);
1860
1861 #[doc = "This DE indicates the type of the dangerous goods being carried by a heavy vehicle."]
1862 #[doc = "The value is assigned according to `class` and `division` definitions of dangerous goods as specified in part II,"]
1863 #[doc = "chapter 2.1.1.1 of European Agreement concerning the International Carriage of Dangerous Goods by Road."]
1864 #[doc = ""]
1865 #[doc = ""]
1866 #[doc = "\n\n@category Vehicle information"]
1867 #[doc = "\n\n@revision: V1.3.1"]
1868 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1869 #[rasn(enumerated)]
1870 pub enum DangerousGoodsBasic {
1871 explosives1 = 0,
1872 explosives2 = 1,
1873 explosives3 = 2,
1874 explosives4 = 3,
1875 explosives5 = 4,
1876 explosives6 = 5,
1877 flammableGases = 6,
1878 nonFlammableGases = 7,
1879 toxicGases = 8,
1880 flammableLiquids = 9,
1881 flammableSolids = 10,
1882 substancesLiableToSpontaneousCombustion = 11,
1883 substancesEmittingFlammableGasesUponContactWithWater = 12,
1884 oxidizingSubstances = 13,
1885 organicPeroxides = 14,
1886 toxicSubstances = 15,
1887 infectiousSubstances = 16,
1888 radioactiveMaterial = 17,
1889 corrosiveSubstances = 18,
1890 miscellaneousDangerousSubstances = 19,
1891 }
1892
1893 #[doc = "This DF provides a description of dangerous goods being carried by a heavy vehicle."]
1894 #[doc = ""]
1895 #[doc = "It shall include the following components: "]
1896 #[doc = ""]
1897 #[doc = "- @field dangerousGoodsType: Type of dangerous goods."]
1898 #[doc = ""]
1899 #[doc = "- @field unNumber: a 4-digit number that identifies the substance of the dangerous goods as specified in"]
1900 #[doc = "United Nations Recommendations on the Transport of Dangerous Goods - Model Regulations,"]
1901 #[doc = ""]
1902 #[doc = "- @field elevatedTemperature: whether the carried dangerous goods are transported at high temperature."]
1903 #[doc = "If yes, the value shall be set to TRUE,"]
1904 #[doc = ""]
1905 #[doc = "- @field tunnelsRestricted: whether the heavy vehicle carrying dangerous goods is restricted to enter tunnels."]
1906 #[doc = "If yes, the value shall be set to TRUE,"]
1907 #[doc = ""]
1908 #[doc = "- @field limitedQuantity: whether the carried dangerous goods are packed with limited quantity."]
1909 #[doc = "If yes, the value shall be set to TRUE,"]
1910 #[doc = ""]
1911 #[doc = "- @field emergencyActionCode: physical signage placard at the vehicle that carries information on how an emergency"]
1912 #[doc = "service should deal with an incident. This component is optional; it shall be present if the information is available."]
1913 #[doc = ""]
1914 #[doc = "- @field phoneNumber: contact phone number of assistance service in case of incident or accident."]
1915 #[doc = "This component is optional, it shall be present if the information is available."]
1916 #[doc = ""]
1917 #[doc = "- @field companyName: name of company that manages the transportation of the dangerous goods."]
1918 #[doc = "This component is optional; it shall be present if the information is available."]
1919 #[doc = ""]
1920 #[doc = "\n\n@category Vehicle information"]
1921 #[doc = "\n\n@revision: V1.3.1"]
1922 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1923 #[rasn(automatic_tags)]
1924 #[non_exhaustive]
1925 pub struct DangerousGoodsExtended {
1926 #[rasn(identifier = "dangerousGoodsType")]
1927 pub dangerous_goods_type: DangerousGoodsBasic,
1928 #[rasn(value("0..=9999"), identifier = "unNumber")]
1929 pub un_number: u16,
1930 #[rasn(identifier = "elevatedTemperature")]
1931 pub elevated_temperature: bool,
1932 #[rasn(identifier = "tunnelsRestricted")]
1933 pub tunnels_restricted: bool,
1934 #[rasn(identifier = "limitedQuantity")]
1935 pub limited_quantity: bool,
1936 #[rasn(size("1..=24"), identifier = "emergencyActionCode")]
1937 pub emergency_action_code: Option<Ia5String>,
1938 #[rasn(identifier = "phoneNumber")]
1939 pub phone_number: Option<PhoneNumber>,
1940 #[rasn(identifier = "companyName")]
1941 pub company_name: Option<Utf8String>,
1942 }
1943 impl DangerousGoodsExtended {
1944 pub fn new(
1945 dangerous_goods_type: DangerousGoodsBasic,
1946 un_number: u16,
1947 elevated_temperature: bool,
1948 tunnels_restricted: bool,
1949 limited_quantity: bool,
1950 emergency_action_code: Option<Ia5String>,
1951 phone_number: Option<PhoneNumber>,
1952 company_name: Option<Utf8String>,
1953 ) -> Self {
1954 Self {
1955 dangerous_goods_type,
1956 un_number,
1957 elevated_temperature,
1958 tunnels_restricted,
1959 limited_quantity,
1960 emergency_action_code,
1961 phone_number,
1962 company_name,
1963 }
1964 }
1965 }
1966
1967 #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `dangerousSituation` "]
1968 #[doc = ""]
1969 #[doc = "The value shall be set to:"]
1970 #[doc = "- 0 - `unavailable` - in case information on the type of dangerous situation is unavailable,"]
1971 #[doc = "- 1 - `emergencyElectronicBrakeEngaged` - in case emergency electronic brake is engaged,"]
1972 #[doc = "- 2 - `preCrashSystemEngaged` - in case pre-crash system is engaged,"]
1973 #[doc = "- 3 - `espEngaged` - in case Electronic Stability Program (ESP) system is engaged,"]
1974 #[doc = "- 4 - `absEngaged` - in case Anti-lock Braking System (ABS) is engaged,"]
1975 #[doc = "- 5 - `aebEngaged` - in case Autonomous Emergency Braking (AEB) system is engaged,"]
1976 #[doc = "- 6 - `brakeWarningEngaged` - in case brake warning is engaged,"]
1977 #[doc = "- 7 - `collisionRiskWarningEngaged` - in case collision risk warning is engaged,"]
1978 #[doc = "- 8-255 - reserved for future usage."]
1979 #[doc = ""]
1980 #[doc = "\n\n@category: Traffic information"]
1981 #[doc = "\n\n@revision: V1.3.1"]
1982 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1983 #[rasn(delegate, value("0..=255"))]
1984 pub struct DangerousSituationSubCauseCode(pub u8);
1985
1986 #[doc = "This DE represents an offset altitude with regards to a defined altitude value."]
1987 #[doc = "It may be used to describe a geographical point with regards to a specific reference geographical position."]
1988 #[doc = ""]
1989 #[doc = "The value shall be set to:"]
1990 #[doc = "- `-12 700` for values equal to or lower than -127 metres,"]
1991 #[doc = "- `n` (`n > -12 700` and `n <= 0`) for altitude offset n x 0,01 metre below the reference position,"]
1992 #[doc = "- `0` for no altitudinal offset,"]
1993 #[doc = "- `n` (`n > 0` and `n < 12799`) for altitude offset n x 0,01 metre above the reference position,"]
1994 #[doc = "- `12 799` for values equal to or greater than 127,99 metres,"]
1995 #[doc = "- `12 800` when the information is unavailable."]
1996 #[doc = ""]
1997 #[doc = "\n\n@unit: 0,01 metre"]
1998 #[doc = "\n\n@category: GeoReference information"]
1999 #[doc = "\n\n@revision: editorial update in V2.1.1"]
2000 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2001 #[rasn(delegate, value("-12700..=12800"))]
2002 pub struct DeltaAltitude(pub i16);
2003
2004 #[doc = "This DE represents an offset latitude with regards to a defined latitude value."]
2005 #[doc = "It may be used to describe a geographical point with regards to a specific reference geographical position."]
2006 #[doc = ""]
2007 #[doc = "The value shall be set to:"]
2008 #[doc = "- `n` (`n >= -131 071` and `n < 0`) for offset n x 10^-7 degree towards the south from the reference position,"]
2009 #[doc = "- `0` for no latitudinal offset,"]
2010 #[doc = "- `n` (`n > 0` and `n < 131 072`) for offset n x 10^-7 degree towards the north from the reference position,"]
2011 #[doc = "- `131 072` when the information is unavailable."]
2012 #[doc = ""]
2013 #[doc = "\n\n@unit: 10^-7 degree"]
2014 #[doc = "\n\n@category: GeoReference information"]
2015 #[doc = "\n\n@revision: editorial update in V2.1.1"]
2016 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2017 #[rasn(delegate, value("-131071..=131072"))]
2018 pub struct DeltaLatitude(pub i32);
2019
2020 #[doc = "This DE represents an offset longitude with regards to a defined longitude value."]
2021 #[doc = "It may be used to describe a geographical point with regards to a specific reference geographical position."]
2022 #[doc = ""]
2023 #[doc = "The value shall be set to:"]
2024 #[doc = "- `n` (`n >= -131 071` and `n < 0`) for offset n x 10^-7 degree towards the west from the reference position,"]
2025 #[doc = "- `0` for no longitudinal offset,"]
2026 #[doc = "- `n` (`n > 0` and `n < 131 072`) for offset n x 10^-7 degree towards the east from the reference position, "]
2027 #[doc = "- `131 072` when the information is unavailable."]
2028 #[doc = ""]
2029 #[doc = "\n\n@unit: 10^-7 degree"]
2030 #[doc = "\n\n@category: GeoReference information"]
2031 #[doc = "\n\n@revision: editorial update in V2.1.1"]
2032 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2033 #[rasn(delegate, value("-131071..=131072"))]
2034 pub struct DeltaLongitude(pub i32);
2035
2036 #[doc = "This DF defines a geographical point position as a 3 dimensional offset position to a geographical reference point."]
2037 #[doc = ""]
2038 #[doc = "It shall include the following components: "]
2039 #[doc = ""]
2040 #[doc = "- @field deltaLatitude: A delta latitude offset with regards to the latitude value of the reference position."]
2041 #[doc = ""]
2042 #[doc = "- @field deltaLongitude: A delta longitude offset with regards to the longitude value of the reference position."]
2043 #[doc = ""]
2044 #[doc = "- @field deltaAltitude: A delta altitude offset with regards to the altitude value of the reference position."]
2045 #[doc = ""]
2046 #[doc = "\n\n@category: GeoReference information"]
2047 #[doc = "\n\n@revision: V1.3.1"]
2048 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2049 #[rasn(automatic_tags)]
2050 pub struct DeltaReferencePosition {
2051 #[rasn(identifier = "deltaLatitude")]
2052 pub delta_latitude: DeltaLatitude,
2053 #[rasn(identifier = "deltaLongitude")]
2054 pub delta_longitude: DeltaLongitude,
2055 #[rasn(identifier = "deltaAltitude")]
2056 pub delta_altitude: DeltaAltitude,
2057 }
2058 impl DeltaReferencePosition {
2059 pub fn new(
2060 delta_latitude: DeltaLatitude,
2061 delta_longitude: DeltaLongitude,
2062 delta_altitude: DeltaAltitude,
2063 ) -> Self {
2064 Self {
2065 delta_latitude,
2066 delta_longitude,
2067 delta_altitude,
2068 }
2069 }
2070 }
2071
2072 #[doc = "This DE represents a difference in time with respect to a reference time."]
2073 #[doc = ""]
2074 #[doc = "The value shall be set to:"]
2075 #[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,"]
2076 #[doc = ""]
2077 #[doc = "Example: a time interval between two consecutive message transmissions."]
2078 #[doc = ""]
2079 #[doc = "\n\n@unit: 0,001 s"]
2080 #[doc = "\n\n@category: Basic information"]
2081 #[doc = "\n\n@revision: Created in V2.1.1 from the DE TransmissionInterval in"]
2082 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2083 #[rasn(delegate, value("1..=10000"))]
2084 pub struct DeltaTimeMilliSecondPositive(pub u16);
2085
2086 #[doc = "This DE represents a signed difference in time with respect to a reference time."]
2087 #[doc = ""]
2088 #[doc = "The value shall be set to:"]
2089 #[doc = "- `-2048` for time values equal to or less than -2,048 s,"]
2090 #[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,"]
2091 #[doc = "- `2047` for time values greater than 2,046 s"]
2092 #[doc = ""]
2093 #[doc = "\n\n@unit: 0,001 s"]
2094 #[doc = "\n\n@category: Basic information"]
2095 #[doc = "\n\n@revision: Created in V2.1.1"]
2096 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2097 #[rasn(delegate, value("-2048..=2047"))]
2098 pub struct DeltaTimeMilliSecondSigned(pub i16);
2099
2100 #[doc = "This DE represents a difference in time with respect to a reference time."]
2101 #[doc = "It can be interpreted as the first 8 bits of a GenerationDeltaTime. To convert it to a @ref GenerationDeltaTime, "]
2102 #[doc = "multiply by 256 (i.e. append a `00` byte)"]
2103 #[doc = ""]
2104 #[doc = "\n\n@unit: 256 * 0,001 s "]
2105 #[doc = "\n\n@category: Basic information"]
2106 #[doc = "\n\n@revision: Created in V2.1.1"]
2107 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2108 #[rasn(delegate, value("1..=255"))]
2109 pub struct DeltaTimeQuarterSecond(pub u8);
2110
2111 #[doc = "This DE represents a difference in time with respect to a reference time."]
2112 #[doc = ""]
2113 #[doc = "The value shall be set to:"]
2114 #[doc = "- `-0` for a difference in time of 0 seconds. "]
2115 #[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,"]
2116 #[doc = ""]
2117 #[doc = "\n\n@unit: 1 s"]
2118 #[doc = "\n\n@category: Basic information"]
2119 #[doc = "\n\n@revision: Created in V2.1.1 from ValidityDuration"]
2120 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2121 #[rasn(delegate, value("0..=86400"))]
2122 pub struct DeltaTimeSecond(pub u32);
2123
2124 #[doc = "This DE represents a difference in time with respect to a reference time."]
2125 #[doc = ""]
2126 #[doc = "The value shall be set to:"]
2127 #[doc = "- `-0` for a difference in time of 0 seconds. "]
2128 #[doc = "- `n` (`n > 0` and `n < 128`) to indicate a time value equal to or less than n x 10 s, and greater than (n-1) x 10 s,"]
2129 #[doc = ""]
2130 #[doc = "\n\n@unit: 10 s"]
2131 #[doc = "\n\n@category: Basic information"]
2132 #[doc = "\n\n@revision: Created in V2.2.1"]
2133 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2134 #[rasn(delegate, value("0..=127"))]
2135 pub struct DeltaTimeTenSeconds(pub u8);
2136
2137 #[doc = "This DE represents a difference in time with respect to a reference time."]
2138 #[doc = ""]
2139 #[doc = "The value shall be set to:"]
2140 #[doc = "- `0` for a difference in time of 0 seconds. "]
2141 #[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,"]
2142 #[doc = ""]
2143 #[doc = "\n\n@unit: 0,1 s"]
2144 #[doc = "\n\n@category: Basic information"]
2145 #[doc = "\n\n@revision: Created in V2.1.1"]
2146 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2147 #[rasn(delegate, value("0..=127"))]
2148 pub struct DeltaTimeTenthOfSecond(pub u8);
2149
2150 #[doc = "This DF represents a portion of digital map. It shall contain a list of waypoints @ref ReferencePosition."]
2151 #[doc = ""]
2152 #[doc = "\n\n@category: GeoReference information"]
2153 #[doc = "\n\n@revision: V1.3.1"]
2154 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2155 #[rasn(delegate, size("1..=256"))]
2156 pub struct DigitalMap(pub SequenceOf<ReferencePosition>);
2157
2158 #[doc = "This DE indicates a direction with respect to a defined reference direction."]
2159 #[doc = "Example: a reference direction may be implicitly defined by the definition of a geographical zone."]
2160 #[doc = ""]
2161 #[doc = "The value shall be set to:"]
2162 #[doc = "- 0 - `sameDirection` - to indicate the same direction as the reference direction,"]
2163 #[doc = "- 1 - `oppositeDirection` - to indicate opposite direction as the reference direction,"]
2164 #[doc = "- 2 - `bothDirections` - to indicate both directions, i.e. the same and the opposite direction,"]
2165 #[doc = "- 3 - `unavailable` - to indicate that the information is unavailable."]
2166 #[doc = ""]
2167 #[doc = "\n\n@category: GeoReference information"]
2168 #[doc = "\n\n@revision: Created in V2.1.1"]
2169 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2170 #[rasn(delegate, value("0..=3"))]
2171 pub struct Direction(pub u8);
2172
2173 #[doc = "This DE indicates in which direction something is moving."]
2174 #[doc = ""]
2175 #[doc = "The value shall be set to:"]
2176 #[doc = "- 0 - `forward` - to indicate it is moving forward,"]
2177 #[doc = "- 1 - `backwards` - to indicate it is moving backwards,"]
2178 #[doc = "- 2 - `unavailable` - to indicate that the information is unavailable."]
2179 #[doc = ""]
2180 #[doc = "\n\n@category: Kinematic information"]
2181 #[doc = "\n\n@revision: editorial update in V2.1.1"]
2182 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2183 #[rasn(enumerated)]
2184 pub enum DriveDirection {
2185 forward = 0,
2186 backward = 1,
2187 unavailable = 2,
2188 }
2189
2190 #[doc = "This DE indicates whether a driving lane is open to traffic."]
2191 #[doc = ""]
2192 #[doc = "A lane is counted from inside border of the road excluding the hard shoulder. The size of the bit string shall"]
2193 #[doc = "correspond to the total number of the driving lanes in the carriageway."]
2194 #[doc = ""]
2195 #[doc = "The numbering is matched to @ref LanePosition."]
2196 #[doc = "The bit `0` is used to indicate the innermost lane, bit `1` is used to indicate the second lane from inside border."]
2197 #[doc = ""]
2198 #[doc = "If a lane is closed to traffic, the corresponding bit shall be set to `1`. Otherwise, it shall be set to `0`."]
2199 #[doc = ""]
2200 #[doc = "\n\n@note: hard shoulder status is not provided by this DE but in @ref HardShoulderStatus."]
2201 #[doc = ""]
2202 #[doc = "\n\n@category: Traffic information"]
2203 #[doc = "\n\n@revision: V1.3.1"]
2204 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2205 #[rasn(delegate, size("1..=13"))]
2206 pub struct DrivingLaneStatus(pub BitString);
2207
2208 #[doc = ""]
2209 #[doc = "This DF represents the shape of an elliptical area or right elliptical cylinder that is centred "]
2210 #[doc = "on the shape's reference point defined outside of the context of this DF and oriented w.r.t. a "]
2211 #[doc = "cartesian coordinate system defined outside of the context of this DF. "]
2212 #[doc = ""]
2213 #[doc = "It shall include the following components: "]
2214 #[doc = ""]
2215 #[doc = "- @field shapeReferencePoint: optional reference point which represents the centre of the ellipse, "]
2216 #[doc = "relative to an externally specified reference position. If this component is absent, the "]
2217 #[doc = "externally specified reference position represents the shape's reference point. "]
2218 #[doc = ""]
2219 #[doc = "- @field semiMajorAxisLength: half length of the major axis of the ellipse located in the X-Y Plane."]
2220 #[doc = ""]
2221 #[doc = "- @field semiMinorAxisLength: half length of the minor axis of the ellipse located in the X-Y Plane."]
2222 #[doc = ""]
2223 #[doc = "- @field orientation: the optional orientation of the major axis of the ellipse, measured with "]
2224 #[doc = "positive values turning around the z-axis using the right-hand rule, starting from the X-axis. "]
2225 #[doc = ""]
2226 #[doc = "- @field height: the optional height, present if the shape is a right elliptical cylinder extending "]
2227 #[doc = "in the positive Z-axis."]
2228 #[doc = ""]
2229 #[doc = "\n\n@category: GeoReference information"]
2230 #[doc = "\n\n@revision: Created in V2.1.1, the type of the field orientation changed and the description revised in V2.2.1"]
2231 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2232 #[rasn(automatic_tags)]
2233 pub struct EllipticalShape {
2234 #[rasn(identifier = "shapeReferencePoint")]
2235 pub shape_reference_point: Option<CartesianPosition3d>,
2236 #[rasn(identifier = "semiMajorAxisLength")]
2237 pub semi_major_axis_length: StandardLength12b,
2238 #[rasn(identifier = "semiMinorAxisLength")]
2239 pub semi_minor_axis_length: StandardLength12b,
2240 pub orientation: Option<CartesianAngleValue>,
2241 pub height: Option<StandardLength12b>,
2242 }
2243 impl EllipticalShape {
2244 pub fn new(
2245 shape_reference_point: Option<CartesianPosition3d>,
2246 semi_major_axis_length: StandardLength12b,
2247 semi_minor_axis_length: StandardLength12b,
2248 orientation: Option<CartesianAngleValue>,
2249 height: Option<StandardLength12b>,
2250 ) -> Self {
2251 Self {
2252 shape_reference_point,
2253 semi_major_axis_length,
2254 semi_minor_axis_length,
2255 orientation,
2256 height,
2257 }
2258 }
2259 }
2260
2261 #[doc = "This DE indicates whether a vehicle (e.g. public transport vehicle, truck) is under the embarkation process."]
2262 #[doc = "If that is the case, the value is *TRUE*, otherwise *FALSE*."]
2263 #[doc = ""]
2264 #[doc = "\n\n@category: Vehicle information"]
2265 #[doc = "\n\n@revision: editorial update in V2.1.1"]
2266 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2267 #[rasn(delegate)]
2268 pub struct EmbarkationStatus(pub bool);
2269 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2270 #[rasn(delegate)]
2271 pub struct EmergencyPriority(pub FixedBitString<2usize>);
2272
2273 #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode \"emergencyVehicleApproaching\". "]
2274 #[doc = ""]
2275 #[doc = "The value shall be set to:"]
2276 #[doc = "- 0 - `unavailable` - in case further detailed information on the emergency vehicle approaching event "]
2277 #[doc = " is unavailable,"]
2278 #[doc = "- 1 - `emergencyVehicleApproaching` - in case an operating emergency vehicle is approaching,"]
2279 #[doc = "- 2 - `prioritizedVehicleApproaching` - in case a prioritized vehicle is approaching,"]
2280 #[doc = "- 3-255 - reserved for future usage."]
2281 #[doc = ""]
2282 #[doc = "\n\n@category: Traffic information"]
2283 #[doc = "\n\n@revision: V1.3.1"]
2284 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2285 #[rasn(delegate, value("0..=255"))]
2286 pub struct EmergencyVehicleApproachingSubCauseCode(pub u8);
2287
2288 #[doc = "This DE indicated the type of energy being used and stored in vehicle."]
2289 #[doc = ""]
2290 #[doc = "The corresponding bit shall be set to 1 under the following conditions:"]
2291 #[doc = "- 0 - `hydrogenStorage` - when hydrogen is being used and stored in vehicle,"]
2292 #[doc = "- 1 - `electricEnergyStorage` - when electric energy is being used and stored in vehicle,"]
2293 #[doc = "- 2 - `liquidPropaneGas` - when liquid Propane Gas (LPG) is being used and stored in vehicle, "]
2294 #[doc = "- 3 - `compressedNaturalGas ` - when compressedNaturalGas (CNG) is being used and stored in vehicle,"]
2295 #[doc = "- 4 - `diesel` - when diesel is being used and stored in vehicle,"]
2296 #[doc = "- 5 - `gasoline` - when gasoline is being used and stored in vehicle,"]
2297 #[doc = "- 6 - `ammonia` - when ammonia is being used and stored in vehicle."]
2298 #[doc = ""]
2299 #[doc = "- Otherwise, the corresponding bit shall be set to `0`."]
2300 #[doc = ""]
2301 #[doc = "\n\n@category: Vehicle information"]
2302 #[doc = "\n\n@revision: editorial revision in V2.1.1 "]
2303 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2304 #[rasn(delegate)]
2305 pub struct EnergyStorageType(pub FixedBitString<7usize>);
2306
2307 #[doc = ""]
2308 #[doc = "This DF represents a vehicle category according to the UNECE/TRANS/WP.29/78/Rev.4."]
2309 #[doc = "The following options are available:"]
2310 #[doc = ""]
2311 #[doc = "- @field euVehicleCategoryL: indicates a vehicle in the L category."]
2312 #[doc = ""]
2313 #[doc = "- @field euVehicleCategoryM: indicates a vehicle in the M category."]
2314 #[doc = ""]
2315 #[doc = "- @field euVehicleCategoryN: indicates a vehicle in the N category."]
2316 #[doc = ""]
2317 #[doc = "- @field euVehicleCategoryO: indicates a vehicle in the O category."]
2318 #[doc = ""]
2319 #[doc = "- @field euVehicleCategoryT: indicates a vehicle in the T category."]
2320 #[doc = ""]
2321 #[doc = "- @field euVehicleCategoryG: indicates a vehicle in the G category."]
2322 #[doc = ""]
2323 #[doc = "\n\n@category: Vehicle information"]
2324 #[doc = "\n\n@revision: Created in V2.1.1"]
2325 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2326 #[rasn(choice, automatic_tags)]
2327 pub enum EuVehicleCategoryCode {
2328 euVehicleCategoryL(EuVehicleCategoryL),
2329 euVehicleCategoryM(EuVehicleCategoryM),
2330 euVehicleCategoryN(EuVehicleCategoryN),
2331 euVehicleCategoryO(EuVehicleCategoryO),
2332 euVehicleCategoryT(()),
2333 euVehicleCategoryG(()),
2334 }
2335
2336 #[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."]
2337 #[doc = ""]
2338 #[doc = ""]
2339 #[doc = "\n\n@category: Vehicle information"]
2340 #[doc = "\n\n@revision: V2.1.1"]
2341 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2342 #[rasn(enumerated)]
2343 pub enum EuVehicleCategoryL {
2344 l1 = 0,
2345 l2 = 1,
2346 l3 = 2,
2347 l4 = 3,
2348 l5 = 4,
2349 l6 = 5,
2350 l7 = 6,
2351 }
2352
2353 #[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."]
2354 #[doc = ""]
2355 #[doc = ""]
2356 #[doc = "\n\n@category: Vehicle information"]
2357 #[doc = "\n\n@revision: V2.1.1"]
2358 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2359 #[rasn(enumerated)]
2360 pub enum EuVehicleCategoryM {
2361 m1 = 0,
2362 m2 = 1,
2363 m3 = 2,
2364 }
2365
2366 #[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."]
2367 #[doc = ""]
2368 #[doc = ""]
2369 #[doc = "\n\n@category: Vehicle information"]
2370 #[doc = "\n\n@revision: V2.1.1"]
2371 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2372 #[rasn(enumerated)]
2373 pub enum EuVehicleCategoryN {
2374 n1 = 0,
2375 n2 = 1,
2376 n3 = 2,
2377 }
2378
2379 #[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."]
2380 #[doc = ""]
2381 #[doc = ""]
2382 #[doc = "\n\n@category: Vehicle information"]
2383 #[doc = "\n\n@revision: V2.1.1"]
2384 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2385 #[rasn(enumerated)]
2386 pub enum EuVehicleCategoryO {
2387 o1 = 0,
2388 o2 = 1,
2389 o3 = 2,
2390 o4 = 3,
2391 }
2392
2393 #[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."]
2394 #[doc = ""]
2395 #[doc = "It shall include the following components: "]
2396 #[doc = ""]
2397 #[doc = "- @field zAngle: z-angle of object bounding box at the time of measurement, with the associated confidence."]
2398 #[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. "]
2399 #[doc = "This extrinsic rotation shall be applied around the centre point of the object bounding box before all other rotations."]
2400 #[doc = ""]
2401 #[doc = "- @field yAngle: optional y-angle of object bounding box at the time of measurement, with the associated confidence."]
2402 #[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. "]
2403 #[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."]
2404 #[doc = ""]
2405 #[doc = "- @field xAngle: optional x-angle of object bounding box at the time of measurement, with the associated confidence."]
2406 #[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. "]
2407 #[doc = "This extrinsic rotation shall be applied around the centre point of the object bounding box after all other rotations."]
2408 #[doc = ""]
2409 #[doc = "\n\n@category: Basic information"]
2410 #[doc = "\n\n@revision: Created in V2.1.1"]
2411 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2412 #[rasn(automatic_tags)]
2413 pub struct EulerAnglesWithConfidence {
2414 #[rasn(identifier = "zAngle")]
2415 pub z_angle: CartesianAngle,
2416 #[rasn(identifier = "yAngle")]
2417 pub y_angle: Option<CartesianAngle>,
2418 #[rasn(identifier = "xAngle")]
2419 pub x_angle: Option<CartesianAngle>,
2420 }
2421 impl EulerAnglesWithConfidence {
2422 pub fn new(
2423 z_angle: CartesianAngle,
2424 y_angle: Option<CartesianAngle>,
2425 x_angle: Option<CartesianAngle>,
2426 ) -> Self {
2427 Self {
2428 z_angle,
2429 y_angle,
2430 x_angle,
2431 }
2432 }
2433 }
2434
2435 #[doc = "The DF shall contain a list of @ref EventPoint. "]
2436 #[doc = ""]
2437 #[doc = "The eventPosition of each @ref EventPoint is defined with respect to the previous @ref EventPoint in the list. "]
2438 #[doc = "Except for the first @ref EventPoint which is defined with respect to a position outside of the context of this DF."]
2439 #[doc = ""]
2440 #[doc = "\n\n@category: GeoReference information, Traffic information"]
2441 #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref EventZone instead. "]
2442 #[doc = "\n\n@revision: Generalized the semantics in V2.1.1"]
2443 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2444 #[rasn(delegate, size("1..=23"))]
2445 pub struct EventHistory(pub SequenceOf<EventPoint>);
2446
2447 #[doc = "This DF provides information related to an event at a defined position."]
2448 #[doc = ""]
2449 #[doc = "It shall include the following components: "]
2450 #[doc = ""]
2451 #[doc = "- @field eventPosition: offset position of a detected event point to a defined position. "]
2452 #[doc = ""]
2453 #[doc = "- @field eventDeltaTime: optional time travelled by the detecting ITS-S since the previous detected event point."]
2454 #[doc = ""]
2455 #[doc = "- @field informationQuality: Information quality of the detection for this event point."]
2456 #[doc = ""]
2457 #[doc = "\n\n@category: GeoReference information, Traffic information"]
2458 #[doc = "\n\n@revision: generalized the semantics in V2.1.1"]
2459 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2460 #[rasn(automatic_tags)]
2461 pub struct EventPoint {
2462 #[rasn(identifier = "eventPosition")]
2463 pub event_position: DeltaReferencePosition,
2464 #[rasn(identifier = "eventDeltaTime")]
2465 pub event_delta_time: Option<PathDeltaTime>,
2466 #[rasn(identifier = "informationQuality")]
2467 pub information_quality: InformationQuality,
2468 }
2469 impl EventPoint {
2470 pub fn new(
2471 event_position: DeltaReferencePosition,
2472 event_delta_time: Option<PathDeltaTime>,
2473 information_quality: InformationQuality,
2474 ) -> Self {
2475 Self {
2476 event_position,
2477 event_delta_time,
2478 information_quality,
2479 }
2480 }
2481 }
2482
2483 #[doc = "The DF shall contain a list of @ref EventPoint, where all @ref EventPoint either contain the COMPONENT eventDeltaTime "]
2484 #[doc = "or do not contain the COMPONENT eventDeltaTime. "]
2485 #[doc = ""]
2486 #[doc = "The eventPosition of each @ref EventPoint is defined with respect to the previous @ref EventPoint in the list. "]
2487 #[doc = "Except for the first @ref EventPoint which is defined with respect to a position outside of the context of this DF."]
2488 #[doc = ""]
2489 #[doc = "\n\n@category: GeoReference information, Traffic information"]
2490 #[doc = "\n\n@revision: created in V2.1.1 based on EventHistory"]
2491 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2492 #[rasn(delegate)]
2493 pub struct EventZone(pub EventHistory);
2494 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2495 #[rasn(choice)]
2496 pub enum Ext1 {
2497 #[rasn(value("128..=16511"), tag(context, 0))]
2498 content(u16),
2499 #[rasn(tag(context, 1))]
2500 extension(Ext2),
2501 }
2502 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2503 #[rasn(choice)]
2504 pub enum Ext2 {
2505 #[rasn(value("16512..=2113663"), tag(context, 0))]
2506 content(u32),
2507 #[rasn(tag(context, 1))]
2508 extension(Ext3),
2509 }
2510 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2511 #[rasn(delegate, value("2113664..=270549119", extensible))]
2512 pub struct Ext3(pub Integer);
2513
2514 #[doc = "This DE describes the status of the exterior light switches of a vehicle incl. VRU vehicles."]
2515 #[doc = ""]
2516 #[doc = "The corresponding bit shall be set to 1 under the following conditions:"]
2517 #[doc = "- 0 - `lowBeamHeadlightsOn` - when the low beam head light switch is on,"]
2518 #[doc = "- 1 - `highBeamHeadlightsOn` - when the high beam head light switch is on,"]
2519 #[doc = "- 2 - `leftTurnSignalOn` - when the left turnSignal switch is on,"]
2520 #[doc = "- 3 - `rightTurnSignalOn` - when the right turn signal switch is on,"]
2521 #[doc = "- 4 - `daytimeRunningLightsOn` - when the daytime running light switch is on,"]
2522 #[doc = "- 5 - `reverseLightOn` - when the reverse light switch is on,"]
2523 #[doc = "- 6 - `fogLightOn` - when the tail fog light switch is on,"]
2524 #[doc = "- 7 - `parkingLightsOn` - when the parking light switch is on."]
2525 #[doc = ""]
2526 #[doc = "\n\n@note: The value of each bit indicates the state of the switch, which commands the corresponding light."]
2527 #[doc = "The bit corresponding to a specific light is set to `1`, when the corresponding switch is turned on,"]
2528 #[doc = "either manually by the driver or automatically by a vehicle system. The bit value does not indicate"]
2529 #[doc = "if the corresponding lamps are alight or not."]
2530 #[doc = ""]
2531 #[doc = "If a vehicle is not equipped with a certain light or if the light switch status information is not available,"]
2532 #[doc = "the corresponding bit shall be set to `0`."]
2533 #[doc = ""]
2534 #[doc = "As the bit value indicates only the state of the switch, the turn signal and hazard signal bit values shall not"]
2535 #[doc = "alternate with the blinking interval."]
2536 #[doc = ""]
2537 #[doc = "For hazard indicator, the `leftTurnSignalOn (2)` and `rightTurnSignalOn (3)` shall be both set to `1`."]
2538 #[doc = ""]
2539 #[doc = "\n\n@category Vehicle information"]
2540 #[doc = "\n\n@revision: Description revised in V2.1.1"]
2541 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2542 #[rasn(delegate)]
2543 pub struct ExteriorLights(pub FixedBitString<8usize>);
2544
2545 #[doc = "This DF represents the top-level DF to represent a lane position. A lane position is a transversal position on the carriageway at a specific longitudinal position, in resolution of lanes of the carriageway."]
2546 #[doc = ""]
2547 #[doc = "\n\n@note: This DF is the most general way to represent a lane position: it provides a complete set of information regarding a transversal (dimensionless) position on the carriageway at a specific "]
2548 #[doc = "reference position, i.e. it provides different options and synonyms to represent the lane at which the reference position (the point) is located. A confidence is used to describe the probability "]
2549 #[doc = "that the object is located in the provided lane. The dimension of the object or extension of an area are not considered: See @ref OccupiedLanesWithConfidence for describing the occupation of lanes, "]
2550 #[doc = "where the dimensions of an object or the extension of an area is considered."]
2551 #[doc = ""]
2552 #[doc = "It shall include the following components: "]
2553 #[doc = ""]
2554 #[doc = "- @field lanePositionBased: lane position information for a defined reference position."]
2555 #[doc = ""]
2556 #[doc = "- @field mapBased: optional lane position information described in the context of a MAPEM as specified in ETSI TS 103 301. "]
2557 #[doc = "If present, it shall describe the same reference position using the lane identification in the MAPEM. This component can be used only if a MAPEM is available for the reference position "]
2558 #[doc = "(e.g. on an intersection): In this case it is used as a synonym to the mandatory component lanePositionBased. "]
2559 #[doc = ""]
2560 #[doc = "- @field confidence: confidence information for expressing the probability that the object is located at the indicated lane. "]
2561 #[doc = "If the value of the component lanePositionBased is generated directly from the absolute reference position and reference topology information, "]
2562 #[doc = "no sensor shall be indicated in the component usedDetectionInformation of the @ref MetaInformation."]
2563 #[doc = ""]
2564 #[doc = "\n\n@category: Road Topology information"]
2565 #[doc = "\n\n@revision: newly created in V2.2.1. The previous DF GeneralizedLanePosition is now renamed to @ref LanePositionOptions. "]
2566 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2567 #[rasn(automatic_tags)]
2568 #[non_exhaustive]
2569 pub struct GeneralizedLanePosition {
2570 #[rasn(identifier = "lanePositionBased")]
2571 pub lane_position_based: LanePositionOptions,
2572 #[rasn(identifier = "mapBased")]
2573 pub map_based: Option<MapPosition>,
2574 pub confidence: MetaInformation,
2575 }
2576 impl GeneralizedLanePosition {
2577 pub fn new(
2578 lane_position_based: LanePositionOptions,
2579 map_based: Option<MapPosition>,
2580 confidence: MetaInformation,
2581 ) -> Self {
2582 Self {
2583 lane_position_based,
2584 map_based,
2585 confidence,
2586 }
2587 }
2588 }
2589
2590 #[doc = "This DF represents transversal position information with respect to the road, at an externally defined reference position. It shall contain a set of up to `4` @ref GeneralizedLanePosition."]
2591 #[doc = "Multiple entries can be used to describe several lane positions with the associated confidence, in cases where the reference position cannot be mapped to a single lane."]
2592 #[doc = ""]
2593 #[doc = "\n\n@category: Road Topology information"]
2594 #[doc = "\n\n@revision: Created in V2.2.1"]
2595 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2596 #[rasn(delegate, size("1..=4"))]
2597 pub struct GeneralizedLanePositions(pub SequenceOf<GeneralizedLanePosition>);
2598
2599 #[doc = "This DE represents a timestamp based on TimestampIts modulo 65 536."]
2600 #[doc = "This means that generationDeltaTime = TimestampIts mod 65 536."]
2601 #[doc = ""]
2602 #[doc = "\n\n@category: Basic information"]
2603 #[doc = "\n\n@revision: Created in V2.1.1 based on ETSI TS 103 900"]
2604 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2605 #[rasn(delegate, value("0..=65535"))]
2606 pub struct GenerationDeltaTime(pub u16);
2607
2608 #[doc = "This DF indicates a geographical position."]
2609 #[doc = ""]
2610 #[doc = "It shall include the following components: "]
2611 #[doc = ""]
2612 #[doc = "- @field latitude: the latitude of the geographical position."]
2613 #[doc = ""]
2614 #[doc = "- @field longitude: the longitude of the geographical position."]
2615 #[doc = ""]
2616 #[doc = "- @field altitude: the altitude of the geographical position with default value unavailable."]
2617 #[doc = ""]
2618 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2619 #[rasn(automatic_tags)]
2620 pub struct GeoPosition {
2621 pub latitude: Latitude,
2622 pub longitude: Longitude,
2623 #[rasn(default = "geo_position_altitude_default")]
2624 pub altitude: AltitudeValue,
2625 }
2626 impl GeoPosition {
2627 pub fn new(latitude: Latitude, longitude: Longitude, altitude: AltitudeValue) -> Self {
2628 Self {
2629 latitude,
2630 longitude,
2631 altitude,
2632 }
2633 }
2634 }
2635 fn geo_position_altitude_default() -> AltitudeValue {
2636 AltitudeValue(800001)
2637 }
2638
2639 #[doc = "This DE indicates the current status of a hard shoulder: whether it is available for special usage"]
2640 #[doc = "(e.g. for stopping or for driving) or closed for all vehicles."]
2641 #[doc = ""]
2642 #[doc = "The value shall be set to:"]
2643 #[doc = "- 0 - `availableForStopping` - if the hard shoulder is available for stopping in e.g. emergency situations,"]
2644 #[doc = "- 1 - `closed` - if the hard shoulder is closed and cannot be occupied in any case,"]
2645 #[doc = "- 2 - `availableForDriving` - if the hard shoulder is available for regular driving."]
2646 #[doc = ""]
2647 #[doc = "\n\n@category: Traffic information"]
2648 #[doc = "\n\n@revision: Description revised in V2.1.1"]
2649 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2650 #[rasn(enumerated)]
2651 pub enum HardShoulderStatus {
2652 availableForStopping = 0,
2653 closed = 1,
2654 availableForDriving = 2,
2655 }
2656
2657 #[doc = "This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-AnimalOnTheRoad`."]
2658 #[doc = ""]
2659 #[doc = "The value shall be set to:"]
2660 #[doc = "- 0 - `unavailable` - in case further detailed information on the animal(s) on the road is unavailable,"]
2661 #[doc = "- 1 - `wildAnimals` - in case wild animals of unknown size are present on the road,"]
2662 #[doc = "- 2 - `herdOfAnimals` - in case a herd of animals is present on the road,"]
2663 #[doc = "- 3 - `smallAnimals` - in case small size animals of unknown type are present on the road,"]
2664 #[doc = "- 4 - `largeAnimals` - in case large size animals of unknown type are present on the road,"]
2665 #[doc = "- 5 - `wildAnimalsSmall` - in case small size wild animal(s) are present on the road,"]
2666 #[doc = "- 6 - `wildAnimalsLarge` - in case large size wild animal(s) are present on the road,"]
2667 #[doc = "- 7 - `domesticAnimals` - in case domestic animal(s) of unknown size are detected on the road,"]
2668 #[doc = "- 8 - `domesticAnimalsSmall` - in case small size domestic animal(s) are present on the road,"]
2669 #[doc = "- 9 - `domesticAnimalsLarge` - in case large size domestic animal(s) are present on the road."]
2670 #[doc = "- 10-255 - are reserved for future usage."]
2671 #[doc = ""]
2672 #[doc = "\n\n@category: Traffic information"]
2673 #[doc = "\n\n@revision: V1.3.1, named values 5 to 9 added in V2.2.1 "]
2674 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2675 #[rasn(
2676 delegate,
2677 identifier = "HazardousLocation-AnimalOnTheRoadSubCauseCode",
2678 value("0..=255")
2679 )]
2680 pub struct HazardousLocationAnimalOnTheRoadSubCauseCode(pub u8);
2681
2682 #[doc = "This DE represents the sub cause code of the @ref CauseCode `hazardousLocation-DangerousCurve`."]
2683 #[doc = ""]
2684 #[doc = "The value shall be set to:"]
2685 #[doc = "- 0 - `unavailable` - in case further detailed information on the dangerous curve is unavailable,"]
2686 #[doc = "- 1 - `dangerousLeftTurnCurve` - in case the dangerous curve is a left turn curve,"]
2687 #[doc = "- 2 - `dangerousRightTurnCurve` - in case the dangerous curve is a right turn curve,"]
2688 #[doc = "- 3 - `multipleCurvesStartingWithUnknownTurningDirection` - in case of multiple curves for which the starting curve turning direction is not known,"]
2689 #[doc = "- 4 - `multipleCurvesStartingWithLeftTurn` - in case of multiple curves starting with a left turn curve,"]
2690 #[doc = "- 5 - `multipleCurvesStartingWithRightTurn` - in case of multiple curves starting with a right turn curve."]
2691 #[doc = "- 6-255 - are reserved for future usage."]
2692 #[doc = ""]
2693 #[doc = "The definition of whether a curve is dangerous may vary according to region and according to vehicle types/mass"]
2694 #[doc = "and vehicle speed driving on the curve. This definition is out of scope of the present document."]
2695 #[doc = ""]
2696 #[doc = "\n\n@category: Traffic information"]
2697 #[doc = "\n\n@revision: V1.3.1"]
2698 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2699 #[rasn(
2700 delegate,
2701 identifier = "HazardousLocation-DangerousCurveSubCauseCode",
2702 value("0..=255")
2703 )]
2704 pub struct HazardousLocationDangerousCurveSubCauseCode(pub u8);
2705
2706 #[doc = "This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-ObstacleOnTheRoad`. "]
2707 #[doc = ""]
2708 #[doc = "The value shall be set to:"]
2709 #[doc = "- 0 - `unavailable` - in case further detailed information on the detected obstacle is unavailable,"]
2710 #[doc = "- 1 - `shedLoad` - in case detected obstacle is large amount of obstacles (shedload),"]
2711 #[doc = "- 2 - `partsOfVehicles`- in case detected obstacles are parts of vehicles,"]
2712 #[doc = "- 3 - `partsOfTyres` - in case the detected obstacles are parts of tyres,"]
2713 #[doc = "- 4 - `bigObjects` - in case the detected obstacles are big objects,"]
2714 #[doc = "- 5 - `fallenTrees` - in case the detected obstacles are fallen trees,"]
2715 #[doc = "- 6 - `hubCaps` - in case the detected obstacles are hub caps,"]
2716 #[doc = "- 7 - `waitingVehicles`- in case the detected obstacles are waiting vehicles."]
2717 #[doc = "- 8-255 - are reserved for future usage."]
2718 #[doc = ""]
2719 #[doc = "\n\n@category: Traffic information"]
2720 #[doc = "\n\n@revision: V1.3.1"]
2721 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2722 #[rasn(
2723 delegate,
2724 identifier = "HazardousLocation-ObstacleOnTheRoadSubCauseCode",
2725 value("0..=255")
2726 )]
2727 pub struct HazardousLocationObstacleOnTheRoadSubCauseCode(pub u8);
2728
2729 #[doc = "This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-SurfaceCondition`. "]
2730 #[doc = ""]
2731 #[doc = "The value shall be set to:"]
2732 #[doc = "- 0 - `unavailable` - in case further detailed information on the road surface condition is unavailable,"]
2733 #[doc = "- 1 - `rockfalls` - in case rock falls are detected on the road surface,"]
2734 #[doc = "- 2 - `earthquakeDamage`- in case the road surface is damaged by earthquake,"]
2735 #[doc = "- 3 - `sewerCollapse` - in case of sewer collapse on the road surface,"]
2736 #[doc = "- 4 - `subsidence` - in case road surface is damaged by subsidence,"]
2737 #[doc = "- 5 - `snowDrifts` - in case road surface is damaged due to snow drift,"]
2738 #[doc = "- 6 - `stormDamage` - in case road surface is damaged by strong storm,"]
2739 #[doc = "- 7 - `burstPipe` - in case road surface is damaged due to pipe burst,"]
2740 #[doc = "- 8 - `volcanoEruption` - in case road surface is damaged due to volcano eruption,"]
2741 #[doc = "- 9 - `fallingIce` - in case road surface damage is due to falling ice,"]
2742 #[doc = "- 10 - `fire` - in case there is fire on or near to the road surface."]
2743 #[doc = "- 11-255 - are reserved for future usage."]
2744 #[doc = ""]
2745 #[doc = "\n\n@category: Traffic information"]
2746 #[doc = "\n\n@revision: V1.3.1"]
2747 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2748 #[rasn(
2749 delegate,
2750 identifier = "HazardousLocation-SurfaceConditionSubCauseCode",
2751 value("0..=255")
2752 )]
2753 pub struct HazardousLocationSurfaceConditionSubCauseCode(pub u8);
2754
2755 #[doc = "This DF represents the Heading in a WGS84 co-ordinates system."]
2756 #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
2757 #[doc = ""]
2758 #[doc = "It shall include the following components: "]
2759 #[doc = ""]
2760 #[doc = "- @field headingValue: the heading value."]
2761 #[doc = ""]
2762 #[doc = "- @field headingConfidence: the confidence value of the heading value with a predefined confidence level."]
2763 #[doc = ""]
2764 #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84Angle instead. "]
2765 #[doc = "\n\n@category: Kinematic Information"]
2766 #[doc = "\n\n@revision: Description revised in V2.1.1"]
2767 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2768 #[rasn(automatic_tags)]
2769 pub struct Heading {
2770 #[rasn(identifier = "headingValue")]
2771 pub heading_value: HeadingValue,
2772 #[rasn(identifier = "headingConfidence")]
2773 pub heading_confidence: HeadingConfidence,
2774 }
2775 impl Heading {
2776 pub fn new(heading_value: HeadingValue, heading_confidence: HeadingConfidence) -> Self {
2777 Self {
2778 heading_value,
2779 heading_confidence,
2780 }
2781 }
2782 }
2783
2784 #[doc = "This DF provides information associated to heading change indicators such as a change of direction."]
2785 #[doc = ""]
2786 #[doc = "It shall include the following components: "]
2787 #[doc = ""]
2788 #[doc = "- @field direction: the direction of heading change value."]
2789 #[doc = ""]
2790 #[doc = "- @field actionDeltaTime: the period over which a direction change action is performed. "]
2791 #[doc = ""]
2792 #[doc = "\n\n@category: Kinematic Information"]
2793 #[doc = "\n\n@revision: created in V2.1.1"]
2794 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2795 #[rasn(automatic_tags)]
2796 #[non_exhaustive]
2797 pub struct HeadingChangeIndication {
2798 pub direction: TurningDirection,
2799 #[rasn(identifier = "actionDeltaTime")]
2800 pub action_delta_time: DeltaTimeTenthOfSecond,
2801 }
2802 impl HeadingChangeIndication {
2803 pub fn new(direction: TurningDirection, action_delta_time: DeltaTimeTenthOfSecond) -> Self {
2804 Self {
2805 direction,
2806 action_delta_time,
2807 }
2808 }
2809 }
2810
2811 #[doc = "This DE indicates the heading confidence value which represents the estimated absolute accuracy of a heading value with a confidence level of 95 %."]
2812 #[doc = ""]
2813 #[doc = "The value shall be set to:"]
2814 #[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,"]
2815 #[doc = "- `126` if the confidence value is out of range, i.e. greater than 12,5 degrees,"]
2816 #[doc = "- `127` if the confidence value information is not available."]
2817 #[doc = ""]
2818 #[doc = "\n\n@note:\tThe fact that a value is received with confidence value set to `unavailable(127)` can be caused by several reasons,"]
2819 #[doc = "such as:"]
2820 #[doc = "- the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
2821 #[doc = "- the sensor cannot calculate the accuracy due to lack of variables, or"]
2822 #[doc = "- there has been a vehicle bus (e.g. CAN bus) error."]
2823 #[doc = "In all 3 cases above, the heading value may be valid and used by the application."]
2824 #[doc = ""]
2825 #[doc = "\n\n@note: If a heading value is received and its confidence value is set to `outOfRange(126)`, it means that the "]
2826 #[doc = "heading value is not valid and therefore cannot be trusted. Such value is not useful for the application."]
2827 #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84AngleConfidence instead. "]
2828 #[doc = ""]
2829 #[doc = "\n\n@unit: 0,1 degree"]
2830 #[doc = "\n\n@category: GeoReference information"]
2831 #[doc = "\n\n@revision: Description revised in V2.1.1"]
2832 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2833 #[rasn(delegate, value("1..=127"))]
2834 pub struct HeadingConfidence(pub u8);
2835
2836 #[doc = "This DE represents the orientation of the horizontal velocity vector with regards to the WGS84 north."]
2837 #[doc = "When the information is not available, the DE shall be set to 3 601. The value 3600 shall not be used."]
2838 #[doc = ""]
2839 #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84AngleValue instead. "]
2840 #[doc = ""]
2841 #[doc = "Unit: 0,1 degree"]
2842 #[doc = "Categories: GeoReference information"]
2843 #[doc = "\n\n@revision: Description revised in V2.1.1 (usage of value 3600 specified) "]
2844 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2845 #[rasn(delegate, value("0..=3601"))]
2846 pub struct HeadingValue(pub u16);
2847
2848 #[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"]
2849 #[doc = "rear to front). "]
2850 #[doc = ""]
2851 #[doc = "The value shall be set to:"]
2852 #[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,"]
2853 #[doc = "- `99` if the height is out of range, i.e. equal to or greater than 0,98 m,"]
2854 #[doc = "- `100` if the height information is not available."]
2855 #[doc = ""]
2856 #[doc = "\n\n@unit 0,01 metre"]
2857 #[doc = "\n\n@category Vehicle information"]
2858 #[doc = "\n\n@revision: Description revised in V2.1.1 (the definition of 99 has changed slightly) "]
2859 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2860 #[rasn(delegate, value("1..=100"))]
2861 pub struct HeightLonCarr(pub u8);
2862
2863 #[doc = "This DE represents the value of the sub cause code of the @ref CauseCode `humanPresenceOnTheRoad`."]
2864 #[doc = ""]
2865 #[doc = "The value shall be set to:"]
2866 #[doc = "- 0 - `unavailable` - in case further detailed information abou the human presence on the road is unavailable,"]
2867 #[doc = "- 1 - `childrenOnRoadway` - in case children are present on the road,"]
2868 #[doc = "- 2 - `cyclistOnRoadway` - in case cyclist(s) are present on the road,"]
2869 #[doc = "- 3 - `motorcyclistOnRoadway` - in case motorcyclist(s) are present on the road,"]
2870 #[doc = "- 4 - `pedestrian` - in case pedestrian(s) of any type are present on the road,"]
2871 #[doc = "- 5 - `ordinary-pedestrian` - in case pedestrian(s) to which no more-specific profile applies are present on the road,"]
2872 #[doc = "- 6 - `road-worker` - in case pedestrian(s) with the role of a road worker applies are present on the road,"]
2873 #[doc = "- 7 - `first-responder` - in case pedestrian(s) with the role of a first responder applies are present on the road, "]
2874 #[doc = "- 8 - `lightVruVehicle - in case light vru vehicle(s) of any type are present on the road,"]
2875 #[doc = "- 9 - `bicyclist ` - in case cycle(s) and their bicyclist(s) are present on the road,"]
2876 #[doc = "- 10 - `wheelchair-user` - in case wheelchair(s) and their user(s) are present on the road,"]
2877 #[doc = "- 11 - `horse-and-rider` - in case horse(s) and rider(s) are present on the road,"]
2878 #[doc = "- 12 - `rollerskater` - in case rolleskater(s) and skater(s) are present on the road,"]
2879 #[doc = "- 13 - `e-scooter` - in case e-scooter(s) and rider(s) are present on the road,"]
2880 #[doc = "- 14 - `personal-transporter` - in case personal-transporter(s) and rider(s) are present on the road,"]
2881 #[doc = "- 15 - `pedelec` - in case pedelec(s) and rider(s) are present on the road,"]
2882 #[doc = "- 16 - `speed-pedelec` - in case speed-pedelec(s) and rider(s) are present on the road,"]
2883 #[doc = "- 17 - `ptw` - in case powered-two-wheeler(s) of any type are present on the road,"]
2884 #[doc = "- 18 - `moped` - in case moped(s) and rider(s) are present on the road,"]
2885 #[doc = "- 19 - `motorcycle` - in case motorcycle(s) and rider(s) are present on the road,"]
2886 #[doc = "- 20 - `motorcycle-and-sidecar-right` - in case motorcycle(s) with sidecar(s) on the right and rider are present on the road,"]
2887 #[doc = "- 21 - `motorcycle-and-sidecar-left` - in case motorcycle(s) with sidecar(s) on the left and rider are present on the road."]
2888 #[doc = "- 22-255 - are reserved for future usage."]
2889 #[doc = ""]
2890 #[doc = "\n\n@category: Traffic information"]
2891 #[doc = "\n\n@revision: editorial revision in V2.1.1, named values 4-21 added in V2.2.1"]
2892 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2893 #[rasn(delegate, value("0..=255"))]
2894 pub struct HumanPresenceOnTheRoadSubCauseCode(pub u8);
2895
2896 #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode \"humanProblem\"."]
2897 #[doc = ""]
2898 #[doc = "The value shall be set to:"]
2899 #[doc = "- 0 - `unavailable` - in case further detailed information on human health problem is unavailable,"]
2900 #[doc = "- 1 - `glycemiaProblem`- in case human problem is due to glycaemia problem,"]
2901 #[doc = "- 2 - `heartProblem` - in case human problem is due to heart problem."]
2902 #[doc = "- 3-255 - reserved for future usage."]
2903 #[doc = ""]
2904 #[doc = "\n\n@category: Traffic information"]
2905 #[doc = "\n\n@revision: V1.3.1"]
2906 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2907 #[rasn(delegate, value("0..=255"))]
2908 pub struct HumanProblemSubCauseCode(pub u8);
2909
2910 #[doc = "This DE is a general identifier."]
2911 #[doc = ""]
2912 #[doc = "\n\n@category: Basic information"]
2913 #[doc = "\n\n@revision: Created in V2.1.1"]
2914 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2915 #[rasn(delegate, value("0..=255"))]
2916 pub struct Identifier1B(pub u8);
2917
2918 #[doc = "This DE is a general identifier."]
2919 #[doc = ""]
2920 #[doc = "\n\n@category: Basic information"]
2921 #[doc = "\n\n@revision: Created in V2.1.1"]
2922 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2923 #[rasn(delegate, value("0..=65535"))]
2924 pub struct Identifier2B(pub u16);
2925
2926 #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `impassability`"]
2927 #[doc = ""]
2928 #[doc = "The value shall be set to:"]
2929 #[doc = "- 0 `unavailable` - in case further detailed information about the unmanaged road blockage is unavailable,"]
2930 #[doc = "- 1 `flooding ` - in case the road is affected by flooding,"]
2931 #[doc = "- 2 `dangerOfAvalanches` - in case the road is at risk of being affected or blocked by avalanches,"]
2932 #[doc = "- 3 `blastingOfAvalanches` - in case there is an active blasting of avalanches on or near the road,"]
2933 #[doc = "- 4 `landslips` - in case the road is affected by landslips,"]
2934 #[doc = "- 5 `chemicalSpillage` - in case the road is affected by chemical spillage,"]
2935 #[doc = "- 6 `winterClosure` - in case the road is impassable due to a winter closure."]
2936 #[doc = "- 7 `sinkhole` - in case the road is impassable due to large holes in the road surface."]
2937 #[doc = "- 8 `earthquakeDamage` - in case the road is obstructed or partially obstructed because of damage caused by an earthquake."]
2938 #[doc = "- 9 `fallenTrees` - in case the road is obstructed or partially obstructed by one or more fallen trees. "]
2939 #[doc = "- 10 `rockfalls` - in case the road is obstructed or partially obstructed due to fallen rocks."]
2940 #[doc = "- 11 `sewerOverflow` - in case the road is obstructed or partially obstructed by overflows from one or more sewers. "]
2941 #[doc = "- 12 `stormDamage` - in case the road is obstructed or partially obstructed by debris caused by strong winds."]
2942 #[doc = "- 13 `subsidence` - in case the road surface has sunken or collapsed in places."]
2943 #[doc = "- 14 `burstPipe` - in case the road surface has sunken or collapsed in places due to burst pipes."]
2944 #[doc = "- 15 `burstWaterMain` - in case the road is obstructed due to local flooding and/or subsidence. "]
2945 #[doc = "- 16 `fallenPowerCables` - in case the road is obstructed or partly obstructed by one or more fallen power cables."]
2946 #[doc = "- 17 `snowDrifts` - in case the road is obstructed or partially obstructed by snow drifting in progress or patches of deep snow due to earlier drifting."]
2947 #[doc = "- 15-255 - are reserved for future usage."]
2948 #[doc = ""]
2949 #[doc = "\n\n@category: Traffic information"]
2950 #[doc = "\n\n@revision: Created in V2.2.1"]
2951 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2952 #[rasn(delegate, value("0..=255"))]
2953 pub struct ImpassabilitySubCauseCode(pub u8);
2954
2955 #[doc = "This DE represents the quality level of provided information."]
2956 #[doc = ""]
2957 #[doc = "The value shall be set to:"]
2958 #[doc = "- `0` if the information is unavailable,"]
2959 #[doc = "- `1` if the quality level is lowest,"]
2960 #[doc = "- `n` (`n > 1` and `n < 7`) if the quality level is n, "]
2961 #[doc = "- `7` if the quality level is highest."]
2962 #[doc = ""]
2963 #[doc = "\n\n@note: Definition of quality level is out of scope of the present document."]
2964 #[doc = "\n\n@category: Basic information"]
2965 #[doc = "\n\n@revision: Editorial update in V2.1.1"]
2966 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2967 #[rasn(delegate, value("0..=7"))]
2968 pub struct InformationQuality(pub u8);
2969
2970 #[doc = "This DF represents a frequency channel "]
2971 #[doc = ""]
2972 #[doc = "It shall include the following components: "]
2973 #[doc = ""]
2974 #[doc = "- @field centreFrequency: the centre frequency of the channel in 10^(exp+2) Hz (where exp is exponent)"]
2975 #[doc = ""]
2976 #[doc = "- @field channelWidth: width of the channel in 10^exp Hz (where exp is exponent)"]
2977 #[doc = ""]
2978 #[doc = "- @field exponent: exponent of the power of 10 used in the calculation of the components above."]
2979 #[doc = ""]
2980 #[doc = "\n\n@category: Communication information"]
2981 #[doc = "\n\n@revision: created in V2.1.1"]
2982 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2983 #[rasn(automatic_tags)]
2984 pub struct InterferenceManagementChannel {
2985 #[rasn(value("1..=99999"), identifier = "centreFrequency")]
2986 pub centre_frequency: u32,
2987 #[rasn(value("0..=9999"), identifier = "channelWidth")]
2988 pub channel_width: u16,
2989 #[rasn(value("0..=15"))]
2990 pub exponent: u8,
2991 }
2992 impl InterferenceManagementChannel {
2993 pub fn new(centre_frequency: u32, channel_width: u16, exponent: u8) -> Self {
2994 Self {
2995 centre_frequency,
2996 channel_width,
2997 exponent,
2998 }
2999 }
3000 }
3001
3002 #[doc = "This DF shall contain a list of up to 16 definitions containing interference management information, per affected frequency channels."]
3003 #[doc = " "]
3004 #[doc = "\n\n@category: Communication information."]
3005 #[doc = "\n\n@revision: created in V2.1.1"]
3006 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3007 #[rasn(delegate, size("1..=16", extensible))]
3008 pub struct InterferenceManagementInfo(pub SequenceOf<InterferenceManagementInfoPerChannel>);
3009
3010 #[doc = "This DF contains interference management information for one affected frequency channel."]
3011 #[doc = ""]
3012 #[doc = "It shall include the following components: "]
3013 #[doc = ""]
3014 #[doc = "- @field interferenceManagementChannel: frequency channel for which the zone should be applied interference management "]
3015 #[doc = ""]
3016 #[doc = "- @field interferenceManagementZoneType: type of the interference management zone. "]
3017 #[doc = ""]
3018 #[doc = "- @field interferenceManagementMitigationType: optional type of the mitigation to be used in the interference management zone. "]
3019 #[doc = "In the case where no mitigation should be applied by the ITS-S, this is indicated by the field interferenceManagementMitigationType being absent."]
3020 #[doc = ""]
3021 #[doc = "- @field expiryTime: optional time at which the validity of the interference management communication zone will expire. "]
3022 #[doc = "This component is present when the interference management is temporarily valid"]
3023 #[doc = ""]
3024 #[doc = "\n\n@category: Communication information"]
3025 #[doc = "\n\n@revision: created in V2.1.1"]
3026 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3027 #[rasn(automatic_tags)]
3028 #[non_exhaustive]
3029 pub struct InterferenceManagementInfoPerChannel {
3030 #[rasn(identifier = "interferenceManagementChannel")]
3031 pub interference_management_channel: InterferenceManagementChannel,
3032 #[rasn(identifier = "interferenceManagementZoneType")]
3033 pub interference_management_zone_type: InterferenceManagementZoneType,
3034 #[rasn(identifier = "interferenceManagementMitigationType")]
3035 pub interference_management_mitigation_type: Option<MitigationForTechnologies>,
3036 #[rasn(identifier = "expiryTime")]
3037 pub expiry_time: Option<TimestampIts>,
3038 }
3039 impl InterferenceManagementInfoPerChannel {
3040 pub fn new(
3041 interference_management_channel: InterferenceManagementChannel,
3042 interference_management_zone_type: InterferenceManagementZoneType,
3043 interference_management_mitigation_type: Option<MitigationForTechnologies>,
3044 expiry_time: Option<TimestampIts>,
3045 ) -> Self {
3046 Self {
3047 interference_management_channel,
3048 interference_management_zone_type,
3049 interference_management_mitigation_type,
3050 expiry_time,
3051 }
3052 }
3053 }
3054
3055 #[doc = ""]
3056 #[doc = "This DF represents a zone inside which the ITS communication should be restricted in order to manage interference."]
3057 #[doc = ""]
3058 #[doc = "It shall include the following components: "]
3059 #[doc = ""]
3060 #[doc = "- @field zoneDefinition: contains the geographical definition of the zone."]
3061 #[doc = ""]
3062 #[doc = "- @field managementInfo: contains interference management information applicable in the zone defined in the component zoneDefinition."]
3063 #[doc = ""]
3064 #[doc = "\n\n@category: Communication information"]
3065 #[doc = "\n\n@revision: created in V2.1.1"]
3066 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3067 #[rasn(automatic_tags)]
3068 pub struct InterferenceManagementZone {
3069 #[rasn(identifier = "zoneDefinition")]
3070 pub zone_definition: InterferenceManagementZoneDefinition,
3071 #[rasn(identifier = "managementInfo")]
3072 pub management_info: InterferenceManagementInfo,
3073 }
3074 impl InterferenceManagementZone {
3075 pub fn new(
3076 zone_definition: InterferenceManagementZoneDefinition,
3077 management_info: InterferenceManagementInfo,
3078 ) -> Self {
3079 Self {
3080 zone_definition,
3081 management_info,
3082 }
3083 }
3084 }
3085
3086 #[doc = "This DF represents the geographical definition of the zone where band sharing occurs. "]
3087 #[doc = ""]
3088 #[doc = "It shall include the following components: "]
3089 #[doc = ""]
3090 #[doc = "- @field interferenceManagementZoneLatitude: Latitude of the centre point of the interference management zone."]
3091 #[doc = ""]
3092 #[doc = "- @field interferenceManagementZoneLongitude: Longitude of the centre point of the interference management zone."]
3093 #[doc = ""]
3094 #[doc = "- @field interferenceManagementZoneId: optional identification of the interference management zone. "]
3095 #[doc = ""]
3096 #[doc = "- @field interferenceManagementZoneShape: shape of the interference management zone placed at the centre point. "]
3097 #[doc = ""]
3098 #[doc = "\n\n@category: Communication information"]
3099 #[doc = "\n\n@revision: created in V2.1.1"]
3100 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3101 #[rasn(automatic_tags)]
3102 #[non_exhaustive]
3103 pub struct InterferenceManagementZoneDefinition {
3104 #[rasn(identifier = "interferenceManagementZoneLatitude")]
3105 pub interference_management_zone_latitude: Latitude,
3106 #[rasn(identifier = "interferenceManagementZoneLongitude")]
3107 pub interference_management_zone_longitude: Longitude,
3108 #[rasn(identifier = "interferenceManagementZoneId")]
3109 pub interference_management_zone_id: Option<ProtectedZoneId>,
3110 #[rasn(value("0.."), identifier = "interferenceManagementZoneShape")]
3111 pub interference_management_zone_shape: Option<Shape>,
3112 }
3113 impl InterferenceManagementZoneDefinition {
3114 pub fn new(
3115 interference_management_zone_latitude: Latitude,
3116 interference_management_zone_longitude: Longitude,
3117 interference_management_zone_id: Option<ProtectedZoneId>,
3118 interference_management_zone_shape: Option<Shape>,
3119 ) -> Self {
3120 Self {
3121 interference_management_zone_latitude,
3122 interference_management_zone_longitude,
3123 interference_management_zone_id,
3124 interference_management_zone_shape,
3125 }
3126 }
3127 }
3128
3129 #[doc = "This DE defines the type of an interference management zone, so that an ITS-S can "]
3130 #[doc = "assert the actions to do while passing by such zone (e.g. reduce the transmit power in case of a DSRC tolling station)."]
3131 #[doc = "It is an extension of the type @ref ProtectedZoneType."]
3132 #[doc = ""]
3133 #[doc = "The value shall be set to:"]
3134 #[doc = "- 0 - `permanentCenDsrcTolling` - as specified in ETSI TS 102 792,"]
3135 #[doc = "- 1 - `temporaryCenDsrcTolling` - as specified in ETSI TS 102 792,"]
3136 #[doc = "- 2 - `unavailable` - default value. Set to 2 for backwards compatibility with DSRC tolling,"]
3137 #[doc = "- 3 - `urbanRail` - as specified in ETSI TS 103 724, clause 7,"]
3138 #[doc = "- 4 - `satelliteStation` - as specified in ETSI TS 103 724, clause 7,"]
3139 #[doc = "- 5 - `fixedLinks` - as specified in ETSI TS 103 724, clause 7."]
3140 #[doc = ""]
3141 #[doc = "\n\n@category: Communication information"]
3142 #[doc = "\n\n@revision: Created in V2.1.1"]
3143 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3144 #[rasn(enumerated)]
3145 #[non_exhaustive]
3146 pub enum InterferenceManagementZoneType {
3147 permanentCenDsrcTolling = 0,
3148 temporaryCenDsrcTolling = 1,
3149 unavailable = 2,
3150 urbanRail = 3,
3151 satelliteStation = 4,
3152 fixedLinks = 5,
3153 }
3154
3155 #[doc = "This DF shall contain a list of up to 16 interference management zones. "]
3156 #[doc = ""]
3157 #[doc = "*EXAMPLE**: An interference management communication zone may be defined around a CEN DSRC road side equipment or an urban rail operational area."]
3158 #[doc = ""]
3159 #[doc = "\n\n@category: Communication information"]
3160 #[doc = "\n\n@revision: created in V2.1.1"]
3161 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3162 #[rasn(delegate, size("1..=16", extensible))]
3163 pub struct InterferenceManagementZones(pub SequenceOf<InterferenceManagementZone>);
3164
3165 #[doc = "This DF represents a unique id for an intersection, in accordance with ETSI TS 103 301."]
3166 #[doc = ""]
3167 #[doc = "It shall include the following components: "]
3168 #[doc = ""]
3169 #[doc = "- @field region: the optional identifier of the entity that is responsible for the region in which the intersection is placed."]
3170 #[doc = "It is the duty of that entity to guarantee that the @ref Id is unique within the region."]
3171 #[doc = ""]
3172 #[doc = "- @field id: the identifier of the intersection"]
3173 #[doc = ""]
3174 #[doc = "\n\n@note: when the component region is present, the IntersectionReferenceId is guaranteed to be globally unique."]
3175 #[doc = "\n\n@category: Road topology information"]
3176 #[doc = "\n\n@revision: created in V2.1.1"]
3177 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3178 #[rasn(automatic_tags)]
3179 pub struct IntersectionReferenceId {
3180 pub region: Option<Identifier2B>,
3181 pub id: Identifier2B,
3182 }
3183 impl IntersectionReferenceId {
3184 pub fn new(region: Option<Identifier2B>, id: Identifier2B) -> Self {
3185 Self { region, id }
3186 }
3187 }
3188
3189 #[doc = "This DE represents the vehicle type according to ISO 3833."]
3190 #[doc = "A \"term No\" refers to the number of the corresponding term and its definition in ISO 3833."]
3191 #[doc = ""]
3192 #[doc = "The value shall be set to:"]
3193 #[doc = "- 0\t- `passengerCar` - term No 3.1.1"]
3194 #[doc = "- 1\t- `saloon` - term No 3.1.1.1 (sedan)"]
3195 #[doc = "- 2\t- `convertibleSaloon` - term No 3.1.1.2"]
3196 #[doc = "- 3\t- `pullmanSaloon` - term No 3.1.1.3"]
3197 #[doc = "- 4\t- `stationWagon` - term No 3.1.1.4"]
3198 #[doc = "- 5\t- `truckStationWagon` - term No 3.1.1.4.1"]
3199 #[doc = "- 6\t- `coupe` - term No 3.1.1.5 (coupe)"]
3200 #[doc = "- 7\t- `convertible` - term No 3.1.1.6 (open tourer, roadstar, spider)"]
3201 #[doc = "- 8\t- `multipurposePassengerCar` - term No 3.1.1.7"]
3202 #[doc = "- 9\t- `forwardControlPassengerCar`- term No 3.1.1.8"]
3203 #[doc = "- 10\t- `specialPassengerCar` - term No 3.1.1.9"]
3204 #[doc = "- 11\t- `bus` - term No 3.1.2"]
3205 #[doc = "- 12\t- `minibus` - term No 3.1.2.1"]
3206 #[doc = "- 13\t- `urbanBus` - term No 3.1.2.2"]
3207 #[doc = "- 14\t- `interurbanCoach` - term No 3.1.2.3"]
3208 #[doc = "- 15\t- `longDistanceCoach` - term No 3.1.2.4"]
3209 #[doc = "- 16\t- `articulatedBus` - term No 3.1.2.5"]
3210 #[doc = "- 17\t- `trolleyBus\t` - term No 3.1.2.6"]
3211 #[doc = "- 18\t- `specialBus` - term No 3.1.2.7"]
3212 #[doc = "- 19\t- `commercialVehicle` - term No 3.1.3"]
3213 #[doc = "- 20\t- `specialCommercialVehicle` - term No 3.1.3.1"]
3214 #[doc = "- 21\t- `specialVehicle` - term No 3.1.4"]
3215 #[doc = "- 22\t- `trailingTowingVehicle` - term No 3.1.5 (draw-bar tractor)"]
3216 #[doc = "- 23\t- `semiTrailerTowingVehicle` - term No 3.1.6 (fifth wheel tractor)"]
3217 #[doc = "- 24\t- `trailer` - term No 3.2.1"]
3218 #[doc = "- 25\t- `busTrailer` - term No 3.2.1.1"]
3219 #[doc = "- 26\t- `generalPurposeTrailer` - term No 3.2.1.2"]
3220 #[doc = "- 27\t- `caravan` - term No 3.2.1.3"]
3221 #[doc = "- 28\t- `specialTrailer` - term No 3.2.1.4"]
3222 #[doc = "- 29\t- `semiTrailer` - term No 3.2.2"]
3223 #[doc = "- 30\t- `busSemiTrailer` - term No 3.2.2.1"]
3224 #[doc = "- 31\t- `generalPurposeSemiTrailer` - term No 3.2.2.2"]
3225 #[doc = "- 32\t- `specialSemiTrailer` - term No 3.2.2.3"]
3226 #[doc = "- 33\t- `roadTrain` - term No 3.3.1"]
3227 #[doc = "- 34\t- `passengerRoadTrain` - term No 3.3.2"]
3228 #[doc = "- 35\t- `articulatedRoadTrain` - term No 3.3.3"]
3229 #[doc = "- 36\t- `doubleRoadTrain` - term No 3.3.4"]
3230 #[doc = "- 37\t- `compositeRoadTrain` - term No 3.3.5"]
3231 #[doc = "- 38\t- `specialRoadTrain` - term No 3.3.6"]
3232 #[doc = "- 39\t- `moped` - term No 3.4"]
3233 #[doc = "- 40\t- `motorCycle` - term No 3.5"]
3234 #[doc = "- 41-255 - reserved for future use"]
3235 #[doc = ""]
3236 #[doc = "\n\n@category: Vehicle information"]
3237 #[doc = "\n\n@revision: Created in V2.1.1"]
3238 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3239 #[rasn(delegate, value("0..=255"))]
3240 pub struct Iso3833VehicleType(pub u8);
3241
3242 #[doc = "This DE represent the identifier of an organization according to the applicable registry."]
3243 #[doc = ""]
3244 #[doc = "\n\n@category: Basic information"]
3245 #[doc = "\n\n@revision: Created in V2.2.1 based on ISO 14816"]
3246 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3247 #[rasn(delegate, value("0..=16383"))]
3248 pub struct IssuerIdentifier(pub u16);
3249
3250 #[doc = "This DF shall contain a list of waypoints @ref ReferencePosition."]
3251 #[doc = ""]
3252 #[doc = "\n\n@category: GeoReference information"]
3253 #[doc = "\n\n@revision: Editorial update in V2.1.1"]
3254 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3255 #[rasn(delegate, size("1..=40"))]
3256 pub struct ItineraryPath(pub SequenceOf<ReferencePosition>);
3257
3258 #[doc = "This DF represents a common message header for application and facilities layer messages."]
3259 #[doc = "It is included at the beginning of an ITS message as the message header."]
3260 #[doc = ""]
3261 #[doc = "It shall include the following components: "]
3262 #[doc = ""]
3263 #[doc = "- @field protocolVersion: version of the ITS message."]
3264 #[doc = ""]
3265 #[doc = "- @field messageId: type of the ITS message."]
3266 #[doc = ""]
3267 #[doc = "- @field stationId: the identifier of the ITS-S that generated the ITS message."]
3268 #[doc = ""]
3269 #[doc = "\n\n@category: Communication information"]
3270 #[doc = "\n\n@revision: update in V2.1.1: messageID and stationID changed to messageId and stationId; messageId is of type MessageId."]
3271 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3272 #[rasn(automatic_tags)]
3273 pub struct ItsPduHeader {
3274 #[rasn(identifier = "protocolVersion")]
3275 pub protocol_version: OrdinalNumber1B,
3276 #[rasn(identifier = "messageId")]
3277 pub message_id: MessageId,
3278 #[rasn(identifier = "stationId")]
3279 pub station_id: StationId,
3280 }
3281 impl ItsPduHeader {
3282 pub fn new(
3283 protocol_version: OrdinalNumber1B,
3284 message_id: MessageId,
3285 station_id: StationId,
3286 ) -> Self {
3287 Self {
3288 protocol_version,
3289 message_id,
3290 station_id,
3291 }
3292 }
3293 }
3294
3295 #[doc = "This DE represents the identifier of the IVIM."]
3296 #[doc = ""]
3297 #[doc = "\n\n@category: Basic information"]
3298 #[doc = "\n\n@revision: Created in V2.2.1 based on ETSI TS 103 301"]
3299 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3300 #[rasn(delegate, value("1..=32767", extensible))]
3301 pub struct IviIdentificationNumber(pub Integer);
3302
3303 #[doc = "This DF provides the reference to the information contained in a IVIM according to ETSI TS 103 301. "]
3304 #[doc = ""]
3305 #[doc = "It shall include the following components: "]
3306 #[doc = ""]
3307 #[doc = "- @field serviceProviderId: identifier of the organization that provided the IVIM."]
3308 #[doc = ""]
3309 #[doc = "- @field iviIdentificationNumber: identifier of the IVIM, as assigned by the organization identified in serviceProviderId."]
3310 #[doc = ""]
3311 #[doc = "\n\n@category: Communication information"]
3312 #[doc = "\n\n@revision: Created in V2.2.1"]
3313 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3314 #[rasn(automatic_tags)]
3315 pub struct IvimReference {
3316 #[rasn(identifier = "serviceProviderId")]
3317 pub service_provider_id: Provider,
3318 #[rasn(identifier = "iviIdentificationNumber")]
3319 pub ivi_identification_number: IviIdentificationNumber,
3320 }
3321 impl IvimReference {
3322 pub fn new(
3323 service_provider_id: Provider,
3324 ivi_identification_number: IviIdentificationNumber,
3325 ) -> Self {
3326 Self {
3327 service_provider_id,
3328 ivi_identification_number,
3329 }
3330 }
3331 }
3332
3333 #[doc = "This DF shall contain a list of @ref IvimReference."]
3334 #[doc = ""]
3335 #[doc = "\n\n@category: Communication information"]
3336 #[doc = "\n\n@revision: Created in V2.2.1"]
3337 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3338 #[rasn(delegate, size("1..=8", extensible))]
3339 pub struct IvimReferences(pub SequenceOf<IvimReference>);
3340
3341 #[doc = "This DE indicates a transversal position on the carriageway at a specific longitudinal position, in resolution of lanes of the carriageway. "]
3342 #[doc = ""]
3343 #[doc = "For right-hand traffic roads, the value shall be set to:"]
3344 #[doc = "- `-1` if the position is off, i.e. besides the road,"]
3345 #[doc = "- `0` if the position is on the inner hard shoulder, i.e. the hard should adjacent to the leftmost lane,"]
3346 #[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,"]
3347 #[doc = "- `14` if the position is on the outer hard shoulder, i.e. the hard should adjacent to rightmost lane (if present)."]
3348 #[doc = ""]
3349 #[doc = "For left-hand traffic roads, the value shall be set to:"]
3350 #[doc = "- `-1` if the position is off, i.e. besides the road,"]
3351 #[doc = "- `0` if the position is on the inner hard shoulder, i.e. the hard should adjacent to the rightmost lane,"]
3352 #[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,"]
3353 #[doc = "- `14` if the position is on the outer hard shoulder, i.e. the hard should adjacent to leftmost lane (if present)."]
3354 #[doc = ""]
3355 #[doc = " @note: in practice this means that the position is counted from \"inside\" to \"outside\" no matter which traffic practice is used."]
3356 #[doc = ""]
3357 #[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. "]
3358 #[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), "]
3359 #[doc = "the position is counted from the legal (i.e. optical) separation between traffic directions (horizontal marking). "]
3360 #[doc = ""]
3361 #[doc = "If not indicated otherwise (by lane markings or traffic signs), the legal separation on carriageways allowing traffic on both directions is identified as follows:"]
3362 #[doc = "- If the total number of lanes N is even, the lanes are divided evenly between the traffic directions starting from the outside of the carriageway on both sides and the "]
3363 #[doc = " imaginary separation between traffic directions is on the border between the even number of lanes N/2."]
3364 #[doc = "- If the total number of lanes N is odd, the lanes are divided evenly between traffic direction starting from the outside of the carriageway on both sides. "]
3365 #[doc = " The remaining middle lane is assigned to both traffic directions as innermost lane."]
3366 #[doc = ""]
3367 #[doc = "\n\n@category: Road topology information"]
3368 #[doc = "\n\n@revision: Description of the legal separation of carriageways added in V2.2.1"]
3369 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3370 #[rasn(delegate, value("-1..=14"))]
3371 pub struct LanePosition(pub i8);
3372
3373 #[doc = "This DF indicates a transversal position in resolution of lanes and other associated details."]
3374 #[doc = ""]
3375 #[doc = "It shall include the following components: "]
3376 #[doc = ""]
3377 #[doc = "- @field transversalPosition: the transversal position."]
3378 #[doc = ""]
3379 #[doc = "- @field laneType: the type of the lane identified in the component transversalPosition. By default set to `traffic`."]
3380 #[doc = ""]
3381 #[doc = "- @field direction: the traffic direction for the lane position relative to a defined reference direction. By default set to `sameDirection`, i.e. following the reference direction."]
3382 #[doc = ""]
3383 #[doc = "\n\n@category Road topology information"]
3384 #[doc = "\n\n@revision: direction added in V2.2.1"]
3385 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3386 #[rasn(automatic_tags)]
3387 #[non_exhaustive]
3388 pub struct LanePositionAndType {
3389 #[rasn(identifier = "transversalPosition")]
3390 pub transversal_position: LanePosition,
3391 #[rasn(
3392 default = "lane_position_and_type_lane_type_default",
3393 identifier = "laneType"
3394 )]
3395 pub lane_type: LaneType,
3396 #[rasn(default = "lane_position_and_type_direction_default")]
3397 pub direction: Direction,
3398 }
3399 impl LanePositionAndType {
3400 pub fn new(
3401 transversal_position: LanePosition,
3402 lane_type: LaneType,
3403 direction: Direction,
3404 ) -> Self {
3405 Self {
3406 transversal_position,
3407 lane_type,
3408 direction,
3409 }
3410 }
3411 }
3412 fn lane_position_and_type_lane_type_default() -> LaneType {
3413 LaneType(0)
3414 }
3415 fn lane_position_and_type_direction_default() -> Direction {
3416 Direction(0)
3417 }
3418
3419 #[doc = "This DF represents a set of options to describe a lane position and is the second level DF to represent a lane position. The top-level DFs are @ref GeneralizedLanePosition or @ref OccupiedLanesWithConfidence. "]
3420 #[doc = "A lane position is a transversal position on the carriageway at a specific longitudinal position, in resolution of lanes of the carriageway."]
3421 #[doc = ""]
3422 #[doc = "The following options are available:"]
3423 #[doc = ""]
3424 #[doc = "- @field simplelanePosition: a single lane position without any additional context information."]
3425 #[doc = ""]
3426 #[doc = "- @field simpleLaneType: a lane type, to be used when the lane position is unknown but the type of lane is known. This can be used in scenarios where a certain confidence about the used lane type is given "]
3427 #[doc = "but no or limited knowledge about the absolute lane number is available. For example, a cyclist on a cycle-lane or vehicles on a specific lane that is unique for the part of the road (e.g. a bus lane)."]
3428 #[doc = ""]
3429 #[doc = "- @field detailedlanePosition: a single lane position with additional lane details."]
3430 #[doc = ""]
3431 #[doc = "- @field lanePositionWithLateralDetails: a single lane position with additional details and the lateral position within the lane."]
3432 #[doc = ""]
3433 #[doc = "- @field trafficIslandPosition: a position on a traffic island, i.e. between two lanes. "]
3434 #[doc = ""]
3435 #[doc = "\n\n@category: Road Topology information"]
3436 #[doc = "\n\n@revision: Created in V2.2.1 from the DF GeneralizedLanePosition of V2.1.1. "]
3437 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3438 #[rasn(choice, automatic_tags)]
3439 #[non_exhaustive]
3440 pub enum LanePositionOptions {
3441 simplelanePosition(LanePosition),
3442 simpleLaneType(LaneType),
3443 detailedlanePosition(LanePositionAndType),
3444 lanePositionWithLateralDetails(LanePositionWithLateralDetails),
3445 trafficIslandPosition(TrafficIslandPosition),
3446 }
3447
3448 #[doc = "This DF is a third-level DF that represents a lane position and is an extended version of @ref LanePositionAndType that adds the distances to the left and right lane border."]
3449 #[doc = ""]
3450 #[doc = "It shall additionally include the following components: "]
3451 #[doc = ""]
3452 #[doc = "- @field distanceToLeftBorder: the distance of the transversal position to the left lane border. The real value shall be rounded to the next lower encoding-value."]
3453 #[doc = ""]
3454 #[doc = "- @field distanceToRightBorder: the distance of the transversal position to the right lane border. The real value shall be rounded to the next lower encoding-value."]
3455 #[doc = ""]
3456 #[doc = "\n\n@category: Road Topology information"]
3457 #[doc = "\n\n@revision: Created in V2.2.1"]
3458 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3459 #[rasn(automatic_tags)]
3460 #[non_exhaustive]
3461 pub struct LanePositionWithLateralDetails {
3462 #[rasn(identifier = "distanceToLeftBorder")]
3463 pub distance_to_left_border: StandardLength9b,
3464 #[rasn(identifier = "distanceToRightBorder")]
3465 pub distance_to_right_border: StandardLength9b,
3466 #[rasn(identifier = "transversalPosition")]
3467 pub transversal_position: LanePosition,
3468 #[rasn(
3469 default = "lane_position_with_lateral_details_lane_type_default",
3470 identifier = "laneType"
3471 )]
3472 pub lane_type: LaneType,
3473 #[rasn(default = "lane_position_with_lateral_details_direction_default")]
3474 pub direction: Direction,
3475 }
3476 impl LanePositionWithLateralDetails {
3477 pub fn new(
3478 distance_to_left_border: StandardLength9b,
3479 distance_to_right_border: StandardLength9b,
3480 transversal_position: LanePosition,
3481 lane_type: LaneType,
3482 direction: Direction,
3483 ) -> Self {
3484 Self {
3485 distance_to_left_border,
3486 distance_to_right_border,
3487 transversal_position,
3488 lane_type,
3489 direction,
3490 }
3491 }
3492 }
3493 fn lane_position_with_lateral_details_lane_type_default() -> LaneType {
3494 LaneType(0)
3495 }
3496 fn lane_position_with_lateral_details_direction_default() -> Direction {
3497 Direction(0)
3498 }
3499
3500 #[doc = "This DE represents the type of a lane. "]
3501 #[doc = ""]
3502 #[doc = "The value shall be set to:"]
3503 #[doc = "- 0\t- `traffic` - Lane dedicated to the movement of vehicles,"]
3504 #[doc = "- 1\t- `through` - Lane dedicated to the movement of vehicles travelling ahead and not turning,"]
3505 #[doc = "- 2\t- `reversible` - Lane where the direction of traffic can be changed to match the peak flow,"]
3506 #[doc = "- 3\t- `acceleration`\t - Lane that allows vehicles entering a road to accelerate to the speed of through traffic before merging with it,"]
3507 #[doc = "- 4\t- `deceleration` - Lane that allows vehicles exiting a road to decelerate before leaving it,"]
3508 #[doc = "- 5\t- `leftHandTurning` - Lane reserved for slowing down and making a left turn, so as not to disrupt traffic,"]
3509 #[doc = "- 6\t- `rightHandTurning` - Lane reserved for slowing down and making a right turn so as not to disrupt traffic,"]
3510 #[doc = "- 7\t- `dedicatedVehicle` - Lane dedicated to movement of motor vehicles with specific characteristics, such as heavy goods vehicles, etc., "]
3511 #[doc = "- 8\t- `bus` - Lane dedicated to movement of buses providing public transport,"]
3512 #[doc = "- 9\t- `taxi` - Lane dedicated to movement of taxis,"]
3513 #[doc = "- 10\t- `hov` - Carpooling lane or high occupancy vehicle lane,"]
3514 #[doc = "- 11\t- `hot` - High occupancy vehicle lanes that is allowed to be used without meeting the occupancy criteria by paying a toll,"]
3515 #[doc = "- 12\t- `pedestrian` - Lanes dedicated to pedestrians such as pedestrian sidewalk paths,"]
3516 #[doc = "- 13\t- `cycleLane`\t - Lane dedicated to exclusive or preferred use by bicycles,"]
3517 #[doc = "- 14\t- `median` - Lane not dedicated to movement of vehicles but representing a median / central reservation such as the central median, "]
3518 #[doc = " separating the two directional carriageways of the highway,"]
3519 #[doc = "- 15\t- `striping`\t - Lane not dedicated to movement of vehicles but covered with roadway markings,"]
3520 #[doc = "- 16\t- `trackedVehicle` - Lane dedicated to movement of trains, trams and trolleys,"]
3521 #[doc = "- 17\t- `parking` - Lanes dedicated to vehicles parking, stopping and loading lanes,"]
3522 #[doc = "- 18\t- `emergency` - Lane dedicated to vehicles in breakdown or to emergency vehicles also called hard shoulder,"]
3523 #[doc = "- 19\t- `verge` - Lane representing the verge, i.e. a narrow strip of grass or plants and sometimes also trees located between "]
3524 #[doc = " the road surface edge and the boundary of a road,"]
3525 #[doc = "- 20\t`minimumRiskManoeuvre` - Lane dedicated to automated vehicles making a minimum risk manoeuvre,"]
3526 #[doc = "- 21\t`separatedCycleLane` - Lane dedicated to exclusive or preferred use by bicycles that is phyisically separated from the vehicle-traffic lanes, e.g. by a verge."]
3527 #[doc = "- values 22 to 30 reserved for future use. "]
3528 #[doc = ""]
3529 #[doc = "\n\n@category: Road topology information"]
3530 #[doc = "\n\n@revision: Created in V2.1.1, named value 21 added in V2.2.1"]
3531 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3532 #[rasn(delegate, value("0..=31"))]
3533 pub struct LaneType(pub u8);
3534
3535 #[doc = "This DE represents the width of a lane measured at a defined position."]
3536 #[doc = ""]
3537 #[doc = "The value shall be set to:"]
3538 #[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,"]
3539 #[doc = "- `1022` if the lane width is out of range, i.e. greater than 10,21 m,"]
3540 #[doc = "- `1023` if the lane width information is not available."]
3541 #[doc = ""]
3542 #[doc = "The value 0 shall not be used."]
3543 #[doc = ""]
3544 #[doc = "\n\n@unit: 0,01 metre"]
3545 #[doc = "\n\n@category: Road topology information"]
3546 #[doc = "\n\n@revision: Created in V2.1.1"]
3547 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3548 #[rasn(delegate, value("0..=1023"))]
3549 pub struct LaneWidth(pub u16);
3550
3551 #[doc = "This DF indicates the vehicle acceleration at lateral direction and the confidence value of the lateral acceleration."]
3552 #[doc = ""]
3553 #[doc = "It shall include the following components: "]
3554 #[doc = ""]
3555 #[doc = "- @field lateralAccelerationValue: lateral acceleration value at a point in time."]
3556 #[doc = ""]
3557 #[doc = "- @field lateralAccelerationConfidence: confidence value of the lateral acceleration value."]
3558 #[doc = ""]
3559 #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead."]
3560 #[doc = "\n\n@category Vehicle information"]
3561 #[doc = "\n\n@revision: Description revised in V2.1.1"]
3562 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3563 #[rasn(automatic_tags)]
3564 pub struct LateralAcceleration {
3565 #[rasn(identifier = "lateralAccelerationValue")]
3566 pub lateral_acceleration_value: LateralAccelerationValue,
3567 #[rasn(identifier = "lateralAccelerationConfidence")]
3568 pub lateral_acceleration_confidence: AccelerationConfidence,
3569 }
3570 impl LateralAcceleration {
3571 pub fn new(
3572 lateral_acceleration_value: LateralAccelerationValue,
3573 lateral_acceleration_confidence: AccelerationConfidence,
3574 ) -> Self {
3575 Self {
3576 lateral_acceleration_value,
3577 lateral_acceleration_confidence,
3578 }
3579 }
3580 }
3581
3582 #[doc = "This DE represents the vehicle acceleration at lateral direction in the centre of the mass of the empty vehicle."]
3583 #[doc = "It corresponds to the vehicle coordinate system as specified in ISO 8855."]
3584 #[doc = ""]
3585 #[doc = "The value shall be set to:"]
3586 #[doc = "- `-160` for acceleration values equal to or less than -16 m/s^2,"]
3587 #[doc = "- `n` (`n > -160` and `n <= 0`) to indicate that the vehicle is accelerating towards the right side with regards to the vehicle orientation "]
3588 #[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,"]
3589 #[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 "]
3590 #[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,"]
3591 #[doc = "- `160` for acceleration values greater than 15,9 m/s^2,"]
3592 #[doc = "- `161` when the data is unavailable."]
3593 #[doc = ""]
3594 #[doc = "\n\n@note: the empty load vehicle is defined in ISO 1176, clause 4.6."]
3595 #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationValue instead."]
3596 #[doc = " "]
3597 #[doc = "\n\n@unit: 0,1 m/s^2"]
3598 #[doc = "\n\n@category: Vehicle information"]
3599 #[doc = "\n\n@revision: Description updated in V2.1.1 (the meaning of 160 has changed slightly). "]
3600 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3601 #[rasn(delegate, value("-160..=161"))]
3602 pub struct LateralAccelerationValue(pub i16);
3603
3604 #[doc = "This DE represents the absolute geographical latitude in a WGS84 coordinate system, providing a range of 90 degrees in north or"]
3605 #[doc = "in south hemisphere."]
3606 #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
3607 #[doc = ""]
3608 #[doc = "The value shall be set to:"]
3609 #[doc = "- `n` (`n >= -900 000 000` and `n < 0`) x 10^-7 degree, i.e. negative values for latitudes south of the Equator,"]
3610 #[doc = "- `0` is used for the latitude of the equator,"]
3611 #[doc = "- `n` (`n > 0` and `n < 900 000 001`) x 10^-7 degree, i.e. positive values for latitudes north of the Equator,"]
3612 #[doc = "- `900 000 001` when the information is unavailable."]
3613 #[doc = ""]
3614 #[doc = "\n\n@unit: 10^-7 degree"]
3615 #[doc = "\n\n@category: GeoReference information"]
3616 #[doc = "\n\n@revision: Editorial update in V2.1.1"]
3617 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3618 #[rasn(delegate, value("-900000000..=900000001"))]
3619 pub struct Latitude(pub i32);
3620
3621 #[doc = "This DE indicates the status of light bar and any sort of audible alarm system besides the horn."]
3622 #[doc = "This includes various common sirens as well as backup up beepers and other slow speed manoeuvring alerts."]
3623 #[doc = ""]
3624 #[doc = "The corresponding bit shall be set to 1 under the following conditions:"]
3625 #[doc = "- 0 - `lightBarActivated` - when the light bar is activated,"]
3626 #[doc = "- 1 - `sirenActivated` - when the siren is activated."]
3627 #[doc = ""]
3628 #[doc = "Otherwise, it shall be set to 0."]
3629 #[doc = ""]
3630 #[doc = "\n\n@category Vehicle information"]
3631 #[doc = "\n\n@revision: Editorial update in V2.1.1"]
3632 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3633 #[rasn(delegate)]
3634 pub struct LightBarSirenInUse(pub FixedBitString<2usize>);
3635
3636 #[doc = "This DE represents the absolute geographical longitude in a WGS84 coordinate system, providing a range of 180 degrees"]
3637 #[doc = "to the east or to the west of the prime meridian."]
3638 #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
3639 #[doc = ""]
3640 #[doc = "The value shall be set to:"]
3641 #[doc = "- `n` (`n > -1 800 000 000` and `n < 0`) x 10^-7 degree, i.e. negative values for longitudes to the west,"]
3642 #[doc = "- `0` to indicate the prime meridian,"]
3643 #[doc = "- `n` (`n > 0` and `n < 1 800 000 001`) x 10^-7 degree, i.e. positive values for longitudes to the east,"]
3644 #[doc = "- `1 800 000 001` when the information is unavailable."]
3645 #[doc = ""]
3646 #[doc = "The value -1 800 000 000 shall not be used. "]
3647 #[doc = ""]
3648 #[doc = "\n\n@unit: 10^-7 degree"]
3649 #[doc = "\n\n@category: GeoReference information"]
3650 #[doc = "\n\n@revision: Description revised in V2.1.1"]
3651 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3652 #[rasn(delegate, value("-1800000000..=1800000001"))]
3653 pub struct Longitude(pub i32);
3654
3655 #[doc = "This DF indicates the vehicle acceleration at longitudinal direction and the confidence value of the longitudinal acceleration."]
3656 #[doc = ""]
3657 #[doc = "It shall include the following components: "]
3658 #[doc = ""]
3659 #[doc = "- @field longitudinalAccelerationValue: longitudinal acceleration value at a point in time."]
3660 #[doc = "- @field longitudinalAccelerationConfidence: confidence value of the longitudinal acceleration value."]
3661 #[doc = ""]
3662 #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead. "]
3663 #[doc = "\n\n@category: Vehicle information"]
3664 #[doc = "\n\n@revision: V1.3.1"]
3665 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3666 #[rasn(automatic_tags)]
3667 pub struct LongitudinalAcceleration {
3668 #[rasn(identifier = "longitudinalAccelerationValue")]
3669 pub longitudinal_acceleration_value: LongitudinalAccelerationValue,
3670 #[rasn(identifier = "longitudinalAccelerationConfidence")]
3671 pub longitudinal_acceleration_confidence: AccelerationConfidence,
3672 }
3673 impl LongitudinalAcceleration {
3674 pub fn new(
3675 longitudinal_acceleration_value: LongitudinalAccelerationValue,
3676 longitudinal_acceleration_confidence: AccelerationConfidence,
3677 ) -> Self {
3678 Self {
3679 longitudinal_acceleration_value,
3680 longitudinal_acceleration_confidence,
3681 }
3682 }
3683 }
3684
3685 #[doc = "This DE represents the vehicle acceleration at longitudinal direction in the centre of the mass of the empty vehicle."]
3686 #[doc = "The value shall be provided in the vehicle coordinate system as defined in ISO 8855, clause 2.11."]
3687 #[doc = ""]
3688 #[doc = "The value shall be set to:"]
3689 #[doc = "- `-160` for acceleration values equal to or less than -16 m/s^2,"]
3690 #[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"]
3691 #[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,"]
3692 #[doc = "- `160` for acceleration values greater than 15,9 m/s^2,"]
3693 #[doc = "- `161` when the data is unavailable. "]
3694 #[doc = ""]
3695 #[doc = "This acceleration is along the tangent plane of the road surface and does not include gravity components."]
3696 #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationValue instead."]
3697 #[doc = ""]
3698 #[doc = "\n\n@note: The empty load vehicle is defined in ISO 1176, clause 4.6."]
3699 #[doc = "\n\n@unit: 0,1 m/s^2"]
3700 #[doc = "\n\n@category: Vehicle information"]
3701 #[doc = "\n\n@revision: description revised in V2.1.1 (the meaning of 160 has changed slightly). T"]
3702 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3703 #[rasn(delegate, value("-160..=161"))]
3704 pub struct LongitudinalAccelerationValue(pub i16);
3705
3706 #[doc = "This DF represents the estimated position along the longitudinal extension of a carriageway or lane. "]
3707 #[doc = ""]
3708 #[doc = "It shall include the following components: "]
3709 #[doc = ""]
3710 #[doc = "- @field longitudinalLanePositionValue: the mean value of the longitudinal position along the carriageway or lane w.r.t. an externally defined start position."]
3711 #[doc = ""]
3712 #[doc = "- @field longitudinalLanePositionConfidence: The confidence value associated to the value."]
3713 #[doc = ""]
3714 #[doc = "\n\n@category: Road topology information"]
3715 #[doc = "\n\n@revision: created in V2.1.1, description revised in V2.2.1"]
3716 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3717 #[rasn(automatic_tags)]
3718 pub struct LongitudinalLanePosition {
3719 #[rasn(identifier = "longitudinalLanePositionValue")]
3720 pub longitudinal_lane_position_value: LongitudinalLanePositionValue,
3721 #[rasn(identifier = "longitudinalLanePositionConfidence")]
3722 pub longitudinal_lane_position_confidence: LongitudinalLanePositionConfidence,
3723 }
3724 impl LongitudinalLanePosition {
3725 pub fn new(
3726 longitudinal_lane_position_value: LongitudinalLanePositionValue,
3727 longitudinal_lane_position_confidence: LongitudinalLanePositionConfidence,
3728 ) -> Self {
3729 Self {
3730 longitudinal_lane_position_value,
3731 longitudinal_lane_position_confidence,
3732 }
3733 }
3734 }
3735
3736 #[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 %."]
3737 #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
3738 #[doc = ""]
3739 #[doc = "The value shall be set to:"]
3740 #[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,"]
3741 #[doc = "- `1 022` if the confidence value is out of range i.e. greater than 102,1 m,"]
3742 #[doc = "- `1 023` if the confidence value is unavailable."]
3743 #[doc = ""]
3744 #[doc = "\n\n@unit 0,1 metre"]
3745 #[doc = "\n\n@category: GeoReference information"]
3746 #[doc = "\n\n@revision: Created in V2.1.1"]
3747 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3748 #[rasn(delegate, value("0..=1023"))]
3749 pub struct LongitudinalLanePositionConfidence(pub u16);
3750
3751 #[doc = "This DE represents the longitudinal offset of a map-matched position along a matched lane, beginning from the lane's starting point."]
3752 #[doc = ""]
3753 #[doc = "The value shall be set to:"]
3754 #[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,"]
3755 #[doc = "- `32 766` if the longitudinal offset is out of range, i.e. greater than 3276,5 m,"]
3756 #[doc = "- `32 767` if the longitudinal offset information is not available. "]
3757 #[doc = ""]
3758 #[doc = "\n\n@unit 0,1 metre"]
3759 #[doc = "\n\n@category: GeoReference information"]
3760 #[doc = "\n\n@revision: Created in V2.1.1"]
3761 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3762 #[rasn(delegate, value("0..=32767"))]
3763 pub struct LongitudinalLanePositionValue(pub u16);
3764
3765 #[doc = "This DF shall contain a list of a lower triangular positive semi-definite matrices."]
3766 #[doc = ""]
3767 #[doc = "\n\n@category: Sensing information"]
3768 #[doc = "\n\n@revision: Created in V2.1.1"]
3769 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3770 #[rasn(delegate, size("1..=4"))]
3771 pub struct LowerTriangularPositiveSemidefiniteMatrices(
3772 pub SequenceOf<LowerTriangularPositiveSemidefiniteMatrix>,
3773 );
3774
3775 #[doc = "This DF represents a lower triangular positive semi-definite matrix. "]
3776 #[doc = ""]
3777 #[doc = "It shall include the following components: "]
3778 #[doc = ""]
3779 #[doc = "- @field componentsIncludedIntheMatrix: the indication of which components of a @ref PerceivedObject are included in the matrix. "]
3780 #[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\"."]
3781 #[doc = ""]
3782 #[doc = "- @field matrix: the list of cells of the lower triangular positive semi-definite matrix ordered by columns and by rows. "]
3783 #[doc = ""]
3784 #[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."]
3785 #[doc = "These components shall be included in the order or their appearance in componentsIncludedIntheMatrix."]
3786 #[doc = "Each column \"i\" of the lowerTriangularCorrelationMatrixColumns contains k-(i-1) values."]
3787 #[doc = ""]
3788 #[doc = "\n\n@category: Sensing information"]
3789 #[doc = "\n\n@revision: Created in V2.1.1"]
3790 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3791 #[rasn(automatic_tags)]
3792 pub struct LowerTriangularPositiveSemidefiniteMatrix {
3793 #[rasn(identifier = "componentsIncludedIntheMatrix")]
3794 pub components_included_inthe_matrix: MatrixIncludedComponents,
3795 pub matrix: LowerTriangularPositiveSemidefiniteMatrixColumns,
3796 }
3797 impl LowerTriangularPositiveSemidefiniteMatrix {
3798 pub fn new(
3799 components_included_inthe_matrix: MatrixIncludedComponents,
3800 matrix: LowerTriangularPositiveSemidefiniteMatrixColumns,
3801 ) -> Self {
3802 Self {
3803 components_included_inthe_matrix,
3804 matrix,
3805 }
3806 }
3807 }
3808
3809 #[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."]
3810 #[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."]
3811 #[doc = ""]
3812 #[doc = "\n\n@category: Sensing information"]
3813 #[doc = "\n\n@revision: Created in V2.1.1, extension indicator added in V2.2.1"]
3814 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3815 #[rasn(delegate, size("1..=13", extensible))]
3816 pub struct LowerTriangularPositiveSemidefiniteMatrixColumns(pub SequenceOf<CorrelationColumn>);
3817
3818 #[doc = "This DF indicates a position on a topology description transmitted in a MAPEM according to ETSI TS 103 301."]
3819 #[doc = ""]
3820 #[doc = "It shall include the following components: "]
3821 #[doc = ""]
3822 #[doc = "- @field mapReference: optionally identifies the MAPEM containing the topology information."]
3823 #[doc = "It is absent if the MAPEM topology is known from the context."]
3824 #[doc = ""]
3825 #[doc = "- @field laneId: optionally identifies the lane in the road segment or intersection topology on which the position is located."]
3826 #[doc = ""]
3827 #[doc = "- @field connectionId: optionally identifies the connection inside the conflict area of an intersection, i.e. it identifies a trajectory for travelling through the"]
3828 #[doc = "conflict area of an intersection which connects e.g an ingress with an egress lane."]
3829 #[doc = ""]
3830 #[doc = "- @field longitudinalLanePosition: optionally indicates the longitudinal offset of the map-matched position of the object along the lane or connection measured from the start of the lane/connection, along the lane."]
3831 #[doc = ""]
3832 #[doc = "\n\n@category: Road topology information"]
3833 #[doc = "\n\n@revision: Created in V2.1.1, definition of longitudinalLanePosition amended in V2.2.1"]
3834 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3835 #[rasn(automatic_tags)]
3836 #[non_exhaustive]
3837 pub struct MapPosition {
3838 #[rasn(identifier = "mapReference")]
3839 pub map_reference: Option<MapReference>,
3840 #[rasn(identifier = "laneId")]
3841 pub lane_id: Option<Identifier1B>,
3842 #[rasn(identifier = "connectionId")]
3843 pub connection_id: Option<Identifier1B>,
3844 #[rasn(identifier = "longitudinalLanePosition")]
3845 pub longitudinal_lane_position: Option<LongitudinalLanePosition>,
3846 }
3847 impl MapPosition {
3848 pub fn new(
3849 map_reference: Option<MapReference>,
3850 lane_id: Option<Identifier1B>,
3851 connection_id: Option<Identifier1B>,
3852 longitudinal_lane_position: Option<LongitudinalLanePosition>,
3853 ) -> Self {
3854 Self {
3855 map_reference,
3856 lane_id,
3857 connection_id,
3858 longitudinal_lane_position,
3859 }
3860 }
3861 }
3862
3863 #[doc = "This DF provides the reference to the information contained in a MAPEM according to ETSI TS 103 301. "]
3864 #[doc = ""]
3865 #[doc = "The following options are provided:"]
3866 #[doc = ""]
3867 #[doc = "- @field roadsegment: option that identifies the description of a road segment contained in a MAPEM."]
3868 #[doc = ""]
3869 #[doc = "- @field intersection: option that identifies the description of an intersection contained in a MAPEM."]
3870 #[doc = ""]
3871 #[doc = "\n\n@category: Road topology information"]
3872 #[doc = "\n\n@revision: Created in V2.1.1"]
3873 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3874 #[rasn(choice, automatic_tags)]
3875 pub enum MapReference {
3876 roadsegment(RoadSegmentReferenceId),
3877 intersection(IntersectionReferenceId),
3878 }
3879
3880 #[doc = "This DF shall contain a list of @ref MapReference."]
3881 #[doc = ""]
3882 #[doc = "\n\n@category: Road topology information"]
3883 #[doc = "\n\n@revision: Created in V2.2.1"]
3884 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3885 #[rasn(delegate, size("1..=8", extensible))]
3886 pub struct MapReferences(pub SequenceOf<MapReference>);
3887
3888 #[doc = "This DF provides information about the configuration of a road section in terms of MAPEM lanes or connections using a list of @ref MapemExtractedElementReference. "]
3889 #[doc = "\n\n@category: Road topology information"]
3890 #[doc = "\n\n@revision: Created in V2.2.1"]
3891 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3892 #[rasn(delegate, size("1..=16", extensible))]
3893 pub struct MapemConfiguration(pub SequenceOf<MapemElementReference>);
3894
3895 #[doc = "This DF provides references to MAPEM connections using a list of @ref Identifier1B."]
3896 #[doc = "Note: connections are allowed �maneuvers� (e.g. an ingress / egress relation) on an intersection."]
3897 #[doc = ""]
3898 #[doc = "\n\n@category: Road topology information"]
3899 #[doc = "\n\n@revision: Created in V2.2.1"]
3900 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3901 #[rasn(delegate, size("1..=8", extensible))]
3902 pub struct MapemConnectionList(pub SequenceOf<Identifier1B>);
3903
3904 #[doc = "This DF provides references to an element described in a MAPEM according to ETSI TS 103 301 [i.15], such as a lane or connection at a specific intersection or road segment. "]
3905 #[doc = ""]
3906 #[doc = "It shall include the following components: "]
3907 #[doc = ""]
3908 #[doc = "- @field mapReference: the optional reference to a MAPEM that describes the intersection or road segment. It is absent if the MAPEM topology is known from the context."]
3909 #[doc = ""]
3910 #[doc = "- @field laneIds: the optional list of the identifiers of the lanes to be referenced. "]
3911 #[doc = ""]
3912 #[doc = "- @field connectionIds: the optional list of the identifiers of the connections to be referenced. "]
3913 #[doc = ""]
3914 #[doc = "\n\n@category: Road topology information"]
3915 #[doc = "\n\n@revision: Created in V2.2.1"]
3916 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3917 #[rasn(automatic_tags)]
3918 #[non_exhaustive]
3919 pub struct MapemElementReference {
3920 #[rasn(identifier = "mapReference")]
3921 pub map_reference: Option<MapReference>,
3922 #[rasn(identifier = "laneIds")]
3923 pub lane_ids: Option<MapemLaneList>,
3924 #[rasn(identifier = "connectionIds")]
3925 pub connection_ids: Option<MapemConnectionList>,
3926 }
3927 impl MapemElementReference {
3928 pub fn new(
3929 map_reference: Option<MapReference>,
3930 lane_ids: Option<MapemLaneList>,
3931 connection_ids: Option<MapemConnectionList>,
3932 ) -> Self {
3933 Self {
3934 map_reference,
3935 lane_ids,
3936 connection_ids,
3937 }
3938 }
3939 }
3940
3941 #[doc = "This DF provides references to MAPEM lanes using a list of @ref Identifier1B."]
3942 #[doc = ""]
3943 #[doc = "\n\n@category: Road topology information"]
3944 #[doc = "\n\n@revision: Created in 2.2.1"]
3945 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3946 #[rasn(delegate, size("1..=8", extensible))]
3947 pub struct MapemLaneList(pub SequenceOf<Identifier1B>);
3948
3949 #[doc = "This DE indicates the components of an @ref PerceivedObject that are included in the @ref LowerTriangularPositiveSemidefiniteMatrix."]
3950 #[doc = ""]
3951 #[doc = "The corresponding bit shall be set to 1 if the component is included:"]
3952 #[doc = "- 0 - `xCoordinate` - when the component xCoordinate of the component @ref CartesianPosition3dWithConfidence is included,"]
3953 #[doc = "- 1 - `yCoordinate` - when the component yCoordinate of the component @ref CartesianPosition3dWithConfidence is included, "]
3954 #[doc = "- 2 - `zCoordinate` - when the component zCoordinate of the component @ref CartesianPosition3dWithConfidence is included, "]
3955 #[doc = "- 3 - `xVelocityOrVelocityMagnitude` - when the component xVelocity of the component @ref VelocityCartesian or the component VelocityMagnitude of the component @ref VelocityPolarWithZ is included, "]
3956 #[doc = "- 4 - `yVelocityOrVelocityDirection` - when the component yVelocity of the component @ref VelocityCartesian or the component VelocityDirection of the component @ref VelocityPolarWithZ is included, "]
3957 #[doc = "- 5 - `zVelocity` - when the component zVelocity of the component @ref VelocityCartesian or of the component @ref VelocityPolarWithZ is included,"]
3958 #[doc = "- 6 - `xAccelOrAccelMagnitude` - when the component xAcceleration of the component @ref AccelerationCartesian or the component AccelerationMagnitude of the component @ref AccelerationPolarWithZ is included, "]
3959 #[doc = "- 7 - `yAccelOrAccelDirection` - when the component yAcceleration of the component @ref AccelerationCartesian or the component AccelerationDirection of the component @ref AccelerationPolarWithZ is included, "]
3960 #[doc = "- 8 - `zAcceleration` - when the component zAcceleration of the component @ref AccelerationCartesian or of the component @ref AccelerationPolarWithZ is included,"]
3961 #[doc = "- 9 - `zAngle` - when the component zAngle is included,"]
3962 #[doc = "- 10 - `yAngle` - when the component yAngle is included, "]
3963 #[doc = "- 11 - `xAngle` - when the component xAngle is included, "]
3964 #[doc = "- 12 - `zAngularVelocity` - when the component zAngularVelocity is included. "]
3965 #[doc = ""]
3966 #[doc = "Otherwise, it shall be set to 0."]
3967 #[doc = ""]
3968 #[doc = "\n\n@category: Sensing information"]
3969 #[doc = "\n\n@revision: Created in V2.1.1"]
3970 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3971 #[rasn(delegate, size("13", extensible))]
3972 pub struct MatrixIncludedComponents(pub BitString);
3973
3974 #[doc = "This DE represents the type of facility layer message."]
3975 #[doc = ""]
3976 #[doc = " The value shall be set to:"]
3977 #[doc = "\t- 1 - `denm` - for Decentralized Environmental Notification Message (DENM) as specified in ETSI EN 302 637-3,"]
3978 #[doc = " - 2 - `cam` - for Cooperative Awareness Message (CAM) as specified in ETSI EN 302 637-2,"]
3979 #[doc = " - 3 - `poim` - for Point of Interest message as specified in ETSI TS 103 916,"]
3980 #[doc = " - 4 - `spatem` - for Signal Phase And Timing Extended Message (SPATEM) as specified in ETSI TS 103 301,"]
3981 #[doc = " - 5 - `mapem` - for MAP Extended Message (MAPEM) as specified in ETSI TS 103 301,"]
3982 #[doc = " - 6 - `ivim` - for in Vehicle Information Message (IVIM) as specified in ETSI TS 103 301,"]
3983 #[doc = " - 7 - `rfu1` - reserved for future usage,"]
3984 #[doc = " - 8 - `rfu2` - reserved for future usage,"]
3985 #[doc = " - 9 - `srem` - for Signal Request Extended Message as specified in ETSI TS 103 301,"]
3986 #[doc = " - 10 - `ssem` - for Signal request Status Extended Message as specified in ETSI TS 103 301,"]
3987 #[doc = " - 11 - `evcsn` - for Electrical Vehicle Charging Spot Notification message as specified in ETSI TS 101 556-1,"]
3988 #[doc = " - 12 - `saem` - for Services Announcement Extended Message as specified in ETSI EN 302 890-1,"]
3989 #[doc = " - 13 - `rtcmem` - for Radio Technical Commission for Maritime Services Extended Message (RTCMEM) as specified in ETSI TS 103 301,"]
3990 #[doc = " - 14 - `cpm` - reserved for Collective Perception Message (CPM), "]
3991 #[doc = " - 15 - `imzm` - for Interference Management Zone Message (IMZM) as specified in ETSI TS 103 724,"]
3992 #[doc = " - 16 - `vam` - for Vulnerable Road User Awareness Message as specified in ETSI TS 130 300-3, "]
3993 #[doc = " - 17 - `dsm` - reserved for Diagnosis, logging and Status Message,"]
3994 #[doc = " - 18 - `pcim` - reserved for Parking Control Infrastructure Message,"]
3995 #[doc = " - 19 - `pcvm` - reserved for Parking Control Vehicle Message,"]
3996 #[doc = " - 20 - `mcm` - reserved for Manoeuvre Coordination Message,"]
3997 #[doc = " - 21 - `pam` - reserved for Parking Availability Message,"]
3998 #[doc = " - 22-255 - reserved for future usage."]
3999 #[doc = ""]
4000 #[doc = "\n\n@category: Communication information"]
4001 #[doc = "\n\n@revision: Created in V2.1.1 from @ref ItsPduHeader. Value 3 re-assigned to poim and value 7 and 8 reserved in V2.2.1"]
4002 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4003 #[rasn(delegate, value("0..=255"))]
4004 pub struct MessageId(pub u8);
4005
4006 #[doc = "This DE indicates a message rate."]
4007 #[doc = ""]
4008 #[doc = "- @field mantissa: indicates the mantissa."]
4009 #[doc = ""]
4010 #[doc = "- @field exponent: indicates the exponent."]
4011 #[doc = ""]
4012 #[doc = "The specified message rate is: mantissa*(10^exponent) "]
4013 #[doc = ""]
4014 #[doc = "\n\n@unit: Hz"]
4015 #[doc = "\n\n@category: Communication information"]
4016 #[doc = "\n\n@revision: Created in V2.1.1"]
4017 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4018 #[rasn(automatic_tags)]
4019 pub struct MessageRateHz {
4020 #[rasn(value("1..=100"))]
4021 pub mantissa: u8,
4022 #[rasn(value("-5..=2"))]
4023 pub exponent: i8,
4024 }
4025 impl MessageRateHz {
4026 pub fn new(mantissa: u8, exponent: i8) -> Self {
4027 Self { mantissa, exponent }
4028 }
4029 }
4030
4031 #[doc = "This DF provides information about a message with respect to the segmentation process on facility layer at the sender."]
4032 #[doc = ""]
4033 #[doc = "It shall include the following components: "]
4034 #[doc = ""]
4035 #[doc = "- @field totalMsgNo: indicates the total number of messages that have been assembled on the transmitter side to encode the information "]
4036 #[doc = "during the same messsage generation process."]
4037 #[doc = ""]
4038 #[doc = "- @field thisMsgNo: indicates the position of the message within of the total set of messages generated during the same message generation process."]
4039 #[doc = ""]
4040 #[doc = "\n\n@category: Communication information"]
4041 #[doc = "\n\n@revision: Created in V2.1.1, description revised in V2.2.1"]
4042 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4043 #[rasn(automatic_tags)]
4044 pub struct MessageSegmentationInfo {
4045 #[rasn(identifier = "totalMsgNo")]
4046 pub total_msg_no: CardinalNumber3b,
4047 #[rasn(identifier = "thisMsgNo")]
4048 pub this_msg_no: OrdinalNumber3b,
4049 }
4050 impl MessageSegmentationInfo {
4051 pub fn new(total_msg_no: CardinalNumber3b, this_msg_no: OrdinalNumber3b) -> Self {
4052 Self {
4053 total_msg_no,
4054 this_msg_no,
4055 }
4056 }
4057 }
4058
4059 #[doc = "This DF provides information about the source of and confidence in information."]
4060 #[doc = ""]
4061 #[doc = "It shall include the following components: "]
4062 #[doc = ""]
4063 #[doc = "- @field usedDetectionInformation: the type of sensor(s) that is used to provide the detection information."]
4064 #[doc = ""]
4065 #[doc = "- @field usedStoredInformation: the type of source of the stored information. "]
4066 #[doc = ""]
4067 #[doc = "- @field confidenceValue: an optional confidence value associated to the information. "]
4068 #[doc = ""]
4069 #[doc = "\n\n@category: Basic information"]
4070 #[doc = "\n\n@revision: Created in V2.2.1"]
4071 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4072 #[rasn(automatic_tags)]
4073 #[non_exhaustive]
4074 pub struct MetaInformation {
4075 #[rasn(identifier = "usedDetectionInformation")]
4076 pub used_detection_information: SensorTypes,
4077 #[rasn(identifier = "usedStoredInformation")]
4078 pub used_stored_information: StoredInformationType,
4079 #[rasn(identifier = "confidenceValue")]
4080 pub confidence_value: Option<ConfidenceLevel>,
4081 }
4082 impl MetaInformation {
4083 pub fn new(
4084 used_detection_information: SensorTypes,
4085 used_stored_information: StoredInformationType,
4086 confidence_value: Option<ConfidenceLevel>,
4087 ) -> Self {
4088 Self {
4089 used_detection_information,
4090 used_stored_information,
4091 confidence_value,
4092 }
4093 }
4094 }
4095
4096 #[doc = "This DF shall contain a list of @ref MitigationPerTechnologyClass."]
4097 #[doc = ""]
4098 #[doc = "\n\n@category: Communication information"]
4099 #[doc = "\n\n@revision: Created in V2.1.1"]
4100 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4101 #[rasn(delegate, size("1..=8"))]
4102 pub struct MitigationForTechnologies(pub SequenceOf<MitigationPerTechnologyClass>);
4103
4104 #[doc = "This DF represents a set of mitigation parameters for a specific technology, as specified in ETSI TS 103 724, clause 7."]
4105 #[doc = ""]
4106 #[doc = "It shall include the following components: "]
4107 #[doc = ""]
4108 #[doc = "- @field accessTechnologyClass: channel access technology to which this mitigation is intended to be applied."]
4109 #[doc = ""]
4110 #[doc = "- @field lowDutyCycle: duty cycle limit."]
4111 #[doc = "\n\n@unit: 0,01 % steps"]
4112 #[doc = ""]
4113 #[doc = "- @field powerReduction: the delta value of power to be reduced."]
4114 #[doc = "\n\n@unit: dB"]
4115 #[doc = ""]
4116 #[doc = "- @field dmcToffLimit: idle time limit as defined in ETSI TS 103 175."]
4117 #[doc = "\n\n@unit: ms"]
4118 #[doc = ""]
4119 #[doc = "- @field dmcTonLimit: Transmission duration limit, as defined in ETSI EN 302 571."]
4120 #[doc = "\n\n@unit: ms"]
4121 #[doc = ""]
4122 #[doc = "\n\n@note: All parameters are optional, as they may not apply to some of the technologies or"]
4123 #[doc = "interference management zone types. Specification details are in ETSI TS 103 724, clause 7. "]
4124 #[doc = ""]
4125 #[doc = "\n\n@category: Communication information"]
4126 #[doc = "\n\n@revision: Created in V2.1.1"]
4127 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4128 #[rasn(automatic_tags)]
4129 #[non_exhaustive]
4130 pub struct MitigationPerTechnologyClass {
4131 #[rasn(identifier = "accessTechnologyClass")]
4132 pub access_technology_class: AccessTechnologyClass,
4133 #[rasn(value("0..=10000"), identifier = "lowDutyCycle")]
4134 pub low_duty_cycle: Option<u16>,
4135 #[rasn(value("0..=30"), identifier = "powerReduction")]
4136 pub power_reduction: Option<u8>,
4137 #[rasn(value("0..=1200"), identifier = "dmcToffLimit")]
4138 pub dmc_toff_limit: Option<u16>,
4139 #[rasn(value("0..=20"), identifier = "dmcTonLimit")]
4140 pub dmc_ton_limit: Option<u8>,
4141 }
4142 impl MitigationPerTechnologyClass {
4143 pub fn new(
4144 access_technology_class: AccessTechnologyClass,
4145 low_duty_cycle: Option<u16>,
4146 power_reduction: Option<u8>,
4147 dmc_toff_limit: Option<u16>,
4148 dmc_ton_limit: Option<u8>,
4149 ) -> Self {
4150 Self {
4151 access_technology_class,
4152 low_duty_cycle,
4153 power_reduction,
4154 dmc_toff_limit,
4155 dmc_ton_limit,
4156 }
4157 }
4158 }
4159
4160 #[doc = "This DE represents the number of occupants in a vehicle."]
4161 #[doc = ""]
4162 #[doc = "The value shall be set to:"]
4163 #[doc = "- `n` (`n >= 0` and `n < 126`) for the number n of occupants,"]
4164 #[doc = "- `126` for values equal to or higher than 125,"]
4165 #[doc = "- `127` if information is not available."]
4166 #[doc = ""]
4167 #[doc = "\n\n@unit: 1 person"]
4168 #[doc = "\n\n@category: Vehicle information"]
4169 #[doc = "\n\n@revision: Editorial update in V2.1.1"]
4170 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4171 #[rasn(delegate, value("0..=127"))]
4172 pub struct NumberOfOccupants(pub u8);
4173
4174 #[doc = "This DF indicates both the class and associated subclass that best describes an object."]
4175 #[doc = ""]
4176 #[doc = "The following options are available:"]
4177 #[doc = ""]
4178 #[doc = "- @field vehicleSubClass: the object is a road vehicle and the specific subclass is specified."]
4179 #[doc = ""]
4180 #[doc = "- @field vruSubClass: the object is a VRU and the specific subclass is specified."]
4181 #[doc = ""]
4182 #[doc = "- @field groupSubClass: the object is a VRU group or cluster and the cluster information is specified."]
4183 #[doc = ""]
4184 #[doc = "- @field otherSubClass: the object is of a different type than the above and the specific subclass is specified."]
4185 #[doc = ""]
4186 #[doc = "\n\n@category: Sensing information"]
4187 #[doc = "\n\n@revision: Created in V2.1.1"]
4188 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4189 #[rasn(choice, automatic_tags)]
4190 #[non_exhaustive]
4191 pub enum ObjectClass {
4192 #[rasn(value("0..=14"))]
4193 vehicleSubClass(TrafficParticipantType),
4194 vruSubClass(VruProfileAndSubprofile),
4195 #[rasn(value("0.."))]
4196 groupSubClass(VruClusterInformation),
4197 otherSubClass(OtherSubClass),
4198 }
4199
4200 #[doc = "This DF shall contain a list of object classes."]
4201 #[doc = ""]
4202 #[doc = "\n\n@category: Sensing information"]
4203 #[doc = "\n\n@revision: Created in V2.1.1"]
4204 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4205 #[rasn(delegate, size("1..=8"))]
4206 pub struct ObjectClassDescription(pub SequenceOf<ObjectClassWithConfidence>);
4207
4208 #[doc = "This DF represents the classification of a detected object together with a confidence level."]
4209 #[doc = ""]
4210 #[doc = "It shall include the following components: "]
4211 #[doc = ""]
4212 #[doc = "- @field objectClass: the class of the object."]
4213 #[doc = ""]
4214 #[doc = "- @field Confidence: the associated confidence level."]
4215 #[doc = ""]
4216 #[doc = "\n\n@category: Sensing information"]
4217 #[doc = "\n\n@revision: Created in V2.1.1"]
4218 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4219 #[rasn(automatic_tags)]
4220 pub struct ObjectClassWithConfidence {
4221 #[rasn(identifier = "objectClass")]
4222 pub object_class: ObjectClass,
4223 pub confidence: ConfidenceLevel,
4224 }
4225 impl ObjectClassWithConfidence {
4226 pub fn new(object_class: ObjectClass, confidence: ConfidenceLevel) -> Self {
4227 Self {
4228 object_class,
4229 confidence,
4230 }
4231 }
4232 }
4233
4234 #[doc = "This DF represents a dimension of an object together with a confidence value."]
4235 #[doc = ""]
4236 #[doc = "It shall include the following components: "]
4237 #[doc = ""]
4238 #[doc = "- @field value: the object dimension value which can be estimated as the mean of the current distribution."]
4239 #[doc = ""]
4240 #[doc = "- @field confidence: the associated confidence value."]
4241 #[doc = ""]
4242 #[doc = "\n\n@category: Sensing information"]
4243 #[doc = "\n\n@revision: Created in V2.1.1"]
4244 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4245 #[rasn(automatic_tags)]
4246 pub struct ObjectDimension {
4247 pub value: ObjectDimensionValue,
4248 pub confidence: ObjectDimensionConfidence,
4249 }
4250 impl ObjectDimension {
4251 pub fn new(value: ObjectDimensionValue, confidence: ObjectDimensionConfidence) -> Self {
4252 Self { value, confidence }
4253 }
4254 }
4255
4256 #[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 %."]
4257 #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
4258 #[doc = ""]
4259 #[doc = "The value shall be set to:"]
4260 #[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,"]
4261 #[doc = "- `31` if the confidence value is out of range i.e. greater than 3,0 m,"]
4262 #[doc = "- `32` if the confidence value is unavailable."]
4263 #[doc = ""]
4264 #[doc = "\n\n@unit 0,1 m"]
4265 #[doc = "\n\n@category: Sensing information"]
4266 #[doc = "\n\n@revision: Created in V2.1.1 "]
4267 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4268 #[rasn(delegate, value("1..=32"))]
4269 pub struct ObjectDimensionConfidence(pub u8);
4270
4271 #[doc = "This DE represents a single dimension of an object."]
4272 #[doc = ""]
4273 #[doc = "The value shall be set to:"]
4274 #[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,"]
4275 #[doc = "- `255` if the accuracy is out of range i.e. greater than 25,4 m,"]
4276 #[doc = "- `256` if the data is unavailable."]
4277 #[doc = ""]
4278 #[doc = "\n\n@unit 0,1 m"]
4279 #[doc = "\n\n@category: Basic information"]
4280 #[doc = "\n\n@revision: Created in V2.1.1 "]
4281 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4282 #[rasn(delegate, value("1..=256"))]
4283 pub struct ObjectDimensionValue(pub u16);
4284
4285 #[doc = "This DE indicates the face or part of a face of a solid object."]
4286 #[doc = ""]
4287 #[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:"]
4288 #[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,"]
4289 #[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,"]
4290 #[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. "]
4291 #[doc = ""]
4292 #[doc = "Note: It is permissible to derive the required object dimensions and orientation from models to provide a best guess."]
4293 #[doc = ""]
4294 #[doc = "\n\n@category: Basic information"]
4295 #[doc = "\n\n@revision: V2.1.1"]
4296 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
4297 #[rasn(enumerated)]
4298 pub enum ObjectFace {
4299 front = 0,
4300 sideLeftFront = 1,
4301 sideLeftBack = 2,
4302 sideRightFront = 3,
4303 sideRightBack = 4,
4304 back = 5,
4305 }
4306
4307 #[doc = "This DE represents a single-value indication about the overall information quality of a perceived object."]
4308 #[doc = ""]
4309 #[doc = "The value shall be set to: "]
4310 #[doc = "- `0` : if there is no confidence in detected object, e.g. for \"ghost\"-objects or if confidence could not be computed,"]
4311 #[doc = "- `n` (`n > 0` and `n < 15`) : for the applicable confidence value,"]
4312 #[doc = "- `15` : if there is full confidence in the detected Object."]
4313 #[doc = ""]
4314 #[doc = "\n\n@unit n/a"]
4315 #[doc = "\n\n@category: Sensing information"]
4316 #[doc = "\n\n@revision: Created in V2.1.1 "]
4317 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4318 #[rasn(delegate, value("0..=15"))]
4319 pub struct ObjectPerceptionQuality(pub u8);
4320
4321 #[doc = "This DF represents a set of lanes which are partially or fully occupied by an object or event at an externally defined reference position. "]
4322 #[doc = ""]
4323 #[doc = "\n\n@note: In contrast to @ref GeneralizedLanePosition, the dimension of the object or event area (width and length) is taken into account to determine the occupancy, "]
4324 #[doc = "i.e. this DF describes the lanes which are blocked by an object or event and not the position of the object / event itself. A confidence is used to describe the "]
4325 #[doc = "probability that exactly all the provided lanes are occupied. "]
4326 #[doc = ""]
4327 #[doc = "It shall include the following components: "]
4328 #[doc = ""]
4329 #[doc = "- @field lanePositionBased: a set of up to `4` lanes that are partially or fully occupied by an object or event, ordered by increasing value of @ref LanePosition. "]
4330 #[doc = "Lanes that are partially occupied can be described using the component lanePositionWithLateralDetails of @ref Options, with the following constraints: "]
4331 #[doc = "The distance to lane borders which are covered by the object / event shall be set to 0. Only the distances to the leftmost and/or rightmost border which are not covered by "]
4332 #[doc = "the object / event shall be provided with values > 0. Those values shall be added to the respective instances of @ref LanePositionOptions, i.e. the first entry shall contain the component distanceToLeftBorder > 0 , "]
4333 #[doc = "and/or the last entry shall contain the component distanceToRightBorder > 0; the respective other components of these entries shall be set to 0."]
4334 #[doc = ""]
4335 #[doc = "- @field mapBased: optional lane information described in the context of a MAPEM as specified in ETSI TS 103 301. "]
4336 #[doc = "If present, it shall describe the same lane(s) as listed in the component lanePositionBased, but using the lane identification of the MAPEM. This component can be used only if a "]
4337 #[doc = "MAPEM is available for the reference position (e.g. on an intersection): In this case it is used as a synonym to the mandatory component lanePositionBased. "]
4338 #[doc = ""]
4339 #[doc = "- @field confidence: mandatory confidence information for expressing the probability that all the provided lanes are occupied. It also provides information on how the lane "]
4340 #[doc = "information were generated. If none of the sensors were used, the lane information is assumed to be derived directly from the absolute reference position and the related dimension."]
4341 #[doc = ""]
4342 #[doc = "\n\n@category: Road Topology information"]
4343 #[doc = "\n\n@revision: Created in V2.2.1"]
4344 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4345 #[rasn(automatic_tags)]
4346 #[non_exhaustive]
4347 pub struct OccupiedLanesWithConfidence {
4348 #[rasn(size("1..=4"), identifier = "lanePositionBased")]
4349 pub lane_position_based: SequenceOf<LanePositionOptions>,
4350 #[rasn(size("1..=4"), identifier = "mapBased")]
4351 pub map_based: Option<SequenceOf<MapPosition>>,
4352 pub confidence: MetaInformation,
4353 }
4354 impl OccupiedLanesWithConfidence {
4355 pub fn new(
4356 lane_position_based: SequenceOf<LanePositionOptions>,
4357 map_based: Option<SequenceOf<MapPosition>>,
4358 confidence: MetaInformation,
4359 ) -> Self {
4360 Self {
4361 lane_position_based,
4362 map_based,
4363 confidence,
4364 }
4365 }
4366 }
4367
4368 #[doc = "This DE represents a time period to describe the opening days and hours of a Point of Interest."]
4369 #[doc = "(for example local commerce)."]
4370 #[doc = ""]
4371 #[doc = "\n\n@category: Basic information"]
4372 #[doc = "\n\n@revision: V1.3.1"]
4373 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4374 #[rasn(delegate)]
4375 pub struct OpeningDaysHours(pub Utf8String);
4376
4377 #[doc = "The DE represents an ordinal number that indicates the position of an element in a set. "]
4378 #[doc = ""]
4379 #[doc = "\n\n@category: Basic information"]
4380 #[doc = "\n\n@revision: Created in V2.1.1"]
4381 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4382 #[rasn(delegate, value("0..=255"))]
4383 pub struct OrdinalNumber1B(pub u8);
4384
4385 #[doc = "The DE represents an ordinal number that indicates the position of an element in a set. "]
4386 #[doc = ""]
4387 #[doc = "\n\n@category: Basic information"]
4388 #[doc = "\n\n@revision: Created in V2.1.1"]
4389 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4390 #[rasn(delegate, value("1..=8"))]
4391 pub struct OrdinalNumber3b(pub u8);
4392
4393 #[doc = "This DE indicates the subclass of a detected object for @ref ObjectClass \"otherSubclass\"."]
4394 #[doc = ""]
4395 #[doc = "The value shall be set to:"]
4396 #[doc = "- `0` - unknown - if the subclass is unknown."]
4397 #[doc = "- `1` - singleObject - if the object is a single object."]
4398 #[doc = "- `2` - multipleObjects - if the object is a group of multiple objects."]
4399 #[doc = "- `3` - bulkMaterial - if the object is a bulk material."]
4400 #[doc = ""]
4401 #[doc = "\n\n@category: Sensing information"]
4402 #[doc = "\n\n@revision: Created in V2.1.1"]
4403 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4404 #[rasn(delegate, value("0..=255"))]
4405 pub struct OtherSubClass(pub u8);
4406
4407 #[doc = "This DF represents a path with a set of path points."]
4408 #[doc = "It shall contain up to `40` @ref PathPoint. "]
4409 #[doc = ""]
4410 #[doc = "The first PathPoint presents an offset delta position with regards to an external reference position."]
4411 #[doc = "Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
4412 #[doc = ""]
4413 #[doc = "\n\n@category: GeoReference information, Vehicle information"]
4414 #[doc = "\n\n@revision: created in V2.1.1 based on PathHistory"]
4415 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4416 #[rasn(delegate, size("0..=40"))]
4417 pub struct Path(pub SequenceOf<PathPoint>);
4418
4419 #[doc = "This DE represents the recorded or estimated travel time between a position and a predefined reference position. "]
4420 #[doc = ""]
4421 #[doc = "\n\n@unit 0,01 second"]
4422 #[doc = "\n\n@category: Basic information"]
4423 #[doc = "\n\n@revision: V1.3.1"]
4424 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4425 #[rasn(delegate, value("1..=65535", extensible))]
4426 pub struct PathDeltaTime(pub Integer);
4427
4428 #[doc = "This DF represents estimated/predicted travel time between a position and a predefined reference position. "]
4429 #[doc = ""]
4430 #[doc = "the following options are available:"]
4431 #[doc = ""]
4432 #[doc = "- @field deltaTimeHighPrecision: delta time with precision of 0,1 s."]
4433 #[doc = ""]
4434 #[doc = "- @field deltaTimeBigRange: delta time with precision of 10 s."]
4435 #[doc = ""]
4436 #[doc = "\n\n@category: Basic information"]
4437 #[doc = "\n\n@revision: Created in V2.2.1"]
4438 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4439 #[rasn(choice, automatic_tags)]
4440 #[non_exhaustive]
4441 pub enum PathDeltaTimeChoice {
4442 deltaTimeHighPrecision(DeltaTimeTenthOfSecond),
4443 deltaTimeBigRange(DeltaTimeTenSeconds),
4444 }
4445
4446 #[doc = "This DF represents a path towards a specific point specified in the @ref EventZone."]
4447 #[doc = ""]
4448 #[doc = "It shall include the following components: "]
4449 #[doc = ""]
4450 #[doc = "- @field pointOfEventZone: the ordinal number of the point within the DF EventZone, i.e. within the list of EventPoints."]
4451 #[doc = ""]
4452 #[doc = "- @field path: the associated path towards the point specified in pointOfEventZone."]
4453 #[doc = "The first PathPoint presents an offset delta position with regards to the position of that pointOfEventZone."]
4454 #[doc = ""]
4455 #[doc = "\n\n@category: GeoReference information"]
4456 #[doc = "\n\n@revision: Created in V2.2.1"]
4457 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4458 #[rasn(automatic_tags)]
4459 pub struct PathExtended {
4460 #[rasn(value("1..=23"), identifier = "pointOfEventZone")]
4461 pub point_of_event_zone: u8,
4462 pub path: Path,
4463 }
4464 impl PathExtended {
4465 pub fn new(point_of_event_zone: u8, path: Path) -> Self {
4466 Self {
4467 point_of_event_zone,
4468 path,
4469 }
4470 }
4471 }
4472
4473 #[doc = "This DF represents a path history with a set of path points."]
4474 #[doc = "It shall contain up to `40` @ref PathPoint. "]
4475 #[doc = ""]
4476 #[doc = "The first PathPoint presents an offset delta position with regards to an external reference position."]
4477 #[doc = "Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
4478 #[doc = ""]
4479 #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref Path instead."]
4480 #[doc = "\n\n@category: GeoReference information, Vehicle information"]
4481 #[doc = "\n\n@revision: semantics updated in V2.1.1, size corrected to 0..40 in V2.2.1"]
4482 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4483 #[rasn(delegate, size("0..=40"))]
4484 pub struct PathHistory(pub SequenceOf<PathPoint>);
4485
4486 #[doc = "This DE indicates an ordinal number that represents the position of a component in the list of @ref Traces or @ref TracesExtended. "]
4487 #[doc = ""]
4488 #[doc = "The value shall be set to:"]
4489 #[doc = "- `0` - noPath - if no path is identified"]
4490 #[doc = "- `1..7` - for instances 1..7 of @ref Traces "]
4491 #[doc = "- `8..14` - for instances 1..7 of @ref TracesExtended. "]
4492 #[doc = ""]
4493 #[doc = "\n\n@category: Road topology information"]
4494 #[doc = "\n\n@revision: Created in V2.2.1"]
4495 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4496 #[rasn(delegate, value("0..=14"))]
4497 pub struct PathId(pub u8);
4498
4499 #[doc = "This DF defines an offset waypoint position within a path."]
4500 #[doc = ""]
4501 #[doc = "It shall include the following components: "]
4502 #[doc = ""]
4503 #[doc = "- @field pathPosition: The waypoint position defined as an offset position with regards to a pre-defined reference position. "]
4504 #[doc = ""]
4505 #[doc = "- @field pathDeltaTime: The optional travel time separated from a waypoint to the predefined reference position."]
4506 #[doc = ""]
4507 #[doc = "\n\n@category GeoReference information"]
4508 #[doc = "\n\n@revision: semantics updated in V2.1.1"]
4509 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4510 #[rasn(automatic_tags)]
4511 pub struct PathPoint {
4512 #[rasn(identifier = "pathPosition")]
4513 pub path_position: DeltaReferencePosition,
4514 #[rasn(identifier = "pathDeltaTime")]
4515 pub path_delta_time: Option<PathDeltaTime>,
4516 }
4517 impl PathPoint {
4518 pub fn new(
4519 path_position: DeltaReferencePosition,
4520 path_delta_time: Option<PathDeltaTime>,
4521 ) -> Self {
4522 Self {
4523 path_position,
4524 path_delta_time,
4525 }
4526 }
4527 }
4528
4529 #[doc = "This DF defines a predicted offset position that can be used within a predicted path or trajectory, together with optional data to describe a path zone shape."]
4530 #[doc = ""]
4531 #[doc = "It shall include the following components: "]
4532 #[doc = ""]
4533 #[doc = "- @field deltaLatitude: the offset latitude with regards to a pre-defined reference position. "]
4534 #[doc = ""]
4535 #[doc = "- @field deltaLongitude: the offset longitude with regards to a pre-defined reference position. "]
4536 #[doc = ""]
4537 #[doc = "- @field horizontalPositionConfidence: the optional confidence value associated to the horizontal geographical position."]
4538 #[doc = ""]
4539 #[doc = "- @field deltaAltitude: the optional offset altitude with regards to a pre-defined reference position, with default value unavailable. "]
4540 #[doc = ""]
4541 #[doc = "- @field altitudeConfidence: the optional confidence value associated to the altitude value of the geographical position, with default value unavailable."]
4542 #[doc = ""]
4543 #[doc = "- @field pathDeltaTime: the optional travel time to the waypoint from the predefined reference position."]
4544 #[doc = "- @field symmetricAreaOffset: the optional symmetric offset to generate a shape, see Annex D for details."]
4545 #[doc = " "]
4546 #[doc = "- @field asymmetricAreaOffset: the optional asymmetric offset to generate a shape, see Annex D for details. "]
4547 #[doc = ""]
4548 #[doc = "\n\n@category GeoReference information"]
4549 #[doc = "\n\n@revision: Created in V2.1.1, type of pathDeltaTime changed and optionality added, fields symmetricAreaOffset and asymmetricAreaOffset added in V2.2.1"]
4550 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4551 #[rasn(automatic_tags)]
4552 #[non_exhaustive]
4553 pub struct PathPointPredicted {
4554 #[rasn(identifier = "deltaLatitude")]
4555 pub delta_latitude: DeltaLatitude,
4556 #[rasn(identifier = "deltaLongitude")]
4557 pub delta_longitude: DeltaLongitude,
4558 #[rasn(identifier = "horizontalPositionConfidence")]
4559 pub horizontal_position_confidence: Option<PosConfidenceEllipse>,
4560 #[rasn(
4561 default = "path_point_predicted_delta_altitude_default",
4562 identifier = "deltaAltitude"
4563 )]
4564 pub delta_altitude: DeltaAltitude,
4565 #[rasn(
4566 default = "path_point_predicted_altitude_confidence_default",
4567 identifier = "altitudeConfidence"
4568 )]
4569 pub altitude_confidence: AltitudeConfidence,
4570 #[rasn(identifier = "pathDeltaTime")]
4571 pub path_delta_time: Option<PathDeltaTimeChoice>,
4572 #[rasn(identifier = "symmetricAreaOffset")]
4573 pub symmetric_area_offset: Option<StandardLength9b>,
4574 #[rasn(identifier = "asymmetricAreaOffset")]
4575 pub asymmetric_area_offset: Option<StandardLength9b>,
4576 }
4577 impl PathPointPredicted {
4578 pub fn new(
4579 delta_latitude: DeltaLatitude,
4580 delta_longitude: DeltaLongitude,
4581 horizontal_position_confidence: Option<PosConfidenceEllipse>,
4582 delta_altitude: DeltaAltitude,
4583 altitude_confidence: AltitudeConfidence,
4584 path_delta_time: Option<PathDeltaTimeChoice>,
4585 symmetric_area_offset: Option<StandardLength9b>,
4586 asymmetric_area_offset: Option<StandardLength9b>,
4587 ) -> Self {
4588 Self {
4589 delta_latitude,
4590 delta_longitude,
4591 horizontal_position_confidence,
4592 delta_altitude,
4593 altitude_confidence,
4594 path_delta_time,
4595 symmetric_area_offset,
4596 asymmetric_area_offset,
4597 }
4598 }
4599 }
4600 fn path_point_predicted_delta_altitude_default() -> DeltaAltitude {
4601 DeltaAltitude(12800)
4602 }
4603 fn path_point_predicted_altitude_confidence_default() -> AltitudeConfidence {
4604 AltitudeConfidence::unavailable
4605 }
4606
4607 #[doc = "This DF represents a predicted path or trajectory with a set of predicted points and optional information to generate a shape which is estimated to contain the real path. "]
4608 #[doc = "It shall contain up to `16` @ref PathPointPredicted. "]
4609 #[doc = ""]
4610 #[doc = "The first PathPoint presents an offset delta position with regards to an external reference position."]
4611 #[doc = "Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
4612 #[doc = ""]
4613 #[doc = "\n\n@category: GeoReference information"]
4614 #[doc = "\n\n@revision: created in V2.1.1 , size constraint changed to SIZE(1..16, ...) in V2.2.1"]
4615 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4616 #[rasn(delegate, size("1..=16", extensible))]
4617 pub struct PathPredicted(pub SequenceOf<PathPointPredicted>);
4618
4619 #[doc = "This DF represents a predicted path, predicted trajectory or predicted path zone together with usage information and a prediction confidence."]
4620 #[doc = ""]
4621 #[doc = "It shall include the following components: "]
4622 #[doc = ""]
4623 #[doc = "- @field pathPredicted: the predicted path (pathDeltaTime ABSENT) or trajectory (pathDeltaTime PRESENT) and/or the path zone (symmetricAreaOffset PRESENT)."]
4624 #[doc = ""]
4625 #[doc = "- @field usageIndication: an indication of how the predicted path will be used. "]
4626 #[doc = ""]
4627 #[doc = "- @field confidenceLevel: the confidence that the path/trajectory in pathPredicted will occur as predicted."]
4628 #[doc = ""]
4629 #[doc = "\n\n@category: GeoReference information"]
4630 #[doc = "\n\n@revision: created in V2.2.1"]
4631 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4632 #[rasn(automatic_tags)]
4633 #[non_exhaustive]
4634 pub struct PathPredicted2 {
4635 #[rasn(value("0.."), identifier = "pathPredicted")]
4636 pub path_predicted: PathPredicted,
4637 #[rasn(identifier = "usageIndication")]
4638 pub usage_indication: UsageIndication,
4639 #[rasn(identifier = "confidenceLevel")]
4640 pub confidence_level: ConfidenceLevel,
4641 }
4642 impl PathPredicted2 {
4643 pub fn new(
4644 path_predicted: PathPredicted,
4645 usage_indication: UsageIndication,
4646 confidence_level: ConfidenceLevel,
4647 ) -> Self {
4648 Self {
4649 path_predicted,
4650 usage_indication,
4651 confidence_level,
4652 }
4653 }
4654 }
4655
4656 #[doc = "This DF represents one or more predicted paths, or trajectories or path zones (zones that include all possible paths/trajectories within its boundaries) using @ref PathPredicted2."]
4657 #[doc = "It shall contain up to `16` @ref PathPredicted2. "]
4658 #[doc = ""]
4659 #[doc = "\n\n@category: GeoReference information"]
4660 #[doc = "\n\n@revision: V2.2.1"]
4661 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4662 #[rasn(delegate, size("1..=16", extensible))]
4663 pub struct PathPredictedList(pub SequenceOf<PathPredicted2>);
4664
4665 #[doc = "This DF represents a list of references to the components of a @ref Traces or @ref TracesExtended DF using the @ref PathId. "]
4666 #[doc = ""]
4667 #[doc = "\n\n@category: Road topology information"]
4668 #[doc = "\n\n@revision: Created in V2.2.1"]
4669 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4670 #[rasn(delegate, size("1..=14"))]
4671 pub struct PathReferences(pub SequenceOf<PathId>);
4672
4673 #[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."]
4674 #[doc = ""]
4675 #[doc = "It shall include the following components: "]
4676 #[doc = ""]
4677 #[doc = "- @field objectId: optional identifier assigned to a detected object."]
4678 #[doc = ""]
4679 #[doc = "- @field measurementDeltaTime: the time difference from a reference time to the time of the measurement of the object. "]
4680 #[doc = "Negative values indicate that the provided object state refers to a point in time before the reference time."]
4681 #[doc = ""]
4682 #[doc = "- @field position: the position of the geometric centre of the object's bounding box within the pre-defined coordinate system."]
4683 #[doc = ""]
4684 #[doc = "- @field velocity: the velocity vector of the object within the pre-defined coordinate system."]
4685 #[doc = ""]
4686 #[doc = "- @field acceleration: the acceleration vector of the object within the pre-defined coordinate system."]
4687 #[doc = ""]
4688 #[doc = "- @field angles: optional Euler angles of the object bounding box at the time of measurement. "]
4689 #[doc = ""]
4690 #[doc = "- @field zAngularVelocity: optional angular velocity of the object around the z-axis at the time of measurement."]
4691 #[doc = "The angular velocity is measured with positive values considering the object orientation turning around the z-axis using the right-hand rule."]
4692 #[doc = ""]
4693 #[doc = "- @field lowerTriangularCorrelationMatrices: optional set of lower triangular correlation matrices for selected components of the provided kinematic state and attitude vector."]
4694 #[doc = ""]
4695 #[doc = "- @field objectDimensionZ: optional z-dimension of object bounding box. "]
4696 #[doc = "This dimension shall be measured along the direction of the z-axis after all the rotations have been applied. "]
4697 #[doc = ""]
4698 #[doc = "- @field objectDimensionY: optional y-dimension of the object bounding box. "]
4699 #[doc = "This dimension shall be measured along the direction of the y-axis after all the rotations have been applied. "]
4700 #[doc = ""]
4701 #[doc = "- @field objectDimensionX: optional x-dimension of object bounding box."]
4702 #[doc = "This dimension shall be measured along the direction of the x-axis after all the rotations have been applied."]
4703 #[doc = ""]
4704 #[doc = "- @field objectAge: optional age of the detected and described object, i.e. the difference in time between the moment "]
4705 #[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."]
4706 #[doc = ""]
4707 #[doc = "- @field objectPerceptionQuality: optional confidence associated to the object. "]
4708 #[doc = ""]
4709 #[doc = "- @field sensorIdList: optional list of sensor-IDs which provided the measurement data. "]
4710 #[doc = ""]
4711 #[doc = "- @field classification: optional classification of the described object"]
4712 #[doc = ""]
4713 #[doc = "- @field matchedPosition: optional map-matched position of an object."]
4714 #[doc = ""]
4715 #[doc = "\n\n@category Sensing information"]
4716 #[doc = "\n\n@revision: created in V2.1.1"]
4717 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4718 #[rasn(automatic_tags)]
4719 #[non_exhaustive]
4720 pub struct PerceivedObject {
4721 #[rasn(identifier = "objectId")]
4722 pub object_id: Option<Identifier2B>,
4723 #[rasn(identifier = "measurementDeltaTime")]
4724 pub measurement_delta_time: DeltaTimeMilliSecondSigned,
4725 pub position: CartesianPosition3dWithConfidence,
4726 pub velocity: Option<Velocity3dWithConfidence>,
4727 pub acceleration: Option<Acceleration3dWithConfidence>,
4728 pub angles: Option<EulerAnglesWithConfidence>,
4729 #[rasn(identifier = "zAngularVelocity")]
4730 pub z_angular_velocity: Option<CartesianAngularVelocityComponent>,
4731 #[rasn(identifier = "lowerTriangularCorrelationMatrices")]
4732 pub lower_triangular_correlation_matrices:
4733 Option<LowerTriangularPositiveSemidefiniteMatrices>,
4734 #[rasn(identifier = "objectDimensionZ")]
4735 pub object_dimension_z: Option<ObjectDimension>,
4736 #[rasn(identifier = "objectDimensionY")]
4737 pub object_dimension_y: Option<ObjectDimension>,
4738 #[rasn(identifier = "objectDimensionX")]
4739 pub object_dimension_x: Option<ObjectDimension>,
4740 #[rasn(value("0..=2047"), identifier = "objectAge")]
4741 pub object_age: Option<DeltaTimeMilliSecondSigned>,
4742 #[rasn(identifier = "objectPerceptionQuality")]
4743 pub object_perception_quality: Option<ObjectPerceptionQuality>,
4744 #[rasn(identifier = "sensorIdList")]
4745 pub sensor_id_list: Option<SequenceOfIdentifier1B>,
4746 pub classification: Option<ObjectClassDescription>,
4747 #[rasn(identifier = "mapPosition")]
4748 pub map_position: Option<MapPosition>,
4749 }
4750 impl PerceivedObject {
4751 pub fn new(
4752 object_id: Option<Identifier2B>,
4753 measurement_delta_time: DeltaTimeMilliSecondSigned,
4754 position: CartesianPosition3dWithConfidence,
4755 velocity: Option<Velocity3dWithConfidence>,
4756 acceleration: Option<Acceleration3dWithConfidence>,
4757 angles: Option<EulerAnglesWithConfidence>,
4758 z_angular_velocity: Option<CartesianAngularVelocityComponent>,
4759 lower_triangular_correlation_matrices: Option<
4760 LowerTriangularPositiveSemidefiniteMatrices,
4761 >,
4762 object_dimension_z: Option<ObjectDimension>,
4763 object_dimension_y: Option<ObjectDimension>,
4764 object_dimension_x: Option<ObjectDimension>,
4765 object_age: Option<DeltaTimeMilliSecondSigned>,
4766 object_perception_quality: Option<ObjectPerceptionQuality>,
4767 sensor_id_list: Option<SequenceOfIdentifier1B>,
4768 classification: Option<ObjectClassDescription>,
4769 map_position: Option<MapPosition>,
4770 ) -> Self {
4771 Self {
4772 object_id,
4773 measurement_delta_time,
4774 position,
4775 velocity,
4776 acceleration,
4777 angles,
4778 z_angular_velocity,
4779 lower_triangular_correlation_matrices,
4780 object_dimension_z,
4781 object_dimension_y,
4782 object_dimension_x,
4783 object_age,
4784 object_perception_quality,
4785 sensor_id_list,
4786 classification,
4787 map_position,
4788 }
4789 }
4790 }
4791
4792 #[doc = "This DE denotes the ability of an ITS-S to provide up-to-date information."]
4793 #[doc = "A performance class value is used to describe age of data. The exact values are out of scope of the present document."]
4794 #[doc = ""]
4795 #[doc = " The value shall be set to:"]
4796 #[doc = "- `0` if the performance class is unknown,"]
4797 #[doc = "- `1` for performance class A as defined in ETSI TS 101 539-1,"]
4798 #[doc = "- `2` for performance class B as defined in ETSI TS 101 539-1,"]
4799 #[doc = "- 3-7 reserved for future use."]
4800 #[doc = ""]
4801 #[doc = "\n\n@category: Vehicle information"]
4802 #[doc = "\n\n@revision: Editorial update in V2.1.1"]
4803 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4804 #[rasn(delegate, value("0..=7"))]
4805 pub struct PerformanceClass(pub u8);
4806
4807 #[doc = "This DE represents a telephone number"]
4808 #[doc = ""]
4809 #[doc = "\n\n@category: Basic information"]
4810 #[doc = "\n\n@revision: V1.3.1"]
4811 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4812 #[rasn(delegate, size("1..=16"))]
4813 pub struct PhoneNumber(pub NumericString);
4814
4815 #[doc = "This DF represents the shape of a polygonal area or of a right prism."]
4816 #[doc = ""]
4817 #[doc = "It shall include the following components: "]
4818 #[doc = ""]
4819 #[doc = "- @field shapeReferencePoint: the optional reference point used for the definition of the shape, relative to an externally specified reference position. "]
4820 #[doc = "If this component is absent, the externally specified reference position represents the shape's reference point. "]
4821 #[doc = ""]
4822 #[doc = "- @field polygon: the polygonal area represented by a list of minimum `3` to maximum `16` @ref CartesianPosition3d."]
4823 #[doc = "All nodes of the polygon shall be considered relative to the shape's reference point."]
4824 #[doc = ""]
4825 #[doc = "- @field height: the optional height, present if the shape is a right prism extending in the positive z-axis."]
4826 #[doc = ""]
4827 #[doc = "\n\n@category GeoReference information"]
4828 #[doc = "\n\n@revision: created in V2.1.1"]
4829 #[doc = ""]
4830 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4831 #[rasn(automatic_tags)]
4832 pub struct PolygonalShape {
4833 #[rasn(identifier = "shapeReferencePoint")]
4834 pub shape_reference_point: Option<CartesianPosition3d>,
4835 #[rasn(size("3..=16", extensible))]
4836 pub polygon: SequenceOfCartesianPosition3d,
4837 pub height: Option<StandardLength12b>,
4838 }
4839 impl PolygonalShape {
4840 pub fn new(
4841 shape_reference_point: Option<CartesianPosition3d>,
4842 polygon: SequenceOfCartesianPosition3d,
4843 height: Option<StandardLength12b>,
4844 ) -> Self {
4845 Self {
4846 shape_reference_point,
4847 polygon,
4848 height,
4849 }
4850 }
4851 }
4852
4853 #[doc = "This DE indicates the perpendicular distance from the centre of mass of an empty load vehicle to the front line of"]
4854 #[doc = "the vehicle bounding box of the empty load vehicle."]
4855 #[doc = ""]
4856 #[doc = "The value shall be set to:"]
4857 #[doc = "- `n` (`n > 0` and `n < 62`) for any aplicable value n between 0,1 metre and 6,2 metres, "]
4858 #[doc = "- `62` for values equal to or higher than 6.1 metres,"]
4859 #[doc = "- `63` if the information is unavailable."]
4860 #[doc = ""]
4861 #[doc = "\n\n@note:\tThe empty load vehicle is defined in ISO 1176, clause 4.6."]
4862 #[doc = ""]
4863 #[doc = "\n\n@unit 0,1 metre "]
4864 #[doc = "\n\n@category Vehicle information"]
4865 #[doc = "\n\n@revision: description revised in V2.1.1 (the meaning of 62 has changed slightly) "]
4866 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4867 #[rasn(delegate, value("1..=63"))]
4868 pub struct PosCentMass(pub u8);
4869
4870 #[doc = "This DF indicates the horizontal position confidence ellipse which represents the estimated accuracy with a "]
4871 #[doc = "confidence level of 95 %. The centre of the ellipse shape corresponds to the reference"]
4872 #[doc = "position point for which the position accuracy is evaluated."]
4873 #[doc = ""]
4874 #[doc = "It shall include the following components: "]
4875 #[doc = ""]
4876 #[doc = "- @field semiMajorConfidence: half of length of the major axis, i.e. distance between the centre point"]
4877 #[doc = "and major axis point of the position accuracy ellipse. "]
4878 #[doc = ""]
4879 #[doc = "- @field semiMinorConfidence: half of length of the minor axis, i.e. distance between the centre point"]
4880 #[doc = "and minor axis point of the position accuracy ellipse. "]
4881 #[doc = ""]
4882 #[doc = "- @field semiMajorOrientation: orientation direction of the ellipse major axis of the position accuracy"]
4883 #[doc = "ellipse with regards to the WGS84 north. "]
4884 #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
4885 #[doc = ""]
4886 #[doc = ""]
4887 #[doc = "\n\n@category GeoReference information"]
4888 #[doc = "\n\n@revision: V1.3.1"]
4889 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4890 #[rasn(automatic_tags)]
4891 pub struct PosConfidenceEllipse {
4892 #[rasn(identifier = "semiMajorConfidence")]
4893 pub semi_major_confidence: SemiAxisLength,
4894 #[rasn(identifier = "semiMinorConfidence")]
4895 pub semi_minor_confidence: SemiAxisLength,
4896 #[rasn(identifier = "semiMajorOrientation")]
4897 pub semi_major_orientation: HeadingValue,
4898 }
4899 impl PosConfidenceEllipse {
4900 pub fn new(
4901 semi_major_confidence: SemiAxisLength,
4902 semi_minor_confidence: SemiAxisLength,
4903 semi_major_orientation: HeadingValue,
4904 ) -> Self {
4905 Self {
4906 semi_major_confidence,
4907 semi_minor_confidence,
4908 semi_major_orientation,
4909 }
4910 }
4911 }
4912
4913 #[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."]
4914 #[doc = ""]
4915 #[doc = "The value shall be set to:"]
4916 #[doc = "- `n` (`n > 0` and `n < 19`) for any aplicable value between 0,1 metre and 1,9 metres,"]
4917 #[doc = "- `19` for values equal to or higher than 1.8 metres,"]
4918 #[doc = "- `20` if the information is unavailable."]
4919 #[doc = ""]
4920 #[doc = "\n\n@category: Vehicle information"]
4921 #[doc = "\n\n@unit 0,1 metre"]
4922 #[doc = "\n\n@revision: description revised in V2.1.1 (the meaning of 19 has changed slightly) "]
4923 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4924 #[rasn(delegate, value("1..=20"))]
4925 pub struct PosFrontAx(pub u8);
4926
4927 #[doc = "This DE represents the distance from the centre of vehicle front bumper to the right or left longitudinal carrier of vehicle."]
4928 #[doc = "The left/right carrier refers to the left/right as seen from a passenger sitting in the vehicle."]
4929 #[doc = ""]
4930 #[doc = "The value shall be set to:"]
4931 #[doc = "- `n` (`n > 0` and `n < 126`) for any aplicable value between 0,01 metre and 1,26 metres, "]
4932 #[doc = "- `126` for values equal to or higher than 1.25 metres,"]
4933 #[doc = "- `127` if the information is unavailable."]
4934 #[doc = ""]
4935 #[doc = "\n\n@unit 0,01 metre "]
4936 #[doc = "\n\n@category Vehicle information"]
4937 #[doc = "\n\n@revision: description revised in V2.1.1 (the meaning of 126 has changed slightly) "]
4938 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4939 #[rasn(delegate, value("1..=127"))]
4940 pub struct PosLonCarr(pub u8);
4941
4942 #[doc = "This DE represents the perpendicular inter-distance of neighbouring pillar axis of vehicle starting from the"]
4943 #[doc = "middle point of the front line of the vehicle bounding box."]
4944 #[doc = ""]
4945 #[doc = "The value shall be set to:"]
4946 #[doc = "- `n` (`n > 0` and `n < 29`) for any aplicable value between 0,1 metre and 2,9 metres, "]
4947 #[doc = "- `29` for values equal to or greater than 2.8 metres,"]
4948 #[doc = "- `30` if the information is unavailable."]
4949 #[doc = ""]
4950 #[doc = "\n\n@unit 0,1 metre "]
4951 #[doc = "\n\n@category Vehicle information"]
4952 #[doc = "\n\n@revision: description revised in V2.1.1 (the meaning of 29 has changed slightly) "]
4953 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4954 #[rasn(delegate, value("1..=30"))]
4955 pub struct PosPillar(pub u8);
4956
4957 #[doc = "This DE represents a position along a single dimension such as the middle of a road or lane, measured as an offset from an externally defined starting point, "]
4958 #[doc = "in direction of an externally defined reference direction."]
4959 #[doc = ""]
4960 #[doc = "The value shall be set to:"]
4961 #[doc = "- `n` (`n >= -8190` and `n < 0`) if the position is equal to or less than n x 1 metre and more than (n-1) x 1 metre, in opposite direction of the reference direction,"]
4962 #[doc = "- `0` if the position is at the starting point,"]
4963 #[doc = "- `n` (`n > 0` and `n < 8190`) if the position is equal to or less than n x 1 metre and more than (n-1) x 1 metre, in the same direction as the reference direction,"]
4964 #[doc = "- `8 190` if the position is out of range, i.e. equal to or greater than 8 189 m,"]
4965 #[doc = "- `8 191` if the position information is not available. "]
4966 #[doc = ""]
4967 #[doc = "\n\n@unit 1 metre"]
4968 #[doc = "\n\n@category: GeoReference information"]
4969 #[doc = "\n\n@revision: Created in V2.2.1"]
4970 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4971 #[rasn(delegate, value("-8190..=8191"))]
4972 pub struct Position1d(pub i16);
4973
4974 #[doc = "This DF indicates the horizontal position confidence ellipse which represents the estimated accuracy with a "]
4975 #[doc = "confidence level of 95 %. The centre of the ellipse shape corresponds to the reference"]
4976 #[doc = "position point for which the position accuracy is evaluated."]
4977 #[doc = ""]
4978 #[doc = "It shall include the following components: "]
4979 #[doc = ""]
4980 #[doc = "- @field semiMajorAxisLength: half of length of the major axis, i.e. distance between the centre point"]
4981 #[doc = "and major axis point of the position accuracy ellipse. "]
4982 #[doc = ""]
4983 #[doc = "- @field semiMinorAxisLength: half of length of the minor axis, i.e. distance between the centre point"]
4984 #[doc = "and minor axis point of the position accuracy ellipse. "]
4985 #[doc = ""]
4986 #[doc = "- @field semiMajorAxisOrientation: orientation direction of the ellipse major axis of the position accuracy"]
4987 #[doc = "ellipse with regards to the WGS84 north. "]
4988 #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
4989 #[doc = ""]
4990 #[doc = "\n\n@category GeoReference information"]
4991 #[doc = "\n\n@revision: created in V2.1.1 based on @ref PosConfidenceEllipse"]
4992 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4993 #[rasn(automatic_tags)]
4994 pub struct PositionConfidenceEllipse {
4995 #[rasn(identifier = "semiMajorAxisLength")]
4996 pub semi_major_axis_length: SemiAxisLength,
4997 #[rasn(identifier = "semiMinorAxisLength")]
4998 pub semi_minor_axis_length: SemiAxisLength,
4999 #[rasn(identifier = "semiMajorAxisOrientation")]
5000 pub semi_major_axis_orientation: Wgs84AngleValue,
5001 }
5002 impl PositionConfidenceEllipse {
5003 pub fn new(
5004 semi_major_axis_length: SemiAxisLength,
5005 semi_minor_axis_length: SemiAxisLength,
5006 semi_major_axis_orientation: Wgs84AngleValue,
5007 ) -> Self {
5008 Self {
5009 semi_major_axis_length,
5010 semi_minor_axis_length,
5011 semi_major_axis_orientation,
5012 }
5013 }
5014 }
5015
5016 #[doc = "This DE indicates whether a passenger seat is occupied or whether the occupation status is detectable or not."]
5017 #[doc = ""]
5018 #[doc = "The number of row in vehicle seats layout is counted in rows from the driver row backwards from front to the rear"]
5019 #[doc = "of the vehicle."]
5020 #[doc = "The left side seat of a row refers to the left hand side seen from vehicle rear to front."]
5021 #[doc = "Additionally, a bit is reserved for each seat row, to indicate if the seat occupation of a row is detectable or not,"]
5022 #[doc = "i.e. `row1NotDetectable (3)`, `row2NotDetectable(8)`, `row3NotDetectable(13)` and `row4NotDetectable(18)`."]
5023 #[doc = "Finally, a bit is reserved for each row seat to indicate if the seat row is present or not in the vehicle,"]
5024 #[doc = "i.e. `row1NotPresent (4)`, `row2NotPresent (9)`, `row3NotPresent(14)`, `row4NotPresent(19)`."]
5025 #[doc = ""]
5026 #[doc = "When a seat is detected to be occupied, the corresponding seat occupation bit shall be set to `1`."]
5027 #[doc = "For example, when the row 1 left seat is occupied, `row1LeftOccupied(0)` bit shall be set to `1`."]
5028 #[doc = "When a seat is detected to be not occupied, the corresponding seat occupation bit shall be set to `0`."]
5029 #[doc = "Otherwise, the value of seat occupation bit shall be set according to the following conditions:"]
5030 #[doc = "- If the seat occupation of a seat row is not detectable, the corresponding bit shall be set to `1`."]
5031 #[doc = " When any seat row not detectable bit is set to `1`, all corresponding seat occupation bits of the same row"]
5032 #[doc = " shall be set to `1`."]
5033 #[doc = "- If the seat row is not present, the corresponding not present bit of the same row shall be set to `1`."]
5034 #[doc = " When any of the seat row not present bit is set to `1`, the corresponding not detectable bit for that row"]
5035 #[doc = " shall be set to `1`, and all the corresponding seat occupation bits in that row shall be set to `0`."]
5036 #[doc = ""]
5037 #[doc = "\n\n@category: Vehicle information"]
5038 #[doc = "\n\n@revision: V1.3.1"]
5039 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5040 #[rasn(delegate)]
5041 pub struct PositionOfOccupants(pub FixedBitString<20usize>);
5042
5043 #[doc = "This DF shall contain a list of distances @ref PosPillar that refer to the perpendicular distance between centre of vehicle front bumper"]
5044 #[doc = "and vehicle pillar A, between neighbour pillars until the last pillar of the vehicle."]
5045 #[doc = ""]
5046 #[doc = "Vehicle pillars refer to the vertical or near vertical support of vehicle,"]
5047 #[doc = "designated respectively as the A, B, C or D and other pillars moving in side profile view from the front to rear."]
5048 #[doc = ""]
5049 #[doc = "The first value of the DF refers to the perpendicular distance from the centre of vehicle front bumper to "]
5050 #[doc = "vehicle A pillar. The second value refers to the perpendicular distance from the centre position of A pillar"]
5051 #[doc = "to the B pillar of vehicle and so on until the last pillar."]
5052 #[doc = ""]
5053 #[doc = "\n\n@category: Vehicle information"]
5054 #[doc = "\n\n@revision: V1.3.1"]
5055 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5056 #[rasn(delegate, size("1..=3", extensible))]
5057 pub struct PositionOfPillars(pub SequenceOf<PosPillar>);
5058
5059 #[doc = "This DE indicates the positioning technology being used to estimate a geographical position."]
5060 #[doc = ""]
5061 #[doc = "The value shall be set to:"]
5062 #[doc = "- 0 `noPositioningSolution` - no positioning solution used,"]
5063 #[doc = "- 1 `sGNSS` - Global Navigation Satellite System used,"]
5064 #[doc = "- 2 `dGNSS` - Differential GNSS used,"]
5065 #[doc = "- 3 `sGNSSplusDR` - GNSS and dead reckoning used,"]
5066 #[doc = "- 4 `dGNSSplusDR` - Differential GNSS and dead reckoning used,"]
5067 #[doc = "- 5 `dR` - dead reckoning used,"]
5068 #[doc = "- 6 `manuallyByOperator` - position set manually by a human operator."]
5069 #[doc = ""]
5070 #[doc = "\n\n@category: GeoReference information"]
5071 #[doc = "\n\n@revision: V1.3.1, extension with value 6 added in V2.2.1"]
5072 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5073 #[rasn(enumerated)]
5074 #[non_exhaustive]
5075 pub enum PositioningSolutionType {
5076 noPositioningSolution = 0,
5077 sGNSS = 1,
5078 dGNSS = 2,
5079 sGNSSplusDR = 3,
5080 dGNSSplusDR = 4,
5081 dR = 5,
5082 #[rasn(extension_addition)]
5083 manuallyByOperator = 6,
5084 }
5085
5086 #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `postCrash` ."]
5087 #[doc = ""]
5088 #[doc = "The value shall be set to:"]
5089 #[doc = "- 0 `unavailable` - in case further detailed information on post crash event is unavailable,"]
5090 #[doc = "- 1 `accidentWithoutECallTriggered` - in case no eCall has been triggered for an accident,"]
5091 #[doc = "- 2 `accidentWithECallManuallyTriggered` - in case eCall has been manually triggered and transmitted to eCall back end,"]
5092 #[doc = "- 3 `accidentWithECallAutomaticallyTriggered` - in case eCall has been automatically triggered and transmitted to eCall back end,"]
5093 #[doc = "- 4 `accidentWithECallTriggeredWithoutAccessToCellularNetwork` - in case eCall has been triggered but cellular network is not accessible from triggering vehicle."]
5094 #[doc = "- 5-255 - are reserved for future usage."]
5095 #[doc = ""]
5096 #[doc = "\n\n@category: Traffic information"]
5097 #[doc = "\n\n@revision: V1.3.1"]
5098 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5099 #[rasn(delegate, value("0..=255"))]
5100 pub struct PostCrashSubCauseCode(pub u8);
5101
5102 #[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. "]
5103 #[doc = "The following values are specified:"]
5104 #[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,"]
5105 #[doc = "- `2000` if the amount of rain falling is greater than 199.9 mm/h, "]
5106 #[doc = "- `2001` if the information is not available."]
5107 #[doc = "\n\n@unit: 0,1 mm/h "]
5108 #[doc = "\n\n@category: Basic Information"]
5109 #[doc = "\n\n@revision: created in V2.1.1"]
5110 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5111 #[rasn(delegate, value("1..=2001"))]
5112 pub struct PrecipitationIntensity(pub u16);
5113
5114 #[doc = "This DF describes a zone of protection inside which the ITS communication should be restricted."]
5115 #[doc = ""]
5116 #[doc = "It shall include the following components: "]
5117 #[doc = ""]
5118 #[doc = "- @field protectedZoneType: type of the protected zone. "]
5119 #[doc = ""]
5120 #[doc = "- @field expiryTime: optional time at which the validity of the protected communication zone will expire."]
5121 #[doc = ""]
5122 #[doc = "- @field protectedZoneLatitude: latitude of the centre point of the protected communication zone."]
5123 #[doc = ""]
5124 #[doc = "- @field protectedZoneLongitude: longitude of the centre point of the protected communication zone."]
5125 #[doc = ""]
5126 #[doc = "- @field protectedZoneRadius: optional radius of the protected communication zone in metres."]
5127 #[doc = ""]
5128 #[doc = "- @field protectedZoneId: the optional ID of the protected communication zone."]
5129 #[doc = ""]
5130 #[doc = "\n\n@note: A protected communication zone may be defined around a CEN DSRC road side equipment."]
5131 #[doc = ""]
5132 #[doc = "\n\n@category: Infrastructure information, Communication information"]
5133 #[doc = "\n\n@revision: revised in V2.1.1 (changed protectedZoneID to protectedZoneId)"]
5134 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5135 #[rasn(automatic_tags)]
5136 #[non_exhaustive]
5137 pub struct ProtectedCommunicationZone {
5138 #[rasn(identifier = "protectedZoneType")]
5139 pub protected_zone_type: ProtectedZoneType,
5140 #[rasn(identifier = "expiryTime")]
5141 pub expiry_time: Option<TimestampIts>,
5142 #[rasn(identifier = "protectedZoneLatitude")]
5143 pub protected_zone_latitude: Latitude,
5144 #[rasn(identifier = "protectedZoneLongitude")]
5145 pub protected_zone_longitude: Longitude,
5146 #[rasn(identifier = "protectedZoneRadius")]
5147 pub protected_zone_radius: Option<ProtectedZoneRadius>,
5148 #[rasn(identifier = "protectedZoneId")]
5149 pub protected_zone_id: Option<ProtectedZoneId>,
5150 }
5151 impl ProtectedCommunicationZone {
5152 pub fn new(
5153 protected_zone_type: ProtectedZoneType,
5154 expiry_time: Option<TimestampIts>,
5155 protected_zone_latitude: Latitude,
5156 protected_zone_longitude: Longitude,
5157 protected_zone_radius: Option<ProtectedZoneRadius>,
5158 protected_zone_id: Option<ProtectedZoneId>,
5159 ) -> Self {
5160 Self {
5161 protected_zone_type,
5162 expiry_time,
5163 protected_zone_latitude,
5164 protected_zone_longitude,
5165 protected_zone_radius,
5166 protected_zone_id,
5167 }
5168 }
5169 }
5170
5171 #[doc = "This DF shall contain a list of @ref ProtectedCommunicationZone provided by a road side ITS-S (Road Side Unit RSU)."]
5172 #[doc = ""]
5173 #[doc = "It may provide up to 16 protected communication zones information."]
5174 #[doc = ""]
5175 #[doc = "\n\n@category: Infrastructure information, Communication information"]
5176 #[doc = "\n\n@revision: V1.3.1"]
5177 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5178 #[rasn(delegate, size("1..=16"))]
5179 pub struct ProtectedCommunicationZonesRSU(pub SequenceOf<ProtectedCommunicationZone>);
5180
5181 #[doc = "This DE represents the indentifier of a protected communication zone."]
5182 #[doc = ""]
5183 #[doc = ""]
5184 #[doc = "\n\n@category: Infrastructure information, Communication information"]
5185 #[doc = "\n\n@revision: Revision in V2.1.1 (changed name from ProtectedZoneID to ProtectedZoneId)"]
5186 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5187 #[rasn(delegate, value("0..=134217727"))]
5188 pub struct ProtectedZoneId(pub u32);
5189
5190 #[doc = "This DE represents the radius of a protected communication zone. "]
5191 #[doc = ""]
5192 #[doc = ""]
5193 #[doc = "\n\n@unit: metre"]
5194 #[doc = "\n\n@category: Infrastructure information, Communication information"]
5195 #[doc = "\n\n@revision: V1.3.1"]
5196 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5197 #[rasn(delegate, value("1..=255", extensible))]
5198 pub struct ProtectedZoneRadius(pub Integer);
5199
5200 #[doc = "This DE indicates the type of a protected communication zone, so that an ITS-S is aware of the actions to do"]
5201 #[doc = "while passing by such zone (e.g. reduce the transmit power in case of a DSRC tolling station)."]
5202 #[doc = ""]
5203 #[doc = "The protected zone type is defined in ETSI TS 102 792."]
5204 #[doc = ""]
5205 #[doc = ""]
5206 #[doc = "\n\n@category: Communication information"]
5207 #[doc = "\n\n@revision: V1.3.1"]
5208 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5209 #[rasn(enumerated)]
5210 #[non_exhaustive]
5211 pub enum ProtectedZoneType {
5212 permanentCenDsrcTolling = 0,
5213 #[rasn(extension_addition)]
5214 temporaryCenDsrcTolling = 1,
5215 }
5216
5217 #[doc = "This DF identifies an organization."]
5218 #[doc = ""]
5219 #[doc = "It shall include the following components: "]
5220 #[doc = ""]
5221 #[doc = "- @field countryCode: represents the country code that identifies the country of the national registration administrator for issuers according to ISO 14816."]
5222 #[doc = ""]
5223 #[doc = "- @field providerIdentifier: identifies the organization according to the national ISO 14816 register for issuers."]
5224 #[doc = ""]
5225 #[doc = "\n\n@note: See <https://www.itsstandards.eu/registries/register-of-nra-i-cs1/> for a list of national registration administrators and their respective registers"]
5226 #[doc = ""]
5227 #[doc = "\n\n@category: Communication information"]
5228 #[doc = "\n\n@revision: Created in V2.2.1 based on ISO 17573-3"]
5229 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5230 #[rasn(automatic_tags)]
5231 pub struct Provider {
5232 #[rasn(identifier = "countryCode")]
5233 pub country_code: CountryCode,
5234 #[rasn(identifier = "providerIdentifier")]
5235 pub provider_identifier: IssuerIdentifier,
5236 }
5237 impl Provider {
5238 pub fn new(country_code: CountryCode, provider_identifier: IssuerIdentifier) -> Self {
5239 Self {
5240 country_code,
5241 provider_identifier,
5242 }
5243 }
5244 }
5245
5246 #[doc = "This DF represents activation data for real-time systems designed for operations control, traffic light priorities, track switches, barriers, etc."]
5247 #[doc = "using a range of activation devices equipped in public transport vehicles."]
5248 #[doc = ""]
5249 #[doc = "The activation of the corresponding equipment is triggered by the approach or passage of a public transport"]
5250 #[doc = "vehicle at a certain point (e.g. a beacon)."]
5251 #[doc = ""]
5252 #[doc = "- @field ptActivationType: type of activation. "]
5253 #[doc = ""]
5254 #[doc = "- @field ptActicationData: data of activation. "]
5255 #[doc = ""]
5256 #[doc = "Today there are different payload variants defined for public transport activation-data. The R09.x is one of"]
5257 #[doc = "the industry standard used by public transport vehicles (e.g. buses, trams) in Europe (e.g. Germany Austria)"]
5258 #[doc = "for controlling traffic lights, barriers, bollards, etc. This DF shall include information like route, course,"]
5259 #[doc = "destination, priority, etc."]
5260 #[doc = ""]
5261 #[doc = "The R09.x content is defined in VDV recommendation 420. It includes following information:"]
5262 #[doc = "- Priority Request Information (pre-request, request, ready to start)"]
5263 #[doc = "- End of Prioritization procedure"]
5264 #[doc = "- Priority request direction"]
5265 #[doc = "- Public Transport line number"]
5266 #[doc = "- Priority of public transport"]
5267 #[doc = "- Route line identifier of the public transport"]
5268 #[doc = "- Route number identification"]
5269 #[doc = "- Destination of public transport vehicle"]
5270 #[doc = ""]
5271 #[doc = "Other countries may use different message sets defined by the local administration."]
5272 #[doc = "\n\n@category: Vehicle information"]
5273 #[doc = "\n\n@revision: V1.3.1"]
5274 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5275 #[rasn(automatic_tags)]
5276 pub struct PtActivation {
5277 #[rasn(identifier = "ptActivationType")]
5278 pub pt_activation_type: PtActivationType,
5279 #[rasn(identifier = "ptActivationData")]
5280 pub pt_activation_data: PtActivationData,
5281 }
5282 impl PtActivation {
5283 pub fn new(
5284 pt_activation_type: PtActivationType,
5285 pt_activation_data: PtActivationData,
5286 ) -> Self {
5287 Self {
5288 pt_activation_type,
5289 pt_activation_data,
5290 }
5291 }
5292 }
5293
5294 #[doc = "This DE is used for various tasks in the public transportation environment, especially for controlling traffic"]
5295 #[doc = "signal systems to prioritize and speed up public transportation in urban area (e.g. intersection \"_bottlenecks_\")."]
5296 #[doc = "The traffic lights may be controlled by an approaching bus or tram automatically. This permits \"_In Time_\" activation"]
5297 #[doc = "of the green phase, will enable the individual traffic to clear a potential traffic jam in advance. Thereby the"]
5298 #[doc = "approaching bus or tram may pass an intersection with activated green light without slowing down the speed due to"]
5299 #[doc = "traffic congestion. Other usage of the DE is the provision of information like the public transport line number"]
5300 #[doc = "or the schedule delay of a public transport vehicle."]
5301 #[doc = ""]
5302 #[doc = "\n\n@category: Vehicle information"]
5303 #[doc = "\n\n@revision: V1.3.1"]
5304 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5305 #[rasn(delegate, size("1..=20"))]
5306 pub struct PtActivationData(pub OctetString);
5307
5308 #[doc = "This DE indicates a certain coding type of the PtActivationData data."]
5309 #[doc = ""]
5310 #[doc = "The folowing value are specified:"]
5311 #[doc = "- 0 `undefinedCodingType` : undefined coding type,"]
5312 #[doc = "- 1 `r09-16CodingType` : coding of PtActivationData conform to VDV recommendation 420,"]
5313 #[doc = "- 2 `vdv-50149CodingType` : coding of PtActivationData based on VDV recommendation 420."]
5314 #[doc = "- 3 - 255 : reserved for alternative and future use."]
5315 #[doc = ""]
5316 #[doc = "\n\n@category: Vehicle information "]
5317 #[doc = "\n\n@revision: V1.3.1"]
5318 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5319 #[rasn(delegate, value("0..=255"))]
5320 pub struct PtActivationType(pub u8);
5321
5322 #[doc = "This DF describes a radial shape. The circular or spherical sector is constructed by sweeping "]
5323 #[doc = "the provided range about the reference position specified outside of the context of this DF or "]
5324 #[doc = "about the optional shapeReferencePoint. The range is swept between a horizontal start and a "]
5325 #[doc = "horizontal end angle in the X-Y plane of a cartesian coordinate system specified outside of the "]
5326 #[doc = "context of this DF, in a right-hand positive angular direction w.r.t. the x-axis. "]
5327 #[doc = "A vertical opening angle in the X-Z plane may optionally be provided in a right-hand positive "]
5328 #[doc = "angular direction w.r.t. the x-axis. "]
5329 #[doc = ""]
5330 #[doc = "It shall include the following components:"]
5331 #[doc = ""]
5332 #[doc = "- @field shapeReferencePoint: the optional reference point used for the definition of the shape, "]
5333 #[doc = "relative to an externally specified reference position. If this component is absent, the "]
5334 #[doc = "externally specified reference position represents the shape's reference point. "]
5335 #[doc = ""]
5336 #[doc = "- @field range: the radial range of the shape from the shape's reference point. "]
5337 #[doc = ""]
5338 #[doc = "- @field horizontalOpeningAngleStart: the start of the shape's horizontal opening angle. "]
5339 #[doc = ""]
5340 #[doc = "- @field horizontalOpeningAngleEnd: the end of the shape's horizontal opening angle. "]
5341 #[doc = ""]
5342 #[doc = "- @field verticalOpeningAngleStart: optional start of the shape's vertical opening angle. "]
5343 #[doc = ""]
5344 #[doc = "- @field verticalOpeningAngleEnd: optional end of the shape's vertical opening angle. "]
5345 #[doc = ""]
5346 #[doc = "\n\n@category GeoReference information"]
5347 #[doc = "\n\n@revision: created in V2.1.1, names and types of the horizontal opening angles changed, constraint added and description revised in V2.2.1"]
5348 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5349 #[rasn(automatic_tags)]
5350 pub struct RadialShape {
5351 #[rasn(identifier = "shapeReferencePoint")]
5352 pub shape_reference_point: Option<CartesianPosition3d>,
5353 pub range: StandardLength12b,
5354 #[rasn(identifier = "horizontalOpeningAngleStart")]
5355 pub horizontal_opening_angle_start: CartesianAngleValue,
5356 #[rasn(identifier = "horizontalOpeningAngleEnd")]
5357 pub horizontal_opening_angle_end: CartesianAngleValue,
5358 #[rasn(identifier = "verticalOpeningAngleStart")]
5359 pub vertical_opening_angle_start: Option<CartesianAngleValue>,
5360 #[rasn(identifier = "verticalOpeningAngleEnd")]
5361 pub vertical_opening_angle_end: Option<CartesianAngleValue>,
5362 }
5363 impl RadialShape {
5364 pub fn new(
5365 shape_reference_point: Option<CartesianPosition3d>,
5366 range: StandardLength12b,
5367 horizontal_opening_angle_start: CartesianAngleValue,
5368 horizontal_opening_angle_end: CartesianAngleValue,
5369 vertical_opening_angle_start: Option<CartesianAngleValue>,
5370 vertical_opening_angle_end: Option<CartesianAngleValue>,
5371 ) -> Self {
5372 Self {
5373 shape_reference_point,
5374 range,
5375 horizontal_opening_angle_start,
5376 horizontal_opening_angle_end,
5377 vertical_opening_angle_start,
5378 vertical_opening_angle_end,
5379 }
5380 }
5381 }
5382
5383 #[doc = "This DF describes radial shape details. The circular sector or cone is"]
5384 #[doc = "constructed by sweeping the provided range about the position specified outside of the "]
5385 #[doc = "context of this DF. The range is swept between a horizontal start and a horizontal end angle in "]
5386 #[doc = "the X-Y plane of a right-hand cartesian coordinate system specified outside of the context of "]
5387 #[doc = "this DF, in positive angular direction w.r.t. the x-axis. A vertical opening angle in the X-Z "]
5388 #[doc = "plane may optionally be provided in positive angular direction w.r.t. the x-axis."]
5389 #[doc = ""]
5390 #[doc = "It shall include the following components:"]
5391 #[doc = ""]
5392 #[doc = "- @field range: the radial range of the sensor from the reference point or sensor point offset. "]
5393 #[doc = ""]
5394 #[doc = "- @field horizontalOpeningAngleStart: the start of the shape's horizontal opening angle."]
5395 #[doc = ""]
5396 #[doc = "- @field horizontalOpeningAngleEnd: the end of the shape's horizontal opening angle. "]
5397 #[doc = ""]
5398 #[doc = "- @field verticalOpeningAngleStart: optional start of the shape's vertical opening angle. "]
5399 #[doc = ""]
5400 #[doc = "- @field verticalOpeningAngleEnd: optional end of the shape's vertical opening angle. "]
5401 #[doc = ""]
5402 #[doc = "\n\n@category: Georeference information"]
5403 #[doc = "\n\n@revision: created in V2.1.1, description revised and constraint added in V2.2.1"]
5404 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5405 #[rasn(automatic_tags)]
5406 pub struct RadialShapeDetails {
5407 pub range: StandardLength12b,
5408 #[rasn(identifier = "horizontalOpeningAngleStart")]
5409 pub horizontal_opening_angle_start: CartesianAngleValue,
5410 #[rasn(identifier = "horizontalOpeningAngleEnd")]
5411 pub horizontal_opening_angle_end: CartesianAngleValue,
5412 #[rasn(identifier = "verticalOpeningAngleStart")]
5413 pub vertical_opening_angle_start: Option<CartesianAngleValue>,
5414 #[rasn(identifier = "verticalOpeningAngleEnd")]
5415 pub vertical_opening_angle_end: Option<CartesianAngleValue>,
5416 }
5417 impl RadialShapeDetails {
5418 pub fn new(
5419 range: StandardLength12b,
5420 horizontal_opening_angle_start: CartesianAngleValue,
5421 horizontal_opening_angle_end: CartesianAngleValue,
5422 vertical_opening_angle_start: Option<CartesianAngleValue>,
5423 vertical_opening_angle_end: Option<CartesianAngleValue>,
5424 ) -> Self {
5425 Self {
5426 range,
5427 horizontal_opening_angle_start,
5428 horizontal_opening_angle_end,
5429 vertical_opening_angle_start,
5430 vertical_opening_angle_end,
5431 }
5432 }
5433 }
5434
5435 #[doc = "This DF describes a list of radial shapes positioned w.r.t. to an offset position defined "]
5436 #[doc = "relative to a reference position specified outside of the context of this DF and oriented w.r.t. "]
5437 #[doc = "a cartesian coordinate system specified outside of the context of this DF. "]
5438 #[doc = ""]
5439 #[doc = "It shall include the following components:"]
5440 #[doc = ""]
5441 #[doc = "- @field refPointId: the identification of the reference point in case of a sensor mounted to trailer. Defaults to ITS ReferencePoint (0)."]
5442 #[doc = ""]
5443 #[doc = "- @field xCoordinate: the x-coordinate of the offset position."]
5444 #[doc = ""]
5445 #[doc = "- @field yCoordinate: the y-coordinate of the offset position."]
5446 #[doc = ""]
5447 #[doc = "- @field zCoordinate: the optional z-coordinate of the offset position."]
5448 #[doc = ""]
5449 #[doc = "- @field radialShapesList: the list of radial shape details."]
5450 #[doc = ""]
5451 #[doc = "\n\n@category: Georeference information"]
5452 #[doc = "\n\n@revision: created in V2.1.1, description revised in V2.2.1"]
5453 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5454 #[rasn(automatic_tags)]
5455 pub struct RadialShapes {
5456 #[rasn(identifier = "refPointId")]
5457 pub ref_point_id: Identifier1B,
5458 #[rasn(identifier = "xCoordinate")]
5459 pub x_coordinate: CartesianCoordinateSmall,
5460 #[rasn(identifier = "yCoordinate")]
5461 pub y_coordinate: CartesianCoordinateSmall,
5462 #[rasn(identifier = "zCoordinate")]
5463 pub z_coordinate: Option<CartesianCoordinateSmall>,
5464 #[rasn(identifier = "radialShapesList")]
5465 pub radial_shapes_list: RadialShapesList,
5466 }
5467 impl RadialShapes {
5468 pub fn new(
5469 ref_point_id: Identifier1B,
5470 x_coordinate: CartesianCoordinateSmall,
5471 y_coordinate: CartesianCoordinateSmall,
5472 z_coordinate: Option<CartesianCoordinateSmall>,
5473 radial_shapes_list: RadialShapesList,
5474 ) -> Self {
5475 Self {
5476 ref_point_id,
5477 x_coordinate,
5478 y_coordinate,
5479 z_coordinate,
5480 radial_shapes_list,
5481 }
5482 }
5483 }
5484
5485 #[doc = "The DF contains a list of @ref RadialShapeDetails."]
5486 #[doc = ""]
5487 #[doc = "\n\n@category: Georeference information"]
5488 #[doc = "\n\n@revision: created in V2.1.1"]
5489 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5490 #[rasn(delegate, size("1..=16", extensible))]
5491 pub struct RadialShapesList(pub SequenceOf<RadialShapeDetails>);
5492
5493 #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `railwayLevelCrossing` ."]
5494 #[doc = ""]
5495 #[doc = "The value shall be set to:"]
5496 #[doc = "- 0 `unavailable` - in case no further detailed information on the railway level crossing status is available,"]
5497 #[doc = "- 1 `doNotCrossAbnormalSituation` - in case when something wrong is detected by equation or sensors of the railway level crossing, "]
5498 #[doc = " including level crossing is closed for too long (e.g. more than 10 minutes long ; default value),"]
5499 #[doc = "- 2 `closed` - in case the crossing is closed (barriers down),"]
5500 #[doc = "- 3 `unguarded` - in case the level crossing is unguarded (i.e a Saint Andrew cross level crossing without detection of train),"]
5501 #[doc = "- 4 `nominal` - in case the barriers are up and lights are off."]
5502 #[doc = "- 5-255: reserved for future usage."]
5503 #[doc = ""]
5504 #[doc = "\n\n@category: Traffic information"]
5505 #[doc = "\n\n@revision: V1.3.1"]
5506 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5507 #[rasn(delegate, value("0..=255"))]
5508 pub struct RailwayLevelCrossingSubCauseCode(pub u8);
5509
5510 #[doc = "This DF represents the shape of a rectangular area or a right rectangular prism that is centred "]
5511 #[doc = "on a reference position defined outside of the context of this DF and oriented w.r.t. a cartesian "]
5512 #[doc = "coordinate system defined outside of the context of this DF. "]
5513 #[doc = ""]
5514 #[doc = "It shall include the following components: "]
5515 #[doc = ""]
5516 #[doc = "- @field shapeReferencePoint: represents an optional offset point which the rectangle is centred on with "]
5517 #[doc = "respect to the reference position. If this component is absent, the externally specified "]
5518 #[doc = "reference position represents the shape's reference point. "]
5519 #[doc = ""]
5520 #[doc = "- @field semiLength: represents half the length of the rectangle located in the X-Y Plane."]
5521 #[doc = ""]
5522 #[doc = "- @field semiBreadth: represents half the breadth of the rectangle located in the X-Y Plane."]
5523 #[doc = ""]
5524 #[doc = "- @field orientation: represents the optional orientation of the length of the rectangle, "]
5525 #[doc = "measured with positive values turning around the Z-axis using the right-hand rule, starting from"]
5526 #[doc = "the X-axis. "]
5527 #[doc = ""]
5528 #[doc = "- @field height: represents the optional height, present if the shape is a right rectangular prism "]
5529 #[doc = "with height extending in the positive Z-axis."]
5530 #[doc = ""]
5531 #[doc = "\n\n@category GeoReference information"]
5532 #[doc = "\n\n@revision: created in V2.1.1, centerPoint renamed to shapeReferencePoint, the type of the field orientation changed and description revised in V2.2.1"]
5533 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5534 #[rasn(automatic_tags)]
5535 pub struct RectangularShape {
5536 #[rasn(identifier = "shapeReferencePoint")]
5537 pub shape_reference_point: Option<CartesianPosition3d>,
5538 #[rasn(identifier = "semiLength")]
5539 pub semi_length: StandardLength12b,
5540 #[rasn(identifier = "semiBreadth")]
5541 pub semi_breadth: StandardLength12b,
5542 pub orientation: Option<CartesianAngleValue>,
5543 pub height: Option<StandardLength12b>,
5544 }
5545 impl RectangularShape {
5546 pub fn new(
5547 shape_reference_point: Option<CartesianPosition3d>,
5548 semi_length: StandardLength12b,
5549 semi_breadth: StandardLength12b,
5550 orientation: Option<CartesianAngleValue>,
5551 height: Option<StandardLength12b>,
5552 ) -> Self {
5553 Self {
5554 shape_reference_point,
5555 semi_length,
5556 semi_breadth,
5557 orientation,
5558 height,
5559 }
5560 }
5561 }
5562
5563 #[doc = "A position within a geographic coordinate system together with a confidence ellipse. "]
5564 #[doc = ""]
5565 #[doc = "It shall include the following components: "]
5566 #[doc = ""]
5567 #[doc = "- @field latitude: the latitude of the geographical point."]
5568 #[doc = ""]
5569 #[doc = "- @field longitude: the longitude of the geographical point."]
5570 #[doc = ""]
5571 #[doc = "- @field positionConfidenceEllipse: the confidence ellipse associated to the geographical position."]
5572 #[doc = ""]
5573 #[doc = "- @field altitude: the altitude and an altitude accuracy of the geographical point."]
5574 #[doc = ""]
5575 #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref ReferencePositionWithConfidence instead. "]
5576 #[doc = "\n\n@category: GeoReference information"]
5577 #[doc = "\n\n@revision: description updated in V2.1.1"]
5578 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5579 #[rasn(automatic_tags)]
5580 pub struct ReferencePosition {
5581 pub latitude: Latitude,
5582 pub longitude: Longitude,
5583 #[rasn(identifier = "positionConfidenceEllipse")]
5584 pub position_confidence_ellipse: PosConfidenceEllipse,
5585 pub altitude: Altitude,
5586 }
5587 impl ReferencePosition {
5588 pub fn new(
5589 latitude: Latitude,
5590 longitude: Longitude,
5591 position_confidence_ellipse: PosConfidenceEllipse,
5592 altitude: Altitude,
5593 ) -> Self {
5594 Self {
5595 latitude,
5596 longitude,
5597 position_confidence_ellipse,
5598 altitude,
5599 }
5600 }
5601 }
5602
5603 #[doc = "A position within a geographic coordinate system together with a confidence ellipse. "]
5604 #[doc = ""]
5605 #[doc = "It shall include the following components: "]
5606 #[doc = ""]
5607 #[doc = "- @field latitude: the latitude of the geographical point."]
5608 #[doc = ""]
5609 #[doc = "- @field longitude: the longitude of the geographical point."]
5610 #[doc = ""]
5611 #[doc = "- @field positionConfidenceEllipse: the confidence ellipse associated to the geographical position."]
5612 #[doc = ""]
5613 #[doc = "- @field altitude: the altitude and an altitude accuracy of the geographical point."]
5614 #[doc = ""]
5615 #[doc = "\n\n@category: GeoReference information"]
5616 #[doc = "\n\n@revision: created in V2.1.1 based on @ref ReferencePosition but using @ref PositionConfidenceEllipse."]
5617 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5618 #[rasn(automatic_tags)]
5619 pub struct ReferencePositionWithConfidence {
5620 pub latitude: Latitude,
5621 pub longitude: Longitude,
5622 #[rasn(identifier = "positionConfidenceEllipse")]
5623 pub position_confidence_ellipse: PositionConfidenceEllipse,
5624 pub altitude: Altitude,
5625 }
5626 impl ReferencePositionWithConfidence {
5627 pub fn new(
5628 latitude: Latitude,
5629 longitude: Longitude,
5630 position_confidence_ellipse: PositionConfidenceEllipse,
5631 altitude: Altitude,
5632 ) -> Self {
5633 Self {
5634 latitude,
5635 longitude,
5636 position_confidence_ellipse,
5637 altitude,
5638 }
5639 }
5640 }
5641
5642 #[doc = "This DE describes a distance of relevance for information indicated in a message."]
5643 #[doc = ""]
5644 #[doc = "The value shall be set to:"]
5645 #[doc = "- 0 `lessThan50m` - for distances below 50 m,"]
5646 #[doc = "- 1 `lessThan100m` - for distances below 100 m, "]
5647 #[doc = "- 2 `lessThan200m` - for distances below 200 m, "]
5648 #[doc = "- 3 `lessThan500m` - for distances below 300 m, "]
5649 #[doc = "- 4 `lessThan1000m` - for distances below 1 000 m, "]
5650 #[doc = "- 5 `lessThan5km` - for distances below 5 000 m, "]
5651 #[doc = "- 6 `lessThan10km` - for distances below 10 000 m, "]
5652 #[doc = "- 7 `over10km` - for distances over 10 000 m. "]
5653 #[doc = ""]
5654 #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref StandardLength3b instead. "]
5655 #[doc = ""]
5656 #[doc = "\n\n@category: GeoReference information"]
5657 #[doc = "\n\n@revision: Editorial update in V2.1.1"]
5658 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5659 #[rasn(enumerated)]
5660 pub enum RelevanceDistance {
5661 lessThan50m = 0,
5662 lessThan100m = 1,
5663 lessThan200m = 2,
5664 lessThan500m = 3,
5665 lessThan1000m = 4,
5666 lessThan5km = 5,
5667 lessThan10km = 6,
5668 over10km = 7,
5669 }
5670
5671 #[doc = "This DE indicates a traffic direction that is relevant to information indicated in a message."]
5672 #[doc = ""]
5673 #[doc = "The value shall be set to:"]
5674 #[doc = "- 0 `allTrafficDirections` - for all traffic directions, "]
5675 #[doc = "- 1 `upstreamTraffic` - for upstream traffic, "]
5676 #[doc = "- 2 `downstreamTraffic` - for downstream traffic, "]
5677 #[doc = "- 3 `oppositeTraffic` - for traffic in the opposite direction. "]
5678 #[doc = ""]
5679 #[doc = "The terms `upstream`, `downstream` and `oppositeTraffic` are relative to the event position."]
5680 #[doc = ""]
5681 #[doc = "\n\n@note: Upstream traffic corresponds to the incoming traffic towards the event position,"]
5682 #[doc = "and downstream traffic to the departing traffic away from the event position."]
5683 #[doc = ""]
5684 #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrafficDirection instead. "]
5685 #[doc = ""]
5686 #[doc = "\n\n@category: GeoReference information"]
5687 #[doc = "\n\n@revision: Editorial update in V2.1.1"]
5688 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5689 #[rasn(enumerated)]
5690 pub enum RelevanceTrafficDirection {
5691 allTrafficDirections = 0,
5692 upstreamTraffic = 1,
5693 downstreamTraffic = 2,
5694 oppositeTraffic = 3,
5695 }
5696
5697 #[doc = "This DE indicates whether an ITS message is transmitted as request from ITS-S or a response transmitted from"]
5698 #[doc = "ITS-S after receiving request from other ITS-Ss."]
5699 #[doc = ""]
5700 #[doc = "The value shall be set to:"]
5701 #[doc = "- 0 `request` - for a request message, "]
5702 #[doc = "- 1 `response` - for a response message. "]
5703 #[doc = ""]
5704 #[doc = "\n\n@category Communication information"]
5705 #[doc = "\n\n@revision: Editorial update in V2.1.1"]
5706 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5707 #[rasn(enumerated)]
5708 pub enum RequestResponseIndication {
5709 request = 0,
5710 response = 1,
5711 }
5712
5713 #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `rescueAndRecoveryWorkInProgress` "]
5714 #[doc = ""]
5715 #[doc = "The value shall be set to:"]
5716 #[doc = "- 0 `unavailable` - in case further detailed information on rescue and recovery work is unavailable,"]
5717 #[doc = "- 1 `emergencyVehicles` - in case rescue and/or safeguarding work is ongoing by emergency vehicles, i.e. by vehicles that have the absolute right of way,"]
5718 #[doc = "- 2 `rescueHelicopterLanding` - in case rescue helicopter is landing,"]
5719 #[doc = "- 3 `policeActivityOngoing` - in case police activity is ongoing (only to be used if a more specific sub cause than (1) is needed),"]
5720 #[doc = "- 4 `medicalEmergencyOngoing` - in case medical emergency recovery is ongoing (only to be used if a more specific sub cause than (1) is needed),"]
5721 #[doc = "- 5 `childAbductionInProgress` - in case a child kidnapping alarm is activated and rescue work is ongoing (only to be used if a more specific sub cause than (1) is needed),"]
5722 #[doc = "- 6 `prioritizedVehicle` - in case rescue and/or safeguarding work is ongoing by prioritized vehicles, i.e. by vehicles that have priority but not the absolute right of way,"]
5723 #[doc = "- 7 `rescueAndRecoveryVehicle` - in case technical rescue work is ongoing by rescue and recovery vehicles."]
5724 #[doc = "- 8-255: reserved for future usage."]
5725 #[doc = ""]
5726 #[doc = "\n\n@category: Traffic information"]
5727 #[doc = "\n\n@revision: V1.3.1, named values 6 and 7 added in V2.2.1"]
5728 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5729 #[rasn(delegate, value("0..=255"))]
5730 pub struct RescueAndRecoveryWorkInProgressSubCauseCode(pub u8);
5731
5732 #[doc = "This DF shall contain a list of @ref StationType. to which a certain traffic restriction, e.g. the speed limit, applies."]
5733 #[doc = ""]
5734 #[doc = "\n\n@category: Infrastructure information, Traffic information"]
5735 #[doc = "\n\n@revision: V1.3.1"]
5736 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5737 #[rasn(delegate, size("1..=3", extensible))]
5738 pub struct RestrictedTypes(pub SequenceOf<StationType>);
5739
5740 #[doc = "This DF provides configuration information about a road section."]
5741 #[doc = ""]
5742 #[doc = "It shall include the following components: "]
5743 #[doc = ""]
5744 #[doc = "- @field roadSectionDefinition: the topological definition of the road section for which the information in the other components applies throughout its entire length."]
5745 #[doc = ""]
5746 #[doc = "- @field roadType: the optional type of road on which the section is located."]
5747 #[doc = ""]
5748 #[doc = "- @field laneConfiguration: the optional configuration of the road section in terms of basic information per lane."]
5749 #[doc = ""]
5750 #[doc = "- @field mapemConfiguration: the optional configuration of the road section in terms of MAPEM lanes or connections."]
5751 #[doc = ""]
5752 #[doc = "\n\n@category: Road topology information"]
5753 #[doc = "\n\n@revision: Created in V2.2.1"]
5754 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5755 #[rasn(automatic_tags)]
5756 #[non_exhaustive]
5757 pub struct RoadConfigurationSection {
5758 #[rasn(identifier = "roadSectionDefinition")]
5759 pub road_section_definition: RoadSectionDefinition,
5760 #[rasn(identifier = "roadType")]
5761 pub road_type: Option<RoadType>,
5762 #[rasn(identifier = "laneConfiguration")]
5763 pub lane_configuration: Option<BasicLaneConfiguration>,
5764 #[rasn(identifier = "mapemConfiguration")]
5765 pub mapem_configuration: Option<MapemConfiguration>,
5766 }
5767 impl RoadConfigurationSection {
5768 pub fn new(
5769 road_section_definition: RoadSectionDefinition,
5770 road_type: Option<RoadType>,
5771 lane_configuration: Option<BasicLaneConfiguration>,
5772 mapem_configuration: Option<MapemConfiguration>,
5773 ) -> Self {
5774 Self {
5775 road_section_definition,
5776 road_type,
5777 lane_configuration,
5778 mapem_configuration,
5779 }
5780 }
5781 }
5782
5783 #[doc = "This DF shall contain a list of @ref RoadConfigurationSection."]
5784 #[doc = ""]
5785 #[doc = "\n\n@category: Road Topology information"]
5786 #[doc = "\n\n@revision: Created in V2.2.1"]
5787 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5788 #[rasn(delegate, size("1..=8", extensible))]
5789 pub struct RoadConfigurationSectionList(pub SequenceOf<RoadConfigurationSection>);
5790
5791 #[doc = "This DF provides the basic topological definition of a road section."]
5792 #[doc = ""]
5793 #[doc = "It shall include the following components: "]
5794 #[doc = ""]
5795 #[doc = "- @field startingPointSection: the position of the starting point of the section. "]
5796 #[doc = ""]
5797 #[doc = "- @field lengthOfSection: the optional length of the section along the road profile (i.e. including curves)."]
5798 #[doc = ""]
5799 #[doc = "- @field endingPointSection: the optional position of the ending point of the section. "]
5800 #[doc = "If this component is absent, the ending position is implicitly defined by other means, e.g. the starting point of the next RoadConfigurationSection, or the section�s length."]
5801 #[doc = ""]
5802 #[doc = "- @field connectedPaths: the identifier(s) of the path(s) having one or an ordered subset of waypoints located upstream of the RoadConfigurationSection� starting point. "]
5803 #[doc = ""]
5804 #[doc = "- @field includedPaths: the identifier(s) of the path(s) that covers (either with all its length or with a part of it) a RoadConfigurationSection. "]
5805 #[doc = ""]
5806 #[doc = "- @field isEventZoneIncluded: indicates, if set to TRUE, that the @ref EventZone incl. its reference position covers a RoadConfigurationSection (either with all its length or with a part of it). "]
5807 #[doc = ""]
5808 #[doc = "- @field isEventZoneConnected: indicates, if set to TRUE, that the @ref EventZone incl. its reference position has one or an ordered subset of waypoints located upstream of the RoadConfigurationSection� starting point."]
5809 #[doc = ""]
5810 #[doc = "\n\n@category: Road topology information"]
5811 #[doc = "\n\n@revision: Created in V2.2.1"]
5812 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5813 #[rasn(automatic_tags)]
5814 #[non_exhaustive]
5815 pub struct RoadSectionDefinition {
5816 #[rasn(identifier = "startingPointSection")]
5817 pub starting_point_section: GeoPosition,
5818 #[rasn(identifier = "lengthOfSection")]
5819 pub length_of_section: Option<StandardLength2B>,
5820 #[rasn(identifier = "endingPointSection")]
5821 pub ending_point_section: Option<GeoPosition>,
5822 #[rasn(identifier = "connectedPaths")]
5823 pub connected_paths: PathReferences,
5824 #[rasn(identifier = "includedPaths")]
5825 pub included_paths: PathReferences,
5826 #[rasn(identifier = "isEventZoneIncluded")]
5827 pub is_event_zone_included: bool,
5828 #[rasn(identifier = "isEventZoneConnected")]
5829 pub is_event_zone_connected: bool,
5830 }
5831 impl RoadSectionDefinition {
5832 pub fn new(
5833 starting_point_section: GeoPosition,
5834 length_of_section: Option<StandardLength2B>,
5835 ending_point_section: Option<GeoPosition>,
5836 connected_paths: PathReferences,
5837 included_paths: PathReferences,
5838 is_event_zone_included: bool,
5839 is_event_zone_connected: bool,
5840 ) -> Self {
5841 Self {
5842 starting_point_section,
5843 length_of_section,
5844 ending_point_section,
5845 connected_paths,
5846 included_paths,
5847 is_event_zone_included,
5848 is_event_zone_connected,
5849 }
5850 }
5851 }
5852
5853 #[doc = "This DE indicates an ordinal number that represents the position of a component in the list @ref RoadConfigurationSectionList. "]
5854 #[doc = ""]
5855 #[doc = "The value shall be set to:"]
5856 #[doc = "- `0` - if no road section is identified"]
5857 #[doc = "- `1..8` - for instances 1..8 of @ref RoadConfigurationSectionList "]
5858 #[doc = ""]
5859 #[doc = "\n\n@category: Road topology information"]
5860 #[doc = "\n\n@revision: Created in V2.2.1"]
5861 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5862 #[rasn(delegate, value("0..=8", extensible))]
5863 pub struct RoadSectionId(pub Integer);
5864
5865 #[doc = "This DF represents a unique id for a road segment"]
5866 #[doc = ""]
5867 #[doc = "It shall include the following components: "]
5868 #[doc = ""]
5869 #[doc = "- @field region: the optional identifier of the entity that is responsible for the region in which the road segment is placed."]
5870 #[doc = "It is the duty of that entity to guarantee that the @ref Id is unique within the region."]
5871 #[doc = ""]
5872 #[doc = "- @field id: the identifier of the road segment."]
5873 #[doc = ""]
5874 #[doc = "\n\n@note: when the component region is present, the RoadSegmentReferenceId is guaranteed to be globally unique."]
5875 #[doc = "\n\n@category: GeoReference information"]
5876 #[doc = "\n\n@revision: created in V2.1.1"]
5877 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5878 #[rasn(automatic_tags)]
5879 pub struct RoadSegmentReferenceId {
5880 pub region: Option<Identifier2B>,
5881 pub id: Identifier2B,
5882 }
5883 impl RoadSegmentReferenceId {
5884 pub fn new(region: Option<Identifier2B>, id: Identifier2B) -> Self {
5885 Self { region, id }
5886 }
5887 }
5888
5889 #[doc = "This DE indicates the type of a road segment."]
5890 #[doc = ""]
5891 #[doc = "The value shall be set to:"]
5892 #[doc = "- 0 `urban-NoStructuralSeparationToOppositeLanes` - for an urban road with no structural separation between lanes carrying traffic in opposite directions,"]
5893 #[doc = "- 1 `urban-WithStructuralSeparationToOppositeLanes` - for an urban road with structural separation between lanes carrying traffic in opposite directions,"]
5894 #[doc = "- 2 `nonUrban-NoStructuralSeparationToOppositeLanes` - for an non urban road with no structural separation between lanes carrying traffic in opposite directions,"]
5895 #[doc = "- 3 `nonUrban-WithStructuralSeparationToOppositeLanes` - for an non urban road with structural separation between lanes carrying traffic in opposite directions."]
5896 #[doc = ""]
5897 #[doc = "\n\n@category: Road Topology Information"]
5898 #[doc = "\n\n@revision: Editorial update in V2.1.1"]
5899 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5900 #[rasn(enumerated)]
5901 pub enum RoadType {
5902 #[rasn(identifier = "urban-NoStructuralSeparationToOppositeLanes")]
5903 urban_NoStructuralSeparationToOppositeLanes = 0,
5904 #[rasn(identifier = "urban-WithStructuralSeparationToOppositeLanes")]
5905 urban_WithStructuralSeparationToOppositeLanes = 1,
5906 #[rasn(identifier = "nonUrban-NoStructuralSeparationToOppositeLanes")]
5907 nonUrban_NoStructuralSeparationToOppositeLanes = 2,
5908 #[rasn(identifier = "nonUrban-WithStructuralSeparationToOppositeLanes")]
5909 nonUrban_WithStructuralSeparationToOppositeLanes = 3,
5910 }
5911
5912 #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `roadworks`."]
5913 #[doc = ""]
5914 #[doc = "The value shall be set to:"]
5915 #[doc = "- 0 `unavailable` - in case further detailed information on roadworks is unavailable,"]
5916 #[doc = "- 1 `majorRoadworks` - in case a major roadworks is ongoing,"]
5917 #[doc = "- 2 `roadMarkingWork` - in case a road marking work is ongoing,"]
5918 #[doc = "- 3 `slowMovingRoadMaintenance` - in case slow moving road maintenance work is ongoing,"]
5919 #[doc = "- 4 `shortTermStationaryRoadworks`- in case a short term stationary roadwork is ongoing,"]
5920 #[doc = "- 5 `streetCleaning` - in case a vehicle street cleaning work is ongoing,"]
5921 #[doc = "- 6 `winterService` - in case winter service work is ongoing."]
5922 #[doc = "- 7-255 - are reserved for future usage."]
5923 #[doc = ""]
5924 #[doc = "\n\n@category: Traffic information"]
5925 #[doc = "\n\n@revision: V1.3.1"]
5926 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5927 #[rasn(delegate, value("0..=255"))]
5928 pub struct RoadworksSubCauseCode(pub u8);
5929
5930 #[doc = "This DF provides the safe distance indication of a traffic participant with other traffic participant(s)."]
5931 #[doc = ""]
5932 #[doc = "It shall include the following components: "]
5933 #[doc = ""]
5934 #[doc = "- @field subjectStation: optionally indicates one \"other\" traffic participant identified by its ITS-S."]
5935 #[doc = " "]
5936 #[doc = "- @field safeDistanceIndicator: indicates whether the distance between the ego ITS-S and the traffic participant(s) is safe."]
5937 #[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. "]
5938 #[doc = ""]
5939 #[doc = "- @field timeToCollision: optionally indicated the time-to-collision calculated as sqrt(LaDi^2 + LoDi^2 + VDi^2/relative speed "]
5940 #[doc = "and represented in the nearest 100 ms. This component may be present only if subjectStation is present. "]
5941 #[doc = ""]
5942 #[doc = "\n\n@note: the abbreviations used are Lateral Distance (LaD), Longitudinal Distance (LoD) and Vertical Distance (VD) "]
5943 #[doc = "and their respective thresholds, Minimum Safe Lateral Distance (MSLaD), Minimum Safe Longitudinal Distance (MSLoD), and Minimum Safe Vertical Distance (MSVD)."]
5944 #[doc = ""]
5945 #[doc = "\n\n@category: Traffic information, Kinematic information"]
5946 #[doc = "\n\n@revision: created in V2.1.1"]
5947 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5948 #[rasn(automatic_tags)]
5949 #[non_exhaustive]
5950 pub struct SafeDistanceIndication {
5951 #[rasn(identifier = "subjectStation")]
5952 pub subject_station: Option<StationId>,
5953 #[rasn(identifier = "safeDistanceIndicator")]
5954 pub safe_distance_indicator: SafeDistanceIndicator,
5955 #[rasn(identifier = "timeToCollision")]
5956 pub time_to_collision: Option<DeltaTimeTenthOfSecond>,
5957 }
5958 impl SafeDistanceIndication {
5959 pub fn new(
5960 subject_station: Option<StationId>,
5961 safe_distance_indicator: SafeDistanceIndicator,
5962 time_to_collision: Option<DeltaTimeTenthOfSecond>,
5963 ) -> Self {
5964 Self {
5965 subject_station,
5966 safe_distance_indicator,
5967 time_to_collision,
5968 }
5969 }
5970 }
5971
5972 #[doc = "This DE indicates if a distance is safe. "]
5973 #[doc = ""]
5974 #[doc = "The value shall be set to:"]
5975 #[doc = "- `FALSE` if the triple {LaD, LoD, VD} < {MSLaD, MSLoD, MSVD} is simultaneously satisfied with confidence level of 90 % or more, "]
5976 #[doc = "- `TRUE` otherwise. "]
5977 #[doc = ""]
5978 #[doc = "\n\n@note: the abbreviations used are Lateral Distance (LaD), Longitudinal Distance (LoD) and Vertical Distance (VD) "]
5979 #[doc = "and their respective thresholds, Minimum Safe Lateral Distance (MSLaD), Minimum Safe Longitudinal Distance (MSLoD), and Minimum Safe Vertical Distance (MSVD)."]
5980 #[doc = ""]
5981 #[doc = "\n\n@category: Traffic information, Kinematic information"]
5982 #[doc = "\n\n@revision: created in V2.1.1"]
5983 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5984 #[rasn(delegate)]
5985 pub struct SafeDistanceIndicator(pub bool);
5986 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5987 #[rasn(delegate, value("0..=4095"))]
5988 pub struct SemiAxisLength(pub u16);
5989
5990 #[doc = "This DE indicates the type of sensor."]
5991 #[doc = ""]
5992 #[doc = "The value shall be set to:"]
5993 #[doc = "- 0 `undefined` - in case the sensor type is undefined. "]
5994 #[doc = "- 1 `radar` - in case the sensor is a radar,"]
5995 #[doc = "- 2 `lidar` - in case the sensor is a lidar,"]
5996 #[doc = "- 3 `monovideo` - in case the sensor is mono video,"]
5997 #[doc = "- 4 `stereovision` - in case the sensor is stereo vision,"]
5998 #[doc = "- 5 `nightvision` - in case the sensor is night vision,"]
5999 #[doc = "- 6 `ultrasonic` - in case the sensor is ultrasonic,"]
6000 #[doc = "- 7 `pmd` - in case the sensor is photonic mixing device,"]
6001 #[doc = "- 8 `inductionLoop` - in case the sensor is an induction loop,"]
6002 #[doc = "- 9 `sphericalCamera` - in case the sensor is a spherical camera,"]
6003 #[doc = "- 10 `uwb` - in case the sensor is ultra wide band,"]
6004 #[doc = "- 11 `acoustic` - in case the sensor is acoustic,"]
6005 #[doc = "- 12 `localAggregation` - in case the information is provided by a system that aggregates information from different local sensors. Aggregation may include fusion,"]
6006 #[doc = "- 13 `itsAggregation` - in case the information is provided by a system that aggregates information from other received ITS messages."]
6007 #[doc = "- 14-31 - are reserved for future usage."]
6008 #[doc = ""]
6009 #[doc = "\n\n@category: Sensing Information"]
6010 #[doc = "\n\n@revision: created in V2.1.1"]
6011 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6012 #[rasn(delegate, value("0..=31"))]
6013 pub struct SensorType(pub u8);
6014
6015 #[doc = "This DE indicates the type of sensor(s)."]
6016 #[doc = "The corresponding bit shall be set to 1 under the following conditions:"]
6017 #[doc = ""]
6018 #[doc = "- 0 `undefined` - in case the sensor type is undefined. "]
6019 #[doc = "- 1 `radar` - in case the sensor is a radar,"]
6020 #[doc = "- 2 `lidar` - in case the sensor is a lidar,"]
6021 #[doc = "- 3 `monovideo` - in case the sensor is mono video,"]
6022 #[doc = "- 4 `stereovision` - in case the sensor is stereo vision,"]
6023 #[doc = "- 5 `nightvision` - in case the sensor is night vision,"]
6024 #[doc = "- 6 `ultrasonic` - in case the sensor is ultrasonic,"]
6025 #[doc = "- 7 `pmd` - in case the sensor is photonic mixing device,"]
6026 #[doc = "- 8 `inductionLoop` - in case the sensor is an induction loop,"]
6027 #[doc = "- 9 `sphericalCamera` - in case the sensor is a spherical camera,"]
6028 #[doc = "- 10 `uwb` - in case the sensor is ultra wide band,"]
6029 #[doc = "- 11 `acoustic` - in case the sensor is acoustic,"]
6030 #[doc = "- 12 `localAggregation` - in case the information is provided by a system that aggregates information from different local sensors. Aggregation may include fusion,"]
6031 #[doc = "- 13 `itsAggregation` - in case the information is provided by a system that aggregates information from other received ITS messages."]
6032 #[doc = "- 14-15 - are reserved for future usage."]
6033 #[doc = ""]
6034 #[doc = "\n\n@note: If all bits are set to 0, then no sensor type is used"]
6035 #[doc = ""]
6036 #[doc = "\n\n@category: Sensing Information"]
6037 #[doc = "\n\n@revision: created in V2.2.1"]
6038 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6039 #[rasn(delegate, size("16", extensible))]
6040 pub struct SensorTypes(pub BitString);
6041
6042 #[doc = "This DE represents a sequence number."]
6043 #[doc = ""]
6044 #[doc = "\n\n@category: Basic information"]
6045 #[doc = "\n\n@revision: V1.3.1"]
6046 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6047 #[rasn(delegate, value("0..=65535"))]
6048 pub struct SequenceNumber(pub u16);
6049
6050 #[doc = "This DF shall contain a list of DF @ref CartesianPosition3d."]
6051 #[doc = ""]
6052 #[doc = "\n\n@category: GeoReference information"]
6053 #[doc = "\n\n@revision: created in V2.1.1"]
6054 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6055 #[rasn(delegate, size("1..=16", extensible))]
6056 pub struct SequenceOfCartesianPosition3d(pub SequenceOf<CartesianPosition3d>);
6057
6058 #[doc = "The DF contains a list of DE @ref Identifier1B."]
6059 #[doc = ""]
6060 #[doc = "\n\n@category: Basic information"]
6061 #[doc = "\n\n@revision: created in V2.1.1"]
6062 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6063 #[rasn(delegate, size("1..=128", extensible))]
6064 pub struct SequenceOfIdentifier1B(pub SequenceOf<Identifier1B>);
6065
6066 #[doc = "The DF contains a list of DF @ref SafeDistanceIndication."]
6067 #[doc = ""]
6068 #[doc = "\n\n@category: Traffic information, Kinematic information"]
6069 #[doc = "\n\n@revision: created in V2.1.1"]
6070 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6071 #[rasn(delegate, size("1..=8", extensible))]
6072 pub struct SequenceOfSafeDistanceIndication(pub SequenceOf<SafeDistanceIndication>);
6073
6074 #[doc = "The DF shall contain a list of DF @ref TrajectoryInterceptionIndication."]
6075 #[doc = ""]
6076 #[doc = "\n\n@category: Traffic information, Kinematic information"]
6077 #[doc = "\n\n@revision: created in V2.1.1"]
6078 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6079 #[rasn(delegate, size("1..=8", extensible))]
6080 pub struct SequenceOfTrajectoryInterceptionIndication(
6081 pub SequenceOf<TrajectoryInterceptionIndication>,
6082 );
6083
6084 #[doc = "This DF provides the definition of a geographical area or volume, based on different options."]
6085 #[doc = ""]
6086 #[doc = "It is a choice of the following components: "]
6087 #[doc = ""]
6088 #[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."]
6089 #[doc = ""]
6090 #[doc = "- @field circular: definition of an area of circular shape or a right circular cylinder."]
6091 #[doc = ""]
6092 #[doc = "- @field polygonal: definition of an area of polygonal shape or a right prism."]
6093 #[doc = ""]
6094 #[doc = "- @field elliptical: definition of an area of elliptical shape or a right elliptical cylinder."]
6095 #[doc = ""]
6096 #[doc = "- @field radial: definition of a radial shape."]
6097 #[doc = ""]
6098 #[doc = "- @field radialList: definition of list of radial shapes."]
6099 #[doc = ""]
6100 #[doc = "\n\n@category: GeoReference information"]
6101 #[doc = "\n\n@revision: Created in V2.1.1"]
6102 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6103 #[rasn(choice, automatic_tags)]
6104 #[non_exhaustive]
6105 pub enum Shape {
6106 rectangular(RectangularShape),
6107 circular(CircularShape),
6108 polygonal(PolygonalShape),
6109 elliptical(EllipticalShape),
6110 radial(RadialShape),
6111 radialShapes(RadialShapes),
6112 }
6113
6114 #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `signalViolation`."]
6115 #[doc = ""]
6116 #[doc = "The value shall be set to:"]
6117 #[doc = "- 0 `unavailable` - in case further detailed information on signal violation event is unavailable,"]
6118 #[doc = "- 1 `stopSignViolation` - in case a stop sign violation is detected,"]
6119 #[doc = "- 2 `trafficLightViolation` - in case a traffic light violation is detected,"]
6120 #[doc = "- 3 `turningRegulationViolation`- in case a turning regulation violation is detected."]
6121 #[doc = "- 4-255 - are reserved for future usage."]
6122 #[doc = ""]
6123 #[doc = "\n\n@category: Traffic information"]
6124 #[doc = "\n\n@revision: V1.3.1"]
6125 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6126 #[rasn(delegate, value("0..=255"))]
6127 pub struct SignalViolationSubCauseCode(pub u8);
6128
6129 #[doc = "This DE represents the sub cause codes of the @ref CauseCode \"slowVehicle\"."]
6130 #[doc = ""]
6131 #[doc = "The value shall be set to:"]
6132 #[doc = "- 0 `unavailable` - in case further detailed information on slow vehicle driving event is"]
6133 #[doc = " unavailable,"]
6134 #[doc = "- 1 `maintenanceVehicle` - in case of a slow driving maintenance vehicle on the road,"]
6135 #[doc = "- 2 `vehiclesSlowingToLookAtAccident`- in case vehicle is temporally slowing down to look at accident, spot, etc.,"]
6136 #[doc = "- 3 `abnormalLoad` - in case an abnormal loaded vehicle is driving slowly on the road,"]
6137 #[doc = "- 4 `abnormalWideLoad` - in case an abnormal wide load vehicle is driving slowly on the road,"]
6138 #[doc = "- 5 `convoy` - in case of slow driving convoy on the road,"]
6139 #[doc = "- 6 `snowplough` - in case of slow driving snow plough on the road,"]
6140 #[doc = "- 7 `deicing` - in case of slow driving de-icing vehicle on the road,"]
6141 #[doc = "- 8 `saltingVehicles` - in case of slow driving salting vehicle on the road."]
6142 #[doc = "- 9-255 - are reserved for future usage."]
6143 #[doc = ""]
6144 #[doc = "\n\n@category: Traffic information"]
6145 #[doc = "\n\n@revision: V1.3.1"]
6146 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6147 #[rasn(delegate, value("0..=255"))]
6148 pub struct SlowVehicleSubCauseCode(pub u8);
6149
6150 #[doc = "The DE indicates if a vehicle is carrying goods in the special transport conditions."]
6151 #[doc = ""]
6152 #[doc = "The corresponding bit shall be set to 1 under the following conditions:"]
6153 #[doc = "- 0 `heavyLoad` - the vehicle is carrying goods with heavy load,"]
6154 #[doc = "- 1 `excessWidth` - the vehicle is carrying goods in excess of width,"]
6155 #[doc = "- 2 `excessLength` - the vehicle is carrying goods in excess of length,"]
6156 #[doc = "- 3 `excessHeight` - the vehicle is carrying goods in excess of height."]
6157 #[doc = ""]
6158 #[doc = "Otherwise, the corresponding bit shall be set to 0."]
6159 #[doc = "\n\n@category Vehicle information"]
6160 #[doc = "\n\n@revision: Description revised in V2.1.1"]
6161 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6162 #[rasn(delegate)]
6163 pub struct SpecialTransportType(pub FixedBitString<4usize>);
6164
6165 #[doc = "This DF represents the speed and associated confidence value."]
6166 #[doc = ""]
6167 #[doc = "It shall include the following components: "]
6168 #[doc = ""]
6169 #[doc = "- @field speedValue: the speed value."]
6170 #[doc = ""]
6171 #[doc = "- @field speedConfidence: the confidence value of the speed value."]
6172 #[doc = ""]
6173 #[doc = "\n\n@category: Kinematic information"]
6174 #[doc = "\n\n@revision: V1.3.1"]
6175 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6176 #[rasn(automatic_tags)]
6177 pub struct Speed {
6178 #[rasn(identifier = "speedValue")]
6179 pub speed_value: SpeedValue,
6180 #[rasn(identifier = "speedConfidence")]
6181 pub speed_confidence: SpeedConfidence,
6182 }
6183 impl Speed {
6184 pub fn new(speed_value: SpeedValue, speed_confidence: SpeedConfidence) -> Self {
6185 Self {
6186 speed_value,
6187 speed_confidence,
6188 }
6189 }
6190 }
6191
6192 #[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 %."]
6193 #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
6194 #[doc = ""]
6195 #[doc = "The value shall be set to:"]
6196 #[doc = "- `n` (`n > 0` and `n < 126`) if the confidence value is equal to or less than n * 0,01 m/s."]
6197 #[doc = "- `126` if the confidence value is out of range, i.e. greater than 1,25 m/s,"]
6198 #[doc = "- `127` if the confidence value information is not available."]
6199 #[doc = " "]
6200 #[doc = "\n\n@note: The fact that a speed value is received with confidence value set to `unavailable(127)` can be caused by several reasons, such as:"]
6201 #[doc = "- the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
6202 #[doc = "- the sensor cannot calculate the accuracy due to lack of variables, or"]
6203 #[doc = "- there has been a vehicle bus (e.g. CAN bus) error."]
6204 #[doc = "In all 3 cases above, the speed value may be valid and used by the application."]
6205 #[doc = ""]
6206 #[doc = "\n\n@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 "]
6207 #[doc = "and therefore cannot be trusted. Such is not useful for the application."]
6208 #[doc = ""]
6209 #[doc = "\n\n@unit: 0,01 m/s"]
6210 #[doc = "\n\n@category: Vehicle information"]
6211 #[doc = "\n\n@revision: Description revised in V2.1.1 "]
6212 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6213 #[rasn(delegate, value("1..=127"))]
6214 pub struct SpeedConfidence(pub u8);
6215
6216 #[doc = "This DE represents a speed limitation applied to a geographical position, a road section or a geographical region."]
6217 #[doc = ""]
6218 #[doc = "\n\n@unit: km/h"]
6219 #[doc = "\n\n@category: Infrastructure information, Traffic information"]
6220 #[doc = "\n\n@revision: V1.3.1"]
6221 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6222 #[rasn(delegate, value("1..=255"))]
6223 pub struct SpeedLimit(pub u8);
6224
6225 #[doc = "This DE represents a speed value, i.e. the magnitude of the velocity-vector. "]
6226 #[doc = ""]
6227 #[doc = "The value shall be set to:"]
6228 #[doc = "- `0` in a standstill situation."]
6229 #[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,"]
6230 #[doc = "- `16 382` for speed values greater than 163,81 m/s,"]
6231 #[doc = "- `16 383` if the speed accuracy information is not available."]
6232 #[doc = ""]
6233 #[doc = "\n\n@note: the definition of standstill is out of scope of the present document."]
6234 #[doc = ""]
6235 #[doc = "\n\n@unit: 0,01 m/s"]
6236 #[doc = "\n\n@category: Kinematic information"]
6237 #[doc = "\n\n@revision: Description revised in V2.1.1 (the meaning of 16382 has changed slightly) "]
6238 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6239 #[rasn(delegate, value("0..=16383"))]
6240 pub struct SpeedValue(pub u16);
6241
6242 #[doc = "This DF provides the indication of change in stability."]
6243 #[doc = ""]
6244 #[doc = "It shall include the following components: "]
6245 #[doc = ""]
6246 #[doc = "- @field lossProbability: the probability of stability loss. "]
6247 #[doc = ""]
6248 #[doc = "- @field actionDeltaTime: the period over which the the probability of stability loss is estimated. "]
6249 #[doc = ""]
6250 #[doc = "\n\n@category: Kinematic information"]
6251 #[doc = "\n\n@revision: V2.1.1"]
6252 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6253 #[rasn(automatic_tags)]
6254 #[non_exhaustive]
6255 pub struct StabilityChangeIndication {
6256 #[rasn(identifier = "lossProbability")]
6257 pub loss_probability: StabilityLossProbability,
6258 #[rasn(identifier = "actionDeltaTime")]
6259 pub action_delta_time: DeltaTimeTenthOfSecond,
6260 }
6261 impl StabilityChangeIndication {
6262 pub fn new(
6263 loss_probability: StabilityLossProbability,
6264 action_delta_time: DeltaTimeTenthOfSecond,
6265 ) -> Self {
6266 Self {
6267 loss_probability,
6268 action_delta_time,
6269 }
6270 }
6271 }
6272
6273 #[doc = "This DE indicates the estimated probability of a stability level and conversely also the probability of a stability loss."]
6274 #[doc = ""]
6275 #[doc = "The value shall be set to:"]
6276 #[doc = "- `0` to indicate an estimated probability of a loss of stability of 0 %, i.e. \"stable\", "]
6277 #[doc = "- `n` (`n > 0` and `n < 50`) to indicate the actual stability level,"]
6278 #[doc = "- `50` to indicate a estimated probability of a loss of stability of 100 %, i.e. \"total loss of stability\","]
6279 #[doc = "- the values between 51 and 62 are reserved for future use,"]
6280 #[doc = "- `63`: this value indicates that the information is unavailable."]
6281 #[doc = ""]
6282 #[doc = "\n\n@unit: 2 %"]
6283 #[doc = "\n\n@category: Kinematic information"]
6284 #[doc = "\n\n@revision: Created in V2.1.1"]
6285 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6286 #[rasn(delegate, value("0..=63"))]
6287 pub struct StabilityLossProbability(pub u8);
6288
6289 #[doc = "The DE represents length as a measure of distance between points or as a dimension of an object or shape. "]
6290 #[doc = ""]
6291 #[doc = "\n\n@unit: 0,1 metre"]
6292 #[doc = "\n\n@category: Basic information"]
6293 #[doc = "\n\n@revision: Created in V2.1.1"]
6294 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6295 #[rasn(delegate, value("0..=4095"))]
6296 pub struct StandardLength12b(pub u16);
6297
6298 #[doc = "The DE represents length as a measure of distance between points or as a dimension of an object. "]
6299 #[doc = ""]
6300 #[doc = "\n\n@unit: 0,1 metre"]
6301 #[doc = "\n\n@category: Basic information"]
6302 #[doc = "\n\n@revision: Created in V2.1.1"]
6303 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6304 #[rasn(delegate, value("0..=255"))]
6305 pub struct StandardLength1B(pub u8);
6306
6307 #[doc = "The DE represents length as a measure of distance between points or as a dimension of an object. "]
6308 #[doc = ""]
6309 #[doc = "\n\n@unit: 0,1 metre"]
6310 #[doc = "\n\n@category: Basic information"]
6311 #[doc = "\n\n@revision: Created in V2.1.1"]
6312 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6313 #[rasn(delegate, value("0..=65535"))]
6314 pub struct StandardLength2B(pub u16);
6315
6316 #[doc = "The DE represents length as a measure of distance between points. "]
6317 #[doc = ""]
6318 #[doc = "The value shall be set to:"]
6319 #[doc = "- 0 `lessThan50m` - for distances below 50 m, "]
6320 #[doc = "- 1 `lessThan100m` - for distances below 100 m,"]
6321 #[doc = "- 2 `lessThan200m` - for distances below 200 m, "]
6322 #[doc = "- 3 `lessThan500m` - for distances below 300 m, "]
6323 #[doc = "- 4 `lessThan1000m` - for distances below 1 000 m,"]
6324 #[doc = "- 5 `lessThan5km` - for distances below 5 000 m, "]
6325 #[doc = "- 6 `lessThan10km` - for distances below 10 000 m, "]
6326 #[doc = "- 7 `over10km` - for distances over 10 000 m."]
6327 #[doc = ""]
6328 #[doc = "\n\n@category: GeoReference information"]
6329 #[doc = "\n\n@revision: Created in V2.1.1 from RelevanceDistance"]
6330 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6331 #[rasn(enumerated)]
6332 pub enum StandardLength3b {
6333 lessThan50m = 0,
6334 lessThan100m = 1,
6335 lessThan200m = 2,
6336 lessThan500m = 3,
6337 lessThan1000m = 4,
6338 lessThan5km = 5,
6339 lessThan10km = 6,
6340 over10km = 7,
6341 }
6342
6343 #[doc = "The DE represents length as a measure of distance between points or as a dimension of an object. "]
6344 #[doc = ""]
6345 #[doc = "\n\n@unit: 0,1 metre"]
6346 #[doc = "\n\n@category: Basic information"]
6347 #[doc = "\n\n@revision: Created in V2.1.1"]
6348 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6349 #[rasn(delegate, value("0..=511"))]
6350 pub struct StandardLength9b(pub u16);
6351
6352 #[doc = "This DE represents the identifier of an ITS-S."]
6353 #[doc = "The ITS-S ID may be a pseudonym. It may change over space and/or over time."]
6354 #[doc = ""]
6355 #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref StationId instead."]
6356 #[doc = "\n\n@category: Basic information"]
6357 #[doc = "\n\n@revision: V1.3.1"]
6358 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6359 #[rasn(delegate, value("0..=4294967295"))]
6360 pub struct StationID(pub u32);
6361
6362 #[doc = "This DE represents the identifier of an ITS-S."]
6363 #[doc = "The ITS-S ID may be a pseudonym. It may change over space and/or over time."]
6364 #[doc = ""]
6365 #[doc = "\n\n@category: Basic information"]
6366 #[doc = "\n\n@revision: Created in V2.1.1 based on @ref StationID"]
6367 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6368 #[rasn(delegate, value("0..=4294967295"))]
6369 pub struct StationId(pub u32);
6370
6371 #[doc = "This DE represents the type of technical context the ITS-S is integrated in."]
6372 #[doc = "The station type depends on the integration environment of ITS-S into vehicle, mobile devices or at infrastructure."]
6373 #[doc = ""]
6374 #[doc = "The value shall be set to:"]
6375 #[doc = "- 0 `unknown` - information about the ITS-S context is not provided,"]
6376 #[doc = "- 1 `pedestrian` - ITS-S carried by human being not using a mechanical device for their trip (VRU profile 1),"]
6377 #[doc = "- 2 `cyclist` - ITS-S mounted on non-motorized unicycles, bicycles , tricycles, quadracycles (VRU profile 2),"]
6378 #[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 "]
6379 #[doc = " class L1, L2 (VRU Profile 3),"]
6380 #[doc = "- 4 `motorcycles` - ITS-S mounted on motor vehicles with less than four wheels as defined in UNECE/TRANS/WP.29/78/Rev.4 "]
6381 #[doc = " class L3, L4, L5, L6, L7 (VRU Profile 3),"]
6382 #[doc = "- 5 `passengerCar` - ITS-S mounted on small passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class M1,"]
6383 #[doc = "- 6 `bus` - ITS-S mounted on large passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class M2, M3,"]
6384 #[doc = "- 7 `lightTruck` - ITS-S mounted on light Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class N1,"]
6385 #[doc = "- 8 `heavyTruck` - ITS-S mounted on Heavy Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class N2 and N3,"]
6386 #[doc = "- 9 `trailer` - ITS-S mounted on an unpowered vehicle that is intended to be towed by a powered vehicle as defined in "]
6387 #[doc = " UNECE/TRANS/WP.29/78/Rev.4 class O,"]
6388 #[doc = "- 10 `specialVehicles` - ITS-S mounted on vehicles which have special purposes other than the above (e.g. moving road works vehicle),"]
6389 #[doc = "- 11 `tram` - ITS-S mounted on a vehicle which runs on tracks along public streets,"]
6390 #[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),"]
6391 #[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),"]
6392 #[doc = "- 14 - reserved for future usage,"]
6393 #[doc = "- 15 `roadSideUnit` - ITS-S mounted on an infrastructure typically positioned outside of the drivable roadway (e.g. on a gantry, on a pole, "]
6394 #[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),"]
6395 #[doc = "- 16-255 - are reserved for future usage."]
6396 #[doc = ""]
6397 #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrafficParticipantType instead."]
6398 #[doc = "\n\n@category: Communication information."]
6399 #[doc = "\n\n@revision: revised in V2.1.1 (named values 12 and 13 added and note to value 9 deleted)"]
6400 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6401 #[rasn(delegate, value("0..=255"))]
6402 pub struct StationType(pub u8);
6403
6404 #[doc = "This DE indicates the duration in minutes since which something is stationary."]
6405 #[doc = ""]
6406 #[doc = "The value shall be set to:"]
6407 #[doc = "- 0 `lessThan1Minute` - for being stationary since less than 1 minute, "]
6408 #[doc = "- 1 `lessThan2Minutes` - for being stationary since less than 2 minute and for equal to or more than 1 minute,"]
6409 #[doc = "- 2 `lessThan15Minutes` - for being stationary since less than 15 minutes and for equal to or more than 1 minute,"]
6410 #[doc = "- 3 `equalOrGreater15Minutes` - for being stationary since equal to or more than 15 minutes."]
6411 #[doc = ""]
6412 #[doc = "\n\n@category: Kinematic information"]
6413 #[doc = "\n\n@revision: Created in V2.1.1"]
6414 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6415 #[rasn(enumerated)]
6416 pub enum StationarySince {
6417 lessThan1Minute = 0,
6418 lessThan2Minutes = 1,
6419 lessThan15Minutes = 2,
6420 equalOrGreater15Minutes = 3,
6421 }
6422
6423 #[doc = "This DE provides the value of the sub cause codes of the @ref CauseCode \"stationaryVehicle\". "]
6424 #[doc = ""]
6425 #[doc = "The value shall be set to:"]
6426 #[doc = "- 0 `unavailable` - in case further detailed information on stationary vehicle is unavailable,"]
6427 #[doc = "- 1 `humanProblem` - in case stationary vehicle is due to health problem of driver or passenger,"]
6428 #[doc = "- 2 `vehicleBreakdown` - in case stationary vehicle is due to vehicle break down,"]
6429 #[doc = "- 3 `postCrash` - in case stationary vehicle is caused by collision,"]
6430 #[doc = "- 4 `publicTransportStop` - in case public transport vehicle is stationary at bus stop,"]
6431 #[doc = "- 5 `carryingDangerousGoods`- in case the stationary vehicle is carrying dangerous goods,"]
6432 #[doc = "- 6 `vehicleOnFire` - in case of vehicle on fire."]
6433 #[doc = "- 7-255 reserved for future usage."]
6434 #[doc = ""]
6435 #[doc = "\n\n@category: Traffic information"]
6436 #[doc = "\n\n@revision: V1.3.1"]
6437 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6438 #[rasn(delegate, value("0..=255"))]
6439 pub struct StationaryVehicleSubCauseCode(pub u8);
6440
6441 #[doc = "This DF represents the steering wheel angle of the vehicle at certain point in time."]
6442 #[doc = ""]
6443 #[doc = "It shall include the following components: "]
6444 #[doc = ""]
6445 #[doc = "- @field steeringWheelAngleValue: steering wheel angle value."]
6446 #[doc = ""]
6447 #[doc = "- @field steeringWheelAngleConfidence: confidence value of the steering wheel angle value."]
6448 #[doc = ""]
6449 #[doc = "\n\n@category: Vehicle information"]
6450 #[doc = "\n\n@revision: Created in V2.1.1"]
6451 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6452 #[rasn(automatic_tags)]
6453 pub struct SteeringWheelAngle {
6454 #[rasn(identifier = "steeringWheelAngleValue")]
6455 pub steering_wheel_angle_value: SteeringWheelAngleValue,
6456 #[rasn(identifier = "steeringWheelAngleConfidence")]
6457 pub steering_wheel_angle_confidence: SteeringWheelAngleConfidence,
6458 }
6459 impl SteeringWheelAngle {
6460 pub fn new(
6461 steering_wheel_angle_value: SteeringWheelAngleValue,
6462 steering_wheel_angle_confidence: SteeringWheelAngleConfidence,
6463 ) -> Self {
6464 Self {
6465 steering_wheel_angle_value,
6466 steering_wheel_angle_confidence,
6467 }
6468 }
6469 }
6470
6471 #[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 %."]
6472 #[doc = ""]
6473 #[doc = "The value shall be set to:"]
6474 #[doc = "- `n` (`n > 0` and `n < 126`) if the confidence value is equal to or less than n x 1,5 degrees,"]
6475 #[doc = "- `126` if the confidence value is out of range, i.e. greater than 187,5 degrees,"]
6476 #[doc = "- `127` if the confidence value is not available."]
6477 #[doc = ""]
6478 #[doc = "\n\n@note: The fact that a steering wheel angle value is received with confidence value set to `unavailable(127)`"]
6479 #[doc = "can be caused by several reasons, such as:"]
6480 #[doc = "- the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
6481 #[doc = "- the sensor cannot calculate the accuracy due to lack of variables, or"]
6482 #[doc = "- there has been a vehicle bus (e.g. CAN bus) error."]
6483 #[doc = "In all 3 cases above, the steering wheel angle value may be valid and used by the application."]
6484 #[doc = ""]
6485 #[doc = "If a steering wheel angle value is received and its confidence value is set to `outOfRange(126)`,"]
6486 #[doc = "it means that the steering wheel angle value is not valid and therefore cannot be trusted."]
6487 #[doc = "Such value is not useful for the application."]
6488 #[doc = ""]
6489 #[doc = "\n\n@unit: 1,5 degree"]
6490 #[doc = "\n\n@category: Vehicle Information"]
6491 #[doc = "\n\n@revision: Description revised in V2.1.1"]
6492 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6493 #[rasn(delegate, value("1..=127"))]
6494 pub struct SteeringWheelAngleConfidence(pub u8);
6495
6496 #[doc = "This DE represents the steering wheel angle of the vehicle at certain point in time."]
6497 #[doc = "The value shall be provided in the vehicle coordinate system as defined in ISO 8855, clause 2.11."]
6498 #[doc = ""]
6499 #[doc = "The value shall be set to:"]
6500 #[doc = "- `-511` if the steering wheel angle is equal to or greater than 511 x 1,5 degrees = 766,5 degrees to the right,"]
6501 #[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, "]
6502 #[doc = " turning clockwise (i.e. to the right),"]
6503 #[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, "]
6504 #[doc = " turning counter-clockwise (i.e. to the left),"]
6505 #[doc = "- `511` if the steering wheel angle is greater than 510 x 1,5 degrees = 765 degrees to the left,"]
6506 #[doc = "- `512` if information is not available."]
6507 #[doc = ""]
6508 #[doc = "\n\n@unit: 1,5 degree"]
6509 #[doc = "\n\n@revision: Description revised in V2.1.1 (meaning of value 511 has changed slightly)."]
6510 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6511 #[rasn(delegate, value("-511..=512"))]
6512 pub struct SteeringWheelAngleValue(pub i16);
6513
6514 #[doc = "This DE indicates the type of stored information."]
6515 #[doc = ""]
6516 #[doc = "The corresponding bit shall be set to 1 under the following conditions:"]
6517 #[doc = ""]
6518 #[doc = "- `0` undefined - in case the stored information type is undefined. "]
6519 #[doc = "- `1` staticDb - in case the stored information type is a static database."]
6520 #[doc = "- `2` dynamicDb - in case the stored information type is a dynamic database"]
6521 #[doc = "- `3` realTimeDb - in case the stored information type is a real time updated database."]
6522 #[doc = "- `4` map - in case the stored information type is a road topology map."]
6523 #[doc = "- Bits 5 to 7 - are reserved for future use."]
6524 #[doc = ""]
6525 #[doc = "\n\n@note: If all bits are set to 0, then no stored information type is used"]
6526 #[doc = ""]
6527 #[doc = "\n\n@category: Basic Information"]
6528 #[doc = "\n\n@revision: created in V2.2.1"]
6529 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6530 #[rasn(delegate, size("8", extensible))]
6531 pub struct StoredInformationType(pub BitString);
6532
6533 #[doc = "This DE indicates the generic sub cause of a detected event."]
6534 #[doc = ""]
6535 #[doc = "\n\n@note: The sub cause code value assignment varies based on value of @ref CauseCode."]
6536 #[doc = ""]
6537 #[doc = "\n\n@category: Traffic information"]
6538 #[doc = "\n\n@revision: Description revised in V2.1.1 (this is the generic sub cause type)"]
6539 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6540 #[rasn(delegate, value("0..=255"))]
6541 pub struct SubCauseCodeType(pub u8);
6542
6543 #[doc = "This DE indicates a temperature value."]
6544 #[doc = "The value shall be set to:"]
6545 #[doc = "- `-60` for temperature equal to or less than -60 degrees C,"]
6546 #[doc = "- `n` (`n > -60` and `n < 67`) for the actual temperature n in degrees C,"]
6547 #[doc = "- `67` for temperature equal to or greater than 67 degrees C."]
6548 #[doc = ""]
6549 #[doc = "\n\n@unit: degrees Celsius"]
6550 #[doc = "\n\n@category: Basic information"]
6551 #[doc = "\n\n@revision: Editorial update in V2.1.1"]
6552 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6553 #[rasn(delegate, value("-60..=67"))]
6554 pub struct Temperature(pub i8);
6555
6556 #[doc = "This DE represents the number of elapsed (TAI) milliseconds since the ITS Epoch. "]
6557 #[doc = "The ITS epoch is `00:00:00.000 UTC, 1 January 2004`."]
6558 #[doc = "\"Elapsed\" means that the true number of milliseconds is continuously counted without interruption,"]
6559 #[doc = " i.e. it is not altered by leap seconds, which occur in UTC."]
6560 #[doc = ""]
6561 #[doc = "\n\n@note: International Atomic Time (TAI) is the time reference coordinate on the basis of the readings of atomic clocks, "]
6562 #[doc = "operated in accordance with the definition of the second, the unit of time of the International System of Units. "]
6563 #[doc = "TAI is a continuous time scale. UTC has discontinuities, as it is occasionally adjusted by leap seconds. "]
6564 #[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, "]
6565 #[doc = "further 5 leap seconds have been inserted in UTC."]
6566 #[doc = ""]
6567 #[doc = "EXAMPLE: The value for TimestampIts for 1 January 2007 00:00:00.000 UTC is `94 694 401 000` milliseconds,"]
6568 #[doc = "which includes one leap second insertion since the ITS epoch."]
6569 #[doc = "\n\n@unit: 0,001 s"]
6570 #[doc = "\n\n@category: Basic information"]
6571 #[doc = "\n\n@revision: Description revised in in V2.1.1"]
6572 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6573 #[rasn(delegate, value("0..=4398046511103"))]
6574 pub struct TimestampIts(pub u64);
6575
6576 #[doc = "This DF represents one or more paths using @ref Path."]
6577 #[doc = ""]
6578 #[doc = "\n\n@category: GeoReference information"]
6579 #[doc = "\n\n@revision: Description revised in V2.1.1. Is is now based on Path and not on PathHistory"]
6580 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6581 #[rasn(delegate, size("1..=7"))]
6582 pub struct Traces(pub SequenceOf<Path>);
6583
6584 #[doc = "This DF represents one or more paths using @ref PathExtended."]
6585 #[doc = ""]
6586 #[doc = "\n\n@category: GeoReference information"]
6587 #[doc = "\n\n@revision: Created in V2.2.1"]
6588 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6589 #[rasn(delegate, size("1..=7"))]
6590 pub struct TracesExtended(pub SequenceOf<PathExtended>);
6591
6592 #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `trafficCondition`. "]
6593 #[doc = ""]
6594 #[doc = "The value shall be set to:"]
6595 #[doc = "- 0 `unavailable` - in case further detailed information on the traffic condition is unavailable,"]
6596 #[doc = "- 1 `increasedVolumeOfTraffic` - in case the type of traffic condition is increased traffic volume,"]
6597 #[doc = "- 2 `trafficJamSlowlyIncreasing` - in case the type of traffic condition is a traffic jam which volume is increasing slowly,"]
6598 #[doc = "- 3 `trafficJamIncreasing` - in case the type of traffic condition is a traffic jam which volume is increasing,"]
6599 #[doc = "- 4 `trafficJamStronglyIncreasing` - in case the type of traffic condition is a traffic jam which volume is strongly increasing,"]
6600 #[doc = "- 5 `trafficJam` ` - in case the type of traffic condition is a traffic jam and no further detailed information about its volume is available,"]
6601 #[doc = "- 6 `trafficJamSlightlyDecreasing` - in case the type of traffic condition is a traffic jam which volume is decreasing slowly,"]
6602 #[doc = "- 7 `trafficJamDecreasing` - in case the type of traffic condition is a traffic jam which volume is decreasing,"]
6603 #[doc = "- 8 `trafficJamStronglyDecreasing` - in case the type of traffic condition is a traffic jam which volume is decreasing rapidly,"]
6604 #[doc = "- 9 `trafficJamStable` - in case the traffic condition is a traffic jam with stable volume,"]
6605 #[doc = "- 10-255: reserved for future usage."]
6606 #[doc = ""]
6607 #[doc = "\n\n@category: Traffic information"]
6608 #[doc = "\n\n@revision: V1.3.1, definition of value 0 and 1 changed in V2.2.1, name and definition of value 5 changed in V2.2.1, value 9 added in V2.2.1"]
6609 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6610 #[rasn(delegate, value("0..=255"))]
6611 pub struct TrafficConditionSubCauseCode(pub u8);
6612
6613 #[doc = "This DE indicates a direction of traffic with respect to a reference direction, and a portion of that traffic with respect to a reference position."]
6614 #[doc = ""]
6615 #[doc = "The value shall be set to:"]
6616 #[doc = "- 0 `allTrafficDirections` - for all directions of traffic, "]
6617 #[doc = "- 1 `sameAsReferenceDirection-upstreamOfReferencePosition` - for the direction of traffic according to the reference direction, and the portion of traffic upstream of the reference position, "]
6618 #[doc = "- 2 `sameAsReferenceDirection-downstreamOfReferencePosition` - for the direction of traffic according to the reference direction, and the portion of traffic downstream of the reference position, "]
6619 #[doc = "- 3 `oppositeToReferenceDirection` - for the direction of traffic opposite to the reference direction. "]
6620 #[doc = ""]
6621 #[doc = "\n\n@note: Upstream traffic corresponds to the incoming traffic towards the event position, and downstream traffic to the departing traffic away from the event position."]
6622 #[doc = "\n\n@category: GeoReference information"]
6623 #[doc = "\n\n@revision: Created in V2.1.1 from RelevanceTrafficDirection, description and naming of values changed in V2.2.1"]
6624 #[doc = ""]
6625 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6626 #[rasn(enumerated)]
6627 pub enum TrafficDirection {
6628 allTrafficDirections = 0,
6629 #[rasn(identifier = "sameAsReferenceDirection-upstreamOfReferencePosition")]
6630 sameAsReferenceDirection_upstreamOfReferencePosition = 1,
6631 #[rasn(identifier = "sameAsReferenceDirection-downstreamOfReferencePosition")]
6632 sameAsReferenceDirection_downstreamOfReferencePosition = 2,
6633 oppositeToReferenceDirection = 3,
6634 }
6635
6636 #[doc = "Ths DF represents the a position on a traffic island between two lanes. "]
6637 #[doc = ""]
6638 #[doc = "It shall include the following components: "]
6639 #[doc = ""]
6640 #[doc = "- @field oneSide: represents one lane."]
6641 #[doc = ""]
6642 #[doc = "- @field otherSide: represents the other lane."]
6643 #[doc = ""]
6644 #[doc = "\n\n@category: Road Topology information"]
6645 #[doc = "\n\n@revision: Created in V2.1.1"]
6646 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6647 #[rasn(automatic_tags)]
6648 #[non_exhaustive]
6649 pub struct TrafficIslandPosition {
6650 #[rasn(identifier = "oneSide")]
6651 pub one_side: LanePositionAndType,
6652 #[rasn(identifier = "otherSide")]
6653 pub other_side: LanePositionAndType,
6654 }
6655 impl TrafficIslandPosition {
6656 pub fn new(one_side: LanePositionAndType, other_side: LanePositionAndType) -> Self {
6657 Self {
6658 one_side,
6659 other_side,
6660 }
6661 }
6662 }
6663
6664 #[doc = "This DE represents the type of a traffic participant."]
6665 #[doc = ""]
6666 #[doc = "The value shall be set to:"]
6667 #[doc = "- 0 `unknown` - information about traffic participant is not provided,"]
6668 #[doc = "- 1 `pedestrian` - human being not using a mechanical device for their trip (VRU profile 1),"]
6669 #[doc = "- 2 `cyclist` - non-motorized unicycles, bicycles , tricycles, quadracycles (VRU profile 2),"]
6670 #[doc = "- 3 `moped` - light motor vehicles with less than four wheels as defined in UNECE/TRANS/WP.29/78/Rev.4 class L1, L2 (VRU Profile 3),"]
6671 #[doc = "- 4 `motorcycles` - motor vehicles with less than four wheels as defined in UNECE/TRANS/WP.29/78/Rev.4 class L3, L4, L5, L6, L7 (VRU Profile 3),"]
6672 #[doc = "- 5 `passengerCar` - small passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class M1,"]
6673 #[doc = "- 6 `bus` - large passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class M2, M3,"]
6674 #[doc = "- 7 `lightTruck` - light Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class N1,"]
6675 #[doc = "- 8 `heavyTruck` - Heavy Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class N2 and N3,"]
6676 #[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 class O,"]
6677 #[doc = "- 10 `specialVehicles` - vehicles which have special purposes other than the above (e.g. moving road works vehicle),"]
6678 #[doc = "- 11 `tram` - vehicle which runs on tracks along public streets,"]
6679 #[doc = "- 12 `lightVruVehicle` - human being traveling on light vehicle, incl. possible use of roller skates or skateboards (VRU profile 2),"]
6680 #[doc = "- 13 `animal` - animal presenting a safety risk to other road users e.g. domesticated dog in a city or horse (VRU Profile 4),"]
6681 #[doc = "- 14 `agricultural` - agricultural and forestry vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class T,"]
6682 #[doc = "- 15 `roadSideUnit` - infrastructure typically positioned outside of the drivable roadway (e.g. on a gantry, on a pole, "]
6683 #[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),"]
6684 #[doc = "- 16-255 - are reserved for future usage."]
6685 #[doc = ""]
6686 #[doc = "\n\n@category: Communication information."]
6687 #[doc = "\n\n@revision: Created in V2.1.1 based on StationType"]
6688 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6689 #[rasn(delegate, value("0..=255"))]
6690 pub struct TrafficParticipantType(pub u8);
6691
6692 #[doc = "This DE indicates traffic rules that apply to vehicles at a certain position."]
6693 #[doc = ""]
6694 #[doc = "The value shall be set to:"]
6695 #[doc = "- `0` - if overtaking is prohibited for all vehicles,"]
6696 #[doc = "- `1` - if overtaking is prohibited for trucks,"]
6697 #[doc = "- `2` - if vehicles should pass to the right lane,"]
6698 #[doc = "- `3` - if vehicles should pass to the left lane."]
6699 #[doc = "- `4` - if vehicles should pass to the left or right lane."]
6700 #[doc = ""]
6701 #[doc = "\n\n@category: Infrastructure information, Traffic information"]
6702 #[doc = "\n\n@revision: Editorial update in V2.1.1"]
6703 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6704 #[rasn(enumerated)]
6705 #[non_exhaustive]
6706 pub enum TrafficRule {
6707 noPassing = 0,
6708 noPassingForTrucks = 1,
6709 passToRight = 2,
6710 passToLeft = 3,
6711 #[rasn(extension_addition)]
6712 passToLeftOrRight = 4,
6713 }
6714
6715 #[doc = "This DF provides detailed information about an attached trailer."]
6716 #[doc = ""]
6717 #[doc = "It shall include the following components: "]
6718 #[doc = ""]
6719 #[doc = "- @field refPointId: identifier of the reference point of the trailer."]
6720 #[doc = ""]
6721 #[doc = "- @field hitchPointOffset: optional position of the hitch point in negative x-direction (according to ISO 8855) from the"]
6722 #[doc = "vehicle Reference Point."]
6723 #[doc = ""]
6724 #[doc = "- @field frontOverhang: optional length of the trailer overhang in the positive x direction (according to ISO 8855) from the"]
6725 #[doc = "trailer Reference Point indicated by the refPointID. The value defaults to 0 in case the trailer"]
6726 #[doc = "is not overhanging to the front with respect to the trailer reference point."]
6727 #[doc = ""]
6728 #[doc = "- @field rearOverhang: optional length of the trailer overhang in the negative x direction (according to ISO 8855) from the"]
6729 #[doc = "trailer Reference Point indicated by the refPointID."]
6730 #[doc = ""]
6731 #[doc = "- @field trailerWidth: optional width of the trailer."]
6732 #[doc = ""]
6733 #[doc = "- @field hitchAngle: optional Value and confidence value of the angle between the trailer orientation (corresponding to the x"]
6734 #[doc = "direction of the ISO 8855 coordinate system centered on the trailer) and the direction of"]
6735 #[doc = "the segment having as end points the reference point of the trailer and the reference point of"]
6736 #[doc = "the pulling vehicle, which can be another trailer or a vehicle looking on the horizontal plane"]
6737 #[doc = "xy, described in the local Cartesian coordinate system of the trailer. The"]
6738 #[doc = "angle is measured with negative values considering the trailer orientation turning clockwise"]
6739 #[doc = "starting from the segment direction. The angle value accuracy is provided with the"]
6740 #[doc = "confidence level of 95 %."]
6741 #[doc = ""]
6742 #[doc = "\n\n@category: Vehicle information"]
6743 #[doc = "\n\n@revision: Created in V2.1.1"]
6744 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6745 #[rasn(automatic_tags)]
6746 #[non_exhaustive]
6747 pub struct TrailerData {
6748 #[rasn(identifier = "refPointId")]
6749 pub ref_point_id: Identifier1B,
6750 #[rasn(identifier = "hitchPointOffset")]
6751 pub hitch_point_offset: StandardLength1B,
6752 #[rasn(identifier = "frontOverhang")]
6753 pub front_overhang: Option<StandardLength1B>,
6754 #[rasn(identifier = "rearOverhang")]
6755 pub rear_overhang: Option<StandardLength1B>,
6756 #[rasn(identifier = "trailerWidth")]
6757 pub trailer_width: Option<VehicleWidth>,
6758 #[rasn(identifier = "hitchAngle")]
6759 pub hitch_angle: CartesianAngle,
6760 }
6761 impl TrailerData {
6762 pub fn new(
6763 ref_point_id: Identifier1B,
6764 hitch_point_offset: StandardLength1B,
6765 front_overhang: Option<StandardLength1B>,
6766 rear_overhang: Option<StandardLength1B>,
6767 trailer_width: Option<VehicleWidth>,
6768 hitch_angle: CartesianAngle,
6769 ) -> Self {
6770 Self {
6771 ref_point_id,
6772 hitch_point_offset,
6773 front_overhang,
6774 rear_overhang,
6775 trailer_width,
6776 hitch_angle,
6777 }
6778 }
6779 }
6780
6781 #[doc = "This DE provides information about the presence of a trailer. "]
6782 #[doc = ""]
6783 #[doc = "The value shall be set to:"]
6784 #[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."]
6785 #[doc = "- 1 `trailerPresentWithKnownLength` - to indicate that a trailer has been detected as present and the length is included in the vehicle length value."]
6786 #[doc = "- 2 `trailerPresentWithUnknownLength` - to indicate that a trailer has been detected as present and the length is not included in the vehicle length value."]
6787 #[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."]
6788 #[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 "]
6789 #[doc = " nor the detection of trailer presence/absence is possible."]
6790 #[doc = ""]
6791 #[doc = "\n\n@category: Vehicle information"]
6792 #[doc = "\n\n@revision: Created in V2.1.1 based on VehicleLengthConfidenceIndication"]
6793 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6794 #[rasn(enumerated)]
6795 pub enum TrailerPresenceInformation {
6796 noTrailerPresent = 0,
6797 trailerPresentWithKnownLength = 1,
6798 trailerPresentWithUnknownLength = 2,
6799 trailerPresenceIsUnknown = 3,
6800 unavailable = 4,
6801 }
6802
6803 #[doc = "This DE defines the confidence level of the trajectoryInterceptionProbability."]
6804 #[doc = ""]
6805 #[doc = "The value shall be set to:"]
6806 #[doc = "- `0` - to indicate confidence level less than 50 %,"]
6807 #[doc = "- `1` - to indicate confidence level greater than or equal to 50 % and less than 70 %,"]
6808 #[doc = "- `2` - to indicate confidence level greater than or equal to 70 % and less than 90 %,"]
6809 #[doc = "- `3` - to indicate confidence level greater than or equal to 90%."]
6810 #[doc = ""]
6811 #[doc = "\n\n@category: Kinematic information"]
6812 #[doc = "\n\n@revision: Created in V2.1.1"]
6813 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6814 #[rasn(delegate, value("0..=3"))]
6815 pub struct TrajectoryInterceptionConfidence(pub u8);
6816
6817 #[doc = "This DF provides the trajectory interception indication of ego-VRU ITS-S with another ITS-Ss. "]
6818 #[doc = ""]
6819 #[doc = "It shall include the following components: "]
6820 #[doc = ""]
6821 #[doc = "- @field subjectStation: indicates the subject station."]
6822 #[doc = ""]
6823 #[doc = "- @field trajectoryInterceptionProbability: indicates the propbability of the interception of the subject station trajectory "]
6824 #[doc = "with the trajectory of the station indicated in the component subjectStation."]
6825 #[doc = ""]
6826 #[doc = "- @field trajectoryInterceptionConfidence: indicates the confidence of interception of the subject station trajectory "]
6827 #[doc = "with the trajectory of the station indicated in the component subjectStation."]
6828 #[doc = ""]
6829 #[doc = "\n\n@category: Vehicle information"]
6830 #[doc = "\n\n@revision: Created in V2.1.1"]
6831 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6832 #[rasn(automatic_tags)]
6833 #[non_exhaustive]
6834 pub struct TrajectoryInterceptionIndication {
6835 #[rasn(identifier = "subjectStation")]
6836 pub subject_station: Option<StationId>,
6837 #[rasn(identifier = "trajectoryInterceptionProbability")]
6838 pub trajectory_interception_probability: TrajectoryInterceptionProbability,
6839 #[rasn(identifier = "trajectoryInterceptionConfidence")]
6840 pub trajectory_interception_confidence: Option<TrajectoryInterceptionConfidence>,
6841 }
6842 impl TrajectoryInterceptionIndication {
6843 pub fn new(
6844 subject_station: Option<StationId>,
6845 trajectory_interception_probability: TrajectoryInterceptionProbability,
6846 trajectory_interception_confidence: Option<TrajectoryInterceptionConfidence>,
6847 ) -> Self {
6848 Self {
6849 subject_station,
6850 trajectory_interception_probability,
6851 trajectory_interception_confidence,
6852 }
6853 }
6854 }
6855
6856 #[doc = "This DE defines the probability that the ego trajectory intercepts with any other object's trajectory on the road. "]
6857 #[doc = ""]
6858 #[doc = "The value shall be set to:"]
6859 #[doc = "- `n` (`n >= 0` and `n <= 50`) to indicate the actual probability,"]
6860 #[doc = "- the values between 51 and 62 are reserved,"]
6861 #[doc = "- `63`: to indicate that the information is unavailable. "]
6862 #[doc = ""]
6863 #[doc = "\n\n@unit: 2 %"]
6864 #[doc = "\n\n@category: Kinematic information"]
6865 #[doc = "\n\n@revision: Created in V2.1.1"]
6866 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6867 #[rasn(delegate, value("0..=63"))]
6868 pub struct TrajectoryInterceptionProbability(pub u8);
6869
6870 #[doc = "This DE represents the time interval between two consecutive message transmissions."]
6871 #[doc = ""]
6872 #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref DeltaTimeMilliSecondPos instead."]
6873 #[doc = "\n\n@unit: 0,001 s"]
6874 #[doc = "\n\n@category: Basic information"]
6875 #[doc = "\n\n@revision: V1.3.1"]
6876 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6877 #[rasn(delegate, value("1..=10000"))]
6878 pub struct TransmissionInterval(pub u16);
6879
6880 #[doc = "This DE provides the turning direction. "]
6881 #[doc = ""]
6882 #[doc = "The value shall be set to:"]
6883 #[doc = "- `left` for turning to te left."]
6884 #[doc = "- `right` for turing to the right."]
6885 #[doc = ""]
6886 #[doc = "\n\n@category: Kinematic information"]
6887 #[doc = "\n\n@revision: Created in V2.1.1"]
6888 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6889 #[rasn(enumerated)]
6890 pub enum TurningDirection {
6891 left = 0,
6892 right = 1,
6893 }
6894
6895 #[doc = "This DE represents the smallest circular turn (i.e. U-turn) that the vehicle is capable of making."]
6896 #[doc = ""]
6897 #[doc = "The value shall be set to:"]
6898 #[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,"]
6899 #[doc = "- `254` to indicate that the turning radius is greater than 253 x 0,4 metre = 101.2 metres,"]
6900 #[doc = "- `255` to indicate that the information is unavailable."]
6901 #[doc = ""]
6902 #[doc = "For vehicle with tracker, the turning radius applies to the vehicle only."]
6903 #[doc = ""]
6904 #[doc = "\n\n@category: Vehicle information"]
6905 #[doc = "\n\n@unit 0,4 metre"]
6906 #[doc = "\n\n@revision: Description revised V2.1.1 (the meaning of 254 has changed slightly)"]
6907 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6908 #[rasn(delegate, value("1..=255"))]
6909 pub struct TurningRadius(pub u8);
6910
6911 #[doc = "This DE represents indication of how a certain path or area will be used. "]
6912 #[doc = ""]
6913 #[doc = "The value shall be set to:"]
6914 #[doc = "- 0 - ` noIndication ` - in case it will remain free to be used,"]
6915 #[doc = "- 1 - ` specialUse ` - in case it will be physically blocked by special use,"]
6916 #[doc = "- 2 - ` rescueOperation` - in case it is intended to be used for rescue operations,"]
6917 #[doc = ""]
6918 #[doc = "\n\n@category: Basic information"]
6919 #[doc = "\n\n@revision: Created in V2.2.1"]
6920 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6921 #[rasn(enumerated)]
6922 #[non_exhaustive]
6923 pub enum UsageIndication {
6924 noIndication = 0,
6925 specialUse = 1,
6926 rescueOperation = 2,
6927 }
6928
6929 #[doc = "This DE represents the Vehicle Descriptor Section (VDS). The values are assigned according to ISO 3779."]
6930 #[doc = ""]
6931 #[doc = "\n\n@category: Vehicle information"]
6932 #[doc = "\n\n@revision: V1.3.1"]
6933 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6934 #[rasn(delegate, size("6"))]
6935 pub struct VDS(pub Ia5String);
6936
6937 #[doc = "This DE represents the duration of a traffic event validity. "]
6938 #[doc = ""]
6939 #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref DeltaTimeSecond instead."]
6940 #[doc = "\n\n@unit: 1 s"]
6941 #[doc = "\n\n@category: Basic information"]
6942 #[doc = "\n\n@revision: V1.3.1"]
6943 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6944 #[rasn(delegate, value("0..=86400"))]
6945 pub struct ValidityDuration(pub u32);
6946
6947 #[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. "]
6948 #[doc = ""]
6949 #[doc = "\n\n@category: Basic information"]
6950 #[doc = "\n\n@revision: Created in V2.1.1"]
6951 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6952 #[rasn(choice)]
6953 pub enum VarLengthNumber {
6954 #[rasn(value("0..=127"), tag(context, 0))]
6955 content(u8),
6956 #[rasn(tag(context, 1))]
6957 extension(Ext1),
6958 }
6959
6960 #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `vehicleBreakdown`. "]
6961 #[doc = ""]
6962 #[doc = "The value shall be set to:"]
6963 #[doc = "- 0 `unavailable` - in case further detailed information on cause of vehicle break down is unavailable,"]
6964 #[doc = "- 1 `lackOfFuel` - in case vehicle break down is due to lack of fuel,"]
6965 #[doc = "- 2 `lackOfBatteryPower` - in case vehicle break down is caused by lack of battery power,"]
6966 #[doc = "- 3 `engineProblem` - in case vehicle break down is caused by an engine problem,"]
6967 #[doc = "- 4 `transmissionProblem` - in case vehicle break down is caused by transmission problem,"]
6968 #[doc = "- 5 `engineCoolingProblem`- in case vehicle break down is caused by an engine cooling problem,"]
6969 #[doc = "- 6 `brakingSystemProblem`- in case vehicle break down is caused by a braking system problem,"]
6970 #[doc = "- 7 `steeringProblem` - in case vehicle break down is caused by a steering problem,"]
6971 #[doc = "- 8 `tyrePuncture` - in case vehicle break down is caused by tyre puncture,"]
6972 #[doc = "- 9 `tyrePressureProblem` - in case low tyre pressure in detected,"]
6973 #[doc = "- 10 `vehicleOnFire` - in case the vehicle is on fire."]
6974 #[doc = "- 11-255 - are reserved for future usage."]
6975 #[doc = ""]
6976 #[doc = "\n\n@category: Traffic information"]
6977 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6978 #[rasn(delegate, value("0..=255"))]
6979 pub struct VehicleBreakdownSubCauseCode(pub u8);
6980
6981 #[doc = "This DE represents the height of the vehicle, measured from the ground to the highest point, excluding any antennas."]
6982 #[doc = "In case vehicles are equipped with adjustable ride heights, camper shells, and any other"]
6983 #[doc = "equipment which may result in varying height, the largest possible height shall be used."]
6984 #[doc = ""]
6985 #[doc = "The value shall be set to:"]
6986 #[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,"]
6987 #[doc = "- `127` indicates that the vehicle width is greater than 6,3 metres,"]
6988 #[doc = "- `128` indicates that the information in unavailable."]
6989 #[doc = ""]
6990 #[doc = "\n\n@unit: 0,05 metre "]
6991 #[doc = "\n\n@category: Vehicle information"]
6992 #[doc = "\n\n@revision: created in V2.1.1"]
6993 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6994 #[rasn(delegate, value("1..=128"))]
6995 pub struct VehicleHeight(pub u8);
6996
6997 #[doc = "This DF provides information related to the identification of a vehicle."]
6998 #[doc = ""]
6999 #[doc = "It shall include the following components: "]
7000 #[doc = ""]
7001 #[doc = "- @field wMInumber: World Manufacturer Identifier (WMI) code."]
7002 #[doc = ""]
7003 #[doc = "- @field vDS: Vehicle Descriptor Section (VDS). "]
7004 #[doc = ""]
7005 #[doc = "\n\n@category: Vehicle information"]
7006 #[doc = "\n\n@revision: V1.3.1"]
7007 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7008 #[rasn(automatic_tags)]
7009 #[non_exhaustive]
7010 pub struct VehicleIdentification {
7011 #[rasn(identifier = "wMInumber")]
7012 pub w_minumber: Option<WMInumber>,
7013 #[rasn(identifier = "vDS")]
7014 pub v_ds: Option<VDS>,
7015 }
7016 impl VehicleIdentification {
7017 pub fn new(w_minumber: Option<WMInumber>, v_ds: Option<VDS>) -> Self {
7018 Self { w_minumber, v_ds }
7019 }
7020 }
7021
7022 #[doc = "This DF represents the length of vehicle and accuracy indication information."]
7023 #[doc = ""]
7024 #[doc = "It shall include the following components: "]
7025 #[doc = ""]
7026 #[doc = "- @field vehicleLengthValue: length of vehicle. "]
7027 #[doc = ""]
7028 #[doc = "- @field vehicleLengthConfidenceIndication: indication of the length value confidence."]
7029 #[doc = ""]
7030 #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref VehicleLengthV2 instead."]
7031 #[doc = "\n\n@category: Vehicle information"]
7032 #[doc = "\n\n@revision: V1.3.1"]
7033 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7034 #[rasn(automatic_tags)]
7035 pub struct VehicleLength {
7036 #[rasn(identifier = "vehicleLengthValue")]
7037 pub vehicle_length_value: VehicleLengthValue,
7038 #[rasn(identifier = "vehicleLengthConfidenceIndication")]
7039 pub vehicle_length_confidence_indication: VehicleLengthConfidenceIndication,
7040 }
7041 impl VehicleLength {
7042 pub fn new(
7043 vehicle_length_value: VehicleLengthValue,
7044 vehicle_length_confidence_indication: VehicleLengthConfidenceIndication,
7045 ) -> Self {
7046 Self {
7047 vehicle_length_value,
7048 vehicle_length_confidence_indication,
7049 }
7050 }
7051 }
7052
7053 #[doc = "This DE provides information about the presence of a trailer. "]
7054 #[doc = ""]
7055 #[doc = "The value shall be set to:"]
7056 #[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,"]
7057 #[doc = "- 1 `trailerPresentWithKnownLength` - to indicate that a trailer has been detected as present and the length is included in the vehicle length value,"]
7058 #[doc = "- 2 `trailerPresentWithUnknownLength` - to indicate that a trailer has been detected as present and the length is not included in the vehicle length value,"]
7059 #[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,"]
7060 #[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, "]
7061 #[doc = " nor the detection of trailer presence/absence is possible."]
7062 #[doc = ""]
7063 #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrailerPresenceInformation instead. "]
7064 #[doc = "\n\n@category: Vehicle information"]
7065 #[doc = "\n\n@revision: Description revised in V2.1.1"]
7066 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7067 #[rasn(enumerated)]
7068 pub enum VehicleLengthConfidenceIndication {
7069 noTrailerPresent = 0,
7070 trailerPresentWithKnownLength = 1,
7071 trailerPresentWithUnknownLength = 2,
7072 trailerPresenceIsUnknown = 3,
7073 unavailable = 4,
7074 }
7075
7076 #[doc = "This DF represents the length of vehicle and accuracy indication information."]
7077 #[doc = ""]
7078 #[doc = "It shall include the following components: "]
7079 #[doc = ""]
7080 #[doc = "- @field vehicleLengthValue: length of vehicle. "]
7081 #[doc = ""]
7082 #[doc = "- @field trailerPresenceInformation: information about the trailer presence."]
7083 #[doc = ""]
7084 #[doc = "\n\n@category: Vehicle information"]
7085 #[doc = "\n\n@revision: created in V2.1.1 based on @ref VehicleLength but using @ref TrailerPresenceInformation."]
7086 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7087 #[rasn(automatic_tags)]
7088 pub struct VehicleLengthV2 {
7089 #[rasn(identifier = "vehicleLengthValue")]
7090 pub vehicle_length_value: VehicleLengthValue,
7091 #[rasn(identifier = "trailerPresenceInformation")]
7092 pub trailer_presence_information: TrailerPresenceInformation,
7093 }
7094 impl VehicleLengthV2 {
7095 pub fn new(
7096 vehicle_length_value: VehicleLengthValue,
7097 trailer_presence_information: TrailerPresenceInformation,
7098 ) -> Self {
7099 Self {
7100 vehicle_length_value,
7101 trailer_presence_information,
7102 }
7103 }
7104 }
7105
7106 #[doc = "This DE represents the length of a vehicle."]
7107 #[doc = ""]
7108 #[doc = "The value shall be set to:"]
7109 #[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,"]
7110 #[doc = "- `1 022` to indicate that the vehicle length is greater than 102.1 metres,"]
7111 #[doc = "- `1 023` to indicate that the information in unavailable."]
7112 #[doc = ""]
7113 #[doc = ""]
7114 #[doc = "\n\n@unit: 0,1 metre"]
7115 #[doc = "\n\n@category: Vehicle information"]
7116 #[doc = "\n\n@revision: Description updated in V2.1.1 (the meaning of 1 022 has changed slightly)."]
7117 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7118 #[rasn(delegate, value("1..=1023"))]
7119 pub struct VehicleLengthValue(pub u16);
7120
7121 #[doc = "This DE represents the mass of an empty loaded vehicle."]
7122 #[doc = ""]
7123 #[doc = "The value shall be set to: "]
7124 #[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,"]
7125 #[doc = "- `1 023` indicates that the vehicle mass is greater than 102 200 000 g,"]
7126 #[doc = "- `1 024` indicates the vehicle mass information is unavailable."]
7127 #[doc = ""]
7128 #[doc = "\n\n@note:\tThe empty load vehicle is defined in ISO 1176, clause 4.6."]
7129 #[doc = ""]
7130 #[doc = "\n\n@unit: 10^5 gramm"]
7131 #[doc = "\n\n@category: Vehicle information"]
7132 #[doc = "\n\n@revision: Description updated in V2.1.1 (the meaning of 1 023 has changed slightly)."]
7133 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7134 #[rasn(delegate, value("1..=1024"))]
7135 pub struct VehicleMass(pub u16);
7136
7137 #[doc = "This DE indicates the role played by a vehicle at a point in time."]
7138 #[doc = ""]
7139 #[doc = "The value shall be set to:"]
7140 #[doc = "- 0 `default` - to indicate the default vehicle role as indicated by the vehicle type,"]
7141 #[doc = "- 1 `publicTransport` - to indicate that the vehicle is used to operate public transport service,"]
7142 #[doc = "- 2 `specialTransport` - to indicate that the vehicle is used for special transport purpose, e.g. oversized trucks,"]
7143 #[doc = "- 3 `dangerousGoods` - to indicate that the vehicle is used for dangerous goods transportation,"]
7144 #[doc = "- 4 `roadWork` - to indicate that the vehicle is used to realize roadwork or road maintenance mission,"]
7145 #[doc = "- 5 `rescue` - to indicate that the vehicle is used for rescue purpose in case of an accident, e.g. as a towing service,"]
7146 #[doc = "- 6 `emergency` - to indicate that the vehicle is used for emergency mission, e.g. ambulance, fire brigade,"]
7147 #[doc = "- 7 `safetyCar` - to indicate that the vehicle is used for public safety, e.g. patrol,"]
7148 #[doc = "- 8 `agriculture` - to indicate that the vehicle is used for agriculture, e.g. farm tractor, "]
7149 #[doc = "- 9 `commercial` - to indicate that the vehicle is used for transportation of commercial goods,"]
7150 #[doc = "- 10 `military` - to indicate that the vehicle is used for military purpose, "]
7151 #[doc = "- 11 `roadOperator` - to indicate that the vehicle is used in road operator missions,"]
7152 #[doc = "- 12 `taxi` - to indicate that the vehicle is used to provide an authorized taxi service,"]
7153 #[doc = "- 13 `uvar` - to indicate that the vehicle is authorized to enter a zone according to the applicable Urban Vehicle Access Restrictions."]
7154 #[doc = "- 14 `rfu1` - is reserved for future usage."]
7155 #[doc = "- 15 `rfu2` - is reserved for future usage."]
7156 #[doc = ""]
7157 #[doc = "\n\n@category: Vehicle Information"]
7158 #[doc = "\n\n@revision: Description updated in V2.1.1 (removed reference to CEN/TS 16157-3), value 13 assigned in V2.2.1"]
7159 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7160 #[rasn(enumerated)]
7161 pub enum VehicleRole {
7162 default = 0,
7163 publicTransport = 1,
7164 specialTransport = 2,
7165 dangerousGoods = 3,
7166 roadWork = 4,
7167 rescue = 5,
7168 emergency = 6,
7169 safetyCar = 7,
7170 agriculture = 8,
7171 commercial = 9,
7172 military = 10,
7173 roadOperator = 11,
7174 taxi = 12,
7175 uvar = 13,
7176 rfu1 = 14,
7177 rfu2 = 15,
7178 }
7179
7180 #[doc = "This DE represents the width of a vehicle, excluding side mirrors and possible similar extensions."]
7181 #[doc = "The value shall be set to:"]
7182 #[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,"]
7183 #[doc = "- `61` indicates that the vehicle width is greater than 6,0 metres,"]
7184 #[doc = "- `62` indicates that the information in unavailable."]
7185 #[doc = ""]
7186 #[doc = "\n\n@unit: 0,1 metre"]
7187 #[doc = "\n\n@category: Vehicle information "]
7188 #[doc = "\n\n@revision: Description updated in V2.1.1 (the meaning of 61 has changed slightly)."]
7189 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7190 #[rasn(delegate, value("1..=62"))]
7191 pub struct VehicleWidth(pub u8);
7192
7193 #[doc = "This DF represents a velocity vector with associated confidence value."]
7194 #[doc = ""]
7195 #[doc = "The following options are available:"]
7196 #[doc = ""]
7197 #[doc = "- @field polarVelocity: the representation of the velocity vector in a polar or cylindrical coordinate system. "]
7198 #[doc = ""]
7199 #[doc = "- @field cartesianVelocity: the representation of the velocity vector in a cartesian coordinate system."]
7200 #[doc = ""]
7201 #[doc = "\n\n@category: Kinematic information"]
7202 #[doc = "\n\n@revision: Created in V2.1.1"]
7203 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7204 #[rasn(choice, automatic_tags)]
7205 pub enum Velocity3dWithConfidence {
7206 polarVelocity(VelocityPolarWithZ),
7207 cartesianVelocity(VelocityCartesian),
7208 }
7209
7210 #[doc = "This DF represents a velocity vector in a cartesian coordinate system."]
7211 #[doc = "It shall include the following components: "]
7212 #[doc = ""]
7213 #[doc = "- @field xVelocity: the x component of the velocity vector with the associated confidence value."]
7214 #[doc = ""]
7215 #[doc = "- @field yVelocity: the y component of the velocity vector with the associated confidence value."]
7216 #[doc = ""]
7217 #[doc = "- @field zVelocity: the optional z component of the velocity vector with the associated confidence value."]
7218 #[doc = ""]
7219 #[doc = "\n\n@category: Kinematic information"]
7220 #[doc = "\n\n@revision: Created in V2.1.1"]
7221 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7222 #[rasn(automatic_tags)]
7223 pub struct VelocityCartesian {
7224 #[rasn(identifier = "xVelocity")]
7225 pub x_velocity: VelocityComponent,
7226 #[rasn(identifier = "yVelocity")]
7227 pub y_velocity: VelocityComponent,
7228 #[rasn(identifier = "zVelocity")]
7229 pub z_velocity: Option<VelocityComponent>,
7230 }
7231 impl VelocityCartesian {
7232 pub fn new(
7233 x_velocity: VelocityComponent,
7234 y_velocity: VelocityComponent,
7235 z_velocity: Option<VelocityComponent>,
7236 ) -> Self {
7237 Self {
7238 x_velocity,
7239 y_velocity,
7240 z_velocity,
7241 }
7242 }
7243 }
7244
7245 #[doc = "This DF represents a component of the velocity vector and the associated confidence value."]
7246 #[doc = ""]
7247 #[doc = "It shall include the following components: "]
7248 #[doc = ""]
7249 #[doc = "- @field value: the value of the component."]
7250 #[doc = ""]
7251 #[doc = "- @field confidence: the confidence value of the value."]
7252 #[doc = ""]
7253 #[doc = "\n\n@category: Kinematic information"]
7254 #[doc = "\n\n@revision: V2.1.1"]
7255 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7256 #[rasn(automatic_tags)]
7257 pub struct VelocityComponent {
7258 pub value: VelocityComponentValue,
7259 pub confidence: SpeedConfidence,
7260 }
7261 impl VelocityComponent {
7262 pub fn new(value: VelocityComponentValue, confidence: SpeedConfidence) -> Self {
7263 Self { value, confidence }
7264 }
7265 }
7266
7267 #[doc = "This DE represents the value of a velocity component in a defined coordinate system."]
7268 #[doc = ""]
7269 #[doc = "The value shall be set to:"]
7270 #[doc = "- `-16 383` if the velocity is equal to or smaller than -163,83 m/s,"]
7271 #[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,"]
7272 #[doc = "- `16 382` for velocity values equal to or greater than 163,81 m/s,"]
7273 #[doc = "- `16 383` if the velocity information is not available."]
7274 #[doc = ""]
7275 #[doc = "\n\n@unit: 0,01 m/s"]
7276 #[doc = "\n\n@category: Kinematic information"]
7277 #[doc = "\n\n@revision: Created in V2.1.1"]
7278 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7279 #[rasn(delegate, value("-16383..=16383"))]
7280 pub struct VelocityComponentValue(pub i16);
7281
7282 #[doc = "This DF represents a velocity vector in a polar or cylindrical coordinate system."]
7283 #[doc = ""]
7284 #[doc = "It shall include the following components: "]
7285 #[doc = ""]
7286 #[doc = "- @field velocityMagnitude: magnitude of the velocity vector on the reference plane, with the associated confidence value."]
7287 #[doc = ""]
7288 #[doc = "- @field velocityDirection: polar angle of the velocity vector on the reference plane, with the associated confidence value."]
7289 #[doc = ""]
7290 #[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."]
7291 #[doc = ""]
7292 #[doc = "\n\n@category: Kinematic information"]
7293 #[doc = "\n\n@revision: Created in V2.1.1"]
7294 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7295 #[rasn(automatic_tags)]
7296 pub struct VelocityPolarWithZ {
7297 #[rasn(identifier = "velocityMagnitude")]
7298 pub velocity_magnitude: Speed,
7299 #[rasn(identifier = "velocityDirection")]
7300 pub velocity_direction: CartesianAngle,
7301 #[rasn(identifier = "zVelocity")]
7302 pub z_velocity: Option<VelocityComponent>,
7303 }
7304 impl VelocityPolarWithZ {
7305 pub fn new(
7306 velocity_magnitude: Speed,
7307 velocity_direction: CartesianAngle,
7308 z_velocity: Option<VelocityComponent>,
7309 ) -> Self {
7310 Self {
7311 velocity_magnitude,
7312 velocity_direction,
7313 z_velocity,
7314 }
7315 }
7316 }
7317 #[doc = " four and more octets length"]
7318 #[doc = "This DF indicates the vehicle acceleration at vertical direction and the associated confidence value."]
7319 #[doc = ""]
7320 #[doc = "It shall include the following components: "]
7321 #[doc = ""]
7322 #[doc = "- @field verticalAccelerationValue: vertical acceleration value at a point in time."]
7323 #[doc = ""]
7324 #[doc = "- @field verticalAccelerationConfidence: confidence value of the vertical acceleration value with a predefined confidence level."]
7325 #[doc = ""]
7326 #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead."]
7327 #[doc = "\n\n@category Vehicle information"]
7328 #[doc = "\n\n@revision: Description revised in V2.1.1"]
7329 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7330 #[rasn(automatic_tags)]
7331 pub struct VerticalAcceleration {
7332 #[rasn(identifier = "verticalAccelerationValue")]
7333 pub vertical_acceleration_value: VerticalAccelerationValue,
7334 #[rasn(identifier = "verticalAccelerationConfidence")]
7335 pub vertical_acceleration_confidence: AccelerationConfidence,
7336 }
7337 impl VerticalAcceleration {
7338 pub fn new(
7339 vertical_acceleration_value: VerticalAccelerationValue,
7340 vertical_acceleration_confidence: AccelerationConfidence,
7341 ) -> Self {
7342 Self {
7343 vertical_acceleration_value,
7344 vertical_acceleration_confidence,
7345 }
7346 }
7347 }
7348
7349 #[doc = "This DE represents the vehicle acceleration at vertical direction in the centre of the mass of the empty vehicle."]
7350 #[doc = "The value shall be provided in the vehicle coordinate system as defined in ISO 8855, clause 2.11."]
7351 #[doc = ""]
7352 #[doc = "The value shall be set to:"]
7353 #[doc = "- `-160` for acceleration values equal to or less than -16 m/s^2,"]
7354 #[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,"]
7355 #[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,"]
7356 #[doc = "- `160` for acceleration values greater than 15,9 m/s^2,"]
7357 #[doc = "- `161` when the data is unavailable."]
7358 #[doc = ""]
7359 #[doc = "\n\n@note: The empty load vehicle is defined in ISO 1176, clause 4.6."]
7360 #[doc = ""]
7361 #[doc = "\n\n@category: Vehicle information"]
7362 #[doc = "\n\n@unit: 0,1 m/s^2"]
7363 #[doc = "\n\n@revision: Desciption updated in V2.1.1 (the meaning of 160 has changed slightly)."]
7364 #[doc = " "]
7365 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7366 #[rasn(delegate, value("-160..=161"))]
7367 pub struct VerticalAccelerationValue(pub i16);
7368
7369 #[doc = "This DF provides information about a VRU cluster."]
7370 #[doc = ""]
7371 #[doc = "It shall include the following components: "]
7372 #[doc = ""]
7373 #[doc = "- @field clusterId: optional identifier of a VRU cluster."]
7374 #[doc = ""]
7375 #[doc = "- @field clusterBoundingBoxShape: optionally indicates the shape of the cluster bounding box, per default inside an East-North-Up coordinate system "]
7376 #[doc = "centered around a reference point defined outside of the context of this DF."]
7377 #[doc = ""]
7378 #[doc = "- @field clusterCardinalitySize: indicates an estimation of the number of VRUs in the group, e.g. the known members in the cluster + 1 (for the cluster leader) ."]
7379 #[doc = ""]
7380 #[doc = "- @field clusterProfiles: optionally identifies all the VRU profile types that are estimated to be within the cluster."]
7381 #[doc = "if this component is absent it means that the information is unavailable. "]
7382 #[doc = ""]
7383 #[doc = "\n\n@category: VRU information"]
7384 #[doc = "\n\n@revision: Created in V2.1.1, description revised in V2.2.1"]
7385 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7386 #[rasn(automatic_tags)]
7387 #[non_exhaustive]
7388 pub struct VruClusterInformation {
7389 #[rasn(identifier = "clusterId")]
7390 pub cluster_id: Option<Identifier1B>,
7391 #[rasn(value("0.."), identifier = "clusterBoundingBoxShape")]
7392 pub cluster_bounding_box_shape: Option<Shape>,
7393 #[rasn(identifier = "clusterCardinalitySize")]
7394 pub cluster_cardinality_size: CardinalNumber1B,
7395 #[rasn(identifier = "clusterProfiles")]
7396 pub cluster_profiles: Option<VruClusterProfiles>,
7397 }
7398 impl VruClusterInformation {
7399 pub fn new(
7400 cluster_id: Option<Identifier1B>,
7401 cluster_bounding_box_shape: Option<Shape>,
7402 cluster_cardinality_size: CardinalNumber1B,
7403 cluster_profiles: Option<VruClusterProfiles>,
7404 ) -> Self {
7405 Self {
7406 cluster_id,
7407 cluster_bounding_box_shape,
7408 cluster_cardinality_size,
7409 cluster_profiles,
7410 }
7411 }
7412 }
7413
7414 #[doc = "This DE Identifies all the VRU profile types within a cluster."]
7415 #[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)."]
7416 #[doc = ""]
7417 #[doc = "The corresponding bit shall be set to 1 under the following conditions:"]
7418 #[doc = "- 0 `pedestrian` - indicates that the VRU cluster contains at least one pedestrian VRU,"]
7419 #[doc = "- 1 `bicycle` - indicates that the VRU cluster contains at least one bicycle VRU member,"]
7420 #[doc = "- 2 `motorcyclist`- indicates that the VRU cluster contains at least one motorcycle VRU member,"]
7421 #[doc = "- 3 `animal` - indicates that the VRU cluster contains at least one animal VRU member."]
7422 #[doc = ""]
7423 #[doc = "Otherwise, the corresponding bit shall be set to 0."]
7424 #[doc = ""]
7425 #[doc = "\n\n@category: VRU information"]
7426 #[doc = "\n\n@revision: Created in V2.1.1"]
7427 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7428 #[rasn(delegate)]
7429 pub struct VruClusterProfiles(pub FixedBitString<4usize>);
7430
7431 #[doc = "This DE represents the possible usage conditions of the VRU device."]
7432 #[doc = "- The value shall be set to:"]
7433 #[doc = "- 0 `unavailable` - to indicate that the usage conditions are unavailable,"]
7434 #[doc = "- 1 `other` - to indicate that the VRU device is in a state not defined below,"]
7435 #[doc = "- 2 `idle` - to indicate that the human is currently not interacting with the device,"]
7436 #[doc = "- 3 `listeningToAudio` - to indicate that any audio source other than calling is in use,"]
7437 #[doc = "- 4 `typing` - to indicate that the human is texting or performaing any other manual input activity,"]
7438 #[doc = "- 5 `calling` - to indicate that the VRU device is currently receiving a call,"]
7439 #[doc = "- 6 `playingGames` - to indicate that the human is playing games,"]
7440 #[doc = "- 7 `reading` - to indicate that the human is reading on the VRU device,"]
7441 #[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."]
7442 #[doc = "- value 9 to 15 - are reserved for future usage. "]
7443 #[doc = ""]
7444 #[doc = "\n\n@category: VRU information"]
7445 #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1 and range changed from 0..255 to 0..15"]
7446 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7447 #[rasn(delegate, value("0..=15"))]
7448 pub struct VruDeviceUsage(pub u8);
7449
7450 #[doc = "This DE represents the possible VRU environment conditions."]
7451 #[doc = ""]
7452 #[doc = "- The value shall be set to:"]
7453 #[doc = "- 0 `unavailable` - to indicate that the information on the type of environment is unavailable,"]
7454 #[doc = "- 1 `intersectionCrossing` - to indicate that the VRU is on an intersection or crossing,"]
7455 #[doc = "- 2 `zebraCrossing` - to indicate that the VRU is on a zebra crossing (crosswalk),"]
7456 #[doc = "- 3 `sidewalk` - to indicate that the VRU is on a sidewalk,"]
7457 #[doc = "- 4 `onVehicleRoad` - to indicate that the VRU is on a traffic lane,"]
7458 #[doc = "- 5 `protectedGeographicArea`- to indicate that the VRU is in a protected area."]
7459 #[doc = "- value 6 to 15 - are reserved for future usage. "]
7460 #[doc = ""]
7461 #[doc = "\n\n@category: VRU information"]
7462 #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1 and range changed from 0..255 to 0..15"]
7463 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7464 #[rasn(delegate, value("0..=15"))]
7465 pub struct VruEnvironment(pub u8);
7466
7467 #[doc = "This DF represents the status of the exterior light switches of a VRU."]
7468 #[doc = "This DF is an extension of the vehicular DE @ref ExteriorLights."]
7469 #[doc = ""]
7470 #[doc = "It shall include the following components: "]
7471 #[doc = ""]
7472 #[doc = "- @field vehicular: represents the status of the exterior light switches of a road vehicle."]
7473 #[doc = ""]
7474 #[doc = "- @field vruSpecific: represents the status of the exterior light switches of a VRU."]
7475 #[doc = ""]
7476 #[doc = "\n\n@category: VRU information"]
7477 #[doc = "\n\n@revision: created in V2.1.1"]
7478 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7479 #[rasn(automatic_tags)]
7480 #[non_exhaustive]
7481 pub struct VruExteriorLights {
7482 pub vehicular: ExteriorLights,
7483 #[rasn(identifier = "vruSpecific")]
7484 pub vru_specific: VruSpecificExteriorLights,
7485 }
7486 impl VruExteriorLights {
7487 pub fn new(vehicular: ExteriorLights, vru_specific: VruSpecificExteriorLights) -> Self {
7488 Self {
7489 vehicular,
7490 vru_specific,
7491 }
7492 }
7493 }
7494
7495 #[doc = " This DE indicates the status of the possible human control over a VRU vehicle."]
7496 #[doc = ""]
7497 #[doc = "The value shall be set to:"]
7498 #[doc = "- 0 `unavailable` - to indicate that the information is unavailable,"]
7499 #[doc = "- 1 `braking` - to indicate that the VRU is braking,"]
7500 #[doc = "- 2 `hardBraking` - to indicate that the VRU is braking hard,"]
7501 #[doc = "- 3 `stopPedaling` - to indicate that the VRU stopped pedaling,"]
7502 #[doc = "- 4 `brakingAndStopPedaling` - to indicate that the VRU stopped pedaling an is braking,"]
7503 #[doc = "- 5 `hardBrakingAndStopPedaling` - to indicate that the VRU stopped pedaling an is braking hard,"]
7504 #[doc = "- 6 `noReaction` - to indicate that the VRU is not changing its behavior."]
7505 #[doc = "- 7 to 15 - are reserved for future usage. "]
7506 #[doc = ""]
7507 #[doc = "\n\n@category: VRU information"]
7508 #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1 and range changed from 0..255 to 0..15"]
7509 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7510 #[rasn(delegate, value("0..=15"))]
7511 pub struct VruMovementControl(pub u8);
7512
7513 #[doc = "This DF indicates the profile of a VRU including sub-profile information"]
7514 #[doc = "It identifies four options corresponding to the four types of VRU profiles specified in ETSI TS 103 300-2:"]
7515 #[doc = ""]
7516 #[doc = "- @field pedestrian: VRU Profile 1 - Pedestrian."]
7517 #[doc = ""]
7518 #[doc = "- @field bicyclistAndLightVruVehicle: VRU Profile 2 - Bicyclist."]
7519 #[doc = ""]
7520 #[doc = "- @field motorcyclist: VRU Profile 3 - Motorcyclist."]
7521 #[doc = ""]
7522 #[doc = "- @field animal: VRU Profile 4 - Animal."]
7523 #[doc = ""]
7524 #[doc = "\n\n@category: VRU information"]
7525 #[doc = "\n\n@revision: Created in V2.1.1"]
7526 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7527 #[rasn(choice, automatic_tags)]
7528 #[non_exhaustive]
7529 pub enum VruProfileAndSubprofile {
7530 pedestrian(VruSubProfilePedestrian),
7531 bicyclistAndLightVruVehicle(VruSubProfileBicyclist),
7532 motorcyclist(VruSubProfileMotorcyclist),
7533 animal(VruSubProfileAnimal),
7534 }
7535
7536 #[doc = "This DE indicates the approximate size of a VRU including the VRU vehicle used."]
7537 #[doc = ""]
7538 #[doc = "The value shall be set to:"]
7539 #[doc = "- 0 `unavailable` - to indicate that there is no matched size class or due to privacy reasons in profile 1, "]
7540 #[doc = "- 1 `low` - to indicate that the VRU size class is low depending on the VRU profile,"]
7541 #[doc = "- 2 `medium` - to indicate that the VRU size class is medium depending on the VRU profile,"]
7542 #[doc = "- 3 `high` - to indicate that the VRU size class is high depending on the VRU profile."]
7543 #[doc = "- 4 to 15 - are reserved for future usage. "]
7544 #[doc = ""]
7545 #[doc = "\n\n@category: VRU information"]
7546 #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
7547 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7548 #[rasn(delegate, value("0..=15"))]
7549 pub struct VruSizeClass(pub u8);
7550
7551 #[doc = "This DE describes the status of the exterior light switches of a VRU."]
7552 #[doc = ""]
7553 #[doc = "The value of each bit indicates the state of the switch, which commands the corresponding light. "]
7554 #[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 "]
7555 #[doc = "or automatically by a vehicle or VRU system: "]
7556 #[doc = "- 0 `unavailable` - indicates no information available, "]
7557 #[doc = "- 1 `backFlashLight ` - indicates the status of the back flash light,"]
7558 #[doc = "- 2 `helmetLight` - indicates the status of the helmet light,"]
7559 #[doc = "- 3 `armLight` - indicates the status of the arm light,"]
7560 #[doc = "- 4 `legLight` - indicates the status of the leg light,"]
7561 #[doc = "- 5 `wheelLight` - indicates the status of the wheel light. "]
7562 #[doc = "- Bits 6 to 8 - are reserved for future use. "]
7563 #[doc = "The bit values do not indicate if the corresponding lamps are alight or not."]
7564 #[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."]
7565 #[doc = ""]
7566 #[doc = "\n\n@category: VRU information"]
7567 #[doc = "\n\n@revision: Created in V2.1.1"]
7568 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7569 #[rasn(delegate)]
7570 pub struct VruSpecificExteriorLights(pub FixedBitString<8usize>);
7571
7572 #[doc = "This DE indicates the profile of an animal"]
7573 #[doc = ""]
7574 #[doc = "The value shall be set to:"]
7575 #[doc = "- 0 `unavailable` - to indicate that the information is unavailable,"]
7576 #[doc = "- 1 `wild-animal` - to indicate a animal living in the wildness, "]
7577 #[doc = "- 2 `farm-animal` - to indicate an animal beloning to a farm,"]
7578 #[doc = "- 3 `service-animal` - to indicate an animal that supports a human being."]
7579 #[doc = "- 4 to 15 - are reserved for future usage. "]
7580 #[doc = ""]
7581 #[doc = "\n\n@category: VRU information"]
7582 #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
7583 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7584 #[rasn(delegate, value("0..=15"))]
7585 pub struct VruSubProfileAnimal(pub u8);
7586
7587 #[doc = "This DE indicates the profile of a VRU and its light VRU vehicle / mounted animal. "]
7588 #[doc = ""]
7589 #[doc = "The value shall be set to:"]
7590 #[doc = "- 0 `unavailable` - to indicate that the information is unavailable,"]
7591 #[doc = "- 1 `bicyclist ` - to indicate a cycle and bicyclist to which no more-specific profile applies, "]
7592 #[doc = "- 2 `wheelchair-user` - to indicate a wheelchair and its user,"]
7593 #[doc = "- 3 `horse-and-rider` - to indicate a horse and rider,"]
7594 #[doc = "- 4 `rollerskater` - to indicate a roller-skater and skater,"]
7595 #[doc = "- 5 `e-scooter` - to indicate an e-scooter and rider,"]
7596 #[doc = "- 6 `personal-transporter` - to indicate a personal-transporter and rider,"]
7597 #[doc = "- 7 `pedelec` - to indicate a pedelec and rider to which no more-specific profile applies,"]
7598 #[doc = "- 8 `speed-pedelec` - to indicate a speed-pedelec and rider."]
7599 #[doc = "- 9 `roadbike` - to indicate a road bicycle (or road pedelec) and rider,"]
7600 #[doc = "- 10 `childrensbike` - to indicate a children�s bicycle (or children�s pedelec) and rider,"]
7601 #[doc = "- 11 to 15 - are reserved for future usage. "]
7602 #[doc = ""]
7603 #[doc = "\n\n@category: VRU information"]
7604 #[doc = "\n\n@revision: Created in V2.1.1, values 9 and 10 assigned in V2.2.1"]
7605 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7606 #[rasn(delegate, value("0..=15"))]
7607 pub struct VruSubProfileBicyclist(pub u8);
7608
7609 #[doc = "This DE indicates the profile of a motorcyclist and corresponding vehicle."]
7610 #[doc = ""]
7611 #[doc = "The value shall be set to:"]
7612 #[doc = "- 0 `unavailable ` - to indicate that the information is unavailable,"]
7613 #[doc = "- 1 `moped` - to indicate a moped and rider,"]
7614 #[doc = "- 2 `motorcycle` - to indicate a motorcycle and rider,"]
7615 #[doc = "- 3 `motorcycle-and-sidecar-right` - to indicate a motorcycle with sidecar on the right and rider,"]
7616 #[doc = "- 4 `motorcycle-and-sidecar-left` - to indicate a motorcycle with sidecar on the left and rider."]
7617 #[doc = "- 5 to 15 - are reserved for future usage. "]
7618 #[doc = ""]
7619 #[doc = "\n\n@category: VRU information"]
7620 #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
7621 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7622 #[rasn(delegate, value("0..=15"))]
7623 pub struct VruSubProfileMotorcyclist(pub u8);
7624
7625 #[doc = "This DE indicates the profile of a pedestrian."]
7626 #[doc = ""]
7627 #[doc = "The value shall be set to:"]
7628 #[doc = "- 0 `unavailable` - to indicate that the information on is unavailable,"]
7629 #[doc = "- 1 `ordinary-pedestrian` - to indicate a pedestrian to which no more-specific profile applies,"]
7630 #[doc = "- 2 `road-worker` - to indicate a pedestrian with the role of a road worker,"]
7631 #[doc = "- 3 `first-responder` - to indicate a pedestrian with the role of a first responder."]
7632 #[doc = "- value 4 to 15 - are reserved for future usage. "]
7633 #[doc = ""]
7634 #[doc = "\n\n@category: VRU information"]
7635 #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
7636 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7637 #[rasn(delegate, value("0..=15"))]
7638 pub struct VruSubProfilePedestrian(pub u8);
7639
7640 #[doc = "This DE represents the World Manufacturer Identifier (WMI). The values are assigned according to ISO 3779."]
7641 #[doc = ""]
7642 #[doc = ""]
7643 #[doc = "\n\n@category: Vehicle information"]
7644 #[doc = "\n\n@revision: V1.3.1"]
7645 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7646 #[rasn(delegate, size("1..=3"))]
7647 pub struct WMInumber(pub Ia5String);
7648
7649 #[doc = "This DF represents an angular component along with a confidence value in the WGS84 coordinate system."]
7650 #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
7651 #[doc = ""]
7652 #[doc = "It shall include the following components: "]
7653 #[doc = ""]
7654 #[doc = "- @field value: the angle value, which can be estimated as the mean of the current distribution."]
7655 #[doc = ""]
7656 #[doc = "- @field confidence: the confidence value associated to the angle value."]
7657 #[doc = ""]
7658 #[doc = "\n\n@category: GeoReference information"]
7659 #[doc = "\n\n@revision: Created in V2.1.1"]
7660 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7661 #[rasn(automatic_tags)]
7662 pub struct Wgs84Angle {
7663 pub value: Wgs84AngleValue,
7664 pub confidence: Wgs84AngleConfidence,
7665 }
7666 impl Wgs84Angle {
7667 pub fn new(value: Wgs84AngleValue, confidence: Wgs84AngleConfidence) -> Self {
7668 Self { value, confidence }
7669 }
7670 }
7671
7672 #[doc = "This DE indicates the angle confidence value which represents the estimated accuracy of an angle value with a default confidence level of 95 %."]
7673 #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
7674 #[doc = ""]
7675 #[doc = "The value shall be set to:"]
7676 #[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,"]
7677 #[doc = "- `126` if the confidence value is out of range, i.e. greater than 12,5 degrees,"]
7678 #[doc = "- `127` if the confidence value is not available."]
7679 #[doc = ""]
7680 #[doc = ""]
7681 #[doc = "\n\n@unit 0,1 degrees"]
7682 #[doc = "\n\n@category: GeoReference Information"]
7683 #[doc = "\n\n@revision: Created in V2.1.1"]
7684 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7685 #[rasn(delegate, value("1..=127"))]
7686 pub struct Wgs84AngleConfidence(pub u8);
7687
7688 #[doc = "This DE represents an angle value in degrees described in the WGS84 reference system with respect to the WGS84 north."]
7689 #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
7690 #[doc = "When the information is not available, the DE shall be set to 3 601. The value 3600 shall not be used."]
7691 #[doc = ""]
7692 #[doc = "\n\n@unit 0,1 degrees"]
7693 #[doc = "\n\n@category: GeoReference Information"]
7694 #[doc = "\n\n@revision: Created in V2.1.1"]
7695 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7696 #[rasn(delegate, value("0..=3601"))]
7697 pub struct Wgs84AngleValue(pub u16);
7698
7699 #[doc = "This DE indicates the perpendicular distance between front and rear axle of the wheel base of vehicle."]
7700 #[doc = ""]
7701 #[doc = "The value shall be set to:"]
7702 #[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,"]
7703 #[doc = "- `126` indicates that the wheel base distance is equal to or greater than 12,5 metres,"]
7704 #[doc = "- `127` indicates that the information is unavailable."]
7705 #[doc = ""]
7706 #[doc = "\n\n@unit 0,1 metre"]
7707 #[doc = "\n\n@category: Vehicle information"]
7708 #[doc = "\n\n@revision: Created in V2.1.1"]
7709 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7710 #[rasn(delegate, value("1..=127"))]
7711 pub struct WheelBaseVehicle(pub u8);
7712
7713 #[doc = "This DE represents the sub cause codes of the @ref CauseCode `wrongWayDriving` ."]
7714 #[doc = ""]
7715 #[doc = "The value shall be set to:"]
7716 #[doc = "- 0 `unavailable` - in case further detailed information on wrong way driving event is unavailable,"]
7717 #[doc = "- 1 `wrongLane` - in case vehicle is driving on a lane for which it has no authorization to use,"]
7718 #[doc = "- 2 `wrongDirection` - in case vehicle is driving in a direction that it is not allowed,"]
7719 #[doc = "- 3-255 - reserved for future usage."]
7720 #[doc = ""]
7721 #[doc = "\n\n@category: Traffic information"]
7722 #[doc = "\n\n@revision: V1.3.1"]
7723 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7724 #[rasn(delegate, value("0..=255"))]
7725 pub struct WrongWayDrivingSubCauseCode(pub u8);
7726
7727 #[doc = "This DF represents a yaw rate of vehicle at a point in time."]
7728 #[doc = ""]
7729 #[doc = "It shall include the following components: "]
7730 #[doc = ""]
7731 #[doc = "- @field yawRateValue: yaw rate value at a point in time."]
7732 #[doc = ""]
7733 #[doc = "- @field yawRateConfidence: confidence value associated to the yaw rate value."]
7734 #[doc = ""]
7735 #[doc = "\n\n@category: Vehicle Information"]
7736 #[doc = "\n\n@revision: V1.3.1"]
7737 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7738 #[rasn(automatic_tags)]
7739 pub struct YawRate {
7740 #[rasn(identifier = "yawRateValue")]
7741 pub yaw_rate_value: YawRateValue,
7742 #[rasn(identifier = "yawRateConfidence")]
7743 pub yaw_rate_confidence: YawRateConfidence,
7744 }
7745 impl YawRate {
7746 pub fn new(yaw_rate_value: YawRateValue, yaw_rate_confidence: YawRateConfidence) -> Self {
7747 Self {
7748 yaw_rate_value,
7749 yaw_rate_confidence,
7750 }
7751 }
7752 }
7753
7754 #[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 %."]
7755 #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
7756 #[doc = ""]
7757 #[doc = "The value shall be set to:"]
7758 #[doc = "- `0` if the confidence value is equal to or less than 0,01 degree/second,"]
7759 #[doc = "- `1` if the confidence value is equal to or less than 0,05 degrees/second or greater than 0,01 degree/second,"]
7760 #[doc = "- `2` if the confidence value is equal to or less than 0,1 degree/second or greater than 0,05 degree/second,"]
7761 #[doc = "- `3` if the confidence value is equal to or less than 1 degree/second or greater than 0,1 degree/second,"]
7762 #[doc = "- `4` if the confidence value is equal to or less than 5 degrees/second or greater than 1 degrees/second,"]
7763 #[doc = "- `5` if the confidence value is equal to or less than 10 degrees/second or greater than 5 degrees/second,"]
7764 #[doc = "- `6` if the confidence value is equal to or less than 100 degrees/second or greater than 10 degrees/second,"]
7765 #[doc = "- `7` if the confidence value is out of range, i.e. greater than 100 degrees/second,"]
7766 #[doc = "- `8` if the confidence value is unavailable."]
7767 #[doc = ""]
7768 #[doc = "NOTE: The fact that a yaw rate value is received with confidence value set to `unavailable(8)` can be caused by"]
7769 #[doc = "several reasons, such as:"]
7770 #[doc = "- the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
7771 #[doc = "- the sensor cannot calculate the accuracy due to lack of variables, or"]
7772 #[doc = "- there has been a vehicle bus (e.g. CAN bus) error."]
7773 #[doc = "In all 3 cases above, the yaw rate value may be valid and used by the application."]
7774 #[doc = ""]
7775 #[doc = "If a yaw rate value is received and its confidence value is set to `outOfRange(7)`, it means that the "]
7776 #[doc = "yaw rate value is not valid and therefore cannot be trusted. Such value is not useful the application."]
7777 #[doc = ""]
7778 #[doc = "\n\n@category: Vehicle information"]
7779 #[doc = "\n\n@revision: Description revised in V2.1.1"]
7780 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7781 #[rasn(enumerated)]
7782 pub enum YawRateConfidence {
7783 #[rasn(identifier = "degSec-000-01")]
7784 degSec_000_01 = 0,
7785 #[rasn(identifier = "degSec-000-05")]
7786 degSec_000_05 = 1,
7787 #[rasn(identifier = "degSec-000-10")]
7788 degSec_000_10 = 2,
7789 #[rasn(identifier = "degSec-001-00")]
7790 degSec_001_00 = 3,
7791 #[rasn(identifier = "degSec-005-00")]
7792 degSec_005_00 = 4,
7793 #[rasn(identifier = "degSec-010-00")]
7794 degSec_010_00 = 5,
7795 #[rasn(identifier = "degSec-100-00")]
7796 degSec_100_00 = 6,
7797 outOfRange = 7,
7798 unavailable = 8,
7799 }
7800
7801 #[doc = "This DE represents the vehicle rotation around z-axis of the coordinate system centred on the centre of mass of the empty-loaded"]
7802 #[doc = "vehicle. The leading sign denotes the direction of rotation."]
7803 #[doc = ""]
7804 #[doc = "The value shall be provided in the vehicle coordinate system as defined in ISO 8855, clause 2.11."]
7805 #[doc = ""]
7806 #[doc = "The value shall be set to:"]
7807 #[doc = "- `-32 766` to indicate that the yaw rate is equal to or greater than 327,66 degrees/second to the right,"]
7808 #[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, "]
7809 #[doc = " and greater than (n-1) x 0,01 degrees/s,"]
7810 #[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, "]
7811 #[doc = " and greater than (n-1) x 0,01 degrees/s,"]
7812 #[doc = "- `32 766` to indicate that the yaw rate is greater than 327.65 degrees/second to the left,"]
7813 #[doc = "- `32 767` to indicate that the information is not available."]
7814 #[doc = ""]
7815 #[doc = "The yaw rate value shall be a raw data value, i.e. not filtered, smoothed or otherwise modified."]
7816 #[doc = "The reading instant should be the same as for the vehicle acceleration."]
7817 #[doc = ""]
7818 #[doc = "\n\n@note: The empty load vehicle is defined in ISO 1176, clause 4.6."]
7819 #[doc = ""]
7820 #[doc = "\n\n@unit: 0,01 degree per second. "]
7821 #[doc = "\n\n@category: Vehicle Information"]
7822 #[doc = "\n\n@revision: Desription revised in V2.1.1 (the meaning of 32766 has changed slightly). "]
7823 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7824 #[rasn(delegate, value("-32766..=32767"))]
7825 pub struct YawRateValue(pub i16);
7826}