1#[allow(
5 non_camel_case_types,
6 non_snake_case,
7 non_upper_case_globals,
8 unused,
9 clippy::too_many_arguments,
10 clippy::doc_overindented_list_items
11)]
12pub mod denm_pdu_description {
13 extern crate alloc;
14 use super::etsi_its_cdd::{
15 ActionId, ActionIdList, CauseCodeV2, ClosedLanes, DangerousGoodsExtended,
16 DeltaReferencePosition, DeltaTimeMilliSecondPositive, DeltaTimeSecond, EnergyStorageType,
17 EventZone, GeneralizedLanePositions, HeightLonCarr, InformationQuality, ItineraryPath,
18 ItsPduHeader, IvimReferences, LanePosition, LightBarSirenInUse, MapReferences,
19 MetaInformation, MultiplicativeFactor, NumberOfOccupants, ObjectFace,
20 OccupiedLanesWithConfidence, PathPredictedList, PerceivedObject, PosCentMass, PosFrontAx,
21 PosLonCarr, Position1d, PositionOfOccupants, PositionOfPillars, PositioningSolutionType,
22 ReferencePosition, RequestResponseIndication, RestrictedTypes,
23 RoadConfigurationSectionList, RoadType, Speed, SpeedLimit, StandardLength12b,
24 StandardLength3b, StationId, StationType, StationarySince, Temperature, TimestampIts,
25 Traces, TracesExtended, TrafficDirection, TrafficRule, TurningRadius,
26 VehicleIdentification, VehicleMass, Wgs84Angle, WheelBaseVehicle,
27 };
28 use core::borrow::Borrow;
29 use rasn::prelude::*;
30 use std::sync::LazyLock;
31 #[doc = " Inner type "]
32 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
33 #[rasn(automatic_tags)]
34 pub struct AlacarteContainerExtGroupRoadConfiguration {
35 #[rasn(identifier = "roadConfiguration")]
36 pub road_configuration: Option<RoadConfigurationContainer>,
37 #[rasn(identifier = "preCrash")]
38 pub pre_crash: Option<PreCrashContainer>,
39 }
40 impl AlacarteContainerExtGroupRoadConfiguration {
41 pub fn new(
42 road_configuration: Option<RoadConfigurationContainer>,
43 pre_crash: Option<PreCrashContainer>,
44 ) -> Self {
45 Self {
46 road_configuration,
47 pre_crash,
48 }
49 }
50 }
51 #[doc = "* "]
52 #[doc = " * This type represents the A La Carte Container."]
53 #[doc = " *"]
54 #[doc = " * It shall include the following components: "]
55 #[doc = " *"]
56 #[doc = " * @field lanePosition: the optional lane position of the event."]
57 #[doc = " *"]
58 #[doc = " * @field impactReduction: optional vehicle data for collision mitigation."]
59 #[doc = " *"]
60 #[doc = " * @field externalTemperature: optional the ambient temperature at the event position."]
61 #[doc = " *"]
62 #[doc = " * @field roadWorks: optional information of the roadwork zone."]
63 #[doc = " *"]
64 #[doc = " * @field positioningSolution: optionally indicates the technical solution being used by the originating ITS-S to estimate the event position."]
65 #[doc = " *"]
66 #[doc = " * @field stationaryVehicle: optional information about a stationary vehicle."]
67 #[doc = " *"]
68 #[doc = " * @field roadConfiguration: optional information about the configuration of the road."]
69 #[doc = " *"]
70 #[doc = " * @field precrash: the optional information about perceived objects that represent hazards and/or could be subject of collisions. "]
71 #[doc = " *"]
72 #[doc = ""]
73 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
74 #[rasn(automatic_tags)]
75 #[non_exhaustive]
76 pub struct AlacarteContainer {
77 #[rasn(identifier = "lanePosition")]
78 pub lane_position: Option<LanePosition>,
79 #[rasn(identifier = "impactReduction")]
80 pub impact_reduction: Option<ImpactReductionContainer>,
81 #[rasn(identifier = "externalTemperature")]
82 pub external_temperature: Option<Temperature>,
83 #[rasn(identifier = "roadWorks")]
84 pub road_works: Option<RoadWorksContainerExtended>,
85 #[rasn(identifier = "positioningSolution")]
86 pub positioning_solution: Option<PositioningSolutionType>,
87 #[rasn(identifier = "stationaryVehicle")]
88 pub stationary_vehicle: Option<StationaryVehicleContainer>,
89 #[rasn(extension_addition_group, identifier = "SEQUENCE")]
90 pub ext_group_road_configuration: Option<AlacarteContainerExtGroupRoadConfiguration>,
91 }
92 impl AlacarteContainer {
93 pub fn new(
94 lane_position: Option<LanePosition>,
95 impact_reduction: Option<ImpactReductionContainer>,
96 external_temperature: Option<Temperature>,
97 road_works: Option<RoadWorksContainerExtended>,
98 positioning_solution: Option<PositioningSolutionType>,
99 stationary_vehicle: Option<StationaryVehicleContainer>,
100 ext_group_road_configuration: Option<AlacarteContainerExtGroupRoadConfiguration>,
101 ) -> Self {
102 Self {
103 lane_position,
104 impact_reduction,
105 external_temperature,
106 road_works,
107 positioning_solution,
108 stationary_vehicle,
109 ext_group_road_configuration,
110 }
111 }
112 }
113 #[doc = "* "]
114 #[doc = " * This type represents the DENM PDU."]
115 #[doc = " *"]
116 #[doc = " * It shall include the following components: "]
117 #[doc = " *"]
118 #[doc = " * @field header: the header of the DENM PDU."]
119 #[doc = " *"]
120 #[doc = " * @field denm: the payload of the DENM PDU."]
121 #[doc = ""]
122 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
123 #[rasn(automatic_tags)]
124 pub struct DENM {
125 #[rasn(value("0.."))]
126 pub header: ItsPduHeader,
127 pub denm: DenmPayload,
128 }
129 impl DENM {
130 pub fn new(header: ItsPduHeader, denm: DenmPayload) -> Self {
131 Self { header, denm }
132 }
133 }
134 #[doc = "* "]
135 #[doc = " * This type represents the DENM payload."]
136 #[doc = " *"]
137 #[doc = " * It shall include the following components: "]
138 #[doc = " *"]
139 #[doc = " * @field management: the Management Container."]
140 #[doc = " *"]
141 #[doc = " * @field situation: the optional Situation Container."]
142 #[doc = " *"]
143 #[doc = " * @field location: the optional Location Container."]
144 #[doc = " *"]
145 #[doc = " * @field alacarte: the optional ALaCarte Container ."]
146 #[doc = " *"]
147 #[doc = ""]
148 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
149 #[rasn(automatic_tags)]
150 pub struct DenmPayload {
151 pub management: ManagementContainer,
152 pub situation: Option<SituationContainer>,
153 pub location: Option<LocationContainer>,
154 pub alacarte: Option<AlacarteContainer>,
155 }
156 impl DenmPayload {
157 pub fn new(
158 management: ManagementContainer,
159 situation: Option<SituationContainer>,
160 location: Option<LocationContainer>,
161 alacarte: Option<AlacarteContainer>,
162 ) -> Self {
163 Self {
164 management,
165 situation,
166 location,
167 alacarte,
168 }
169 }
170 }
171 #[doc = "* "]
172 #[doc = " * This type contains detailed information about the vehicle in which the originating ITS-S is mounted, for mitigating the consequences "]
173 #[doc = " * of a collision."]
174 #[doc = " *"]
175 #[doc = " * It shall include the following components: "]
176 #[doc = " *"]
177 #[doc = " * @field heightLonCarrLeft: the height of the left longitudinal carrier of the vehicle from base to top."]
178 #[doc = " *"]
179 #[doc = " * @field heightLonCarrRight: the height of the right longitudinal carrier of the vehicle from base to top."]
180 #[doc = " *"]
181 #[doc = " * @field posLonCarrLeft: the position of the left longitudinal carrier of vehicle."]
182 #[doc = " *"]
183 #[doc = " * @field posLonCarrRight: the position of the right longitudinal carrier of vehicle."]
184 #[doc = " *"]
185 #[doc = " * @field positionOfPillars: information about the vertical support of the vehicle in which the originating ITS-S is mounted. It shall be "]
186 #[doc = " * included for passenger vehicles only."]
187 #[doc = " *"]
188 #[doc = " * @field posCentMass: the position of the centre of mass of the vehicle."]
189 #[doc = " *"]
190 #[doc = " * @field wheelBaseVehicle: the wheel base of the vehicle."]
191 #[doc = " *"]
192 #[doc = " * @field turningRadius: the turning radius of the vehicle."]
193 #[doc = " *"]
194 #[doc = " * @field posFrontAx: the position of the front axle of the vehicle."]
195 #[doc = " *"]
196 #[doc = " * @field positionOfOccupants: indicates whether an in-vehicle seat is occupied at the moment of generation of the message."]
197 #[doc = " *"]
198 #[doc = " * @field vehicleMass: the mass of the unloaded vehicle"]
199 #[doc = " *"]
200 #[doc = " * @field requestResponseIndication: indicates whether the originating ITS-S transmitting the impactReduction component is requesting "]
201 #[doc = " * the receiving ITS-S to provide also its impactReduction component."]
202 #[doc = " *"]
203 #[doc = ""]
204 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
205 #[rasn(automatic_tags)]
206 pub struct ImpactReductionContainer {
207 #[rasn(identifier = "heightLonCarrLeft")]
208 pub height_lon_carr_left: HeightLonCarr,
209 #[rasn(identifier = "heightLonCarrRight")]
210 pub height_lon_carr_right: HeightLonCarr,
211 #[rasn(identifier = "posLonCarrLeft")]
212 pub pos_lon_carr_left: PosLonCarr,
213 #[rasn(identifier = "posLonCarrRight")]
214 pub pos_lon_carr_right: PosLonCarr,
215 #[rasn(identifier = "positionOfPillars")]
216 pub position_of_pillars: PositionOfPillars,
217 #[rasn(identifier = "posCentMass")]
218 pub pos_cent_mass: PosCentMass,
219 #[rasn(identifier = "wheelBaseVehicle")]
220 pub wheel_base_vehicle: WheelBaseVehicle,
221 #[rasn(identifier = "turningRadius")]
222 pub turning_radius: TurningRadius,
223 #[rasn(identifier = "posFrontAx")]
224 pub pos_front_ax: PosFrontAx,
225 #[rasn(identifier = "positionOfOccupants")]
226 pub position_of_occupants: PositionOfOccupants,
227 #[rasn(identifier = "vehicleMass")]
228 pub vehicle_mass: VehicleMass,
229 #[rasn(identifier = "requestResponseIndication")]
230 pub request_response_indication: RequestResponseIndication,
231 }
232 impl ImpactReductionContainer {
233 pub fn new(
234 height_lon_carr_left: HeightLonCarr,
235 height_lon_carr_right: HeightLonCarr,
236 pos_lon_carr_left: PosLonCarr,
237 pos_lon_carr_right: PosLonCarr,
238 position_of_pillars: PositionOfPillars,
239 pos_cent_mass: PosCentMass,
240 wheel_base_vehicle: WheelBaseVehicle,
241 turning_radius: TurningRadius,
242 pos_front_ax: PosFrontAx,
243 position_of_occupants: PositionOfOccupants,
244 vehicle_mass: VehicleMass,
245 request_response_indication: RequestResponseIndication,
246 ) -> Self {
247 Self {
248 height_lon_carr_left,
249 height_lon_carr_right,
250 pos_lon_carr_left,
251 pos_lon_carr_right,
252 position_of_pillars,
253 pos_cent_mass,
254 wheel_base_vehicle,
255 turning_radius,
256 pos_front_ax,
257 position_of_occupants,
258 vehicle_mass,
259 request_response_indication,
260 }
261 }
262 }
263 #[doc = " Inner type "]
264 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
265 #[rasn(automatic_tags)]
266 pub struct LocationContainerExtGroupLanePositions {
267 #[rasn(identifier = "lanePositions")]
268 pub lane_positions: Option<GeneralizedLanePositions>,
269 #[rasn(identifier = "occupiedLanes")]
270 pub occupied_lanes: Option<OccupiedLanesWithConfidence>,
271 #[rasn(identifier = "linkedIvims")]
272 pub linked_ivims: Option<IvimReferences>,
273 #[rasn(identifier = "linkedMapems")]
274 pub linked_mapems: Option<MapReferences>,
275 #[rasn(identifier = "detectionZonesToSpecifiedEventPoint")]
276 pub detection_zones_to_specified_event_point: Option<TracesExtended>,
277 #[rasn(identifier = "predictedPaths")]
278 pub predicted_paths: Option<PathPredictedList>,
279 }
280 impl LocationContainerExtGroupLanePositions {
281 pub fn new(
282 lane_positions: Option<GeneralizedLanePositions>,
283 occupied_lanes: Option<OccupiedLanesWithConfidence>,
284 linked_ivims: Option<IvimReferences>,
285 linked_mapems: Option<MapReferences>,
286 detection_zones_to_specified_event_point: Option<TracesExtended>,
287 predicted_paths: Option<PathPredictedList>,
288 ) -> Self {
289 Self {
290 lane_positions,
291 occupied_lanes,
292 linked_ivims,
293 linked_mapems,
294 detection_zones_to_specified_event_point,
295 predicted_paths,
296 }
297 }
298 }
299 #[doc = "* "]
300 #[doc = " * This type represents the Location Container."]
301 #[doc = " *"]
302 #[doc = " * It shall include the following components: "]
303 #[doc = " *"]
304 #[doc = " * @field eventSpeed: optional speed of a detected dynamic event and the confidence of the speed information. "]
305 #[doc = " *"]
306 #[doc = " * @field eventPositionHeading: the optional heading of the event and the confidence of the heading information."]
307 #[doc = " *"]
308 #[doc = " * @field detectionZonesToEventPosition: the detection zone information approaching the event position, see clause 6.1.3.3."]
309 #[doc = " *"]
310 #[doc = " * @field roadType: the optional road type information at the event position. "]
311 #[doc = " *"]
312 #[doc = " * @field lanePositions: the optional lane(s) where the event is located, at the position indicated by the component eventPosition "]
313 #[doc = " * of the Management container and for a given reference direction."]
314 #[doc = " *"]
315 #[doc = " * @field occupiedLanes: the optional lane(s) that are fully or partially occupied by the event, at the position indicated by the "]
316 #[doc = " * component eventPosition of the Management container and for a given reference direction."]
317 #[doc = " *"]
318 #[doc = " * @field linkedIvims: the optional list of DF IvimReference, pointing to IVIMs that are semantically connected because providing information "]
319 #[doc = " * applying to the road segment(s) covered by the components detectionZonesToEventPosition, detectionZonesToSpecifiedEventPoint and "]
320 #[doc = " * the SituationContainer component eventZone."]
321 #[doc = " *"]
322 #[doc = " * @field linkedMapem: the optional list of DF Mapreference, pointing to MAPEMs that are semantically connected because providing information "]
323 #[doc = " * applying to the road segment(s) covered by the component detectionZonesToEventPosition, detectionZonesToSpecifiedEventPoint and "]
324 #[doc = " * the SituationContainer component eventZone."]
325 #[doc = " *"]
326 #[doc = " * @field detectionZonesToSpecifiedEventPoint: the optional detection zone information approaching towards a "]
327 #[doc = " * specified event point, see clause 6.1.3.3. "]
328 #[doc = " *"]
329 #[doc = " * @field predictedPaths: the optional list of future paths or trajectories that the event may move along or zones that the event may occupy. "]
330 #[doc = " *"]
331 #[doc = ""]
332 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
333 #[rasn(automatic_tags)]
334 #[non_exhaustive]
335 pub struct LocationContainer {
336 #[rasn(identifier = "eventSpeed")]
337 pub event_speed: Option<Speed>,
338 #[rasn(identifier = "eventPositionHeading")]
339 pub event_position_heading: Option<Wgs84Angle>,
340 #[rasn(identifier = "detectionZonesToEventPosition")]
341 pub detection_zones_to_event_position: Traces,
342 #[rasn(identifier = "roadType")]
343 pub road_type: Option<RoadType>,
344 #[rasn(extension_addition_group, identifier = "SEQUENCE")]
345 pub ext_group_lane_positions: Option<LocationContainerExtGroupLanePositions>,
346 }
347 impl LocationContainer {
348 pub fn new(
349 event_speed: Option<Speed>,
350 event_position_heading: Option<Wgs84Angle>,
351 detection_zones_to_event_position: Traces,
352 road_type: Option<RoadType>,
353 ext_group_lane_positions: Option<LocationContainerExtGroupLanePositions>,
354 ) -> Self {
355 Self {
356 event_speed,
357 event_position_heading,
358 detection_zones_to_event_position,
359 road_type,
360 ext_group_lane_positions,
361 }
362 }
363 }
364 #[doc = "* "]
365 #[doc = " * This type represents the Management Container."]
366 #[doc = " *"]
367 #[doc = " * It shall include the following components: "]
368 #[doc = " *"]
369 #[doc = " * @field actionId: the identifier of the DENM."]
370 #[doc = " *"]
371 #[doc = " * @field detectionTime: the time at which the event is detected."]
372 #[doc = " *"]
373 #[doc = " * @field referenceTime: the time at which a new DENM, an update DENM or a cancellation DENM is generated"]
374 #[doc = " *"]
375 #[doc = " * @field termination: the optional termination type of the DENM."]
376 #[doc = " *"]
377 #[doc = " * @field eventPosition: the geographical position used in the definition of the awareness area / relevance zone, see clause 6.1.3."]
378 #[doc = " *"]
379 #[doc = " * @field awarenessDistance: the optional radius of the circular awareness area, with centre at the event position or at any of the "]
380 #[doc = " * event history points as defined in clause 6.1.3.1."]
381 #[doc = " *"]
382 #[doc = " * @field trafficDirection: the optional traffic direction along which the receiving ITS-S may encounter the event, "]
383 #[doc = " * as defined in clause 6.1.3."]
384 #[doc = " *"]
385 #[doc = " * @field validityDuration: the validity duration of a DENM. This component represents a time offset in the unit of second since detectionTime."]
386 #[doc = " *"]
387 #[doc = " * @field transmissionInterval: the optional time interval for DENM transmission as defined by the originating ITS-S. "]
388 #[doc = " * If the component is not present in DENM, a default value defaultValidity is assumed."]
389 #[doc = " *"]
390 #[doc = " * @field stationType: the station type information of the originating ITS-S."]
391 #[doc = " *"]
392 #[doc = ""]
393 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
394 #[rasn(automatic_tags)]
395 #[non_exhaustive]
396 pub struct ManagementContainer {
397 #[rasn(identifier = "actionId")]
398 pub action_id: ActionId,
399 #[rasn(identifier = "detectionTime")]
400 pub detection_time: TimestampIts,
401 #[rasn(identifier = "referenceTime")]
402 pub reference_time: TimestampIts,
403 pub termination: Option<Termination>,
404 #[rasn(identifier = "eventPosition")]
405 pub event_position: ReferencePosition,
406 #[rasn(identifier = "awarenessDistance")]
407 pub awareness_distance: Option<StandardLength3b>,
408 #[rasn(identifier = "trafficDirection")]
409 pub traffic_direction: Option<TrafficDirection>,
410 #[rasn(
411 default = "management_container_validity_duration_default",
412 identifier = "validityDuration"
413 )]
414 pub validity_duration: DeltaTimeSecond,
415 #[rasn(identifier = "transmissionInterval")]
416 pub transmission_interval: Option<DeltaTimeMilliSecondPositive>,
417 #[rasn(identifier = "stationType")]
418 pub station_type: StationType,
419 }
420 impl ManagementContainer {
421 pub fn new(
422 action_id: ActionId,
423 detection_time: TimestampIts,
424 reference_time: TimestampIts,
425 termination: Option<Termination>,
426 event_position: ReferencePosition,
427 awareness_distance: Option<StandardLength3b>,
428 traffic_direction: Option<TrafficDirection>,
429 validity_duration: DeltaTimeSecond,
430 transmission_interval: Option<DeltaTimeMilliSecondPositive>,
431 station_type: StationType,
432 ) -> Self {
433 Self {
434 action_id,
435 detection_time,
436 reference_time,
437 termination,
438 event_position,
439 awareness_distance,
440 traffic_direction,
441 validity_duration,
442 transmission_interval,
443 station_type,
444 }
445 }
446 }
447 fn management_container_validity_duration_default() -> DeltaTimeSecond {
448 DeltaTimeSecond(600)
449 }
450 #[doc = "*"]
451 #[doc = " * This DE indicates whether a vehicle has perceived an event (e.g. a stationary vehicle using camera sensors) or whether it is itself the cause of the event."]
452 #[doc = " * the value shall be set to:"]
453 #[doc = " * - True - in case the vehicle has perceived the event"]
454 #[doc = " * - False - in case the vehicle itself is the cause of the event (e.g. vehicle is stationary) or part of the cause (e.g. traffic jam) or is directly exposed to the environmental condition (e.g. adverse weather)"]
455 #[doc = ""]
456 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
457 #[rasn(delegate)]
458 pub struct PerceivedEvent(pub bool);
459 #[doc = "* "]
460 #[doc = " * This type contains detailed information about an object with which a vehicle and/or the traffic is likely to collide."]
461 #[doc = " *"]
462 #[doc = " * It shall include the following components: "]
463 #[doc = " *"]
464 #[doc = " * @field perceivedPreCrashObject: information about a perceived object in the East, North, Up reference frame."]
465 #[doc = " *"]
466 #[doc = " * @field objectStationId: the optional station Id of the object for which the information is provided."]
467 #[doc = " *"]
468 #[doc = " * @field timeToCollision: the optional estimated time to collision of a vehicle with the object. "]
469 #[doc = " *"]
470 #[doc = " * @field impactSection: indication of the object's section where the impact will most likely occur. "]
471 #[doc = " * When the target object is likely to be a vehicle, then this component should be present, otherwise it should not be provided. "]
472 #[doc = " *"]
473 #[doc = " * @field estimatedBrakingDistance: the optional estimated distance in which the vehicle would need to come to a complete hold, "]
474 #[doc = " * if no obstruction was in the way. "]
475 #[doc = ""]
476 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
477 #[rasn(automatic_tags)]
478 #[non_exhaustive]
479 pub struct PreCrashContainer {
480 #[rasn(identifier = "perceivedPreCrashObject")]
481 pub perceived_pre_crash_object: PerceivedObject,
482 #[rasn(identifier = "objectStationId")]
483 pub object_station_id: Option<StationId>,
484 #[rasn(identifier = "timeToCollision")]
485 pub time_to_collision: Option<DeltaTimeMilliSecondPositive>,
486 #[rasn(identifier = "impactSection")]
487 pub impact_section: Option<ObjectFace>,
488 #[rasn(identifier = "estimatedBrakingDistance")]
489 pub estimated_braking_distance: Option<StandardLength12b>,
490 }
491 impl PreCrashContainer {
492 pub fn new(
493 perceived_pre_crash_object: PerceivedObject,
494 object_station_id: Option<StationId>,
495 time_to_collision: Option<DeltaTimeMilliSecondPositive>,
496 impact_section: Option<ObjectFace>,
497 estimated_braking_distance: Option<StandardLength12b>,
498 ) -> Self {
499 Self {
500 perceived_pre_crash_object,
501 object_station_id,
502 time_to_collision,
503 impact_section,
504 estimated_braking_distance,
505 }
506 }
507 }
508 #[doc = "* "]
509 #[doc = " * This type contains detailed information about the configuration of road section(s) that are geographically related to the event."]
510 #[doc = " *"]
511 #[doc = " * It shall include the following components: "]
512 #[doc = " *"]
513 #[doc = " * @field roadConfigurationConfidence: information about the source of the road configuration and the confidence in the information."]
514 #[doc = " *"]
515 #[doc = " * @field roadConfigurationSectionList: a list of road configuration information per applicable road section. "]
516 #[doc = "*"]
517 #[doc = ""]
518 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
519 #[rasn(automatic_tags)]
520 #[non_exhaustive]
521 pub struct RoadConfigurationContainer {
522 #[rasn(identifier = "roadConfigurationConfidence")]
523 pub road_configuration_confidence: MetaInformation,
524 #[rasn(identifier = "roadConfigurationSectionList")]
525 pub road_configuration_section_list: RoadConfigurationSectionList,
526 }
527 impl RoadConfigurationContainer {
528 pub fn new(
529 road_configuration_confidence: MetaInformation,
530 road_configuration_section_list: RoadConfigurationSectionList,
531 ) -> Self {
532 Self {
533 road_configuration_confidence,
534 road_configuration_section_list,
535 }
536 }
537 }
538 #[doc = "* "]
539 #[doc = " * This type contains detailed information of a roadwork zone and specific access conditions."]
540 #[doc = " *"]
541 #[doc = " * It shall include the following components: "]
542 #[doc = " *"]
543 #[doc = " * @field lightBarSirenInUse: optionally indicates whether a roadwork vehicle has switched on the light bar or siren. "]
544 #[doc = " * It is used when the roadwork involves a specific roadwork vehicle"]
545 #[doc = " *"]
546 #[doc = " * @field closedLanes: optionally indicates whether the roadwork has caused the closure of one or several driving lanes. "]
547 #[doc = " * Optionally, it may indicate whether a hard shoulder lane is closed to traffic or can be used for specific usage (e.g. for stopping)."]
548 #[doc = " *"]
549 #[doc = " * @field restriction: the optional type(s) of vehicles that are restricted to access the road work zone. "]
550 #[doc = " * More than one vehicle types may be provided by this component if the restriction apply to multiple vehicle types. "]
551 #[doc = " *"]
552 #[doc = " * @field speedLimit: the optional speed limitation applied to the roadwork zone."]
553 #[doc = " *"]
554 #[doc = " * @field incidentIndication: the optional incident related to the roadworks to provide additional information of the roadworks zone."]
555 #[doc = " *"]
556 #[doc = " * @field recommendedPath: the optional recommended itinerary in order to contour the roadworks zone. If present, a recommended path "]
557 #[doc = " * shall be a list of path points in the order from the starting point closest to the roadworks zone to the end point of the recommended path. "]
558 #[doc = " *"]
559 #[doc = " * @field startingPointSpeedLimit: the optional effective starting position of a speed limit being applied to the roadwork zone, "]
560 #[doc = " * with respect to the component eventPosition on the Management Container."]
561 #[doc = " * This component shall be present if the speed limit is applied at a certain distance prior to the roadwork zone starting position."]
562 #[doc = " *"]
563 #[doc = " * @field trafficFlowRule: optionally indicates the side of the road to which the traffic should flow around a roadwork."]
564 #[doc = " *"]
565 #[doc = " * @field referenceDenms: an optional sequence of actionIds for different DENMs that describe the same event. "]
566 #[doc = " * If it is available, it indicates the actionIds of all other DENMs describing this event."]
567 #[doc = " *"]
568 #[doc = ""]
569 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
570 #[rasn(automatic_tags)]
571 pub struct RoadWorksContainerExtended {
572 #[rasn(identifier = "lightBarSirenInUse")]
573 pub light_bar_siren_in_use: Option<LightBarSirenInUse>,
574 #[rasn(identifier = "closedLanes")]
575 pub closed_lanes: Option<ClosedLanes>,
576 pub restriction: Option<RestrictedTypes>,
577 #[rasn(identifier = "speedLimit")]
578 pub speed_limit: Option<SpeedLimit>,
579 #[rasn(identifier = "incidentIndication")]
580 pub incident_indication: Option<CauseCodeV2>,
581 #[rasn(identifier = "recommendedPath")]
582 pub recommended_path: Option<ItineraryPath>,
583 #[rasn(identifier = "startingPointSpeedLimit")]
584 pub starting_point_speed_limit: Option<DeltaReferencePosition>,
585 #[rasn(identifier = "trafficFlowRule")]
586 pub traffic_flow_rule: Option<TrafficRule>,
587 #[rasn(identifier = "referenceDenms")]
588 pub reference_denms: Option<ActionIdList>,
589 }
590 impl RoadWorksContainerExtended {
591 pub fn new(
592 light_bar_siren_in_use: Option<LightBarSirenInUse>,
593 closed_lanes: Option<ClosedLanes>,
594 restriction: Option<RestrictedTypes>,
595 speed_limit: Option<SpeedLimit>,
596 incident_indication: Option<CauseCodeV2>,
597 recommended_path: Option<ItineraryPath>,
598 starting_point_speed_limit: Option<DeltaReferencePosition>,
599 traffic_flow_rule: Option<TrafficRule>,
600 reference_denms: Option<ActionIdList>,
601 ) -> Self {
602 Self {
603 light_bar_siren_in_use,
604 closed_lanes,
605 restriction,
606 speed_limit,
607 incident_indication,
608 recommended_path,
609 starting_point_speed_limit,
610 traffic_flow_rule,
611 reference_denms,
612 }
613 }
614 }
615 #[doc = " Inner type "]
616 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
617 #[rasn(automatic_tags)]
618 pub struct SituationContainerExtGroupLinkedDenms {
619 #[rasn(identifier = "linkedDenms")]
620 pub linked_denms: Option<ActionIdList>,
621 #[rasn(identifier = "eventEnd")]
622 pub event_end: Option<Position1d>,
623 }
624 impl SituationContainerExtGroupLinkedDenms {
625 pub fn new(linked_denms: Option<ActionIdList>, event_end: Option<Position1d>) -> Self {
626 Self {
627 linked_denms,
628 event_end,
629 }
630 }
631 }
632 #[doc = " Inner type "]
633 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
634 #[rasn(automatic_tags)]
635 pub struct SituationContainerExtGroupEventEndFactor {
636 #[rasn(identifier = "eventEndFactor")]
637 pub event_end_factor: Option<MultiplicativeFactor>,
638 #[rasn(identifier = "perceivedEvent")]
639 pub perceived_event: Option<PerceivedEvent>,
640 }
641 impl SituationContainerExtGroupEventEndFactor {
642 pub fn new(
643 event_end_factor: Option<MultiplicativeFactor>,
644 perceived_event: Option<PerceivedEvent>,
645 ) -> Self {
646 Self {
647 event_end_factor,
648 perceived_event,
649 }
650 }
651 }
652 #[doc = "* "]
653 #[doc = " * This type represents the situation container."]
654 #[doc = " *"]
655 #[doc = " * It shall include the following components: "]
656 #[doc = " *"]
657 #[doc = " * @field informationQuality: the quality level of the information provided by the ITS-S application of the originating ITS-S. "]
658 #[doc = " * It indicates the probability of the detected event being truly existent at the event position."]
659 #[doc = " *"]
660 #[doc = " * @field eventType: the event type, including direct cause and sub cause."]
661 #[doc = " *"]
662 #[doc = " * @field linkedCause: the optional type of a linked event co-existing at the same time and the same place (same event zone), "]
663 #[doc = " * including direct cause and sub cause of the linked event, for which no other DENM is sent out."]
664 #[doc = " *"]
665 #[doc = " * @field eventZone: an optional list of EventPoint, using the position indicated in the component eventPosition of the Management container "]
666 #[doc = " * as the reference position for the first EventPoint."]
667 #[doc = " *"]
668 #[doc = " * @field linkedDenms: the optional list of DF ActionId, pointing to DENMs that are semantically connected because applying to consecutive "]
669 #[doc = " * event zones at the same time."]
670 #[doc = " *"]
671 #[doc = " * @field eventEnd: the end position of the event along the road that is affected by the event w.r.t. the component eventPosition of the "]
672 #[doc = " * Management container. This end position is represented by the length of the event along the road. "]
673 #[doc = " *"]
674 #[doc = " * @field eventEndFactor: an optional component that applies to the component eventEnd. It is a factor to be multiplied with the value given in eventEnd."]
675 #[doc = " *"]
676 #[doc = " * @field perceivedEvent: an optional component that, in case of vehicle ITS-S, indicates the nature of the information about the event."]
677 #[doc = " *"]
678 #[doc = ""]
679 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
680 #[rasn(automatic_tags)]
681 #[non_exhaustive]
682 pub struct SituationContainer {
683 #[rasn(identifier = "informationQuality")]
684 pub information_quality: InformationQuality,
685 #[rasn(identifier = "eventType")]
686 pub event_type: CauseCodeV2,
687 #[rasn(identifier = "linkedCause")]
688 pub linked_cause: Option<CauseCodeV2>,
689 #[rasn(identifier = "eventZone")]
690 pub event_zone: Option<EventZone>,
691 #[rasn(extension_addition_group, identifier = "SEQUENCE")]
692 pub ext_group_linked_denms: Option<SituationContainerExtGroupLinkedDenms>,
693 #[rasn(extension_addition_group, identifier = "SEQUENCE")]
694 pub ext_group_event_end_factor: Option<SituationContainerExtGroupEventEndFactor>,
695 }
696 impl SituationContainer {
697 pub fn new(
698 information_quality: InformationQuality,
699 event_type: CauseCodeV2,
700 linked_cause: Option<CauseCodeV2>,
701 event_zone: Option<EventZone>,
702 ext_group_linked_denms: Option<SituationContainerExtGroupLinkedDenms>,
703 ext_group_event_end_factor: Option<SituationContainerExtGroupEventEndFactor>,
704 ) -> Self {
705 Self {
706 information_quality,
707 event_type,
708 linked_cause,
709 event_zone,
710 ext_group_linked_denms,
711 ext_group_event_end_factor,
712 }
713 }
714 }
715 #[doc = "* "]
716 #[doc = " * This type contains detailed information about a stationary vehicle."]
717 #[doc = " *"]
718 #[doc = " * It shall include the following components: "]
719 #[doc = " *"]
720 #[doc = " * @field stationarySince: the optional time duration of the stationary vehicle being stationary."]
721 #[doc = " *"]
722 #[doc = " * @field stationaryCause: optional additional information to describe causes of the stationary vehicle event such as human problem."]
723 #[doc = " *"]
724 #[doc = " * @field carryingDangerousGoods: optional information on the type of dangerous goods, the required emergency action and other information."]
725 #[doc = " *"]
726 #[doc = " * @field numberOfOccupants: the optional estimated number of occupants involved in the stationary vehicle event."]
727 #[doc = " *"]
728 #[doc = " * @field vehicleIdentification: the optional identification of the stationary vehicle."]
729 #[doc = " *"]
730 #[doc = " * @field energyStorageType: the optional vehicle energy storage type information of the stationary vehicle, such as electric, diesel, etc."]
731 #[doc = " *"]
732 #[doc = ""]
733 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
734 #[rasn(automatic_tags)]
735 pub struct StationaryVehicleContainer {
736 #[rasn(identifier = "stationarySince")]
737 pub stationary_since: Option<StationarySince>,
738 #[rasn(identifier = "stationaryCause")]
739 pub stationary_cause: Option<CauseCodeV2>,
740 #[rasn(identifier = "carryingDangerousGoods")]
741 pub carrying_dangerous_goods: Option<DangerousGoodsExtended>,
742 #[rasn(identifier = "numberOfOccupants")]
743 pub number_of_occupants: Option<NumberOfOccupants>,
744 #[rasn(identifier = "vehicleIdentification")]
745 pub vehicle_identification: Option<VehicleIdentification>,
746 #[rasn(identifier = "energyStorageType")]
747 pub energy_storage_type: Option<EnergyStorageType>,
748 }
749 impl StationaryVehicleContainer {
750 pub fn new(
751 stationary_since: Option<StationarySince>,
752 stationary_cause: Option<CauseCodeV2>,
753 carrying_dangerous_goods: Option<DangerousGoodsExtended>,
754 number_of_occupants: Option<NumberOfOccupants>,
755 vehicle_identification: Option<VehicleIdentification>,
756 energy_storage_type: Option<EnergyStorageType>,
757 ) -> Self {
758 Self {
759 stationary_since,
760 stationary_cause,
761 carrying_dangerous_goods,
762 number_of_occupants,
763 vehicle_identification,
764 energy_storage_type,
765 }
766 }
767 }
768 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
769 #[rasn(enumerated)]
770 pub enum Termination {
771 isCancellation = 0,
772 isNegation = 1,
773 }
774 #[doc = "* "]
775 #[doc = " * This type specifies the default value for DENM validity duration used for DENM protocol operation."]
776 #[doc = ""]
777 pub static DEFAULT_VALIDITY: LazyLock<Integer> = LazyLock::new(|| Integer::from(600i128));
778}
779#[allow(
780 non_camel_case_types,
781 non_snake_case,
782 non_upper_case_globals,
783 unused,
784 clippy::too_many_arguments,
785 clippy::doc_overindented_list_items
786)]
787pub mod etsi_its_cdd {
788 extern crate alloc;
789 use core::borrow::Borrow;
790 use rasn::prelude::*;
791 use std::sync::LazyLock;
792 #[doc = ""]
793 #[doc = ""]
794 #[doc = ""]
795 #[doc = ""]
796 #[doc = ""]
797 #[doc = ""]
798 #[doc = ""]
799 #[doc = ""]
800 #[doc = ""]
801 #[doc = ""]
802 #[doc = " Specification of CDD Data Frames:"]
803 #[doc = ""]
804 #[doc = ""]
805 #[doc = ""]
806 #[doc = ""]
807 #[doc = ""]
808 #[doc = ""]
809 #[doc = ""]
810 #[doc = ""]
811 #[doc = ""]
812 #[doc = ""]
813 #[doc = "*"]
814 #[doc = " * This DF represents an acceleration vector with associated confidence value."]
815 #[doc = " *"]
816 #[doc = " * It shall include the following components: "]
817 #[doc = " * "]
818 #[doc = " * @field polarAcceleration: the representation of the acceleration vector in a polar or cylindrical coordinate system. "]
819 #[doc = " * "]
820 #[doc = " * @field cartesianAcceleration: the representation of the acceleration vector in a cartesian coordinate system."]
821 #[doc = " * "]
822 #[doc = " * @category: Kinematic information"]
823 #[doc = " * @revision: Created in V2.1.1"]
824 #[doc = " "]
825 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
826 #[rasn(choice, automatic_tags)]
827 pub enum Acceleration3dWithConfidence {
828 polarAcceleration(AccelerationPolarWithZ),
829 cartesianAcceleration(AccelerationCartesian),
830 }
831 #[doc = "*"]
832 #[doc = " * This DF represents a acceleration vector in a cartesian coordinate system."]
833 #[doc = " "]
834 #[doc = " * It shall include the following components: "]
835 #[doc = " * "]
836 #[doc = " * @field xAcceleration: the x component of the acceleration vector with the associated confidence value."]
837 #[doc = " * "]
838 #[doc = " * @field yAcceleration: the y component of the acceleration vector with the associated confidence value."]
839 #[doc = " *"]
840 #[doc = " * @field zAcceleration: the optional z component of the acceleration vector with the associated confidence value."]
841 #[doc = " * "]
842 #[doc = " * @category: Kinematic information"]
843 #[doc = " * @revision: Created in V2.1.1"]
844 #[doc = " "]
845 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
846 #[rasn(automatic_tags)]
847 pub struct AccelerationCartesian {
848 #[rasn(identifier = "xAcceleration")]
849 pub x_acceleration: AccelerationComponent,
850 #[rasn(identifier = "yAcceleration")]
851 pub y_acceleration: AccelerationComponent,
852 #[rasn(identifier = "zAcceleration")]
853 pub z_acceleration: Option<AccelerationComponent>,
854 }
855 impl AccelerationCartesian {
856 pub fn new(
857 x_acceleration: AccelerationComponent,
858 y_acceleration: AccelerationComponent,
859 z_acceleration: Option<AccelerationComponent>,
860 ) -> Self {
861 Self {
862 x_acceleration,
863 y_acceleration,
864 z_acceleration,
865 }
866 }
867 }
868 #[doc = ""]
869 #[doc = ""]
870 #[doc = ""]
871 #[doc = ""]
872 #[doc = ""]
873 #[doc = ""]
874 #[doc = ""]
875 #[doc = ""]
876 #[doc = ""]
877 #[doc = ""]
878 #[doc = ""]
879 #[doc = " Specification of CDD Data Elements: "]
880 #[doc = ""]
881 #[doc = ""]
882 #[doc = ""]
883 #[doc = ""]
884 #[doc = ""]
885 #[doc = ""]
886 #[doc = ""]
887 #[doc = ""]
888 #[doc = ""]
889 #[doc = ""]
890 #[doc = ""]
891 #[doc = "* "]
892 #[doc = " * This DE indicates a change of acceleration."]
893 #[doc = " *"]
894 #[doc = " * The value shall be set to:"]
895 #[doc = " * - 0 - `accelerate` - if the magnitude of the horizontal velocity vector increases."]
896 #[doc = " * - 1 - `decelerate` - if the magnitude of the horizontal velocity vector decreases."]
897 #[doc = " *"]
898 #[doc = " * @category: Kinematic information"]
899 #[doc = " * @revision: Created in V2.1.1"]
900 #[doc = ""]
901 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
902 #[rasn(enumerated)]
903 pub enum AccelerationChange {
904 accelerate = 0,
905 decelerate = 1,
906 }
907 #[doc = "* "]
908 #[doc = " * This DF represents information associated to changes in acceleration. "]
909 #[doc = " *"]
910 #[doc = " * It shall include the following components: "]
911 #[doc = " *"]
912 #[doc = " * @field accelOrDecel: the indication of an acceleration change."]
913 #[doc = " *"]
914 #[doc = " * @field actionDeltaTime: the period over which the acceleration change action is performed."]
915 #[doc = " *"]
916 #[doc = " * @category: Kinematic Information"]
917 #[doc = " * @revision: Created in V2.1.1"]
918 #[doc = " "]
919 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
920 #[rasn(automatic_tags)]
921 #[non_exhaustive]
922 pub struct AccelerationChangeIndication {
923 #[rasn(identifier = "accelOrDecel")]
924 pub accel_or_decel: AccelerationChange,
925 #[rasn(identifier = "actionDeltaTime")]
926 pub action_delta_time: DeltaTimeTenthOfSecond,
927 }
928 impl AccelerationChangeIndication {
929 pub fn new(
930 accel_or_decel: AccelerationChange,
931 action_delta_time: DeltaTimeTenthOfSecond,
932 ) -> Self {
933 Self {
934 accel_or_decel,
935 action_delta_time,
936 }
937 }
938 }
939 #[doc = "* "]
940 #[doc = " * This DF represents an acceleration component along with a confidence value."]
941 #[doc = " *"]
942 #[doc = " * It shall include the following components: "]
943 #[doc = " *"]
944 #[doc = " * @field value: the value of the acceleration component which can be estimated as the mean of the current distribution."]
945 #[doc = " *"]
946 #[doc = " * @field confidence: the confidence value associated to the provided value."]
947 #[doc = " *"]
948 #[doc = " * @category: Kinematic Information"]
949 #[doc = " * @revision: Created in V2.1.1"]
950 #[doc = " "]
951 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
952 #[rasn(automatic_tags)]
953 pub struct AccelerationComponent {
954 pub value: AccelerationValue,
955 pub confidence: AccelerationConfidence,
956 }
957 impl AccelerationComponent {
958 pub fn new(value: AccelerationValue, confidence: AccelerationConfidence) -> Self {
959 Self { value, confidence }
960 }
961 }
962 #[doc = "*"]
963 #[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 %. "]
964 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
965 #[doc = " *"]
966 #[doc = " * The value shall be set to:"]
967 #[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,"]
968 #[doc = " * - `101` if the confidence value is out of range i.e. greater than 10 m/s^2,"]
969 #[doc = " * - `102` if the confidence value is unavailable."]
970 #[doc = " *"]
971 #[doc = " * The value 0 shall not be used."]
972 #[doc = " *"]
973 #[doc = " * @note: The fact that an acceleration value is received with confidence value set to `unavailable(102)` can be caused by several reasons, such as:"]
974 #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
975 #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
976 #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
977 #[doc = " * In all 3 cases above, the acceleration value may be valid and used by the application."]
978 #[doc = " * "]
979 #[doc = " * @note: If an acceleration value is received and its confidence value is set to `outOfRange(101)`, it means that the value is not valid and therefore cannot be trusted. Such value is not useful for the application."]
980 #[doc = " *"]
981 #[doc = " * @unit 0,1 m/s^2"]
982 #[doc = " * @category: Kinematic information"]
983 #[doc = " * @revision: Description revised in V2.1.1"]
984 #[doc = " "]
985 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
986 #[rasn(delegate, value("0..=102"))]
987 pub struct AccelerationConfidence(pub u8);
988 #[doc = "*"]
989 #[doc = " * This DE indicates the status of the controlling mechanisms for longitudinal movement of the vehicle."]
990 #[doc = " * The data may be provided via the in-vehicle network. It indicates whether a specific in-vehicle"]
991 #[doc = " * acceleration control system is engaged or not. "]
992 #[doc = " *"]
993 #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
994 #[doc = " * - 0 - `brakePedalEngaged` - Driver is stepping on the brake pedal,"]
995 #[doc = " * - 1 - `gasPedalEngaged` - Driver is stepping on the gas pedal,"]
996 #[doc = " * - 2 - `emergencyBrakeEngaged` - emergency brake system is engaged,"]
997 #[doc = " * - 3 - `collisionWarningEngaged`- collision warning system is engaged,"]
998 #[doc = " * - 4 - `accEngaged` - ACC is engaged,"]
999 #[doc = " * - 5 - `cruiseControlEngaged` - cruise control is engaged,"]
1000 #[doc = " * - 6 - `speedLimiterEngaged` - speed limiter is engaged."]
1001 #[doc = " *"]
1002 #[doc = " * Otherwise (for example when the corresponding system is not available due to non equipped system"]
1003 #[doc = " * or information is unavailable), the corresponding bit shall be set to 0."]
1004 #[doc = " *"]
1005 #[doc = " * @note: The system engagement condition is OEM specific and therefore out of scope of the present document."]
1006 #[doc = " * @category: Vehicle information"]
1007 #[doc = " * @revision: V1.3.1, description revised in V2.3.1"]
1008 #[doc = " "]
1009 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1010 #[rasn(delegate)]
1011 pub struct AccelerationControl(pub FixedBitString<7usize>);
1012 #[doc = "*"]
1013 #[doc = " * This DE represents the extension of DE AccelerationControl and should only be used together with DE AccelerationControl."]
1014 #[doc = " *"]
1015 #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
1016 #[doc = " * - 0 - `rearCrossTrafficAlertEngaged` - rear cross traffic alert system is engaged"]
1017 #[doc = " * - 1 - `emergencyBrakeRearEngaged` - emergency brake system for rear driving is engaged"]
1018 #[doc = " * - 2 - `assistedParkingLongitudinalEngaged` - assisted parking system (longitudinal control) is engaged"]
1019 #[doc = " *"]
1020 #[doc = " * Otherwise (for example when the corresponding system is not available due to non-equipped system "]
1021 #[doc = " * or information is unavailable), the corresponding bit shall be set to 0. "]
1022 #[doc = " *"]
1023 #[doc = " * @category: Vehicle information"]
1024 #[doc = " * @revision: Created in V2.3.1"]
1025 #[doc = " "]
1026 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1027 #[rasn(delegate, size("3", extensible))]
1028 pub struct AccelerationControlExtension(pub BitString);
1029 #[doc = "*"]
1030 #[doc = " * This DF represents the magnitude of the acceleration vector and associated confidence value."]
1031 #[doc = " *"]
1032 #[doc = " * It shall include the following components: "]
1033 #[doc = " * "]
1034 #[doc = " * @field accelerationMagnitudeValue: the magnitude of the acceleration vector."]
1035 #[doc = " * "]
1036 #[doc = " * @field accelerationConfidence: the confidence value of the magnitude value."]
1037 #[doc = " *"]
1038 #[doc = " * @category: Kinematic information"]
1039 #[doc = " * @revision: Created in V2.1.1"]
1040 #[doc = " "]
1041 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1042 #[rasn(automatic_tags)]
1043 pub struct AccelerationMagnitude {
1044 #[rasn(identifier = "accelerationMagnitudeValue")]
1045 pub acceleration_magnitude_value: AccelerationMagnitudeValue,
1046 #[rasn(identifier = "accelerationConfidence")]
1047 pub acceleration_confidence: AccelerationConfidence,
1048 }
1049 impl AccelerationMagnitude {
1050 pub fn new(
1051 acceleration_magnitude_value: AccelerationMagnitudeValue,
1052 acceleration_confidence: AccelerationConfidence,
1053 ) -> Self {
1054 Self {
1055 acceleration_magnitude_value,
1056 acceleration_confidence,
1057 }
1058 }
1059 }
1060 #[doc = "* "]
1061 #[doc = " * This DE represents the magnitude of the acceleration vector in a defined coordinate system."]
1062 #[doc = " *"]
1063 #[doc = " * The value shall be set to:"]
1064 #[doc = " * - `0` to indicate no acceleration,"]
1065 #[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,"]
1066 #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
1067 #[doc = " * - `161` when the data is unavailable."]
1068 #[doc = " *"]
1069 #[doc = " * @unit 0,1 m/s^2"]
1070 #[doc = " * @category: Kinematic information"]
1071 #[doc = " * @revision: Created in V2.1.1"]
1072 #[doc = ""]
1073 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1074 #[rasn(delegate, value("0..=161"))]
1075 pub struct AccelerationMagnitudeValue(pub u8);
1076 #[doc = "*"]
1077 #[doc = " * This DF represents an acceleration vector in a polar or cylindrical coordinate system."]
1078 #[doc = " "]
1079 #[doc = " * It shall include the following components: "]
1080 #[doc = " * "]
1081 #[doc = " * @field accelerationMagnitude: magnitude of the acceleration vector projected onto the reference plane, with the associated confidence value."]
1082 #[doc = " * "]
1083 #[doc = " * @field accelerationDirection: polar angle of the acceleration vector projected onto the reference plane, with the associated confidence value."]
1084 #[doc = " *"]
1085 #[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."]
1086 #[doc = " * "]
1087 #[doc = " * @category: Kinematic information"]
1088 #[doc = " * @revision: Created in V2.1.1"]
1089 #[doc = " "]
1090 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1091 #[rasn(automatic_tags)]
1092 pub struct AccelerationPolarWithZ {
1093 #[rasn(identifier = "accelerationMagnitude")]
1094 pub acceleration_magnitude: AccelerationMagnitude,
1095 #[rasn(identifier = "accelerationDirection")]
1096 pub acceleration_direction: CartesianAngle,
1097 #[rasn(identifier = "zAcceleration")]
1098 pub z_acceleration: Option<AccelerationComponent>,
1099 }
1100 impl AccelerationPolarWithZ {
1101 pub fn new(
1102 acceleration_magnitude: AccelerationMagnitude,
1103 acceleration_direction: CartesianAngle,
1104 z_acceleration: Option<AccelerationComponent>,
1105 ) -> Self {
1106 Self {
1107 acceleration_magnitude,
1108 acceleration_direction,
1109 z_acceleration,
1110 }
1111 }
1112 }
1113 #[doc = "* "]
1114 #[doc = " * This DE represents the value of an acceleration component in a defined coordinate system."]
1115 #[doc = " *"]
1116 #[doc = " * The value shall be set to:"]
1117 #[doc = " * - `-160` for acceleration values equal to or less than -16 m/s^2,"]
1118 #[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,"]
1119 #[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,"]
1120 #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
1121 #[doc = " * - `161` when the data is unavailable."]
1122 #[doc = " *"]
1123 #[doc = " * @note: the formula for values > -160 and <160 results in rounding up to the next value. Zero acceleration is indicated using n=0."]
1124 #[doc = " * @unit 0,1 m/s^2"]
1125 #[doc = " * @category: Kinematic information"]
1126 #[doc = " * @revision: Created in V2.1.1"]
1127 #[doc = ""]
1128 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1129 #[rasn(delegate, value("-160..=161"))]
1130 pub struct AccelerationValue(pub i16);
1131 #[doc = "*"]
1132 #[doc = " * This DE indicates an access technology."]
1133 #[doc = " *"]
1134 #[doc = " * The value shall be set to:"]
1135 #[doc = " * - `0`: in case of any access technology class,"]
1136 #[doc = " * - `1`: in case of ITS-G5 access technology class,"]
1137 #[doc = " * - `2`: in case of LTE-V2X access technology class,"]
1138 #[doc = " * - `3`: in case of NR-V2X access technology class."]
1139 #[doc = " * "]
1140 #[doc = " * @category: Communication information"]
1141 #[doc = " * @revision: Created in V2.1.1"]
1142 #[doc = " "]
1143 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1144 #[rasn(enumerated)]
1145 #[non_exhaustive]
1146 pub enum AccessTechnologyClass {
1147 any = 0,
1148 itsg5Class = 1,
1149 ltev2xClass = 2,
1150 nrv2xClass = 3,
1151 }
1152 #[doc = "*"]
1153 #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `accident`."]
1154 #[doc = " *"]
1155 #[doc = " * The value shall be set to:"]
1156 #[doc = " * - 0 - `unavailable` - in case the information on the sub cause of the accident is unavailable,"]
1157 #[doc = " * - 1 - `multiVehicleAccident` - in case more than two vehicles are involved in accident,"]
1158 #[doc = " * - 2 - `heavyAccident` - in case the airbag of the vehicle involved in the accident is triggered, "]
1159 #[doc = " * the accident requires important rescue and/or recovery work,"]
1160 #[doc = " * - 3 - `accidentInvolvingLorry` - in case the accident involves a lorry,"]
1161 #[doc = " * - 4 - `accidentInvolvingBus` - in case the accident involves a bus,"]
1162 #[doc = " * - 5 - `accidentInvolvingHazardousMaterials`- in case the accident involves hazardous material,"]
1163 #[doc = " * - 6 - `accidentOnOppositeLane-deprecated` - deprecated,"]
1164 #[doc = " * - 7 - `unsecuredAccident` - in case the accident is not secured,"]
1165 #[doc = " * - 8 - `assistanceRequested` - in case rescue and assistance are requested,"]
1166 #[doc = " * - 9-255 - reserved for future usage. "]
1167 #[doc = " *"]
1168 #[doc = " * @category: Traffic information"]
1169 #[doc = " * @revision: V1.3.1, value 6 deprecated in V2.4.1"]
1170 #[doc = " "]
1171 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1172 #[rasn(delegate, value("0..=255"))]
1173 pub struct AccidentSubCauseCode(pub u8);
1174 #[doc = "*"]
1175 #[doc = " * This DF represents an identifier used to describe a protocol action taken by an ITS-S."]
1176 #[doc = " * "]
1177 #[doc = " * It shall include the following components: "]
1178 #[doc = " *"]
1179 #[doc = " * @field originatingStationId: Id of the ITS-S that takes the action. "]
1180 #[doc = " * "]
1181 #[doc = " * @field sequenceNumber: a sequence number. "]
1182 #[doc = " * "]
1183 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref ActionId instead. "]
1184 #[doc = " * @category: Communication information"]
1185 #[doc = " * @revision: V1.3.1"]
1186 #[doc = " "]
1187 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1188 #[rasn(automatic_tags)]
1189 pub struct ActionID {
1190 #[rasn(identifier = "originatingStationId")]
1191 pub originating_station_id: StationID,
1192 #[rasn(identifier = "sequenceNumber")]
1193 pub sequence_number: SequenceNumber,
1194 }
1195 impl ActionID {
1196 pub fn new(originating_station_id: StationID, sequence_number: SequenceNumber) -> Self {
1197 Self {
1198 originating_station_id,
1199 sequence_number,
1200 }
1201 }
1202 }
1203 #[doc = "*"]
1204 #[doc = " * This DF represents an identifier used to describe a protocol action taken by an ITS-S."]
1205 #[doc = " * "]
1206 #[doc = " * It shall include the following components: "]
1207 #[doc = " *"]
1208 #[doc = " * @field originatingStationId: Id of the ITS-S that takes the action. "]
1209 #[doc = " * "]
1210 #[doc = " * @field sequenceNumber: a sequence number. "]
1211 #[doc = " * "]
1212 #[doc = " * @category: Communication information"]
1213 #[doc = " * @revision: Created in V2.1.1 based on @ref ActionID."]
1214 #[doc = " "]
1215 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1216 #[rasn(automatic_tags)]
1217 pub struct ActionId {
1218 #[rasn(identifier = "originatingStationId")]
1219 pub originating_station_id: StationId,
1220 #[rasn(identifier = "sequenceNumber")]
1221 pub sequence_number: SequenceNumber,
1222 }
1223 impl ActionId {
1224 pub fn new(originating_station_id: StationId, sequence_number: SequenceNumber) -> Self {
1225 Self {
1226 originating_station_id,
1227 sequence_number,
1228 }
1229 }
1230 }
1231 #[doc = "*"]
1232 #[doc = " * This DF shall contain a list of @ref ActionId. "]
1233 #[doc = ""]
1234 #[doc = " * @category: Communication Information"]
1235 #[doc = " * @revision: Created in V2.1.1 based on ReferenceDenms from DENM Release 1"]
1236 #[doc = ""]
1237 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1238 #[rasn(delegate, size("1..=8", extensible))]
1239 pub struct ActionIdList(pub SequenceOf<ActionId>);
1240 #[doc = "*"]
1241 #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `adhesion`. "]
1242 #[doc = " * "]
1243 #[doc = " * The value shall be set to:"]
1244 #[doc = " * - 0 - `unavailable` - in case information on the cause of the low road adhesion is unavailable,"]
1245 #[doc = " * - 1 - `heavyFrostOnRoad`- in case the low road adhesion is due to heavy frost on the road,"]
1246 #[doc = " * - 2 - `fuelOnRoad` - in case the low road adhesion is due to fuel on the road,"]
1247 #[doc = " * - 3 - `mudOnRoad` - in case the low road adhesion is due to mud on the road,"]
1248 #[doc = " * - 4 - `snowOnRoad` - in case the low road adhesion is due to snow on the road,"]
1249 #[doc = " * - 5 - `iceOnRoad` - in case the low road adhesion is due to ice on the road,"]
1250 #[doc = " * - 6 - `blackIceOnRoad` - in case the low road adhesion is due to black ice on the road,"]
1251 #[doc = " * - 7 - `oilOnRoad` - in case the low road adhesion is due to oil on the road,"]
1252 #[doc = " * - 8 - `looseChippings` - in case the low road adhesion is due to loose gravel or stone fragments on the road,"]
1253 #[doc = " * - 9 - `instantBlackIce` - in case the low road adhesion is due to instant black ice on the road surface,"]
1254 #[doc = " * - 10 - `roadsSalted` - when the low road adhesion is due to salted road,"]
1255 #[doc = " * - 11 - `flooding` - in case low road adhesion is due to flooding of the road,"]
1256 #[doc = " * - 12 - `waterOnRoad` - in case low road adhesion is due to a shallow layer of standing water on the road (not flooding). "]
1257 #[doc = " * - 12-255 - are reserved for future usage."]
1258 #[doc = " *"]
1259 #[doc = " * @category: Traffic information"]
1260 #[doc = " * @revision: V1.3.1, name changed to AdhesionSubCauseCode in V2.4.1, value 11 moved from hazardousLocation-SurfaceCondition to this DE and value 12 added in V2.4.1 "]
1261 #[doc = " "]
1262 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1263 #[rasn(delegate, value("0..=255"))]
1264 pub struct AdhesionSubCauseCode(pub u8);
1265 #[doc = "*"]
1266 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-Precipitation`. "]
1267 #[doc = " *"]
1268 #[doc = " * The value shall be set to:"]
1269 #[doc = " * - 0 - `unavailable` - in case information on the type of precipitation is unavailable,"]
1270 #[doc = " * - 1 - `rain` - in case the type of precipitation is rain,"]
1271 #[doc = " * - 2 - `snowfall` - in case the type of precipitation is snowfall,"]
1272 #[doc = " * - 3 - `hail` - in case the type of precipitation is hail."]
1273 #[doc = " * - 4-255 - are reserved for future usage"]
1274 #[doc = " *"]
1275 #[doc = " * @category: Traffic information"]
1276 #[doc = " * @revision: V1.3.1, values 1,2,3 renamed in V2.4.1"]
1277 #[doc = " "]
1278 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1279 #[rasn(
1280 delegate,
1281 identifier = "AdverseWeatherCondition-PrecipitationSubCauseCode",
1282 value("0..=255")
1283 )]
1284 pub struct AdverseWeatherConditionPrecipitationSubCauseCode(pub u8);
1285 #[doc = "*"]
1286 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-Visibility`."]
1287 #[doc = " *"]
1288 #[doc = " * The value shall be set to:"]
1289 #[doc = " * - 0 - `unavailable` - in case information on the cause of low visibility is unavailable,"]
1290 #[doc = " * - 1 - `fog` - in case the cause of low visibility is fog,"]
1291 #[doc = " * - 2 - `smoke` - in case the cause of low visibility is smoke,"]
1292 #[doc = " * - 3 - `snowfall` - in case the cause of low visibility is snow fall,"]
1293 #[doc = " * - 4 - `rain` - in case the cause of low visibility is rain,"]
1294 #[doc = " * - 5 - `hail` - in case the cause of low visibility is hail,"]
1295 #[doc = " * - 6 - `lowSunGlare` - in case the cause of low visibility is sun glare,"]
1296 #[doc = " * - 7 - `sandstorms` - in case the cause of low visibility is sand storm,"]
1297 #[doc = " * - 8 - `swarmsOfInsects`- in case the cause of low visibility is swarm of insects."]
1298 #[doc = " * - 9-255 - are reserved for future usage"]
1299 #[doc = " *"]
1300 #[doc = " * @category: Traffic information"]
1301 #[doc = " * @revision: V1.3.1, values 3, 4, 5 renamed in V2.4.1"]
1302 #[doc = " "]
1303 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1304 #[rasn(
1305 delegate,
1306 identifier = "AdverseWeatherCondition-VisibilitySubCauseCode",
1307 value("0..=255")
1308 )]
1309 pub struct AdverseWeatherConditionVisibilitySubCauseCode(pub u8);
1310 #[doc = "*"]
1311 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-Wind`."]
1312 #[doc = " *"]
1313 #[doc = " * The value shall be set to:"]
1314 #[doc = " * - 0 - `unavailable` - in case information on the type of wind is unavailable,"]
1315 #[doc = " * - 1 - `strongWinds` - in case the type of wind is strong wind such as gale or storm (e.g. Beaufort scale number 9-11),"]
1316 #[doc = " * - 2 - `damagingHail-deprecated` - deprecated since not representing a wind related event,"]
1317 #[doc = " * - 3 - `hurricane` - in case the type of storm is hurricane (e.g. Beaufort scale number 12),"]
1318 #[doc = " * - 4 - `thunderstorm` - in case the type of storm is thunderstorm,"]
1319 #[doc = " * - 5 - `tornado` - in case the type of storm is tornado,"]
1320 #[doc = " * - 6 - `blizzard` - in case the type of storm is blizzard."]
1321 #[doc = " * - 7-255 - are reserved for future usage."]
1322 #[doc = " *"]
1323 #[doc = " * @category: Traffic information"]
1324 #[doc = " * @revision: V1.3.1, DE renamed in V2.4.1, value 2 deprecated, description of value 1 and 3 amended in V2.4.1"]
1325 #[doc = " "]
1326 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1327 #[rasn(
1328 delegate,
1329 identifier = "AdverseWeatherCondition-WindSubCauseCode",
1330 value("0..=255")
1331 )]
1332 pub struct AdverseWeatherConditionWindSubCauseCode(pub u8);
1333 #[doc = "*"]
1334 #[doc = " * This DE represents the air humidity in tenths of percent."]
1335 #[doc = " *"]
1336 #[doc = " * The value shall be set to:"]
1337 #[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."]
1338 #[doc = " * - `1001` indicates that the air humidity is unavailable."]
1339 #[doc = " *"]
1340 #[doc = " * @category: Basic information"]
1341 #[doc = " * @unit: 0,1 % "]
1342 #[doc = " * @revision: created in V2.1.1"]
1343 #[doc = " "]
1344 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1345 #[rasn(delegate, value("1..=1001"))]
1346 pub struct AirHumidity(pub u16);
1347 #[doc = "*"]
1348 #[doc = " * This DF provides the altitude and confidence level of an altitude information in a WGS84 coordinate system."]
1349 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
1350 #[doc = " *"]
1351 #[doc = " * It shall include the following components: "]
1352 #[doc = " *"]
1353 #[doc = " * @field altitudeValue: altitude of a geographical point."]
1354 #[doc = " *"]
1355 #[doc = " * @field altitudeConfidence: confidence level of the altitudeValue."]
1356 #[doc = " *"]
1357 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref AltitudeWithConfidence instead. "]
1358 #[doc = " * @category: GeoReference information"]
1359 #[doc = " * @revision: Description revised in V2.1.1"]
1360 #[doc = " "]
1361 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1362 #[rasn(automatic_tags)]
1363 pub struct Altitude {
1364 #[rasn(identifier = "altitudeValue")]
1365 pub altitude_value: AltitudeValue,
1366 #[rasn(identifier = "altitudeConfidence")]
1367 pub altitude_confidence: AltitudeConfidence,
1368 }
1369 impl Altitude {
1370 pub fn new(altitude_value: AltitudeValue, altitude_confidence: AltitudeConfidence) -> Self {
1371 Self {
1372 altitude_value,
1373 altitude_confidence,
1374 }
1375 }
1376 }
1377 #[doc = "*"]
1378 #[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 %."]
1379 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
1380 #[doc = " *"]
1381 #[doc = " * The value shall be set to: "]
1382 #[doc = " * - 0 - `alt-000-01` - if the confidence value is equal to or less than 0,01 metre,"]
1383 #[doc = " * - 1 - `alt-000-02` - if the confidence value is equal to or less than 0,02 metre and greater than 0,01 metre,"]
1384 #[doc = " * - 2 - `alt-000-05` - if the confidence value is equal to or less than 0,05 metre and greater than 0,02 metre, "]
1385 #[doc = " * - 3 - `alt-000-10` - if the confidence value is equal to or less than 0,1 metre and greater than 0,05 metre, "]
1386 #[doc = " * - 4 - `alt-000-20` - if the confidence value is equal to or less than 0,2 metre and greater than 0,1 metre, "]
1387 #[doc = " * - 5 - `alt-000-50` - if the confidence value is equal to or less than 0,5 metre and greater than 0,2 metre, "]
1388 #[doc = " * - 6 - `alt-001-00` - if the confidence value is equal to or less than 1 metre and greater than 0,5 metre, "]
1389 #[doc = " * - 7 - `alt-002-00` - if the confidence value is equal to or less than 2 metres and greater than 1 metre, "]
1390 #[doc = " * - 8 - `alt-005-00` - if the confidence value is equal to or less than 5 metres and greater than 2 metres, "]
1391 #[doc = " * - 9 - `alt-010-00` - if the confidence value is equal to or less than 10 metres and greater than 5 metres, "]
1392 #[doc = " * - 10 - `alt-020-00` - if the confidence value is equal to or less than 20 metres and greater than 10 metres, "]
1393 #[doc = " * - 11 - `alt-050-00` - if the confidence value is equal to or less than 50 metres and greater than 20 metres, "]
1394 #[doc = " * - 12 - `alt-100-00` - if the confidence value is equal to or less than 100 metres and greater than 50 metres, "]
1395 #[doc = " * - 13 - `alt-200-00` - if the confidence value is equal to or less than 200 metres and greater than 100 metres, "]
1396 #[doc = " * - 14 - `outOfRange` - if the confidence value is out of range, i.e. greater than 200 metres,"]
1397 #[doc = " * - 15 - `unavailable` - if the confidence value is unavailable. "]
1398 #[doc = " *"]
1399 #[doc = " * @note: The fact that an altitude value is received with confidence value set to `unavailable(15)` can be caused"]
1400 #[doc = " * by several reasons, such as:"]
1401 #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
1402 #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
1403 #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
1404 #[doc = " * In all 3 cases above, the altitude value may be valid and used by the application."]
1405 #[doc = " * "]
1406 #[doc = " * @note: If an altitude value is received and its confidence value is set to `outOfRange(14)`, it means that the "]
1407 #[doc = " * altitude value is not valid and therefore cannot be trusted. Such value is not useful for the application. "]
1408 #[doc = " *"]
1409 #[doc = " * @category: GeoReference information"]
1410 #[doc = " * @revision: Description revised in V2.1.1"]
1411 #[doc = " "]
1412 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1413 #[rasn(enumerated)]
1414 pub enum AltitudeConfidence {
1415 #[rasn(identifier = "alt-000-01")]
1416 alt_000_01 = 0,
1417 #[rasn(identifier = "alt-000-02")]
1418 alt_000_02 = 1,
1419 #[rasn(identifier = "alt-000-05")]
1420 alt_000_05 = 2,
1421 #[rasn(identifier = "alt-000-10")]
1422 alt_000_10 = 3,
1423 #[rasn(identifier = "alt-000-20")]
1424 alt_000_20 = 4,
1425 #[rasn(identifier = "alt-000-50")]
1426 alt_000_50 = 5,
1427 #[rasn(identifier = "alt-001-00")]
1428 alt_001_00 = 6,
1429 #[rasn(identifier = "alt-002-00")]
1430 alt_002_00 = 7,
1431 #[rasn(identifier = "alt-005-00")]
1432 alt_005_00 = 8,
1433 #[rasn(identifier = "alt-010-00")]
1434 alt_010_00 = 9,
1435 #[rasn(identifier = "alt-020-00")]
1436 alt_020_00 = 10,
1437 #[rasn(identifier = "alt-050-00")]
1438 alt_050_00 = 11,
1439 #[rasn(identifier = "alt-100-00")]
1440 alt_100_00 = 12,
1441 #[rasn(identifier = "alt-200-00")]
1442 alt_200_00 = 13,
1443 outOfRange = 14,
1444 unavailable = 15,
1445 }
1446 #[doc = "*"]
1447 #[doc = " * This DE represents the altitude value in a WGS84 coordinate system."]
1448 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
1449 #[doc = " *"]
1450 #[doc = " * The value shall be set to: "]
1451 #[doc = " * - `-100 000` if the altitude is equal to or less than -1 000 m,"]
1452 #[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,"]
1453 #[doc = " * - `800 000` if the altitude greater than 7 999,99 m,"]
1454 #[doc = " * - `800 001` if the information is not available."]
1455 #[doc = " *"]
1456 #[doc = " * @note: the range of this DE does not use the full binary encoding range, but all reasonable values are covered. In order to cover all possible altitude ranges a larger encoding would be necessary."]
1457 #[doc = " * @unit: 0,01 metre"]
1458 #[doc = " * @category: GeoReference information"]
1459 #[doc = " * @revision: Description revised in V2.1.1 (definition of 800 000 has slightly changed) "]
1460 #[doc = " "]
1461 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1462 #[rasn(delegate, value("-100000..=800001"))]
1463 pub struct AltitudeValue(pub i32);
1464 #[doc = "* "]
1465 #[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 %."]
1466 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
1467 #[doc = " *"]
1468 #[doc = " * The value shall be set to: "]
1469 #[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,"]
1470 #[doc = " * - `126` if the accuracy is out of range, i.e. greater than 12,5 degrees,"]
1471 #[doc = " * - `127` if the accuracy information is not available."]
1472 #[doc = " *"]
1473 #[doc = " * @unit: 0,1 degrees"]
1474 #[doc = " * @category: Basic information"]
1475 #[doc = " * @revision: Created in V2.1.1"]
1476 #[doc = ""]
1477 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1478 #[rasn(delegate, value("1..=127"))]
1479 pub struct AngleConfidence(pub u8);
1480 #[doc = "* "]
1481 #[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 %."]
1482 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
1483 #[doc = " * For correlation computation, maximum interval levels shall be assumed."]
1484 #[doc = " *"]
1485 #[doc = " * The value shall be set to:"]
1486 #[doc = " * - 0 - `degSecSquared-01` - if the accuracy is equal to or less than 1 degree/second^2,"]
1487 #[doc = " * - 1 - `degSecSquared-02` - if the accuracy is equal to or less than 2 degrees/second^2 and greater than 1 degree/second^2,"]
1488 #[doc = " * - 2 - `degSecSquared-05` - if the accuracy is equal to or less than 5 degrees/second^2 and greater than 1 degree/second^2,"]
1489 #[doc = " * - 3 - `degSecSquared-10` - if the accuracy is equal to or less than 10 degrees/second^2 and greater than 5 degrees/second^2,"]
1490 #[doc = " * - 4 - `degSecSquared-20` - if the accuracy is equal to or less than 20 degrees/second^2 and greater than 10 degrees/second^2,"]
1491 #[doc = " * - 5 - `degSecSquared-50` - if the accuracy is equal to or less than 50 degrees/second^2 and greater than 20 degrees/second^2,"]
1492 #[doc = " * - 6 - `outOfRange` - if the accuracy is out of range, i.e. greater than 50 degrees/second^2,"]
1493 #[doc = " * - 7 - `unavailable` - if the accuracy information is unavailable."]
1494 #[doc = " *"]
1495 #[doc = " * @category: Kinematic information"]
1496 #[doc = " * @revision: Created in V2.1.1"]
1497 #[doc = ""]
1498 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1499 #[rasn(enumerated)]
1500 pub enum AngularAccelerationConfidence {
1501 #[rasn(identifier = "degSecSquared-01")]
1502 degSecSquared_01 = 0,
1503 #[rasn(identifier = "degSecSquared-02")]
1504 degSecSquared_02 = 1,
1505 #[rasn(identifier = "degSecSquared-05")]
1506 degSecSquared_05 = 2,
1507 #[rasn(identifier = "degSecSquared-10")]
1508 degSecSquared_10 = 3,
1509 #[rasn(identifier = "degSecSquared-20")]
1510 degSecSquared_20 = 4,
1511 #[rasn(identifier = "degSecSquared-50")]
1512 degSecSquared_50 = 5,
1513 outOfRange = 6,
1514 unavailable = 7,
1515 }
1516 #[doc = "* "]
1517 #[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 %."]
1518 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
1519 #[doc = " * For correlation computation, maximum interval levels can be assumed."]
1520 #[doc = " *"]
1521 #[doc = " * The value shall be set to:"]
1522 #[doc = " * - 0 - `degSec-01` - if the accuracy is equal to or less than 1 degree/second,"]
1523 #[doc = " * - 1 - `degSec-02` - if the accuracy is equal to or less than 2 degrees/second and greater than 1 degree/second,"]
1524 #[doc = " * - 2 - `degSec-05` - if the accuracy is equal to or less than 5 degrees/second and greater than 2 degrees/second,"]
1525 #[doc = " * - 3 - `degSec-10` - if the accuracy is equal to or less than 10 degrees/second and greater than 5 degrees/second,"]
1526 #[doc = " * - 4 - `degSec-20` - if the accuracy is equal to or less than 20 degrees/second and greater than 10 degrees/second,"]
1527 #[doc = " * - 5 - `degSec-50` - if the accuracy is equal to or less than 50 degrees/second and greater than 20 degrees/second,"]
1528 #[doc = " * - 6 - `outOfRange` - if the accuracy is out of range, i.e. greater than 50 degrees/second,"]
1529 #[doc = " * - 7 - `unavailable` - if the accuracy information is unavailable."]
1530 #[doc = " * "]
1531 #[doc = " * @category: Kinematic information"]
1532 #[doc = " * @revision: Created in V2.1.1"]
1533 #[doc = ""]
1534 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1535 #[rasn(enumerated)]
1536 pub enum AngularSpeedConfidence {
1537 #[rasn(identifier = "degSec-01")]
1538 degSec_01 = 0,
1539 #[rasn(identifier = "degSec-02")]
1540 degSec_02 = 1,
1541 #[rasn(identifier = "degSec-05")]
1542 degSec_05 = 2,
1543 #[rasn(identifier = "degSec-10")]
1544 degSec_10 = 3,
1545 #[rasn(identifier = "degSec-20")]
1546 degSec_20 = 4,
1547 #[rasn(identifier = "degSec-50")]
1548 degSec_50 = 5,
1549 outOfRange = 6,
1550 unavailable = 7,
1551 }
1552 #[doc = "*"]
1553 #[doc = " * This DE indicates the status of the controlling mechanisms for the lateral and combined lateral and longitudinal movements of the vehicle."]
1554 #[doc = " * The data may be provided via the in-vehicle network. It indicates whether a specific in-vehicle"]
1555 #[doc = " * acceleration control system combined with steering of the direction of the vehicle is engaged or not. "]
1556 #[doc = " *"]
1557 #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
1558 #[doc = " * - 0 - `emergencySteeringSystemEngaged` - emergency steering system is engaged,"]
1559 #[doc = " * - 1 - `autonomousEmergencySteeringEngaged` - autonomous emergency steering system is engaged,"]
1560 #[doc = " * - 2 - `automaticLaneChangeEngaged` - automatic lane change system is engaged,"]
1561 #[doc = " * - 3 - `laneKeepingAssistEngaged` - lane keeping assist is engaged,"]
1562 #[doc = " * - 4 - `assistedParkingLateralEngaged` - assisted parking system (lateral control) is engaged,"]
1563 #[doc = " * - 5 - `emergencyAssistEngaged` - emergency assist (lateral and longitudinal control) is engaged."]
1564 #[doc = " *"]
1565 #[doc = " * Otherwise (for example when the corresponding system is not available due to non-equipped system or information is unavailable), "]
1566 #[doc = " * the corresponding bit shall be set to 0. "]
1567 #[doc = " *"]
1568 #[doc = " * @category: Vehicle information"]
1569 #[doc = " * @revision: Created in V2.3.1"]
1570 #[doc = ""]
1571 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1572 #[rasn(delegate, size("6", extensible))]
1573 pub struct AutomationControl(pub BitString);
1574 #[doc = "*"]
1575 #[doc = " * This DE indicates the number of axles of a passing train."]
1576 #[doc = " *"]
1577 #[doc = " * The value shall be set to:"]
1578 #[doc = " * - `n` (`n > 2` and `n < 1001`) indicates that the train has n x axles,"]
1579 #[doc = " * - `1001`indicates that the number of axles is out of range,"]
1580 #[doc = " * - `1002` the information is unavailable."]
1581 #[doc = " *"]
1582 #[doc = " * "]
1583 #[doc = " * @unit: Number of axles"]
1584 #[doc = " * @category: Vehicle information"]
1585 #[doc = " * @revision: Created in V2.1.1"]
1586 #[doc = ""]
1587 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1588 #[rasn(delegate, value("2..=1002"))]
1589 pub struct AxlesCount(pub u16);
1590 #[doc = "*"]
1591 #[doc = " * This DE represents the measured uncompensated atmospheric pressure."]
1592 #[doc = " * "]
1593 #[doc = " * The value shall be set to:"]
1594 #[doc = " * - `2999` indicates that the applicable value is less than 29990 Pa,"]
1595 #[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, "]
1596 #[doc = " * - `12001` indicates that the values is greater than 120000 Pa,"]
1597 #[doc = " * - `12002` indicates that the information is not available."]
1598 #[doc = " *"]
1599 #[doc = " * @category: Basic information"]
1600 #[doc = " * @unit: 10 Pascal"]
1601 #[doc = " * @revision: Created in V2.1.1"]
1602 #[doc = ""]
1603 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1604 #[rasn(delegate, value("2999..=12002"))]
1605 pub struct BarometricPressure(pub u16);
1606 #[doc = "* "]
1607 #[doc = " * This DE represents a general container for usage in various types of messages."]
1608 #[doc = " *"]
1609 #[doc = " * It shall include the following components: "]
1610 #[doc = " *"]
1611 #[doc = " * @field stationType: the type of technical context in which the ITS-S that has generated the message is integrated in."]
1612 #[doc = " *"]
1613 #[doc = " * @field referencePosition: the reference position of the station that has generated the message that contains the basic container."]
1614 #[doc = " *"]
1615 #[doc = " * @category: Basic information"]
1616 #[doc = " * @revision: Created in V2.1.1"]
1617 #[doc = ""]
1618 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1619 #[rasn(automatic_tags)]
1620 #[non_exhaustive]
1621 pub struct BasicContainer {
1622 #[rasn(identifier = "stationType")]
1623 pub station_type: TrafficParticipantType,
1624 #[rasn(identifier = "referencePosition")]
1625 pub reference_position: ReferencePositionWithConfidence,
1626 }
1627 impl BasicContainer {
1628 pub fn new(
1629 station_type: TrafficParticipantType,
1630 reference_position: ReferencePositionWithConfidence,
1631 ) -> Self {
1632 Self {
1633 station_type,
1634 reference_position,
1635 }
1636 }
1637 }
1638 #[doc = "* "]
1639 #[doc = " * This DF provides information about the configuration of a road section in terms of lanes using a list of @ref LanePositionAndType ."]
1640 #[doc = " *"]
1641 #[doc = " * @category: Road topology information"]
1642 #[doc = " * @revision: Created in V2.2.1"]
1643 #[doc = ""]
1644 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1645 #[rasn(delegate, size("1..=16", extensible))]
1646 pub struct BasicLaneConfiguration(pub SequenceOf<BasicLaneInformation>);
1647 #[doc = "* "]
1648 #[doc = " * This DF provides basic information about a single lane of a road segment."]
1649 #[doc = " * It includes the following components: "]
1650 #[doc = " * "]
1651 #[doc = " * @field laneNumber: the number associated to the lane that provides a transversal identification. "]
1652 #[doc = " * "]
1653 #[doc = " * @field direction: the direction of traffic flow allowed on the lane. "]
1654 #[doc = " * "]
1655 #[doc = " * @field laneWidth: the optional width of the lane."]
1656 #[doc = " *"]
1657 #[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,"]
1658 #[doc = " * if it does not actively change lanes. If this component is absent, the lane name number remains the same in the next section."]
1659 #[doc = " *"]
1660 #[doc = " * @field connectingRoadSection: the identifier of the next road section in direction of traffic, that is connecting to the current road section. "]
1661 #[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."]
1662 #[doc = " *"]
1663 #[doc = " * @category: Road topology information"]
1664 #[doc = " * @revision: Created in V2.2.1"]
1665 #[doc = ""]
1666 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1667 #[rasn(automatic_tags)]
1668 #[non_exhaustive]
1669 pub struct BasicLaneInformation {
1670 #[rasn(identifier = "laneNumber")]
1671 pub lane_number: LanePosition,
1672 pub direction: Direction,
1673 #[rasn(identifier = "laneWidth")]
1674 pub lane_width: Option<LaneWidth>,
1675 #[rasn(identifier = "connectingLane")]
1676 pub connecting_lane: Option<LanePosition>,
1677 #[rasn(identifier = "connectingRoadSection")]
1678 pub connecting_road_section: Option<RoadSectionId>,
1679 }
1680 impl BasicLaneInformation {
1681 pub fn new(
1682 lane_number: LanePosition,
1683 direction: Direction,
1684 lane_width: Option<LaneWidth>,
1685 connecting_lane: Option<LanePosition>,
1686 connecting_road_section: Option<RoadSectionId>,
1687 ) -> Self {
1688 Self {
1689 lane_number,
1690 direction,
1691 lane_width,
1692 connecting_lane,
1693 connecting_road_section,
1694 }
1695 }
1696 }
1697 #[doc = "*"]
1698 #[doc = " * This DE indicates the cardinal number of bogies of a train."]
1699 #[doc = " *"]
1700 #[doc = " * The value shall be set to: "]
1701 #[doc = " * - `n` (`n > 1` and `n < 100`) indicates that the train has n x bogies,"]
1702 #[doc = " * - `100`indicates that the number of bogies is out of range, "]
1703 #[doc = " * - `101` the information is unavailable."]
1704 #[doc = " *"]
1705 #[doc = " * @unit: Number of bogies"]
1706 #[doc = " * @category: Vehicle information"]
1707 #[doc = " * @revision: Created in V2.1.1"]
1708 #[doc = ""]
1709 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1710 #[rasn(delegate, value("2..=101"))]
1711 pub struct BogiesCount(pub u8);
1712 #[doc = "*"]
1713 #[doc = " * This DE indicates the status of the vehicle´s brake control system during an externally defined period of time. "]
1714 #[doc = " *"]
1715 #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
1716 #[doc = " * - 0 `abs` - the anti-lock braking system is engaged or has been engaged,"]
1717 #[doc = " * - 1 `tcs` - the traction control system is engaged or has been engaged,"]
1718 #[doc = " * - 2 `esc` - the electronic stability control system is engaged or has been engaged."]
1719 #[doc = " *"]
1720 #[doc = " * Otherwise (for example when the corresponding system is not available due to non equipped system"]
1721 #[doc = " * or information is unavailable), the corresponding bit shall be set to 0."]
1722 #[doc = " *"]
1723 #[doc = " * @category: Vehicle information "]
1724 #[doc = " * @revision: created in V2.3.1"]
1725 #[doc = " "]
1726 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1727 #[rasn(delegate, size("3", extensible))]
1728 pub struct BrakeControl(pub BitString);
1729 #[doc = "*"]
1730 #[doc = " * The DE represents a cardinal number that counts the size of a set. "]
1731 #[doc = " * "]
1732 #[doc = " * @category: Basic information"]
1733 #[doc = " * @revision: Created in V2.1.1"]
1734 #[doc = ""]
1735 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1736 #[rasn(delegate, value("0..=255"))]
1737 pub struct CardinalNumber1B(pub u8);
1738 #[doc = "*"]
1739 #[doc = " * The DE represents a cardinal number that counts the size of a set. "]
1740 #[doc = " * "]
1741 #[doc = " * @category: Basic information"]
1742 #[doc = " * @revision: Created in V2.1.1"]
1743 #[doc = ""]
1744 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1745 #[rasn(delegate, value("1..=8"))]
1746 pub struct CardinalNumber3b(pub u8);
1747 #[doc = "* "]
1748 #[doc = " * This DF represents a general Data Frame to describe an angle component along with a confidence value in a cartesian coordinate system."]
1749 #[doc = " *"]
1750 #[doc = " * It shall include the following components: "]
1751 #[doc = " *"]
1752 #[doc = " * @field value: The angle value which can be estimated as the mean of the current distribution."]
1753 #[doc = " *"]
1754 #[doc = " * @field confidence: The confidence value associated to the provided value."]
1755 #[doc = " *"]
1756 #[doc = " * @category: Basic information"]
1757 #[doc = " * @revision: Created in V2.1.1"]
1758 #[doc = " "]
1759 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1760 #[rasn(automatic_tags)]
1761 pub struct CartesianAngle {
1762 pub value: CartesianAngleValue,
1763 pub confidence: AngleConfidence,
1764 }
1765 impl CartesianAngle {
1766 pub fn new(value: CartesianAngleValue, confidence: AngleConfidence) -> Self {
1767 Self { value, confidence }
1768 }
1769 }
1770 #[doc = "* "]
1771 #[doc = " * This DE represents an angle value described in a local Cartesian coordinate system, per default counted positive in"]
1772 #[doc = " * a right-hand local coordinate system from the abscissa."]
1773 #[doc = " *"]
1774 #[doc = " * The value shall be set to: "]
1775 #[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,"]
1776 #[doc = " * - `3601` if the information is not available."]
1777 #[doc = " *"]
1778 #[doc = " * The value 3600 shall not be used. "]
1779 #[doc = " * "]
1780 #[doc = " * @unit 0,1 degrees"]
1781 #[doc = " * @category: Basic information"]
1782 #[doc = " * @revision: Created in V2.1.1, description and value for 3601 corrected in V2.2.1"]
1783 #[doc = ""]
1784 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1785 #[rasn(delegate, value("0..=3601"))]
1786 pub struct CartesianAngleValue(pub u16);
1787 #[doc = "* "]
1788 #[doc = " * This DF represents a general Data Frame to describe an angular acceleration component along with a confidence value in a cartesian coordinate system."]
1789 #[doc = " *"]
1790 #[doc = " * It shall include the following components: "]
1791 #[doc = " *"]
1792 #[doc = " * @field value: The angular acceleration component value."]
1793 #[doc = " *"]
1794 #[doc = " * @field confidence: The confidence value associated to the provided value."]
1795 #[doc = " * "]
1796 #[doc = " * @category: Kinematic information"]
1797 #[doc = " * @revision: Created in V2.1.1 "]
1798 #[doc = " "]
1799 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1800 #[rasn(automatic_tags)]
1801 pub struct CartesianAngularAccelerationComponent {
1802 pub value: CartesianAngularAccelerationComponentValue,
1803 pub confidence: AngularAccelerationConfidence,
1804 }
1805 impl CartesianAngularAccelerationComponent {
1806 pub fn new(
1807 value: CartesianAngularAccelerationComponentValue,
1808 confidence: AngularAccelerationConfidence,
1809 ) -> Self {
1810 Self { value, confidence }
1811 }
1812 }
1813 #[doc = "*"]
1814 #[doc = " * This DE represents an angular acceleration value described in a local Cartesian coordinate system, per default counted positive in"]
1815 #[doc = " * a right-hand local coordinate system from the abscissa."]
1816 #[doc = " *"]
1817 #[doc = " * The value shall be set to: "]
1818 #[doc = " * - `-255` if the acceleration is equal to or less than -255 degrees/s^2,"]
1819 #[doc = " * - `n` (`n > -255` and `n < 255`) if the acceleration is equal to or less than n x 1 degree/s^2,"]
1820 #[doc = " and greater than `(n-1)` x 0,01 degree/s^2,"]
1821 #[doc = " * - `255` if the acceleration is greater than 254 degrees/s^2,"]
1822 #[doc = " * - `256` if the information is unavailable."]
1823 #[doc = " *"]
1824 #[doc = " * @unit: degree/s^2 (degrees per second squared)"]
1825 #[doc = " * @category: Kinematic information"]
1826 #[doc = " * @revision: Created in V2.1.1"]
1827 #[doc = ""]
1828 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1829 #[rasn(delegate, value("-255..=256"))]
1830 pub struct CartesianAngularAccelerationComponentValue(pub i16);
1831 #[doc = "* "]
1832 #[doc = " * This DF represents an angular velocity component along with a confidence value in a cartesian coordinate system."]
1833 #[doc = " *"]
1834 #[doc = " * It shall include the following components: "]
1835 #[doc = " *"]
1836 #[doc = " * @field value: The angular velocity component."]
1837 #[doc = " *"]
1838 #[doc = " * @field confidence: The confidence value associated to the provided value."]
1839 #[doc = " *"]
1840 #[doc = " * @category: Kinematic information"]
1841 #[doc = " * @revision: Created in V2.1.1"]
1842 #[doc = " "]
1843 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1844 #[rasn(automatic_tags)]
1845 pub struct CartesianAngularVelocityComponent {
1846 pub value: CartesianAngularVelocityComponentValue,
1847 pub confidence: AngularSpeedConfidence,
1848 }
1849 impl CartesianAngularVelocityComponent {
1850 pub fn new(
1851 value: CartesianAngularVelocityComponentValue,
1852 confidence: AngularSpeedConfidence,
1853 ) -> Self {
1854 Self { value, confidence }
1855 }
1856 }
1857 #[doc = "*"]
1858 #[doc = " * This DE represents an angular velocity component described in a local Cartesian coordinate system, per default counted positive in"]
1859 #[doc = " * a right-hand local coordinate system from the abscissa."]
1860 #[doc = " *"]
1861 #[doc = " * The value shall be set to: "]
1862 #[doc = " * - `-255` if the velocity is equal to or less than -255 degrees/s,"]
1863 #[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,"]
1864 #[doc = " * - `255` if the velocity is greater than 254 degrees/s,"]
1865 #[doc = " * - `256` if the information is unavailable."]
1866 #[doc = " *"]
1867 #[doc = " * @unit: degree/s"]
1868 #[doc = " * @category: Kinematic information"]
1869 #[doc = " * @revision: Created in V2.1.1"]
1870 #[doc = ""]
1871 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1872 #[rasn(delegate, value("-255..=256"))]
1873 pub struct CartesianAngularVelocityComponentValue(pub i16);
1874 #[doc = "*"]
1875 #[doc = " * This DF represents the value of a cartesian coordinate with a range of -327,68 metres to +327,66 metres."]
1876 #[doc = " *"]
1877 #[doc = " * The value shall be set to:"]
1878 #[doc = " * - `-32 768` if the longitudinal offset is out of range, i.e. less than or equal to -327,68 metres,"]
1879 #[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,"]
1880 #[doc = " * - `32 767` if the longitudinal offset is out of range, i.e. greater than + 327,66 metres."]
1881 #[doc = " *"]
1882 #[doc = " * @unit 0,01 m"]
1883 #[doc = " * @category: Basic information"]
1884 #[doc = " * @revision: Created in V2.1.1"]
1885 #[doc = ""]
1886 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1887 #[rasn(delegate, value("-32768..=32767"))]
1888 pub struct CartesianCoordinate(pub i16);
1889 #[doc = "*"]
1890 #[doc = " * This DF represents the value of a cartesian coordinate with a range of -1 310,72 metres to +1 310,70 metres."]
1891 #[doc = " *"]
1892 #[doc = " * The value shall be set to:"]
1893 #[doc = " * - `-131072` if the longitudinal offset is out of range, i.e. less than or equal to -1 310,72 metres,"]
1894 #[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,"]
1895 #[doc = " * - `131 071` if the longitudinal offset is out of range, i.e. greater than + 1 310,70 metres."]
1896 #[doc = " * "]
1897 #[doc = " * @unit 0,01 m"]
1898 #[doc = " * @category: Basic information"]
1899 #[doc = " * @revision: Created in V2.1.1"]
1900 #[doc = ""]
1901 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1902 #[rasn(delegate, value("-131072..=131071"))]
1903 pub struct CartesianCoordinateLarge(pub i32);
1904 #[doc = "*"]
1905 #[doc = " * This DF represents the value of a cartesian coordinate with a range of -30,94 metres to +10,00 metres."]
1906 #[doc = " *"]
1907 #[doc = " * The value shall be set to:"]
1908 #[doc = " * - `3094` if the longitudinal offset is out of range, i.e. less than or equal to -30,94 metres,"]
1909 #[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,"]
1910 #[doc = " * - `1001` if the longitudinal offset is out of range, i.e. greater than 10 metres."]
1911 #[doc = " *"]
1912 #[doc = " * @unit 0,01 m"]
1913 #[doc = " * @category: Basic information"]
1914 #[doc = " * @revision: Created in V2.1.1"]
1915 #[doc = ""]
1916 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1917 #[rasn(delegate, value("-3094..=1001"))]
1918 pub struct CartesianCoordinateSmall(pub i16);
1919 #[doc = "*"]
1920 #[doc = " * This DF represents a coordinate along with a confidence value in a cartesian reference system."]
1921 #[doc = " *"]
1922 #[doc = " * It shall include the following components: "]
1923 #[doc = " * "]
1924 #[doc = " * @field value: the coordinate value, which can be estimated as the mean of the current distribution."]
1925 #[doc = " * "]
1926 #[doc = " * @field confidence: the coordinate confidence value associated to the provided value."]
1927 #[doc = " *"]
1928 #[doc = " * @category: GeoReference information"]
1929 #[doc = " * @revision: Created in V2.1.1"]
1930 #[doc = ""]
1931 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1932 #[rasn(automatic_tags)]
1933 pub struct CartesianCoordinateWithConfidence {
1934 pub value: CartesianCoordinateLarge,
1935 pub confidence: CoordinateConfidence,
1936 }
1937 impl CartesianCoordinateWithConfidence {
1938 pub fn new(value: CartesianCoordinateLarge, confidence: CoordinateConfidence) -> Self {
1939 Self { value, confidence }
1940 }
1941 }
1942 #[doc = "* "]
1943 #[doc = " * This DF represents a position in a two- or three-dimensional cartesian coordinate system."]
1944 #[doc = " *"]
1945 #[doc = " * It shall include the following components: "]
1946 #[doc = " *"]
1947 #[doc = " * @field xCoordinate: the X coordinate value."]
1948 #[doc = " *"]
1949 #[doc = " * @field yCoordinate: the Y coordinate value."]
1950 #[doc = " *"]
1951 #[doc = " * @field zCoordinate: the optional Z coordinate value."]
1952 #[doc = " * "]
1953 #[doc = " * @category: GeoReference information"]
1954 #[doc = " * @revision: Created in V2.1.1"]
1955 #[doc = ""]
1956 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1957 #[rasn(automatic_tags)]
1958 pub struct CartesianPosition3d {
1959 #[rasn(identifier = "xCoordinate")]
1960 pub x_coordinate: CartesianCoordinate,
1961 #[rasn(identifier = "yCoordinate")]
1962 pub y_coordinate: CartesianCoordinate,
1963 #[rasn(identifier = "zCoordinate")]
1964 pub z_coordinate: Option<CartesianCoordinate>,
1965 }
1966 impl CartesianPosition3d {
1967 pub fn new(
1968 x_coordinate: CartesianCoordinate,
1969 y_coordinate: CartesianCoordinate,
1970 z_coordinate: Option<CartesianCoordinate>,
1971 ) -> Self {
1972 Self {
1973 x_coordinate,
1974 y_coordinate,
1975 z_coordinate,
1976 }
1977 }
1978 }
1979 #[doc = "* "]
1980 #[doc = " * This DF represents a position in a two- or three-dimensional cartesian coordinate system with an associated confidence level for each coordinate."]
1981 #[doc = " *"]
1982 #[doc = " * It shall include the following components: "]
1983 #[doc = " *"]
1984 #[doc = " * @field xCoordinate: the X coordinate value with the associated confidence level."]
1985 #[doc = " *"]
1986 #[doc = " * @field yCoordinate: the Y coordinate value with the associated confidence level."]
1987 #[doc = " *"]
1988 #[doc = " * @field zCoordinate: the optional Z coordinate value with the associated confidence level."]
1989 #[doc = " * "]
1990 #[doc = " * @category: GeoReference information"]
1991 #[doc = " * @revision: Created in V2.1.1"]
1992 #[doc = ""]
1993 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1994 #[rasn(automatic_tags)]
1995 pub struct CartesianPosition3dWithConfidence {
1996 #[rasn(identifier = "xCoordinate")]
1997 pub x_coordinate: CartesianCoordinateWithConfidence,
1998 #[rasn(identifier = "yCoordinate")]
1999 pub y_coordinate: CartesianCoordinateWithConfidence,
2000 #[rasn(identifier = "zCoordinate")]
2001 pub z_coordinate: Option<CartesianCoordinateWithConfidence>,
2002 }
2003 impl CartesianPosition3dWithConfidence {
2004 pub fn new(
2005 x_coordinate: CartesianCoordinateWithConfidence,
2006 y_coordinate: CartesianCoordinateWithConfidence,
2007 z_coordinate: Option<CartesianCoordinateWithConfidence>,
2008 ) -> Self {
2009 Self {
2010 x_coordinate,
2011 y_coordinate,
2012 z_coordinate,
2013 }
2014 }
2015 }
2016 #[doc = "*"]
2017 #[doc = " * This DF is a representation of the cause code value of a traffic event. "]
2018 #[doc = " *"]
2019 #[doc = " * It shall include the following components: "]
2020 #[doc = " *"]
2021 #[doc = " * @field causeCode: the main cause of a detected event. "]
2022 #[doc = " *"]
2023 #[doc = " * @field subCauseCode: the subordinate cause of a detected event. "]
2024 #[doc = " *"]
2025 #[doc = " * The semantics of the entire DF are completely defined by the component causeCode. The interpretation of the subCauseCode may "]
2026 #[doc = " * provide additional information that is not strictly necessary to understand the causeCode itself, and is therefore optional."]
2027 #[doc = " *"]
2028 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref CauseCodeV2 instead. "]
2029 #[doc = " *"]
2030 #[doc = " * @category: Traffic information"]
2031 #[doc = " * @revision: Editorial update in V2.1.1"]
2032 #[doc = " "]
2033 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2034 #[rasn(automatic_tags)]
2035 #[non_exhaustive]
2036 pub struct CauseCode {
2037 #[rasn(identifier = "causeCode")]
2038 pub cause_code: CauseCodeType,
2039 #[rasn(identifier = "subCauseCode")]
2040 pub sub_cause_code: SubCauseCodeType,
2041 }
2042 impl CauseCode {
2043 pub fn new(cause_code: CauseCodeType, sub_cause_code: SubCauseCodeType) -> Self {
2044 Self {
2045 cause_code,
2046 sub_cause_code,
2047 }
2048 }
2049 }
2050 #[doc = "*"]
2051 #[doc = " * This DF is a representation of the cause code value and associated sub cause code value of a traffic event. "]
2052 #[doc = " *"]
2053 #[doc = " * The following options are available:"]
2054 #[doc = " * - 0 - reserved for future use,"]
2055 #[doc = " * - 1 - `trafficCondition1` - in case the type of event is an abnormal traffic condition,"]
2056 #[doc = " * - 2 - `accident2` - in case the type of event is a road accident, "]
2057 #[doc = " * - 3 - `roadworks3` - in case the type of event is roadwork, based on authoritative information,"]
2058 #[doc = " * - 4 - `detectedRoadworks4` - in case the type of event is roadworks, based on non-authoritative information such as factual detections,"]
2059 #[doc = " * - 5 - `impassability5` - in case the type of event is unmanaged road blocking, referring to any"]
2060 #[doc = " * blocking of a road, partial or total, which has not been adequately secured and signposted,"]
2061 #[doc = " * - 6 - `adhesion6` - in case the type of event is low adhesion of the road surface,"]
2062 #[doc = " * - 7 - `aquaplaning7` - danger of aquaplaning on the road,"]
2063 #[doc = " * - 8 - reserved for future usage,"]
2064 #[doc = " * - 9 - `hazardousLocation-SurfaceCondition9` - in case the type of event is abnormal road surface condition not covered by `adhesion6`, "]
2065 #[doc = " * - 10 - `hazardousLocation-ObstacleOnTheRoad10` - in case the type of event is obstacle on the road,"]
2066 #[doc = " * - 11 - `hazardousLocation-AnimalOnTheRoad11` - in case the type of event is animal on the road,"]
2067 #[doc = " * - 12 - `humanPresenceOnTheRoad` - in case the type of event is presence of human vulnerable road user on the road,"]
2068 #[doc = " * - 13 - reserved for future usage,"]
2069 #[doc = " * - 14 - `wrongWayDriving14` - in case the type of the event is vehicle driving in wrong way,"]
2070 #[doc = " * - 15 - `rescueRecoveryAndMaintenanceWorkInProgress15` - in case the type of event is rescue, recovery and maintenance work for accident or for a road hazard in progress,"]
2071 #[doc = " * - 16 - reserved for future usage,"]
2072 #[doc = " * - 17 - `adverseWeatherCondition-Wind17` - in case the type of event is wind,"]
2073 #[doc = " * - 18 - `adverseWeatherCondition-Visibility18` - in case the type of event is low visibility,"]
2074 #[doc = " * - 19 - `adverseWeatherCondition-Precipitation19` - in case the type of event is precipitation,"]
2075 #[doc = " * - 20 - `violence20` - in case the the type of event is human violence on or near the road,"]
2076 #[doc = " * - 21-25 - reserved for future usage,"]
2077 #[doc = " * - 26 - `slowVehicle26` - in case the type of event is slow vehicle driving on the road,"]
2078 #[doc = " * - 27 - `dangerousEndOfQueue27` - in case the type of event is dangerous end of vehicle queue,"]
2079 #[doc = " * - 28 - `publicTransportVehicleApproaching - in case the type of event is a public transport vehicle approaching, with a priority defined by applicable traffic regulations,"]
2080 #[doc = " * - 29-90 - are reserved for future usage,"]
2081 #[doc = " * - 91 - `vehicleBreakdown91` - in case the type of event is break down vehicle on the road,"]
2082 #[doc = " * - 92 - `postCrash92` - in case the type of event is a detected crash,"]
2083 #[doc = " * - 93 - `humanProblem93` - in case the type of event is human health problem in vehicles involved in traffic,"]
2084 #[doc = " * - 94 - `stationaryVehicle94` - in case the type of event is stationary vehicle,"]
2085 #[doc = " * - 95 - `emergencyVehicleApproaching95` - in case the type of event is an approaching vehicle operating on a mission for which the "]
2086 #[doc = " applicable traffic regulations provide it with defined priority rights in traffic. "]
2087 #[doc = " * - 96 - `hazardousLocation-DangerousCurve96` - in case the type of event is dangerous curve,"]
2088 #[doc = " * - 97 - `collisionRisk97` - in case the type of event is a collision risk,"]
2089 #[doc = " * - 98 - `signalViolation98` - in case the type of event is signal violation,"]
2090 #[doc = " * - 99 - `dangerousSituation99` - in case the type of event is dangerous situation in which autonomous safety system in vehicle "]
2091 #[doc = " * is activated,"]
2092 #[doc = " * - 100 - `railwayLevelCrossing100` - in case the type of event is a railway level crossing. "]
2093 #[doc = " * - 101-255 - are reserved for future usage."]
2094 #[doc = " *"]
2095 #[doc = " * @note: this DF is defined for use as part of CauseCodeV2. It is recommended to use CauseCodeV2."]
2096 #[doc = " * @category: Traffic information"]
2097 #[doc = " * @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"]
2098 #[doc = " * name and/or definition of values 3, 6, 9, 15 and 17 changed in V2.4.1, value 4 assigned in V2.4.1"]
2099 #[doc = " "]
2100 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2101 #[rasn(choice, automatic_tags)]
2102 pub enum CauseCodeChoice {
2103 reserved0(SubCauseCodeType),
2104 trafficCondition1(TrafficConditionSubCauseCode),
2105 accident2(AccidentSubCauseCode),
2106 roadworks3(RoadworksSubCauseCode),
2107 detectedRoadworks4(SubCauseCodeType),
2108 impassability5(ImpassabilitySubCauseCode),
2109 adhesion6(AdhesionSubCauseCode),
2110 aquaplaning7(SubCauseCodeType),
2111 reserved8(SubCauseCodeType),
2112 #[rasn(identifier = "hazardousLocation-SurfaceCondition9")]
2113 hazardousLocation_SurfaceCondition9(HazardousLocationSurfaceConditionSubCauseCode),
2114 #[rasn(identifier = "hazardousLocation-ObstacleOnTheRoad10")]
2115 hazardousLocation_ObstacleOnTheRoad10(HazardousLocationObstacleOnTheRoadSubCauseCode),
2116 #[rasn(identifier = "hazardousLocation-AnimalOnTheRoad11")]
2117 hazardousLocation_AnimalOnTheRoad11(HazardousLocationAnimalOnTheRoadSubCauseCode),
2118 humanPresenceOnTheRoad12(HumanPresenceOnTheRoadSubCauseCode),
2119 reserved13(SubCauseCodeType),
2120 wrongWayDriving14(WrongWayDrivingSubCauseCode),
2121 rescueRecoveryAndMaintenanceWorkInProgress15(
2122 RescueRecoveryAndMaintenanceWorkInProgressSubCauseCode,
2123 ),
2124 reserved16(SubCauseCodeType),
2125 #[rasn(identifier = "adverseWeatherCondition-Wind17")]
2126 adverseWeatherCondition_Wind17(AdverseWeatherConditionWindSubCauseCode),
2127 #[rasn(identifier = "adverseWeatherCondition-Visibility18")]
2128 adverseWeatherCondition_Visibility18(AdverseWeatherConditionVisibilitySubCauseCode),
2129 #[rasn(identifier = "adverseWeatherCondition-Precipitation19")]
2130 adverseWeatherCondition_Precipitation19(AdverseWeatherConditionPrecipitationSubCauseCode),
2131 violence20(SubCauseCodeType),
2132 reserved21(SubCauseCodeType),
2133 reserved22(SubCauseCodeType),
2134 reserved23(SubCauseCodeType),
2135 reserved24(SubCauseCodeType),
2136 reserved25(SubCauseCodeType),
2137 slowVehicle26(SlowVehicleSubCauseCode),
2138 dangerousEndOfQueue27(DangerousEndOfQueueSubCauseCode),
2139 publicTransportVehicleApproaching28(SubCauseCodeType),
2140 reserved29(SubCauseCodeType),
2141 reserved30(SubCauseCodeType),
2142 reserved31(SubCauseCodeType),
2143 reserved32(SubCauseCodeType),
2144 reserved33(SubCauseCodeType),
2145 reserved34(SubCauseCodeType),
2146 reserved35(SubCauseCodeType),
2147 reserved36(SubCauseCodeType),
2148 reserved37(SubCauseCodeType),
2149 reserved38(SubCauseCodeType),
2150 reserved39(SubCauseCodeType),
2151 reserved40(SubCauseCodeType),
2152 reserved41(SubCauseCodeType),
2153 dontPanic42(SubCauseCodeType),
2154 reserved43(SubCauseCodeType),
2155 reserved44(SubCauseCodeType),
2156 reserved45(SubCauseCodeType),
2157 reserved46(SubCauseCodeType),
2158 reserved47(SubCauseCodeType),
2159 reserved48(SubCauseCodeType),
2160 reserved49(SubCauseCodeType),
2161 reserved50(SubCauseCodeType),
2162 reserved51(SubCauseCodeType),
2163 reserved52(SubCauseCodeType),
2164 reserved53(SubCauseCodeType),
2165 reserved54(SubCauseCodeType),
2166 reserved55(SubCauseCodeType),
2167 reserved56(SubCauseCodeType),
2168 reserved57(SubCauseCodeType),
2169 reserved58(SubCauseCodeType),
2170 reserved59(SubCauseCodeType),
2171 reserved60(SubCauseCodeType),
2172 reserved61(SubCauseCodeType),
2173 reserved62(SubCauseCodeType),
2174 reserved63(SubCauseCodeType),
2175 reserved64(SubCauseCodeType),
2176 reserved65(SubCauseCodeType),
2177 reserved66(SubCauseCodeType),
2178 reserved67(SubCauseCodeType),
2179 reserved68(SubCauseCodeType),
2180 reserved69(SubCauseCodeType),
2181 reserved70(SubCauseCodeType),
2182 reserved71(SubCauseCodeType),
2183 reserved72(SubCauseCodeType),
2184 reserved73(SubCauseCodeType),
2185 reserved74(SubCauseCodeType),
2186 reserved75(SubCauseCodeType),
2187 reserved76(SubCauseCodeType),
2188 reserved77(SubCauseCodeType),
2189 reserved78(SubCauseCodeType),
2190 reserved79(SubCauseCodeType),
2191 reserved80(SubCauseCodeType),
2192 reserved81(SubCauseCodeType),
2193 reserved82(SubCauseCodeType),
2194 reserved83(SubCauseCodeType),
2195 reserved84(SubCauseCodeType),
2196 reserved85(SubCauseCodeType),
2197 reserved86(SubCauseCodeType),
2198 reserved87(SubCauseCodeType),
2199 reserved88(SubCauseCodeType),
2200 reserved89(SubCauseCodeType),
2201 reserved90(SubCauseCodeType),
2202 vehicleBreakdown91(VehicleBreakdownSubCauseCode),
2203 postCrash92(PostCrashSubCauseCode),
2204 humanProblem93(HumanProblemSubCauseCode),
2205 stationaryVehicle94(StationaryVehicleSubCauseCode),
2206 emergencyVehicleApproaching95(EmergencyVehicleApproachingSubCauseCode),
2207 #[rasn(identifier = "hazardousLocation-DangerousCurve96")]
2208 hazardousLocation_DangerousCurve96(HazardousLocationDangerousCurveSubCauseCode),
2209 collisionRisk97(CollisionRiskSubCauseCode),
2210 signalViolation98(SignalViolationSubCauseCode),
2211 dangerousSituation99(DangerousSituationSubCauseCode),
2212 railwayLevelCrossing100(RailwayLevelCrossingSubCauseCode),
2213 reserved101(SubCauseCodeType),
2214 reserved102(SubCauseCodeType),
2215 reserved103(SubCauseCodeType),
2216 reserved104(SubCauseCodeType),
2217 reserved105(SubCauseCodeType),
2218 reserved106(SubCauseCodeType),
2219 reserved107(SubCauseCodeType),
2220 reserved108(SubCauseCodeType),
2221 reserved109(SubCauseCodeType),
2222 reserved110(SubCauseCodeType),
2223 reserved111(SubCauseCodeType),
2224 reserved112(SubCauseCodeType),
2225 reserved113(SubCauseCodeType),
2226 reserved114(SubCauseCodeType),
2227 reserved115(SubCauseCodeType),
2228 reserved116(SubCauseCodeType),
2229 reserved117(SubCauseCodeType),
2230 reserved118(SubCauseCodeType),
2231 reserved119(SubCauseCodeType),
2232 reserved120(SubCauseCodeType),
2233 reserved121(SubCauseCodeType),
2234 reserved122(SubCauseCodeType),
2235 reserved123(SubCauseCodeType),
2236 reserved124(SubCauseCodeType),
2237 reserved125(SubCauseCodeType),
2238 reserved126(SubCauseCodeType),
2239 reserved127(SubCauseCodeType),
2240 reserved128(SubCauseCodeType),
2241 }
2242 #[doc = "*"]
2243 #[doc = " *The DE represents the value of the cause code of an event. "]
2244 #[doc = " * "]
2245 #[doc = " * The value shall be set to:"]
2246 #[doc = " * - 0 - reserved for future use,"]
2247 #[doc = " * - 1 - `trafficCondition` - in case the type of event is an abnormal traffic condition,"]
2248 #[doc = " * - 2 - `accident` - in case the type of event is a road accident,"]
2249 #[doc = " * - 3 - `roadworks` - in case the type of event is roadworks, based on authoritative information,"]
2250 #[doc = " * - 4 - `detectedRoadworks` - in case the type of event is roadworks, based on non-authoritative information such as factual detections, "]
2251 #[doc = " * - 5 - `impassability` - in case the type of event is unmanaged road blocking, referring to any"]
2252 #[doc = " * blocking of a road, partial or total, which has not been adequately"]
2253 #[doc = " * secured and signposted,"]
2254 #[doc = " * - 6 - `adhesion` - in case the type of event is low adhesion of the road surface,"]
2255 #[doc = " * - 7 - `aquaplaning` - danger of aquaplaning on the road,"]
2256 #[doc = " * - 8 - reserved for future usage,"]
2257 #[doc = " * - 9 - `hazardousLocation-SurfaceCondition` - in case the type of event is abnormal road surface condition not covered by `adhesion`"]
2258 #[doc = " * - 10 - `hazardousLocation-ObstacleOnTheRoad` - in case the type of event is obstacle on the road,"]
2259 #[doc = " * - 11 - `hazardousLocation-AnimalOnTheRoad` - in case the type of event is animal on the road,"]
2260 #[doc = " * - 12 - `humanPresenceOnTheRoad` - in case the type of event is presence of human vulnerable road user on the road,"]
2261 #[doc = " * - 13 - reserved for future usage,"]
2262 #[doc = " * - 14 - `wrongWayDriving` - in case the type of the event is vehicle driving in wrong way,"]
2263 #[doc = " * - 15 - `rescueRecoveryAndMaintenanceWorkInProgress` - in case the type of event is rescue, recovery and maintenance work for accident or for a road hazard in progress,"]
2264 #[doc = " * - 16 - reserved for future usage,"]
2265 #[doc = " * - 17 - `adverseWeatherCondition-Wind `- in case the type of event is wind,"]
2266 #[doc = " * - 18 - `adverseWeatherCondition-Visibility` - in case the type of event is low visibility,"]
2267 #[doc = " * - 19 - `adverseWeatherCondition-Precipitation` - in case the type of event is precipitation,"]
2268 #[doc = " * - 20 - `violence` - in case the the type of event is human violence on or near the road,"]
2269 #[doc = " * - 21-25 - reserved for future usage,"]
2270 #[doc = " * - 26 - `slowVehicle` - in case the type of event is slow vehicle driving on the road,"]
2271 #[doc = " * - 27 - `dangerousEndOfQueue` - in case the type of event is dangerous end of vehicle queue,"]
2272 #[doc = " * - 28 - `publicTransportVehicleApproaching - in case the type of event is a public transport vehicle approaching, with a priority defined by applicable traffic regulations,"]
2273 #[doc = " * - 29-90 - are reserved for future usage,"]
2274 #[doc = " * - 91 - `vehicleBreakdown` - in case the type of event is break down vehicle on the road,"]
2275 #[doc = " * - 92 - `postCrash` - in case the type of event is a detected crash,"]
2276 #[doc = " * - 93 - `humanProblem` - in case the type of event is human health problem in vehicles involved in traffic,"]
2277 #[doc = " * - 94 - `stationaryVehicle` - in case the type of event is stationary vehicle,"]
2278 #[doc = " * - 95 - `emergencyVehicleApproaching` - in case the type of event is an approaching vehicle operating on a mission for which the applicable "]
2279 #[doc = " traffic regulations provide it with defined priority rights in traffic. "]
2280 #[doc = " * - 96 - `hazardousLocation-DangerousCurve` - in case the type of event is dangerous curve,"]
2281 #[doc = " * - 97 - `collisionRisk` - in case the type of event is a collision risk,"]
2282 #[doc = " * - 98 - `signalViolation` - in case the type of event is signal violation,"]
2283 #[doc = " * - 99 - `dangerousSituation` - in case the type of event is dangerous situation in which autonomous safety system in vehicle "]
2284 #[doc = " * is activated,"]
2285 #[doc = " * - 100 - `railwayLevelCrossing` - in case the type of event is a railway level crossing. "]
2286 #[doc = " * - 101-255 - are reserved for future usage."]
2287 #[doc = " *"]
2288 #[doc = " * @category: Traffic information"]
2289 #[doc = " * @revision: V1.3.1, value 20 and 100 added in V2.1.1, value 28 added in V2.2.1, definition of values 12 and 95 changed in V2.2.1,"]
2290 #[doc = " * name and/or definition of values 3, 6, 9, 15 and 17 changed in V2.4.1, value 4 assigned in V2.4.1"]
2291 #[doc = " "]
2292 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2293 #[rasn(delegate, value("0..=255"))]
2294 pub struct CauseCodeType(pub u8);
2295 #[doc = "*"]
2296 #[doc = " * This DF is an alternative representation of the cause code value of a traffic event. "]
2297 #[doc = " *"]
2298 #[doc = " * It shall include the following components: "]
2299 #[doc = " *"]
2300 #[doc = " * @field ccAndScc: the main cause of a detected event. Each entry is of a different type and represents the sub cause code."]
2301 #[doc = ""]
2302 #[doc = " * The semantics of the entire DF are completely defined by the choice value which represents the cause code value. "]
2303 #[doc = " * The interpretation of the sub cause code value may provide additional information that is not strictly necessary to understand "]
2304 #[doc = " * the cause code itself, and is therefore optional."]
2305 #[doc = " *"]
2306 #[doc = " * @category: Traffic information"]
2307 #[doc = " * @revision: Created in V2.1.1, description amended in V2.2.1"]
2308 #[doc = " "]
2309 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2310 #[rasn(automatic_tags)]
2311 #[non_exhaustive]
2312 pub struct CauseCodeV2 {
2313 #[rasn(identifier = "ccAndScc")]
2314 pub cc_and_scc: CauseCodeChoice,
2315 }
2316 impl CauseCodeV2 {
2317 pub fn new(cc_and_scc: CauseCodeChoice) -> Self {
2318 Self { cc_and_scc }
2319 }
2320 }
2321 #[doc = "*"]
2322 #[doc = " * The DF describes the position of a CEN DSRC road side equipment."]
2323 #[doc = " *"]
2324 #[doc = " * It shall include the following components: "]
2325 #[doc = " * "]
2326 #[doc = " * @field protectedZoneLatitude: the latitude of the CEN DSRC road side equipment."]
2327 #[doc = " * "]
2328 #[doc = " * @field protectedZoneLongitude: the latitude of the CEN DSRC road side equipment. "]
2329 #[doc = " * "]
2330 #[doc = " * @field cenDsrcTollingZoneID: the optional ID of the CEN DSRC road side equipment."]
2331 #[doc = " * "]
2332 #[doc = " * @category: Infrastructure information, Communication information"]
2333 #[doc = " * @revision: revised in V2.1.1 (cenDsrcTollingZoneId is directly of type ProtectedZoneId)"]
2334 #[doc = " "]
2335 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2336 #[rasn(automatic_tags)]
2337 #[non_exhaustive]
2338 pub struct CenDsrcTollingZone {
2339 #[rasn(identifier = "protectedZoneLatitude")]
2340 pub protected_zone_latitude: Latitude,
2341 #[rasn(identifier = "protectedZoneLongitude")]
2342 pub protected_zone_longitude: Longitude,
2343 #[rasn(identifier = "cenDsrcTollingZoneId")]
2344 pub cen_dsrc_tolling_zone_id: Option<ProtectedZoneId>,
2345 }
2346 impl CenDsrcTollingZone {
2347 pub fn new(
2348 protected_zone_latitude: Latitude,
2349 protected_zone_longitude: Longitude,
2350 cen_dsrc_tolling_zone_id: Option<ProtectedZoneId>,
2351 ) -> Self {
2352 Self {
2353 protected_zone_latitude,
2354 protected_zone_longitude,
2355 cen_dsrc_tolling_zone_id,
2356 }
2357 }
2358 }
2359 #[doc = "*"]
2360 #[doc = " * This DE represents the ID of a CEN DSRC tolling zone. "]
2361 #[doc = " * "]
2362 #[doc = " * @category: Communication information"]
2363 #[doc = " * @revision: V1.3.1"]
2364 #[doc = " * @note: this DE is deprecated and shall not be used anymore. "]
2365 #[doc = " "]
2366 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2367 #[rasn(delegate)]
2368 pub struct CenDsrcTollingZoneID(pub ProtectedZoneId);
2369 #[doc = "* "]
2370 #[doc = " * "]
2371 #[doc = " * This DF represents the shape of a circular area or a right cylinder that is centred on the shape's reference point. "]
2372 #[doc = " *"]
2373 #[doc = " * It shall include the following components: "]
2374 #[doc = " * "]
2375 #[doc = " * @field shapeReferencePoint: optional reference point that represents the centre of the circle, relative to an externally specified reference position. "]
2376 #[doc = " * If this component is absent, the externally specified reference position represents the shape's reference point. "]
2377 #[doc = " *"]
2378 #[doc = " * @field radius: the radius of the circular area."]
2379 #[doc = " *"]
2380 #[doc = " * @field height: the optional height, present if the shape is a right cylinder extending in the positive z-axis. "]
2381 #[doc = " *"]
2382 #[doc = " * "]
2383 #[doc = " * @category: GeoReference information"]
2384 #[doc = " * @revision: Created in V2.1.1"]
2385 #[doc = " "]
2386 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2387 #[rasn(automatic_tags)]
2388 pub struct CircularShape {
2389 #[rasn(identifier = "shapeReferencePoint")]
2390 pub shape_reference_point: Option<CartesianPosition3d>,
2391 pub radius: StandardLength12b,
2392 pub height: Option<StandardLength12b>,
2393 }
2394 impl CircularShape {
2395 pub fn new(
2396 shape_reference_point: Option<CartesianPosition3d>,
2397 radius: StandardLength12b,
2398 height: Option<StandardLength12b>,
2399 ) -> Self {
2400 Self {
2401 shape_reference_point,
2402 radius,
2403 height,
2404 }
2405 }
2406 }
2407 #[doc = "*"]
2408 #[doc = " * This DF indicates the opening/closure status of the lanes of a carriageway."]
2409 #[doc = " *"]
2410 #[doc = " * It shall include the following components: "]
2411 #[doc = " * "]
2412 #[doc = " * @field innerhardShoulderStatus: this information is optional and shall be included if an inner hard shoulder is present and the information is known."]
2413 #[doc = " * It indicates the open/closing status of inner hard shoulder lanes. "]
2414 #[doc = " * "]
2415 #[doc = " * @field outerhardShoulderStatus: this information is optional and shall be included if an outer hard shoulder is present and the information is known."]
2416 #[doc = " * It indicates the open/closing status of outer hard shoulder lanes. "]
2417 #[doc = " * "]
2418 #[doc = " * @field drivingLaneStatus: this information is optional and shall be included if the information is known."]
2419 #[doc = " * It indicates the open/closing status of driving lanes. "]
2420 #[doc = " * For carriageways with more than 13 driving lanes, the drivingLaneStatus component shall not be present."]
2421 #[doc = " * "]
2422 #[doc = " * @category: Infrastructure information, Road topology information"]
2423 #[doc = " * @revision: Description revised in V2.1.1"]
2424 #[doc = " "]
2425 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2426 #[rasn(automatic_tags)]
2427 #[non_exhaustive]
2428 pub struct ClosedLanes {
2429 #[rasn(identifier = "innerhardShoulderStatus")]
2430 pub innerhard_shoulder_status: Option<HardShoulderStatus>,
2431 #[rasn(identifier = "outerhardShoulderStatus")]
2432 pub outerhard_shoulder_status: Option<HardShoulderStatus>,
2433 #[rasn(identifier = "drivingLaneStatus")]
2434 pub driving_lane_status: Option<DrivingLaneStatus>,
2435 }
2436 impl ClosedLanes {
2437 pub fn new(
2438 innerhard_shoulder_status: Option<HardShoulderStatus>,
2439 outerhard_shoulder_status: Option<HardShoulderStatus>,
2440 driving_lane_status: Option<DrivingLaneStatus>,
2441 ) -> Self {
2442 Self {
2443 innerhard_shoulder_status,
2444 outerhard_shoulder_status,
2445 driving_lane_status,
2446 }
2447 }
2448 }
2449 #[doc = "*"]
2450 #[doc = " * This DF provides information about the breakup of a cluster."]
2451 #[doc = " *"]
2452 #[doc = " * It shall include the following components: "]
2453 #[doc = " * "]
2454 #[doc = " * @field clusterBreakupReason: indicates the reason for breakup."]
2455 #[doc = " * "]
2456 #[doc = " * @field breakupTime: indicates the time of breakup. "]
2457 #[doc = " *"]
2458 #[doc = " * @category: Cluster Information"]
2459 #[doc = " * @revision: Created in V2.1.1"]
2460 #[doc = " "]
2461 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2462 #[rasn(automatic_tags)]
2463 #[non_exhaustive]
2464 pub struct ClusterBreakupInfo {
2465 #[rasn(identifier = "clusterBreakupReason")]
2466 pub cluster_breakup_reason: ClusterBreakupReason,
2467 #[rasn(identifier = "breakupTime")]
2468 pub breakup_time: DeltaTimeQuarterSecond,
2469 }
2470 impl ClusterBreakupInfo {
2471 pub fn new(
2472 cluster_breakup_reason: ClusterBreakupReason,
2473 breakup_time: DeltaTimeQuarterSecond,
2474 ) -> Self {
2475 Self {
2476 cluster_breakup_reason,
2477 breakup_time,
2478 }
2479 }
2480 }
2481 #[doc = "*"]
2482 #[doc = " * This DE indicates the reason why a cluster leader intends to break up the cluster."]
2483 #[doc = " * "]
2484 #[doc = " * The value shall be set to:"]
2485 #[doc = " * - 0 - `notProvided` - if the information is not provided,"]
2486 #[doc = " * - 1 - `clusteringPurposeCompleted` - if the cluster purpose has been completed,"]
2487 #[doc = " * - 2 - `leaderMovedOutOfClusterBoundingBox` - if the leader moved out of the cluster's bounding box,"]
2488 #[doc = " * - 3 - `joiningAnotherCluster` - if the cluster leader is about to join another cluster,"]
2489 #[doc = " * - 4 - `enteringLowRiskAreaBasedOnMaps` - if the cluster is entering an area idenrified as low risk based on the use of maps,"]
2490 #[doc = " * - 5 - `receptionOfCpmContainingCluster` - if the leader received a Collective Perception Message containing information about the same cluster. "]
2491 #[doc = " * - 6 to 15 - are reserved for future use. "]
2492 #[doc = " *"]
2493 #[doc = " * @category: Cluster information"]
2494 #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
2495 #[doc = ""]
2496 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2497 #[rasn(delegate, value("0..=15"))]
2498 pub struct ClusterBreakupReason(pub u8);
2499 #[doc = "*"]
2500 #[doc = " * This DF provides information about the joining of a cluster."]
2501 #[doc = " *"]
2502 #[doc = " * It shall include the following components: "]
2503 #[doc = " * "]
2504 #[doc = " * @field clusterId: indicates the identifier of the cluster."]
2505 #[doc = " * "]
2506 #[doc = " * @field joinTime: indicates the time of joining. "]
2507 #[doc = " *"]
2508 #[doc = " * @category: Cluster Information"]
2509 #[doc = " * @revision: Created in V2.1.1"]
2510 #[doc = " "]
2511 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2512 #[rasn(automatic_tags)]
2513 #[non_exhaustive]
2514 pub struct ClusterJoinInfo {
2515 #[rasn(identifier = "clusterId")]
2516 pub cluster_id: Identifier1B,
2517 #[rasn(identifier = "joinTime")]
2518 pub join_time: DeltaTimeQuarterSecond,
2519 }
2520 impl ClusterJoinInfo {
2521 pub fn new(cluster_id: Identifier1B, join_time: DeltaTimeQuarterSecond) -> Self {
2522 Self {
2523 cluster_id,
2524 join_time,
2525 }
2526 }
2527 }
2528 #[doc = "*"]
2529 #[doc = " * The DF provides information about the leaving of a cluster."]
2530 #[doc = " *"]
2531 #[doc = " * It shall include the following components: "]
2532 #[doc = " * "]
2533 #[doc = " * @field clusterId: indicates the cluster."]
2534 #[doc = " * "]
2535 #[doc = " * @field clusterLeaveReason: indicates the reason for leaving. "]
2536 #[doc = " *"]
2537 #[doc = " * @category: Cluster Information"]
2538 #[doc = " * @revision: Created in V2.1.1"]
2539 #[doc = " "]
2540 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2541 #[rasn(automatic_tags)]
2542 #[non_exhaustive]
2543 pub struct ClusterLeaveInfo {
2544 #[rasn(identifier = "clusterId")]
2545 pub cluster_id: Identifier1B,
2546 #[rasn(identifier = "clusterLeaveReason")]
2547 pub cluster_leave_reason: ClusterLeaveReason,
2548 }
2549 impl ClusterLeaveInfo {
2550 pub fn new(cluster_id: Identifier1B, cluster_leave_reason: ClusterLeaveReason) -> Self {
2551 Self {
2552 cluster_id,
2553 cluster_leave_reason,
2554 }
2555 }
2556 }
2557 #[doc = "*"]
2558 #[doc = " * This DE indicates the reason why a cluster participant is leaving the cluster."]
2559 #[doc = " * "]
2560 #[doc = " * The value shall be set to:"]
2561 #[doc = " * - 0 - `notProvided ` - if the information is not provided,"]
2562 #[doc = " * - 1 - `clusterLeaderLost` - if the cluster leader cannot be found anymore, "]
2563 #[doc = " * - 2 - `clusterDisbandedByLeader` - if the cluster has been disbanded by the leader,"]
2564 #[doc = " * - 3 - `outOfClusterBoundingBox` - if the participants moved out of the cluster's bounding box,"]
2565 #[doc = " * - 4 - `outOfClusterSpeedRange` - if the cluster speed moved out of a defined range, "]
2566 #[doc = " * - 5 - `joiningAnotherCluster` - if the participant is joining another cluster,"]
2567 #[doc = " * - 6 - `cancelledJoin` - if the participant is cancelling a joining procedure,"]
2568 #[doc = " * - 7 - `failedJoin` - if the participant failed to join the cluster,"]
2569 #[doc = " * - 8 - `safetyCondition` - if a safety condition applies."]
2570 #[doc = " * - 9 to 15 - are reserved for future use "]
2571 #[doc = " *"]
2572 #[doc = " * @category: Cluster information"]
2573 #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
2574 #[doc = " "]
2575 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2576 #[rasn(delegate, value("0..=15"))]
2577 pub struct ClusterLeaveReason(pub u8);
2578 #[doc = "*"]
2579 #[doc = " * This DE represents the sub cause codes of the @ref CauseCode `collisionRisk`."]
2580 #[doc = " * "]
2581 #[doc = " * The value shall be set to:"]
2582 #[doc = " * - 0 - `unavailable` - in case information on the type of collision risk is unavailable,"]
2583 #[doc = " * - 1 - `longitudinalCollisionRisk` - in case the type of detected collision risk is longitudinal collision risk, "]
2584 #[doc = " * e.g. forward collision or face to face collision,"]
2585 #[doc = " * - 2 - `crossingCollisionRisk` - in case the type of detected collision risk is crossing collision risk,"]
2586 #[doc = " * - 3 - `lateralCollisionRisk` - in case the type of detected collision risk is lateral collision risk,"]
2587 #[doc = " * - 4 - `vulnerableRoadUser` - in case the type of detected collision risk involves vulnerable road users"]
2588 #[doc = " * e.g. pedestrians or bicycles."]
2589 #[doc = " * - 5 - `collisionRiskWithPedestrian` - in case the type of detected collision risk involves at least one pedestrian, "]
2590 #[doc = " * - 6 - `collisionRiskWithCyclist` - in case the type of detected collision risk involves at least one cyclist (and no pedestrians),"]
2591 #[doc = " * - 7 - `collisionRiskWithMotorVehicle` - in case the type of detected collision risk involves at least one motor vehicle (and no pedestrians or cyclists),"]
2592 #[doc = " * - 8 - `erraticDriving` - in case the collision risk is due a vehicle exhibiting inconsistent and unpredictable actions like swerving, abrupt lane changes, and inconsistent speed."]
2593 #[doc = " * - 9 - `recklessDriving` - in case the collision risk is due a vehicle exhibiting aggressive manoeuvres like tailgating and sudden lane changes and which ignores traffic rules. "]
2594 #[doc = " * - 10-255 - are reserved for future usage."]
2595 #[doc = " *"]
2596 #[doc = " * @category: Traffic information"]
2597 #[doc = " * @revision: V1.3.1, values 5-7 assigned in V2.2.1, values 8-9 added in V2.4.1"]
2598 #[doc = " "]
2599 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2600 #[rasn(delegate, value("0..=255"))]
2601 pub struct CollisionRiskSubCauseCode(pub u8);
2602 #[doc = "* "]
2603 #[doc = " * This DE represents a confidence level in percentage."]
2604 #[doc = " * "]
2605 #[doc = " * The value shall be set to:"]
2606 #[doc = " * - `n` (`n > 0` and `n < 101`) : for the confidence level in %,"]
2607 #[doc = " * - `101` : in case the confidence level is not available."]
2608 #[doc = " *"]
2609 #[doc = " * @unit Percent "]
2610 #[doc = " * @category: Basic information "]
2611 #[doc = " * @revision: Created in V2.1.1 "]
2612 #[doc = ""]
2613 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2614 #[rasn(delegate, value("1..=101"))]
2615 pub struct ConfidenceLevel(pub u8);
2616 #[doc = "*"]
2617 #[doc = "* This DF shall contain a list of @ref ConfidenceLevel."]
2618 #[doc = "*"]
2619 #[doc = "* @category: Basic information"]
2620 #[doc = "* @revision: created in V2.3.1 "]
2621 #[doc = ""]
2622 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2623 #[rasn(delegate, size("1..=32", extensible))]
2624 pub struct ConfidenceLevels(pub SequenceOf<ConfidenceLevel>);
2625 #[doc = "* "]
2626 #[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 %."]
2627 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
2628 #[doc = " *"]
2629 #[doc = " * The value shall be set to: "]
2630 #[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,"]
2631 #[doc = " * - `4095` if the confidence value is greater than 40,94 metres,"]
2632 #[doc = " * - `4096` if the confidence value is not available."]
2633 #[doc = " *"]
2634 #[doc = " * @unit 0,01 m"]
2635 #[doc = " * @category: Basic information"]
2636 #[doc = " * @revision: Created in V2.1.1"]
2637 #[doc = ""]
2638 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2639 #[rasn(delegate, value("1..=4096"))]
2640 pub struct CoordinateConfidence(pub u16);
2641 #[doc = "* "]
2642 #[doc = " * This DE represents the Bravais-Pearson correlation value for each cell of a lower triangular correlation matrix."]
2643 #[doc = " *"]
2644 #[doc = " * The value shall be set to: "]
2645 #[doc = " * - `-100` in case of full negative correlation,"]
2646 #[doc = " * - `n` (`n > -100` and `n < 0`) if the correlation is negative and equal to n/100,"]
2647 #[doc = " * - `0` in case of no correlation,"]
2648 #[doc = " * - `n` (`n > 0` and `n < 100`) if the correlation is positive and equal to n/100,"]
2649 #[doc = " * - `100` in case of full positive correlation,"]
2650 #[doc = " * - `101` in case the correlation information is unavailable. "]
2651 #[doc = " *"]
2652 #[doc = " * @unit: the value is scaled by 100"]
2653 #[doc = " * @category: Basic information"]
2654 #[doc = " * @revision: Created in V2.1.1, corrected the value to n/100 on V2.4.1"]
2655 #[doc = ""]
2656 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2657 #[rasn(delegate, value("-100..=101"))]
2658 pub struct CorrelationCellValue(pub i8);
2659 #[doc = "*"]
2660 #[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."]
2661 #[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."]
2662 #[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"]
2663 #[doc = " * starting at 1 from the left."]
2664 #[doc = " *"]
2665 #[doc = " * @category: Sensing Information"]
2666 #[doc = " * @revision: Created in V2.1.1"]
2667 #[doc = ""]
2668 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2669 #[rasn(delegate, size("1..=13", extensible))]
2670 pub struct CorrelationColumn(pub SequenceOf<CorrelationCellValue>);
2671 #[doc = "* "]
2672 #[doc = " * This DE represents an ISO 3166-1 [25] country code encoded using ITA-2 encoding."]
2673 #[doc = " *"]
2674 #[doc = " * @category: Basic information"]
2675 #[doc = " * @revision: Created in V2.2.1 based on ISO 14816 [23]"]
2676 #[doc = ""]
2677 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2678 #[rasn(delegate)]
2679 pub struct CountryCode(pub FixedBitString<10usize>);
2680 #[doc = "*"]
2681 #[doc = " * This DF represents the curvature of the vehicle trajectory and the associated confidence value."]
2682 #[doc = " * The curvature detected by a vehicle represents the curvature of actual vehicle trajectory."]
2683 #[doc = " *"]
2684 #[doc = " * It shall include the following components: "]
2685 #[doc = " * "]
2686 #[doc = " * @field curvatureValue: Detected curvature of the vehicle trajectory."]
2687 #[doc = " * "]
2688 #[doc = " * @field curvatureConfidence: along with a confidence value of the curvature value with a predefined confidence level. "]
2689 #[doc = " * "]
2690 #[doc = " * @category: Vehicle information"]
2691 #[doc = " * @revision: Description revised in V2.1.1"]
2692 #[doc = " "]
2693 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2694 #[rasn(automatic_tags)]
2695 pub struct Curvature {
2696 #[rasn(identifier = "curvatureValue")]
2697 pub curvature_value: CurvatureValue,
2698 #[rasn(identifier = "curvatureConfidence")]
2699 pub curvature_confidence: CurvatureConfidence,
2700 }
2701 impl Curvature {
2702 pub fn new(
2703 curvature_value: CurvatureValue,
2704 curvature_confidence: CurvatureConfidence,
2705 ) -> Self {
2706 Self {
2707 curvature_value,
2708 curvature_confidence,
2709 }
2710 }
2711 }
2712 #[doc = "*"]
2713 #[doc = " * The DE describes whether the yaw rate is used to calculate the curvature for a curvature value."]
2714 #[doc = " * "]
2715 #[doc = " * The value shall be set to:"]
2716 #[doc = " * - 0 - `yawRateUsed` - if the yaw rate is used,"]
2717 #[doc = " * - 1 - `yawRateNotUsed` - if the yaw rate is not used,"]
2718 #[doc = " * - 2 - `unavailable` - if the information of curvature calculation mode is unknown."]
2719 #[doc = " *"]
2720 #[doc = " * @category: Vehicle information"]
2721 #[doc = " * @revision: V1.3.1"]
2722 #[doc = " "]
2723 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2724 #[rasn(enumerated)]
2725 #[non_exhaustive]
2726 pub enum CurvatureCalculationMode {
2727 yawRateUsed = 0,
2728 yawRateNotUsed = 1,
2729 unavailable = 2,
2730 }
2731 #[doc = "*"]
2732 #[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 %."]
2733 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
2734 #[doc = " * "]
2735 #[doc = " * The value shall be set to:"]
2736 #[doc = " * - 0 - `onePerMeter-0-00002` - if the confidence value is less than or equal to 0,00002 m-1,"]
2737 #[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,"]
2738 #[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,"]
2739 #[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,"]
2740 #[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,"]
2741 #[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,"]
2742 #[doc = " * - 6 - `outOfRange` - if the confidence value is out of range, i.e. greater than 0,1 m-1,"]
2743 #[doc = " * - 7 - `unavailable` - if the confidence value is not available."]
2744 #[doc = " * "]
2745 #[doc = " * @note:\tThe fact that a curvature value is received with confidence value set to `unavailable(7)` can be caused by"]
2746 #[doc = " * several reasons, such as:"]
2747 #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
2748 #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
2749 #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
2750 #[doc = " * In all 3 cases above, the curvature value may be valid and used by the application."]
2751 #[doc = " * "]
2752 #[doc = " * @note: If a curvature value is received and its confidence value is set to `outOfRange(6)`, it means that the curvature value is not valid "]
2753 #[doc = " * and therefore cannot be trusted. Such value is not useful for the application."]
2754 #[doc = " * "]
2755 #[doc = " * @category: Vehicle information"]
2756 #[doc = " * @revision: Description revised in V2.1.1"]
2757 #[doc = ""]
2758 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2759 #[rasn(enumerated)]
2760 pub enum CurvatureConfidence {
2761 #[rasn(identifier = "onePerMeter-0-00002")]
2762 onePerMeter_0_00002 = 0,
2763 #[rasn(identifier = "onePerMeter-0-0001")]
2764 onePerMeter_0_0001 = 1,
2765 #[rasn(identifier = "onePerMeter-0-0005")]
2766 onePerMeter_0_0005 = 2,
2767 #[rasn(identifier = "onePerMeter-0-002")]
2768 onePerMeter_0_002 = 3,
2769 #[rasn(identifier = "onePerMeter-0-01")]
2770 onePerMeter_0_01 = 4,
2771 #[rasn(identifier = "onePerMeter-0-1")]
2772 onePerMeter_0_1 = 5,
2773 outOfRange = 6,
2774 unavailable = 7,
2775 }
2776 #[doc = "*"]
2777 #[doc = " * This DE describes vehicle turning curve with the following information:"]
2778 #[doc = " * ```"]
2779 #[doc = " * Value = 1 / Radius * 10000"]
2780 #[doc = " * ```"]
2781 #[doc = " * wherein radius is the vehicle turning curve radius in metres. "]
2782 #[doc = " * "]
2783 #[doc = " * Positive values indicate a turning curve to the left hand side of the driver."]
2784 #[doc = " * It corresponds to the vehicle coordinate system as defined in ISO 8855 [21]."]
2785 #[doc = " *"]
2786 #[doc = " * The value shall be set to:"]
2787 #[doc = " * - `-1023` for values smaller than -1023,"]
2788 #[doc = " * - `n` (`n > -1023` and `n < 0`) for negative values equal to or less than `n`, and greater than `(n-1)`,"]
2789 #[doc = " * - `0` when the vehicle is moving straight,"]
2790 #[doc = " * - `n` (`n > 0` and `n < 1022`) for positive values equal to or less than `n`, and greater than `(n-1)`,"]
2791 #[doc = " * - `1022`, for values greater than 1021,"]
2792 #[doc = " * - `1023`, if the information is not available."]
2793 #[doc = " * "]
2794 #[doc = " * @note: The present DE is limited to vehicle types as defined in ISO 8855 [21]."]
2795 #[doc = " * "]
2796 #[doc = " * @unit: 1 over 10 000 metres"]
2797 #[doc = " * @category: Vehicle information"]
2798 #[doc = " * @revision: description revised in V2.1.1 (the definition of value 1022 has changed slightly)"]
2799 #[doc = " "]
2800 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2801 #[rasn(delegate, value("-1023..=1023"))]
2802 pub struct CurvatureValue(pub i16);
2803 #[doc = "*"]
2804 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `dangerousEndOfQueue`. "]
2805 #[doc = " * "]
2806 #[doc = " * The value shall be set to:"]
2807 #[doc = " * - 0 - `unavailable` - in case information on the type of dangerous queue is unavailable,"]
2808 #[doc = " * - 1 - `suddenEndOfQueue`- in case a sudden end of queue is detected, e.g. due to accident or obstacle,"]
2809 #[doc = " * - 2 - `queueOverHill` - in case the dangerous end of queue is detected on the road hill,"]
2810 #[doc = " * - 3 - `queueAroundBend` - in case the dangerous end of queue is detected around the road bend,"]
2811 #[doc = " * - 4 - `queueInTunnel` - in case queue is detected in tunnel,"]
2812 #[doc = " * - 5-255 - reserved for future usage."]
2813 #[doc = " *"]
2814 #[doc = " * @category: Traffic information"]
2815 #[doc = " * @revision: V1.3.1"]
2816 #[doc = " "]
2817 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2818 #[rasn(delegate, value("0..=255"))]
2819 pub struct DangerousEndOfQueueSubCauseCode(pub u8);
2820 #[doc = "*"]
2821 #[doc = " * This DE indicates the type of the dangerous goods being carried by a heavy vehicle."]
2822 #[doc = " * The value is assigned according to `class` and `division` definitions of dangerous goods as specified in part II,"]
2823 #[doc = " * chapter 2.1.1.1 of European Agreement concerning the International Carriage of Dangerous Goods by Road [3]."]
2824 #[doc = " * "]
2825 #[doc = " * "]
2826 #[doc = " * @category Vehicle information"]
2827 #[doc = " * @revision: V1.3.1"]
2828 #[doc = " "]
2829 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2830 #[rasn(enumerated)]
2831 pub enum DangerousGoodsBasic {
2832 explosives1 = 0,
2833 explosives2 = 1,
2834 explosives3 = 2,
2835 explosives4 = 3,
2836 explosives5 = 4,
2837 explosives6 = 5,
2838 flammableGases = 6,
2839 nonFlammableGases = 7,
2840 toxicGases = 8,
2841 flammableLiquids = 9,
2842 flammableSolids = 10,
2843 substancesLiableToSpontaneousCombustion = 11,
2844 substancesEmittingFlammableGasesUponContactWithWater = 12,
2845 oxidizingSubstances = 13,
2846 organicPeroxides = 14,
2847 toxicSubstances = 15,
2848 infectiousSubstances = 16,
2849 radioactiveMaterial = 17,
2850 corrosiveSubstances = 18,
2851 miscellaneousDangerousSubstances = 19,
2852 }
2853 #[doc = "*"]
2854 #[doc = " * This DF provides a description of dangerous goods being carried by a heavy vehicle."]
2855 #[doc = " *"]
2856 #[doc = " * It shall include the following components: "]
2857 #[doc = " * "]
2858 #[doc = " * @field dangerousGoodsType: Type of dangerous goods."]
2859 #[doc = " * "]
2860 #[doc = " * @field unNumber: a 4-digit number that identifies the substance of the dangerous goods as specified in"]
2861 #[doc = " * United Nations Recommendations on the Transport of Dangerous Goods - Model Regulations [4],"]
2862 #[doc = " * "]
2863 #[doc = " * @field elevatedTemperature: whether the carried dangerous goods are transported at high temperature."]
2864 #[doc = " * If yes, the value shall be set to TRUE,"]
2865 #[doc = " * "]
2866 #[doc = " * @field tunnelsRestricted: whether the heavy vehicle carrying dangerous goods is restricted to enter tunnels."]
2867 #[doc = " * If yes, the value shall be set to TRUE,"]
2868 #[doc = " * "]
2869 #[doc = " * @field limitedQuantity: whether the carried dangerous goods are packed with limited quantity."]
2870 #[doc = " * If yes, the value shall be set to TRUE,"]
2871 #[doc = " * "]
2872 #[doc = " * @field emergencyActionCode: physical signage placard at the vehicle that carries information on how an emergency"]
2873 #[doc = " * service should deal with an incident. This component is optional; it shall be present if the information is available."]
2874 #[doc = " * "]
2875 #[doc = " * @field phoneNumber: contact phone number of assistance service in case of incident or accident."]
2876 #[doc = " * This component is optional, it shall be present if the information is available."]
2877 #[doc = " * "]
2878 #[doc = " * @field companyName: name of company that manages the transportation of the dangerous goods."]
2879 #[doc = " * This component is optional; it shall be present if the information is available."]
2880 #[doc = " * "]
2881 #[doc = " * @category Vehicle information"]
2882 #[doc = " * @revision: V1.3.1"]
2883 #[doc = " "]
2884 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2885 #[rasn(automatic_tags)]
2886 #[non_exhaustive]
2887 pub struct DangerousGoodsExtended {
2888 #[rasn(identifier = "dangerousGoodsType")]
2889 pub dangerous_goods_type: DangerousGoodsBasic,
2890 #[rasn(value("0..=9999"), identifier = "unNumber")]
2891 pub un_number: u16,
2892 #[rasn(identifier = "elevatedTemperature")]
2893 pub elevated_temperature: bool,
2894 #[rasn(identifier = "tunnelsRestricted")]
2895 pub tunnels_restricted: bool,
2896 #[rasn(identifier = "limitedQuantity")]
2897 pub limited_quantity: bool,
2898 #[rasn(size("1..=24"), identifier = "emergencyActionCode")]
2899 pub emergency_action_code: Option<Ia5String>,
2900 #[rasn(identifier = "phoneNumber")]
2901 pub phone_number: Option<PhoneNumber>,
2902 #[rasn(identifier = "companyName")]
2903 pub company_name: Option<Utf8String>,
2904 }
2905 impl DangerousGoodsExtended {
2906 pub fn new(
2907 dangerous_goods_type: DangerousGoodsBasic,
2908 un_number: u16,
2909 elevated_temperature: bool,
2910 tunnels_restricted: bool,
2911 limited_quantity: bool,
2912 emergency_action_code: Option<Ia5String>,
2913 phone_number: Option<PhoneNumber>,
2914 company_name: Option<Utf8String>,
2915 ) -> Self {
2916 Self {
2917 dangerous_goods_type,
2918 un_number,
2919 elevated_temperature,
2920 tunnels_restricted,
2921 limited_quantity,
2922 emergency_action_code,
2923 phone_number,
2924 company_name,
2925 }
2926 }
2927 }
2928 #[doc = "*"]
2929 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `dangerousSituation` "]
2930 #[doc = " * "]
2931 #[doc = " * The value shall be set to:"]
2932 #[doc = " * - 0 - `unavailable` - in case information on the type of dangerous situation is unavailable,"]
2933 #[doc = " * - 1 - `emergencyElectronicBrakeEngaged` - in case emergency electronic brake is engaged,"]
2934 #[doc = " * - 2 - `preCrashSystemEngaged` - in case pre-crash system is engaged,"]
2935 #[doc = " * - 3 - `espEngaged` - in case Electronic Stability Program (ESP) system is engaged,"]
2936 #[doc = " * - 4 - `absEngaged` - in case Anti-lock Braking System (ABS) is engaged,"]
2937 #[doc = " * - 5 - `aebEngaged` - in case Autonomous Emergency Braking (AEB) system is engaged,"]
2938 #[doc = " * - 6 - `brakeWarningEngaged` - in case brake warning is engaged,"]
2939 #[doc = " * - 7 - `collisionRiskWarningEngaged` - in case collision risk warning is engaged,"]
2940 #[doc = " * - 8 - `riskMitigationFunctionEngaged` - in case the Risk Mitigation Function according to UNECE Regulation 79 is engaged,"]
2941 #[doc = " * - 9-255 - reserved for future usage."]
2942 #[doc = " *"]
2943 #[doc = " * @category: Traffic information"]
2944 #[doc = " * @revision: V1.3.1, value 8 assigned in V2.4.1"]
2945 #[doc = " "]
2946 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2947 #[rasn(delegate, value("0..=255"))]
2948 pub struct DangerousSituationSubCauseCode(pub u8);
2949 #[doc = "*"]
2950 #[doc = " * This DE represents an offset altitude with regards to a defined altitude value."]
2951 #[doc = " * It may be used to describe a geographical point with regards to a specific reference geographical position."]
2952 #[doc = " *"]
2953 #[doc = " * The value shall be set to:"]
2954 #[doc = " * - `-12 700` for values equal to or lower than -127 metres,"]
2955 #[doc = " * - `n` (`n > -12 700` and `n <= 0`) for altitude offset n x 0,01 metre below the reference position,"]
2956 #[doc = " * - `0` for no altitudinal offset,"]
2957 #[doc = " * - `n` (`n > 0` and `n < 12799`) for altitude offset n x 0,01 metre above the reference position,"]
2958 #[doc = " * - `12 799` for values equal to or greater than 127,99 metres,"]
2959 #[doc = " * - `12 800` when the information is unavailable."]
2960 #[doc = " *"]
2961 #[doc = " * @unit: 0,01 metre"]
2962 #[doc = " * @category: GeoReference information"]
2963 #[doc = " * @revision: editorial update in V2.1.1"]
2964 #[doc = " "]
2965 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2966 #[rasn(delegate, value("-12700..=12800"))]
2967 pub struct DeltaAltitude(pub i16);
2968 #[doc = "*"]
2969 #[doc = " * This DE represents an offset latitude with regards to a defined latitude value."]
2970 #[doc = " * It may be used to describe a geographical point with regards to a specific reference geographical position."]
2971 #[doc = " *"]
2972 #[doc = " * The value shall be set to:"]
2973 #[doc = " * - `n` (`n >= -131 071` and `n < 0`) for offset n x 10^-7 degree towards the south from the reference position,"]
2974 #[doc = " * - `0` for no latitudinal offset,"]
2975 #[doc = " * - `n` (`n > 0` and `n < 131 072`) for offset n x 10^-7 degree towards the north from the reference position,"]
2976 #[doc = " * - `131 072` when the information is unavailable."]
2977 #[doc = " *"]
2978 #[doc = " * @unit: 10^-7 degree"]
2979 #[doc = " * @category: GeoReference information"]
2980 #[doc = " * @revision: editorial update in V2.1.1"]
2981 #[doc = " "]
2982 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2983 #[rasn(delegate, value("-131071..=131072"))]
2984 pub struct DeltaLatitude(pub i32);
2985 #[doc = "*"]
2986 #[doc = " * This DE represents an offset longitude with regards to a defined longitude value."]
2987 #[doc = " * It may be used to describe a geographical point with regards to a specific reference geographical position."]
2988 #[doc = " *"]
2989 #[doc = " * The value shall be set to:"]
2990 #[doc = " * - `n` (`n >= -131 071` and `n < 0`) for offset n x 10^-7 degree towards the west from the reference position,"]
2991 #[doc = " * - `0` for no longitudinal offset,"]
2992 #[doc = " * - `n` (`n > 0` and `n < 131 072`) for offset n x 10^-7 degree towards the east from the reference position, "]
2993 #[doc = " * - `131 072` when the information is unavailable."]
2994 #[doc = " *"]
2995 #[doc = " * @unit: 10^-7 degree"]
2996 #[doc = " * @category: GeoReference information"]
2997 #[doc = " * @revision: editorial update in V2.1.1"]
2998 #[doc = " "]
2999 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3000 #[rasn(delegate, value("-131071..=131072"))]
3001 pub struct DeltaLongitude(pub i32);
3002 #[doc = "*"]
3003 #[doc = "* This DF defines a geographical point position as a 2 dimensional offset position to a geographical reference point."]
3004 #[doc = "*"]
3005 #[doc = "* It shall include the following components: "]
3006 #[doc = "*"]
3007 #[doc = "* @field deltaLatitude: A delta latitude offset with regards to the latitude value of the reference position."]
3008 #[doc = "*"]
3009 #[doc = "* @field deltaLongitude: A delta longitude offset with regards to the longitude value of the reference position."]
3010 #[doc = "*"]
3011 #[doc = "* @category: GeoReference information"]
3012 #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321"]
3013 #[doc = ""]
3014 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3015 #[rasn(automatic_tags)]
3016 pub struct DeltaPosition {
3017 #[rasn(identifier = "deltaLatitude")]
3018 pub delta_latitude: DeltaLatitude,
3019 #[rasn(identifier = "deltaLongitude")]
3020 pub delta_longitude: DeltaLongitude,
3021 }
3022 impl DeltaPosition {
3023 pub fn new(delta_latitude: DeltaLatitude, delta_longitude: DeltaLongitude) -> Self {
3024 Self {
3025 delta_latitude,
3026 delta_longitude,
3027 }
3028 }
3029 }
3030 #[doc = "*"]
3031 #[doc = "* This DF shall contain a list of @ref DeltaPosition."]
3032 #[doc = "*"]
3033 #[doc = "* @category: GeoReference information"]
3034 #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (DF DeltaPosition)"]
3035 #[doc = ""]
3036 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3037 #[rasn(delegate, size("1..=32", extensible))]
3038 pub struct DeltaPositions(pub SequenceOf<DeltaPosition>);
3039 #[doc = "*"]
3040 #[doc = " * This DF defines a geographical point position as a 3 dimensional offset position to a geographical reference point."]
3041 #[doc = " *"]
3042 #[doc = " * It shall include the following components: "]
3043 #[doc = " *"]
3044 #[doc = " * @field deltaLatitude: A delta latitude offset with regards to the latitude value of the reference position."]
3045 #[doc = " *"]
3046 #[doc = " * @field deltaLongitude: A delta longitude offset with regards to the longitude value of the reference position."]
3047 #[doc = " *"]
3048 #[doc = " * @field deltaAltitude: A delta altitude offset with regards to the altitude value of the reference position."]
3049 #[doc = " *"]
3050 #[doc = " * @category: GeoReference information"]
3051 #[doc = " * @revision: V1.3.1"]
3052 #[doc = " "]
3053 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3054 #[rasn(automatic_tags)]
3055 pub struct DeltaReferencePosition {
3056 #[rasn(identifier = "deltaLatitude")]
3057 pub delta_latitude: DeltaLatitude,
3058 #[rasn(identifier = "deltaLongitude")]
3059 pub delta_longitude: DeltaLongitude,
3060 #[rasn(identifier = "deltaAltitude")]
3061 pub delta_altitude: DeltaAltitude,
3062 }
3063 impl DeltaReferencePosition {
3064 pub fn new(
3065 delta_latitude: DeltaLatitude,
3066 delta_longitude: DeltaLongitude,
3067 delta_altitude: DeltaAltitude,
3068 ) -> Self {
3069 Self {
3070 delta_latitude,
3071 delta_longitude,
3072 delta_altitude,
3073 }
3074 }
3075 }
3076 #[doc = "*"]
3077 #[doc = "* This DF shall contain a list of @ref DeltaReferencePosition."]
3078 #[doc = "*"]
3079 #[doc = "* @category: GeoReference information"]
3080 #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (DF DeltaReferencePositions)"]
3081 #[doc = ""]
3082 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3083 #[rasn(delegate, size("1..=32", extensible))]
3084 pub struct DeltaReferencePositions(pub SequenceOf<DeltaReferencePosition>);
3085 #[doc = "*"]
3086 #[doc = " * This DE represents a difference in time with respect to a reference time."]
3087 #[doc = " *"]
3088 #[doc = " * The value shall be set to:"]
3089 #[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,"]
3090 #[doc = " *"]
3091 #[doc = " * Example: a time interval between two consecutive message transmissions."]
3092 #[doc = " * "]
3093 #[doc = " * @unit: 0,001 s"]
3094 #[doc = " * @category: Basic information"]
3095 #[doc = " * @revision: Created in V2.1.1 from the DE TransmissionInterval in [2]"]
3096 #[doc = " "]
3097 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3098 #[rasn(delegate, value("1..=10000"))]
3099 pub struct DeltaTimeMilliSecondPositive(pub u16);
3100 #[doc = "* "]
3101 #[doc = " * This DE represents a signed difference in time with respect to a reference time."]
3102 #[doc = " *"]
3103 #[doc = " * The value shall be set to:"]
3104 #[doc = " * - `-2048` for time values equal to or less than -2,048 s,"]
3105 #[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,"]
3106 #[doc = " * - `2047` for time values greater than 2,046 s"]
3107 #[doc = " *"]
3108 #[doc = " * @unit: 0,001 s"]
3109 #[doc = " * @category: Basic information"]
3110 #[doc = " * @revision: Created in V2.1.1"]
3111 #[doc = ""]
3112 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3113 #[rasn(delegate, value("-2048..=2047"))]
3114 pub struct DeltaTimeMilliSecondSigned(pub i16);
3115 #[doc = "* "]
3116 #[doc = " * This DE represents a difference in time with respect to a reference time."]
3117 #[doc = " * It can be interpreted as the first 8 bits of a GenerationDeltaTime. To convert it to a @ref GenerationDeltaTime, "]
3118 #[doc = " * multiply by 256 (i.e. append a `00` byte)"]
3119 #[doc = " *"]
3120 #[doc = " * @unit: 256 * 0,001 s "]
3121 #[doc = " * @category: Basic information"]
3122 #[doc = " * @revision: Created in V2.1.1"]
3123 #[doc = " "]
3124 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3125 #[rasn(delegate, value("1..=255"))]
3126 pub struct DeltaTimeQuarterSecond(pub u8);
3127 #[doc = "* "]
3128 #[doc = " * This DE represents a difference in time with respect to a reference time."]
3129 #[doc = " *"]
3130 #[doc = " * The value shall be set to:"]
3131 #[doc = " * - `-0` for a difference in time of 0 seconds. "]
3132 #[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,"]
3133 #[doc = " *"]
3134 #[doc = " * @unit: 1 s"]
3135 #[doc = " * @category: Basic information"]
3136 #[doc = " * @revision: Created in V2.1.1 from ValidityDuration"]
3137 #[doc = ""]
3138 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3139 #[rasn(delegate, value("0..=86400"))]
3140 pub struct DeltaTimeSecond(pub u32);
3141 #[doc = "*"]
3142 #[doc = " * This DE represents a difference in time with respect to a reference time."]
3143 #[doc = " *"]
3144 #[doc = " * The value shall be set to:"]
3145 #[doc = " * - `-0` for a difference in time of 0 seconds. "]
3146 #[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,"]
3147 #[doc = " *"]
3148 #[doc = " * @unit: 10 s"]
3149 #[doc = " * @category: Basic information"]
3150 #[doc = " * @revision: Created in V2.2.1"]
3151 #[doc = ""]
3152 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3153 #[rasn(delegate, value("0..=127"))]
3154 pub struct DeltaTimeTenSeconds(pub u8);
3155 #[doc = "* "]
3156 #[doc = " * This DE represents a difference in time with respect to a reference time."]
3157 #[doc = " *"]
3158 #[doc = " * The value shall be set to:"]
3159 #[doc = " * - `0` for a difference in time of 0 seconds. "]
3160 #[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,"]
3161 #[doc = " *"]
3162 #[doc = " * @unit: 0,1 s"]
3163 #[doc = " * @category: Basic information"]
3164 #[doc = " * @revision: Created in V2.1.1"]
3165 #[doc = ""]
3166 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3167 #[rasn(delegate, value("0..=127"))]
3168 pub struct DeltaTimeTenthOfSecond(pub u8);
3169 #[doc = "*"]
3170 #[doc = " * This DF represents a portion of digital map. It shall contain a list of waypoints @ref ReferencePosition."]
3171 #[doc = " * "]
3172 #[doc = " * @category: GeoReference information"]
3173 #[doc = " * @revision: V1.3.1"]
3174 #[doc = " "]
3175 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3176 #[rasn(delegate, size("1..=256"))]
3177 pub struct DigitalMap(pub SequenceOf<ReferencePosition>);
3178 #[doc = "*"]
3179 #[doc = " * This DE indicates a direction with respect to a defined reference direction."]
3180 #[doc = " * Example: a reference direction may be implicitly defined by the definition of a geographical zone."]
3181 #[doc = " *"]
3182 #[doc = " * The value shall be set to:"]
3183 #[doc = " * - 0 - `sameDirection` - to indicate the same direction as the reference direction,"]
3184 #[doc = " * - 1 - `oppositeDirection` - to indicate opposite direction as the reference direction,"]
3185 #[doc = " * - 2 - `bothDirections` - to indicate both directions, i.e. the same and the opposite direction,"]
3186 #[doc = " * - 3 - `unavailable` - to indicate that the information is unavailable."]
3187 #[doc = " *"]
3188 #[doc = " * @category: GeoReference information"]
3189 #[doc = " * @revision: Created in V2.1.1"]
3190 #[doc = " "]
3191 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3192 #[rasn(delegate, value("0..=3"))]
3193 pub struct Direction(pub u8);
3194 #[doc = "*"]
3195 #[doc = " * This DE indicates in which direction something is moving."]
3196 #[doc = " *"]
3197 #[doc = " * The value shall be set to:"]
3198 #[doc = " * - 0 - `forward` - to indicate it is moving forward,"]
3199 #[doc = " * - 1 - `backwards` - to indicate it is moving backwards,"]
3200 #[doc = " * - 2 - `unavailable` - to indicate that the information is unavailable."]
3201 #[doc = " *"]
3202 #[doc = " * @category: Kinematic information"]
3203 #[doc = " * @revision: editorial update in V2.1.1"]
3204 #[doc = " "]
3205 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3206 #[rasn(enumerated)]
3207 pub enum DriveDirection {
3208 forward = 0,
3209 backward = 1,
3210 unavailable = 2,
3211 }
3212 #[doc = "*"]
3213 #[doc = " * This DE indicates whether a driving lane is open to traffic."]
3214 #[doc = " * "]
3215 #[doc = " * A lane is counted from inside border of the road excluding the hard shoulder. The size of the bit string shall"]
3216 #[doc = " * correspond to the total number of the driving lanes in the carriageway."]
3217 #[doc = " * "]
3218 #[doc = " * The numbering is matched to @ref LanePosition."]
3219 #[doc = " * The bit `0` is used to indicate the innermost lane, bit `1` is used to indicate the second lane from inside border."]
3220 #[doc = " * "]
3221 #[doc = " * If a lane is closed to traffic, the corresponding bit shall be set to `1`. Otherwise, it shall be set to `0`."]
3222 #[doc = " * "]
3223 #[doc = " * @note: hard shoulder status is not provided by this DE but in @ref HardShoulderStatus."]
3224 #[doc = " * "]
3225 #[doc = " * @category: Traffic information"]
3226 #[doc = " * @revision: V1.3.1"]
3227 #[doc = " "]
3228 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3229 #[rasn(delegate, size("1..=13"))]
3230 pub struct DrivingLaneStatus(pub BitString);
3231 #[doc = "* "]
3232 #[doc = " * "]
3233 #[doc = " * This DF represents the shape of an elliptical area or right elliptical cylinder that is centred "]
3234 #[doc = " * on the shape's reference point defined outside of the context of this DF and oriented w.r.t. a "]
3235 #[doc = " * cartesian coordinate system defined outside of the context of this DF. "]
3236 #[doc = " *"]
3237 #[doc = " * It shall include the following components: "]
3238 #[doc = " * "]
3239 #[doc = " * @field shapeReferencePoint: optional reference point which represents the centre of the ellipse, "]
3240 #[doc = " * relative to an externally specified reference position. If this component is absent, the "]
3241 #[doc = " * externally specified reference position represents the shape's reference point. "]
3242 #[doc = " *"]
3243 #[doc = " * @field semiMajorAxisLength: half length of the major axis of the ellipse located in the X-Y Plane."]
3244 #[doc = " * "]
3245 #[doc = " * @field semiMinorAxisLength: half length of the minor axis of the ellipse located in the X-Y Plane."]
3246 #[doc = " *"]
3247 #[doc = " * @field orientation: the optional orientation of the major axis of the ellipse, measured with "]
3248 #[doc = " * positive values turning around the z-axis using the right-hand rule, starting from the X-axis."]
3249 #[doc = " * If absent, the orientation is equal to the value zero. "]
3250 #[doc = " * "]
3251 #[doc = " * @field height: the optional height, present if the shape is a right elliptical cylinder extending "]
3252 #[doc = " * in the positive Z-axis."]
3253 #[doc = " *"]
3254 #[doc = " * @category: GeoReference information"]
3255 #[doc = " * @revision: Created in V2.1.1, the type of the field orientation changed and the description revised in V2.2.1, added note on orientation in V2.4.1"]
3256 #[doc = ""]
3257 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3258 #[rasn(automatic_tags)]
3259 pub struct EllipticalShape {
3260 #[rasn(identifier = "shapeReferencePoint")]
3261 pub shape_reference_point: Option<CartesianPosition3d>,
3262 #[rasn(identifier = "semiMajorAxisLength")]
3263 pub semi_major_axis_length: StandardLength12b,
3264 #[rasn(identifier = "semiMinorAxisLength")]
3265 pub semi_minor_axis_length: StandardLength12b,
3266 pub orientation: Option<CartesianAngleValue>,
3267 pub height: Option<StandardLength12b>,
3268 }
3269 impl EllipticalShape {
3270 pub fn new(
3271 shape_reference_point: Option<CartesianPosition3d>,
3272 semi_major_axis_length: StandardLength12b,
3273 semi_minor_axis_length: StandardLength12b,
3274 orientation: Option<CartesianAngleValue>,
3275 height: Option<StandardLength12b>,
3276 ) -> Self {
3277 Self {
3278 shape_reference_point,
3279 semi_major_axis_length,
3280 semi_minor_axis_length,
3281 orientation,
3282 height,
3283 }
3284 }
3285 }
3286 #[doc = "*"]
3287 #[doc = " * This DE indicates whether a vehicle (e.g. public transport vehicle, truck) is under the embarkation process."]
3288 #[doc = " * If that is the case, the value is *TRUE*, otherwise *FALSE*."]
3289 #[doc = " *"]
3290 #[doc = " * @category: Vehicle information"]
3291 #[doc = " * @revision: editorial update in V2.1.1"]
3292 #[doc = " "]
3293 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3294 #[rasn(delegate)]
3295 pub struct EmbarkationStatus(pub bool);
3296 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3297 #[rasn(delegate)]
3298 pub struct EmergencyPriority(pub FixedBitString<2usize>);
3299 #[doc = "*"]
3300 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode \"emergencyVehicleApproaching\". "]
3301 #[doc = " * "]
3302 #[doc = " * The value shall be set to:"]
3303 #[doc = " * - 0 - `unavailable` - in case further detailed information on the emergency vehicle approaching event "]
3304 #[doc = " * is unavailable,"]
3305 #[doc = " * - 1 - `emergencyVehicleApproaching` - in case an operating emergency vehicle is approaching,"]
3306 #[doc = " * - 2 - `prioritizedVehicleApproaching` - in case a prioritized vehicle is approaching,"]
3307 #[doc = " * - 3-255 - reserved for future usage."]
3308 #[doc = " *"]
3309 #[doc = " * @category: Traffic information"]
3310 #[doc = " * @revision: V1.3.1"]
3311 #[doc = " "]
3312 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3313 #[rasn(delegate, value("0..=255"))]
3314 pub struct EmergencyVehicleApproachingSubCauseCode(pub u8);
3315 #[doc = "*"]
3316 #[doc = " * This DE indicated the type of energy being used and stored in vehicle."]
3317 #[doc = " *"]
3318 #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
3319 #[doc = " * - 0 - `hydrogenStorage` - when hydrogen is being used and stored in vehicle,"]
3320 #[doc = " * - 1 - `electricEnergyStorage` - when electric energy is being used and stored in vehicle,"]
3321 #[doc = " * - 2 - `liquidPropaneGas` - when liquid Propane Gas (LPG) is being used and stored in vehicle, "]
3322 #[doc = " * - 3 - `compressedNaturalGas ` - when compressedNaturalGas (CNG) is being used and stored in vehicle,"]
3323 #[doc = " * - 4 - `diesel` - when diesel is being used and stored in vehicle,"]
3324 #[doc = " * - 5 - `gasoline` - when gasoline is being used and stored in vehicle,"]
3325 #[doc = " * - 6 - `ammonia` - when ammonia is being used and stored in vehicle."]
3326 #[doc = " *"]
3327 #[doc = " * - Otherwise, the corresponding bit shall be set to `0`."]
3328 #[doc = " *"]
3329 #[doc = " * @category: Vehicle information"]
3330 #[doc = " * @revision: editorial revision in V2.1.1 "]
3331 #[doc = " "]
3332 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3333 #[rasn(delegate)]
3334 pub struct EnergyStorageType(pub FixedBitString<7usize>);
3335 #[doc = "* "]
3336 #[doc = " * "]
3337 #[doc = " * This DF represents a vehicle category according to the UNECE/TRANS/WP.29/78/Rev.4 [16]."]
3338 #[doc = " * The following options are available:"]
3339 #[doc = " * "]
3340 #[doc = " * @field euVehicleCategoryL: indicates a vehicle in the L category."]
3341 #[doc = " *"]
3342 #[doc = " * @field euVehicleCategoryM: indicates a vehicle in the M category."]
3343 #[doc = " *"]
3344 #[doc = " * @field euVehicleCategoryN: indicates a vehicle in the N category."]
3345 #[doc = " *"]
3346 #[doc = " * @field euVehicleCategoryO: indicates a vehicle in the O category."]
3347 #[doc = " *"]
3348 #[doc = " * @field euVehicleCategoryT: indicates a vehicle in the T category."]
3349 #[doc = " *"]
3350 #[doc = " * @field euVehicleCategoryG: indicates a vehicle in the G category."]
3351 #[doc = " * "]
3352 #[doc = " * @category: Vehicle information"]
3353 #[doc = " * @revision: Created in V2.1.1"]
3354 #[doc = ""]
3355 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3356 #[rasn(choice, automatic_tags)]
3357 pub enum EuVehicleCategoryCode {
3358 euVehicleCategoryL(EuVehicleCategoryL),
3359 euVehicleCategoryM(EuVehicleCategoryM),
3360 euVehicleCategoryN(EuVehicleCategoryN),
3361 euVehicleCategoryO(EuVehicleCategoryO),
3362 euVehicleCategoryT(()),
3363 euVehicleCategoryG(()),
3364 }
3365 #[doc = "*"]
3366 #[doc = " * This DE represents one of the specific categories in the L category: L1, L2, L3, L4, L5, L6, or L7 according to UNECE/TRANS/WP.29/78/Rev.4 [16]."]
3367 #[doc = " *"]
3368 #[doc = " *"]
3369 #[doc = " * @category: Vehicle information"]
3370 #[doc = " * @revision: V2.1.1"]
3371 #[doc = " "]
3372 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3373 #[rasn(enumerated)]
3374 pub enum EuVehicleCategoryL {
3375 l1 = 0,
3376 l2 = 1,
3377 l3 = 2,
3378 l4 = 3,
3379 l5 = 4,
3380 l6 = 5,
3381 l7 = 6,
3382 }
3383 #[doc = "*"]
3384 #[doc = " * This DE represents one of the specific categories in the M category: M1, M2, or M3 according to UNECE/TRANS/WP.29/78/Rev.4 [16]."]
3385 #[doc = " *"]
3386 #[doc = " *"]
3387 #[doc = " * @category: Vehicle information"]
3388 #[doc = " * @revision: V2.1.1"]
3389 #[doc = " "]
3390 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3391 #[rasn(enumerated)]
3392 pub enum EuVehicleCategoryM {
3393 m1 = 0,
3394 m2 = 1,
3395 m3 = 2,
3396 }
3397 #[doc = "*"]
3398 #[doc = " * This DE represents one of the specific categories in the N category: N1, N2, or N3 according to UNECE/TRANS/WP.29/78/Rev.4 [16]."]
3399 #[doc = " *"]
3400 #[doc = " *"]
3401 #[doc = " * @category: Vehicle information"]
3402 #[doc = " * @revision: V2.1.1"]
3403 #[doc = " "]
3404 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3405 #[rasn(enumerated)]
3406 pub enum EuVehicleCategoryN {
3407 n1 = 0,
3408 n2 = 1,
3409 n3 = 2,
3410 }
3411 #[doc = "*"]
3412 #[doc = " * This DE represents one of the specific categories in the O category: O1, O2, O3 or O4 according to UNECE/TRANS/WP.29/78/Rev.4 [16]."]
3413 #[doc = " *"]
3414 #[doc = " *"]
3415 #[doc = " * @category: Vehicle information"]
3416 #[doc = " * @revision: V2.1.1"]
3417 #[doc = " "]
3418 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3419 #[rasn(enumerated)]
3420 pub enum EuVehicleCategoryO {
3421 o1 = 0,
3422 o2 = 1,
3423 o3 = 2,
3424 o4 = 3,
3425 }
3426 #[doc = "* "]
3427 #[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."]
3428 #[doc = " *"]
3429 #[doc = " * It shall include the following components: "]
3430 #[doc = " *"]
3431 #[doc = " * @field zAngle: z-angle of object bounding box at the time of measurement, with the associated confidence."]
3432 #[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. "]
3433 #[doc = " * This extrinsic rotation shall be applied around the centre point of the object bounding box before all other rotations."]
3434 #[doc = " *"]
3435 #[doc = " * @field yAngle: optional y-angle of object bounding box at the time of measurement, with the associated confidence."]
3436 #[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. "]
3437 #[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."]
3438 #[doc = " *"]
3439 #[doc = " * @field xAngle: optional x-angle of object bounding box at the time of measurement, with the associated confidence."]
3440 #[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. "]
3441 #[doc = " * This extrinsic rotation shall be applied around the centre point of the object bounding box after all other rotations."]
3442 #[doc = " * "]
3443 #[doc = " * @category: Basic information"]
3444 #[doc = " * @revision: Created in V2.1.1"]
3445 #[doc = ""]
3446 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3447 #[rasn(automatic_tags)]
3448 pub struct EulerAnglesWithConfidence {
3449 #[rasn(identifier = "zAngle")]
3450 pub z_angle: CartesianAngle,
3451 #[rasn(identifier = "yAngle")]
3452 pub y_angle: Option<CartesianAngle>,
3453 #[rasn(identifier = "xAngle")]
3454 pub x_angle: Option<CartesianAngle>,
3455 }
3456 impl EulerAnglesWithConfidence {
3457 pub fn new(
3458 z_angle: CartesianAngle,
3459 y_angle: Option<CartesianAngle>,
3460 x_angle: Option<CartesianAngle>,
3461 ) -> Self {
3462 Self {
3463 z_angle,
3464 y_angle,
3465 x_angle,
3466 }
3467 }
3468 }
3469 #[doc = "*"]
3470 #[doc = " * The DF shall contain a list of @ref EventPoint. "]
3471 #[doc = " *"]
3472 #[doc = " * The eventPosition of each @ref EventPoint is defined with respect to the previous @ref EventPoint in the list. "]
3473 #[doc = " * Except for the first @ref EventPoint which is defined with respect to a position outside of the context of this DF."]
3474 #[doc = " *"]
3475 #[doc = " * @category: GeoReference information, Traffic information"]
3476 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref EventZone instead. "]
3477 #[doc = " * @revision: Generalized the semantics in V2.1.1"]
3478 #[doc = " "]
3479 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3480 #[rasn(delegate, size("1..=23"))]
3481 pub struct EventHistory(pub SequenceOf<EventPoint>);
3482 #[doc = "*"]
3483 #[doc = " * This DF provides information related to an event at a defined position."]
3484 #[doc = " *"]
3485 #[doc = " * It shall include the following components: "]
3486 #[doc = " * "]
3487 #[doc = " * @field eventPosition: offset position of a detected event point to a defined position. "]
3488 #[doc = " * "]
3489 #[doc = " * @field eventDeltaTime: optional time travelled by the detecting ITS-S since the previous detected event point."]
3490 #[doc = " * "]
3491 #[doc = " * @field informationQuality: Information quality of the detection for this event point."]
3492 #[doc = " * "]
3493 #[doc = " * @category: GeoReference information, Traffic information"]
3494 #[doc = " * @revision: generalized the semantics in V2.1.1"]
3495 #[doc = " "]
3496 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3497 #[rasn(automatic_tags)]
3498 pub struct EventPoint {
3499 #[rasn(identifier = "eventPosition")]
3500 pub event_position: DeltaReferencePosition,
3501 #[rasn(identifier = "eventDeltaTime")]
3502 pub event_delta_time: Option<PathDeltaTime>,
3503 #[rasn(identifier = "informationQuality")]
3504 pub information_quality: InformationQuality,
3505 }
3506 impl EventPoint {
3507 pub fn new(
3508 event_position: DeltaReferencePosition,
3509 event_delta_time: Option<PathDeltaTime>,
3510 information_quality: InformationQuality,
3511 ) -> Self {
3512 Self {
3513 event_position,
3514 event_delta_time,
3515 information_quality,
3516 }
3517 }
3518 }
3519 #[doc = "*"]
3520 #[doc = " * The DF shall contain a list of @ref EventPoint, where all @ref EventPoint either contain the COMPONENT eventDeltaTime "]
3521 #[doc = " * or do not contain the COMPONENT eventDeltaTime. "]
3522 #[doc = " *"]
3523 #[doc = " * The eventPosition of each @ref EventPoint is defined with respect to the previous @ref EventPoint in the list. "]
3524 #[doc = " * Except for the first @ref EventPoint which is defined with respect to a position outside of the context of this DF."]
3525 #[doc = " *"]
3526 #[doc = " * @category: GeoReference information, Traffic information"]
3527 #[doc = " * @revision: created in V2.1.1 based on EventHistory"]
3528 #[doc = " "]
3529 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3530 #[rasn(delegate)]
3531 pub struct EventZone(pub EventHistory);
3532 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3533 #[rasn(choice)]
3534 pub enum Ext1 {
3535 #[rasn(value("128..=16511"), tag(context, 0))]
3536 content(u16),
3537 #[rasn(tag(context, 1))]
3538 extension(Ext2),
3539 }
3540 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3541 #[rasn(choice)]
3542 pub enum Ext2 {
3543 #[rasn(value("16512..=2113663"), tag(context, 0))]
3544 content(u32),
3545 #[rasn(tag(context, 1))]
3546 extension(Ext3),
3547 }
3548 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3549 #[rasn(delegate, value("2113664..=270549119", extensible))]
3550 pub struct Ext3(pub Integer);
3551 #[doc = "*"]
3552 #[doc = " * This DE describes the status of the exterior light switches of a vehicle incl. VRU vehicles."]
3553 #[doc = " *"]
3554 #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
3555 #[doc = " * - 0 - `lowBeamHeadlightsOn` - when the low beam head light switch is on,"]
3556 #[doc = " * - 1 - `highBeamHeadlightsOn` - when the high beam head light switch is on,"]
3557 #[doc = " * - 2 - `leftTurnSignalOn` - when the left turnSignal switch is on,"]
3558 #[doc = " * - 3 - `rightTurnSignalOn` - when the right turn signal switch is on,"]
3559 #[doc = " * - 4 - `daytimeRunningLightsOn` - when the daytime running light switch is on,"]
3560 #[doc = " * - 5 - `reverseLightOn` - when the reverse light switch is on,"]
3561 #[doc = " * - 6 - `fogLightOn` - when the tail fog light switch is on,"]
3562 #[doc = " * - 7 - `parkingLightsOn` - when the parking light switch is on."]
3563 #[doc = " * "]
3564 #[doc = " * @note: The value of each bit indicates the state of the switch, which commands the corresponding light."]
3565 #[doc = " * The bit corresponding to a specific light is set to `1`, when the corresponding switch is turned on,"]
3566 #[doc = " * either manually by the driver or automatically by a vehicle system. The bit value does not indicate"]
3567 #[doc = " * if the corresponding lamps are alight or not."]
3568 #[doc = " * "]
3569 #[doc = " * If a vehicle is not equipped with a certain light or if the light switch status information is not available,"]
3570 #[doc = " * the corresponding bit shall be set to `0`."]
3571 #[doc = " * "]
3572 #[doc = " * As the bit value indicates only the state of the switch, the turn signal and hazard signal bit values shall not"]
3573 #[doc = " * alternate with the blinking interval."]
3574 #[doc = " * "]
3575 #[doc = " * For hazard indicator, the `leftTurnSignalOn (2)` and `rightTurnSignalOn (3)` shall be both set to `1`."]
3576 #[doc = " * "]
3577 #[doc = " * @category Vehicle information"]
3578 #[doc = " * @revision: Description revised in V2.1.1"]
3579 #[doc = " "]
3580 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3581 #[rasn(delegate)]
3582 pub struct ExteriorLights(pub FixedBitString<8usize>);
3583 #[doc = "*"]
3584 #[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."]
3585 #[doc = " *"]
3586 #[doc = " * @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 "]
3587 #[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 "]
3588 #[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, "]
3589 #[doc = " * where the dimensions of an object or the extension of an area is considered."]
3590 #[doc = " *"]
3591 #[doc = " * It shall include the following components: "]
3592 #[doc = " *"]
3593 #[doc = " * @field lanePositionBased: lane position information for a defined reference position."]
3594 #[doc = " * "]
3595 #[doc = " * @field mapBased: optional lane position information described in the context of a MAPEM as specified in ETSI TS 103 301 [15]. "]
3596 #[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 "]
3597 #[doc = " * (e.g. on an intersection): In this case it is used as a synonym to the mandatory component lanePositionBased. "]
3598 #[doc = " * "]
3599 #[doc = " * @field confidence: confidence information for expressing the probability that the object is located at the indicated lane. "]
3600 #[doc = " * If the value of the component lanePositionBased is generated directly from the absolute reference position and reference topology information, "]
3601 #[doc = " * no sensor shall be indicated in the component usedDetectionInformation of the @ref MetaInformation."]
3602 #[doc = " *"]
3603 #[doc = " * @category: Road Topology information"]
3604 #[doc = " * @revision: newly created in V2.2.1. The previous DF GeneralizedLanePosition is now renamed to @ref LanePositionOptions. "]
3605 #[doc = " "]
3606 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3607 #[rasn(automatic_tags)]
3608 #[non_exhaustive]
3609 pub struct GeneralizedLanePosition {
3610 #[rasn(identifier = "lanePositionBased")]
3611 pub lane_position_based: LanePositionOptions,
3612 #[rasn(identifier = "mapBased")]
3613 pub map_based: Option<MapPosition>,
3614 pub confidence: MetaInformation,
3615 }
3616 impl GeneralizedLanePosition {
3617 pub fn new(
3618 lane_position_based: LanePositionOptions,
3619 map_based: Option<MapPosition>,
3620 confidence: MetaInformation,
3621 ) -> Self {
3622 Self {
3623 lane_position_based,
3624 map_based,
3625 confidence,
3626 }
3627 }
3628 }
3629 #[doc = "*"]
3630 #[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."]
3631 #[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."]
3632 #[doc = " *"]
3633 #[doc = " * @category: Road Topology information"]
3634 #[doc = " * @revision: Created in V2.2.1"]
3635 #[doc = " "]
3636 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3637 #[rasn(delegate, size("1..=4"))]
3638 pub struct GeneralizedLanePositions(pub SequenceOf<GeneralizedLanePosition>);
3639 #[doc = "*"]
3640 #[doc = " * This DE represents a timestamp based on TimestampIts modulo 65 536."]
3641 #[doc = " * This means that generationDeltaTime = TimestampIts mod 65 536."]
3642 #[doc = " *"]
3643 #[doc = " * @category: Basic information"]
3644 #[doc = " * @revision: Created in V2.1.1 based on ETSI TS 103 900 [1]"]
3645 #[doc = ""]
3646 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3647 #[rasn(delegate, value("0..=65535"))]
3648 pub struct GenerationDeltaTime(pub u16);
3649 #[doc = "* "]
3650 #[doc = " * This DF indicates a geographical position."]
3651 #[doc = " *"]
3652 #[doc = " * It shall include the following components: "]
3653 #[doc = " *"]
3654 #[doc = " * @field latitude: the latitude of the geographical position."]
3655 #[doc = " *"]
3656 #[doc = " * @field longitude: the longitude of the geographical position."]
3657 #[doc = " *"]
3658 #[doc = " * @field altitude: the altitude of the geographical position with default value unavailable."]
3659 #[doc = " *"]
3660 #[doc = ""]
3661 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3662 #[rasn(automatic_tags)]
3663 pub struct GeoPosition {
3664 pub latitude: Latitude,
3665 pub longitude: Longitude,
3666 #[rasn(default = "geo_position_altitude_default")]
3667 pub altitude: AltitudeValue,
3668 }
3669 impl GeoPosition {
3670 pub fn new(latitude: Latitude, longitude: Longitude, altitude: AltitudeValue) -> Self {
3671 Self {
3672 latitude,
3673 longitude,
3674 altitude,
3675 }
3676 }
3677 }
3678 fn geo_position_altitude_default() -> AltitudeValue {
3679 AltitudeValue(800001)
3680 }
3681 #[doc = "*"]
3682 #[doc = "* This DE indicates a geographical position with altitude."]
3683 #[doc = "*"]
3684 #[doc = "* It shall include the following components: "]
3685 #[doc = "*"]
3686 #[doc = "* @field latitude: the latitude of the geographical position."]
3687 #[doc = "*"]
3688 #[doc = "* @field longitude: the longitude of the geographical position."]
3689 #[doc = "*"]
3690 #[doc = "* @field altitude: the altitude of the geographical position."]
3691 #[doc = "*"]
3692 #[doc = "* @category: GeoReference information"]
3693 #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (DF AbsolutePositionWAltitude)"]
3694 #[doc = ""]
3695 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3696 #[rasn(automatic_tags)]
3697 pub struct GeoPositionWAltitude {
3698 pub latitude: Latitude,
3699 pub longitude: Longitude,
3700 pub altitude: Altitude,
3701 }
3702 impl GeoPositionWAltitude {
3703 pub fn new(latitude: Latitude, longitude: Longitude, altitude: Altitude) -> Self {
3704 Self {
3705 latitude,
3706 longitude,
3707 altitude,
3708 }
3709 }
3710 }
3711 #[doc = "*"]
3712 #[doc = "* This DF indicates a geographical position without altitude."]
3713 #[doc = "*"]
3714 #[doc = "* It shall include the following components: "]
3715 #[doc = "*"]
3716 #[doc = "* @field latitude: the latitude of the geographical position."]
3717 #[doc = "*"]
3718 #[doc = "* @field longitude: the longitude of the geographical position."]
3719 #[doc = "*"]
3720 #[doc = "* @category: GeoReference information"]
3721 #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (DF AbsolutePosition)"]
3722 #[doc = ""]
3723 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3724 #[rasn(automatic_tags)]
3725 pub struct GeoPositionWoAltitude {
3726 pub latitude: Latitude,
3727 pub longitude: Longitude,
3728 }
3729 impl GeoPositionWoAltitude {
3730 pub fn new(latitude: Latitude, longitude: Longitude) -> Self {
3731 Self {
3732 latitude,
3733 longitude,
3734 }
3735 }
3736 }
3737 #[doc = "*"]
3738 #[doc = "* This DF shall contain a list of @ref AbsolutePositionWAltitude."]
3739 #[doc = "*"]
3740 #[doc = "* @category: GeoReference information"]
3741 #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (DF AbsolutePositionsWAltitude)"]
3742 #[doc = ""]
3743 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3744 #[rasn(delegate, size("1..=8", extensible))]
3745 pub struct GeoPositionsWAltitude(pub SequenceOf<GeoPositionWAltitude>);
3746 #[doc = "*"]
3747 #[doc = "* This DF shall contain a list of @ref GeoPositionWoAltitude."]
3748 #[doc = "*"]
3749 #[doc = "* @category: GeoReference information"]
3750 #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (AbsolutePositions)"]
3751 #[doc = ""]
3752 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3753 #[rasn(delegate, size("1..=8", extensible))]
3754 pub struct GeoPositionsWoAltitude(pub SequenceOf<GeoPositionWoAltitude>);
3755 #[doc = "*"]
3756 #[doc = " * This DE indicates the current status of a hard shoulder: whether it is available for special usage"]
3757 #[doc = " * (e.g. for stopping or for driving) or closed for all vehicles."]
3758 #[doc = " * "]
3759 #[doc = " * The value shall be set to:"]
3760 #[doc = " * - 0 - `availableForStopping` - if the hard shoulder is available for stopping in e.g. emergency situations,"]
3761 #[doc = " * - 1 - `closed` - if the hard shoulder is closed and cannot be occupied in any case,"]
3762 #[doc = " * - 2 - `availableForDriving` - if the hard shoulder is available for regular driving."]
3763 #[doc = " *"]
3764 #[doc = " * @category: Traffic information"]
3765 #[doc = " * @revision: Description revised in V2.1.1"]
3766 #[doc = " "]
3767 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3768 #[rasn(enumerated)]
3769 pub enum HardShoulderStatus {
3770 availableForStopping = 0,
3771 closed = 1,
3772 availableForDriving = 2,
3773 }
3774 #[doc = "*"]
3775 #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-AnimalOnTheRoad`."]
3776 #[doc = " * "]
3777 #[doc = " * The value shall be set to:"]
3778 #[doc = " * - 0 - `unavailable` - in case further detailed information on the animal(s) on the road is unavailable,"]
3779 #[doc = " * - 1 - `wildAnimals` - in case wild animals of unknown size are present on the road,"]
3780 #[doc = " * - 2 - `herdOfAnimals` - in case a herd of animals is present on the road,"]
3781 #[doc = " * - 3 - `smallAnimals` - in case small size animals of unknown type are present on the road,"]
3782 #[doc = " * - 4 - `largeAnimals` - in case large size animals of unknown type are present on the road,"]
3783 #[doc = " * - 5 - `wildAnimalsSmall` - in case small size wild animal(s) are present on the road,"]
3784 #[doc = " * - 6 - `wildAnimalsLarge` - in case large size wild animal(s) are present on the road,"]
3785 #[doc = " * - 7 - `domesticAnimals` - in case domestic animal(s) of unknown size are detected on the road,"]
3786 #[doc = " * - 8 - `domesticAnimalsSmall` - in case small size domestic animal(s) are present on the road,"]
3787 #[doc = " * - 9 - `domesticAnimalsLarge` - in case large size domestic animal(s) are present on the road."]
3788 #[doc = " * - 10-255 - are reserved for future usage."]
3789 #[doc = " *"]
3790 #[doc = " * @category: Traffic information"]
3791 #[doc = " * @revision: V1.3.1, named values 5 to 9 added in V2.2.1 "]
3792 #[doc = " "]
3793 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3794 #[rasn(
3795 delegate,
3796 identifier = "HazardousLocation-AnimalOnTheRoadSubCauseCode",
3797 value("0..=255")
3798 )]
3799 pub struct HazardousLocationAnimalOnTheRoadSubCauseCode(pub u8);
3800 #[doc = "*"]
3801 #[doc = " * This DE represents the sub cause code of the @ref CauseCode `hazardousLocation-DangerousCurve`."]
3802 #[doc = " * "]
3803 #[doc = " * The value shall be set to:"]
3804 #[doc = " * - 0 - `unavailable` - in case further detailed information on the dangerous curve is unavailable,"]
3805 #[doc = " * - 1 - `dangerousLeftTurnCurve` - in case the dangerous curve is a left turn curve,"]
3806 #[doc = " * - 2 - `dangerousRightTurnCurve` - in case the dangerous curve is a right turn curve,"]
3807 #[doc = " * - 3 - `multipleCurvesStartingWithUnknownTurningDirection` - in case of multiple curves for which the starting curve turning direction is not known,"]
3808 #[doc = " * - 4 - `multipleCurvesStartingWithLeftTurn` - in case of multiple curves starting with a left turn curve,"]
3809 #[doc = " * - 5 - `multipleCurvesStartingWithRightTurn` - in case of multiple curves starting with a right turn curve."]
3810 #[doc = " * - 6-255 - are reserved for future usage."]
3811 #[doc = " * "]
3812 #[doc = " * The definition of whether a curve is dangerous may vary according to region and according to vehicle types/mass"]
3813 #[doc = " * and vehicle speed driving on the curve. This definition is out of scope of the present document."]
3814 #[doc = " *"]
3815 #[doc = " * @category: Traffic information"]
3816 #[doc = " * @revision: V1.3.1"]
3817 #[doc = " "]
3818 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3819 #[rasn(
3820 delegate,
3821 identifier = "HazardousLocation-DangerousCurveSubCauseCode",
3822 value("0..=255")
3823 )]
3824 pub struct HazardousLocationDangerousCurveSubCauseCode(pub u8);
3825 #[doc = "*"]
3826 #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-ObstacleOnTheRoad`. "]
3827 #[doc = " * "]
3828 #[doc = " * The value shall be set to:"]
3829 #[doc = " * - 0 - `unavailable` - in case further detailed information on the detected obstacle is unavailable,"]
3830 #[doc = " * - 1 - `shedLoad` - in case detected obstacle is large amount of obstacles (shedload),"]
3831 #[doc = " * - 2 - `partsOfVehicles` - in case detected obstacles are parts of vehicles,"]
3832 #[doc = " * - 3 - `partsOfTyres` - in case the detected obstacles are parts of tyres,"]
3833 #[doc = " * - 4 - `bigObjects` - in case the detected obstacles are big objects,"]
3834 #[doc = " * - 5 - `fallenTrees` - in case the detected obstacles are fallen trees,"]
3835 #[doc = " * - 6 - `hubCaps` - in case the detected obstacles are hub caps,"]
3836 #[doc = " * - 7 - `waitingVehicles-deprecated` - deprecated since not representing an obstacle and already covered by StationaryVehicleSubCauseCode."]
3837 #[doc = " * - 8-255 - are reserved for future usage."]
3838 #[doc = " *"]
3839 #[doc = " * @category: Traffic information"]
3840 #[doc = " * @revision: V1.3.1, value 7 deprecated in V2.4.1"]
3841 #[doc = " "]
3842 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3843 #[rasn(
3844 delegate,
3845 identifier = "HazardousLocation-ObstacleOnTheRoadSubCauseCode",
3846 value("0..=255")
3847 )]
3848 pub struct HazardousLocationObstacleOnTheRoadSubCauseCode(pub u8);
3849 #[doc = "*"]
3850 #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-SurfaceCondition`. "]
3851 #[doc = " * "]
3852 #[doc = "The value shall be set to:"]
3853 #[doc = " * - 0 - `unavailable` - in case further detailed information on the road surface condition is unavailable,"]
3854 #[doc = " * - 1 - `rockfalls` - in case rock falls have fallen on the road surface,"]
3855 #[doc = " * - 2 - `earthquakeDamage-deprecated` - deprecated since it is covered by 1 rockfalls and 4 subsidence,"]
3856 #[doc = " * - 3 - `sinkhole` - in case of a partial collapse of the road surface that creates a depression (hole) in the pavement,"]
3857 #[doc = " * - 4 - `subsidence` - in case road surface is damaged by subsidence,"]
3858 #[doc = " * - 5 - `snowDrifts-deprecated` - deprecated since not representing a road damage,"]
3859 #[doc = " * - 6 - `stormDamage-deprecated` - deprecated since not representing a road damage,"]
3860 #[doc = " * - 7 - `burstPipe-deprecated` - deprecated since not representing a road damage,"]
3861 #[doc = " * - 8 - `lava ` - in case road surface is damaged due to lava on the road,"]
3862 #[doc = " * - 9 - `fallingIce-deprecated` - deprecated since not representing a road damage,"]
3863 #[doc = " * - 10 - `fire` - in case there is fire on or near to the road surface,"]
3864 #[doc = " * - 11 - `flooding-deprecated` - deprecated since not representing a road damage."]
3865 #[doc = " * - 12 - `wearAndTear` - in case the road surface is damaged by wear and tear."]
3866 #[doc = " * - 13-255 - are reserved for future usage."]
3867 #[doc = " *"]
3868 #[doc = " * @category: Traffic information"]
3869 #[doc = " * @revision: V1.3.1, value 10 added in V2.1.1, value 11 added in V2.3.1, "]
3870 #[doc = " name and definition of value 3 and 8 changed in V2.4.1, values 2, 5, 6, 7, 9 and 11 deprecated in V2.4.1, vaue 12 added in V2.4.1"]
3871 #[doc = " "]
3872 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3873 #[rasn(
3874 delegate,
3875 identifier = "HazardousLocation-SurfaceConditionSubCauseCode",
3876 value("0..=255")
3877 )]
3878 pub struct HazardousLocationSurfaceConditionSubCauseCode(pub u8);
3879 #[doc = "*"]
3880 #[doc = " * This DF represents the Heading in a WGS84 co-ordinates system."]
3881 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
3882 #[doc = " *"]
3883 #[doc = " * It shall include the following components: "]
3884 #[doc = " * "]
3885 #[doc = " * @field headingValue: the heading value."]
3886 #[doc = " * "]
3887 #[doc = " * @field headingConfidence: the confidence value of the heading value with a predefined confidence level."]
3888 #[doc = " * "]
3889 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84Angle instead. "]
3890 #[doc = " * @category: Kinematic Information"]
3891 #[doc = " * @revision: Description revised in V2.1.1"]
3892 #[doc = " "]
3893 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3894 #[rasn(automatic_tags)]
3895 pub struct Heading {
3896 #[rasn(identifier = "headingValue")]
3897 pub heading_value: HeadingValue,
3898 #[rasn(identifier = "headingConfidence")]
3899 pub heading_confidence: HeadingConfidence,
3900 }
3901 impl Heading {
3902 pub fn new(heading_value: HeadingValue, heading_confidence: HeadingConfidence) -> Self {
3903 Self {
3904 heading_value,
3905 heading_confidence,
3906 }
3907 }
3908 }
3909 #[doc = "*"]
3910 #[doc = " * This DF provides information associated to heading change indicators such as a change of direction."]
3911 #[doc = " *"]
3912 #[doc = " * It shall include the following components: "]
3913 #[doc = " * "]
3914 #[doc = " * @field direction: the direction of heading change value."]
3915 #[doc = " * "]
3916 #[doc = " * @field actionDeltaTime: the period over which a direction change action is performed. "]
3917 #[doc = " * "]
3918 #[doc = " * @category: Kinematic Information"]
3919 #[doc = " * @revision: created in V2.1.1"]
3920 #[doc = " "]
3921 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3922 #[rasn(automatic_tags)]
3923 #[non_exhaustive]
3924 pub struct HeadingChangeIndication {
3925 pub direction: TurningDirection,
3926 #[rasn(identifier = "actionDeltaTime")]
3927 pub action_delta_time: DeltaTimeTenthOfSecond,
3928 }
3929 impl HeadingChangeIndication {
3930 pub fn new(direction: TurningDirection, action_delta_time: DeltaTimeTenthOfSecond) -> Self {
3931 Self {
3932 direction,
3933 action_delta_time,
3934 }
3935 }
3936 }
3937 #[doc = "*"]
3938 #[doc = " * This DE indicates the heading confidence value which represents the estimated absolute accuracy of a heading value with a confidence level of 95 %."]
3939 #[doc = " * "]
3940 #[doc = " * The value shall be set to:"]
3941 #[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,"]
3942 #[doc = " * - `126` if the confidence value is out of range, i.e. greater than 12,5 degrees,"]
3943 #[doc = " * - `127` if the confidence value information is not available."]
3944 #[doc = " * "]
3945 #[doc = " * @note:\tThe fact that a value is received with confidence value set to `unavailable(127)` can be caused by several reasons,"]
3946 #[doc = " * such as:"]
3947 #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
3948 #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
3949 #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
3950 #[doc = " * In all 3 cases above, the heading value may be valid and used by the application."]
3951 #[doc = " *"]
3952 #[doc = " * @note: If a heading value is received and its confidence value is set to `outOfRange(126)`, it means that the "]
3953 #[doc = " * heading value is not valid and therefore cannot be trusted. Such value is not useful for the application."]
3954 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84AngleConfidence instead. "]
3955 #[doc = " * "]
3956 #[doc = " * @unit: 0,1 degree"]
3957 #[doc = " * @category: GeoReference information"]
3958 #[doc = " * @revision: Description revised in V2.1.1"]
3959 #[doc = " "]
3960 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3961 #[rasn(delegate, value("1..=127"))]
3962 pub struct HeadingConfidence(pub u8);
3963 #[doc = "*"]
3964 #[doc = " * This DE represents the orientation of the horizontal velocity vector with regards to the WGS84 north."]
3965 #[doc = " * When the information is not available, the DE shall be set to 3 601. The value 3600 shall not be used."]
3966 #[doc = " *"]
3967 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84AngleValue instead. "]
3968 #[doc = " *"]
3969 #[doc = " * Unit: 0,1 degree"]
3970 #[doc = " * Categories: GeoReference information"]
3971 #[doc = " * @revision: Description revised in V2.1.1 (usage of value 3600 specified) "]
3972 #[doc = ""]
3973 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3974 #[rasn(delegate, value("0..=3601"))]
3975 pub struct HeadingValue(pub u16);
3976 #[doc = "*"]
3977 #[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"]
3978 #[doc = " * rear to front). "]
3979 #[doc = " *"]
3980 #[doc = " * The value shall be set to:"]
3981 #[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,"]
3982 #[doc = " * - `99` if the height is out of range, i.e. equal to or greater than 0,98 m,"]
3983 #[doc = " * - `100` if the height information is not available."]
3984 #[doc = " *"]
3985 #[doc = " * @unit 0,01 metre"]
3986 #[doc = " * @category Vehicle information"]
3987 #[doc = " * @revision: Description revised in V2.1.1 (the definition of 99 has changed slightly) "]
3988 #[doc = " "]
3989 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3990 #[rasn(delegate, value("1..=100"))]
3991 pub struct HeightLonCarr(pub u8);
3992 #[doc = "*"]
3993 #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `humanPresenceOnTheRoad`."]
3994 #[doc = " * "]
3995 #[doc = " * The value shall be set to:"]
3996 #[doc = " * - 0 - `unavailable` - in case further detailed information abou the human presence on the road is unavailable,"]
3997 #[doc = " * - 1 - `childrenOnRoadway` - in case children are present on the road,"]
3998 #[doc = " * - 2 - `cyclistOnRoadway` - in case cyclist(s) are present on the road,"]
3999 #[doc = " * - 3 - `motorcyclistOnRoadway` - in case motorcyclist(s) are present on the road,"]
4000 #[doc = " * - 4 - `pedestrian` - in case pedestrian(s) of any type are present on the road,"]
4001 #[doc = " * - 5 - `ordinary-pedestrian` - in case pedestrian(s) to which no more-specific profile applies are present on the road,"]
4002 #[doc = " * - 6 - `road-worker` - in case pedestrian(s) with the role of a road worker applies are present on the road,"]
4003 #[doc = " * - 7 - `first-responder` - in case pedestrian(s) with the role of a first responder applies are present on the road, "]
4004 #[doc = " * - 8 - `lightVruVehicle - in case light vru vehicle(s) of any type are present on the road,"]
4005 #[doc = " * - 9 - `bicyclist ` - in case cycle(s) and their bicyclist(s) are present on the road,"]
4006 #[doc = " * - 10 - `wheelchair-user` - in case wheelchair(s) and their user(s) are present on the road,"]
4007 #[doc = " * - 11 - `horse-and-rider` - in case horse(s) and rider(s) are present on the road,"]
4008 #[doc = " * - 12 - `rollerskater` - in case rolleskater(s) and skater(s) are present on the road,"]
4009 #[doc = " * - 13 - `e-scooter` - in case e-scooter(s) and rider(s) are present on the road,"]
4010 #[doc = " * - 14 - `personal-transporter` - in case personal-transporter(s) and rider(s) are present on the road,"]
4011 #[doc = " * - 15 - `pedelec` - in case pedelec(s) and rider(s) are present on the road,"]
4012 #[doc = " * - 16 - `speed-pedelec` - in case speed-pedelec(s) and rider(s) are present on the road,"]
4013 #[doc = " * - 17 - `ptw` - in case powered-two-wheeler(s) of any type are present on the road,"]
4014 #[doc = " * - 18 - `moped` - in case moped(s) and rider(s) are present on the road,"]
4015 #[doc = " * - 19 - `motorcycle` - in case motorcycle(s) and rider(s) are present on the road,"]
4016 #[doc = " * - 20 - `motorcycle-and-sidecar-right` - in case motorcycle(s) with sidecar(s) on the right and rider are present on the road,"]
4017 #[doc = " * - 21 - `motorcycle-and-sidecar-left` - in case motorcycle(s) with sidecar(s) on the left and rider are present on the road."]
4018 #[doc = " * - 22-255 - are reserved for future usage."]
4019 #[doc = " *"]
4020 #[doc = " * @category: Traffic information"]
4021 #[doc = " * @revision: editorial revision in V2.1.1, named values 4-21 added in V2.2.1"]
4022 #[doc = " "]
4023 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4024 #[rasn(delegate, value("0..=255"))]
4025 pub struct HumanPresenceOnTheRoadSubCauseCode(pub u8);
4026 #[doc = "*"]
4027 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode \"humanProblem\"."]
4028 #[doc = " * "]
4029 #[doc = " * The value shall be set to:"]
4030 #[doc = " * - 0 - `unavailable` - in case further detailed information on human health problem is unavailable,"]
4031 #[doc = " * - 1 - `glycemiaProblem` - in case human problem is due to glycaemia problem,"]
4032 #[doc = " * - 2 - `heartProblem` - in case human problem is due to heart problem,"]
4033 #[doc = " * - 3 - `unresponsiveDriver` - in case an unresponsive driver is detected."]
4034 #[doc = " * - 3-255 - reserved for future usage."]
4035 #[doc = " *"]
4036 #[doc = " * @category: Traffic information"]
4037 #[doc = " * @revision: V1.3.1, value 3 assigned in V2.4.1"]
4038 #[doc = " "]
4039 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4040 #[rasn(delegate, value("0..=255"))]
4041 pub struct HumanProblemSubCauseCode(pub u8);
4042 #[doc = "* "]
4043 #[doc = " * This DE is a general identifier."]
4044 #[doc = " * "]
4045 #[doc = " * @category: Basic information"]
4046 #[doc = " * @revision: Created in V2.1.1"]
4047 #[doc = ""]
4048 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4049 #[rasn(delegate, value("0..=255"))]
4050 pub struct Identifier1B(pub u8);
4051 #[doc = "* "]
4052 #[doc = " * This DE is a general identifier."]
4053 #[doc = " * "]
4054 #[doc = " * @category: Basic information"]
4055 #[doc = " * @revision: Created in V2.1.1"]
4056 #[doc = ""]
4057 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4058 #[rasn(delegate, value("0..=65535"))]
4059 pub struct Identifier2B(pub u16);
4060 #[doc = "*"]
4061 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `impassability`"]
4062 #[doc = " * "]
4063 #[doc = " * The value shall be set to:"]
4064 #[doc = " * - 0 `unavailable` - in case further detailed information about the unmanaged road blockage is unavailable,"]
4065 #[doc = " * - 1 `flooding ` - in case the road is affected by flooding,"]
4066 #[doc = " * - 2 `dangerOfAvalanches` - in case the road is at risk of being affected or blocked by avalanches,"]
4067 #[doc = " * - 3 `blastingOfAvalanches` - in case there is an active blasting of avalanches on or near the road,"]
4068 #[doc = " * - 4 `landslips` - in case the road is affected by landslips,"]
4069 #[doc = " * - 5 `chemicalSpillage` - in case the road is affected by chemical spillage,"]
4070 #[doc = " * - 6 `winterClosure` - in case the road is impassable due to a winter closure."]
4071 #[doc = " * - 7 `sinkhole` - in case the road is impassable due to large holes in the road surface."]
4072 #[doc = " * - 8 `earthquakeDamage` - in case the road is obstructed or partially obstructed because of damage caused by an earthquake."]
4073 #[doc = " * - 9 `fallenTrees` - in case the road is obstructed or partially obstructed by one or more fallen trees. "]
4074 #[doc = " * - 10 `rockfalls` - in case the road is obstructed or partially obstructed due to fallen rocks."]
4075 #[doc = " * - 11 `sewerOverflow` - in case the road is obstructed or partially obstructed by overflows from one or more sewers. "]
4076 #[doc = " * - 12 `stormDamage` - in case the road is obstructed or partially obstructed by debris caused by strong winds."]
4077 #[doc = " * - 13 `subsidence` - in case the road surface has sunken or collapsed in places."]
4078 #[doc = " * - 14 `burstPipe` - in case the road surface has sunken or collapsed in places due to burst pipes."]
4079 #[doc = " * - 15 `burstWaterMain` - in case the road is obstructed due to local flooding and/or subsidence. "]
4080 #[doc = " * - 16 `fallenPowerCables` - in case the road is obstructed or partly obstructed by one or more fallen power cables."]
4081 #[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."]
4082 #[doc = " * - 15-255 - are reserved for future usage."]
4083 #[doc = " *"]
4084 #[doc = " * @category: Traffic information"]
4085 #[doc = " * @revision: Created in V2.2.1"]
4086 #[doc = ""]
4087 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4088 #[rasn(delegate, value("0..=255"))]
4089 pub struct ImpassabilitySubCauseCode(pub u8);
4090 #[doc = "*"]
4091 #[doc = " * This DE represents the quality level of provided information."]
4092 #[doc = " * "]
4093 #[doc = " * The value shall be set to:"]
4094 #[doc = " * - `0` if the information is unavailable,"]
4095 #[doc = " * - `1` if the quality level is lowest,"]
4096 #[doc = " * - `n` (`n > 1` and `n < 7`) if the quality level is n, "]
4097 #[doc = " * - `7` if the quality level is highest."]
4098 #[doc = " *"]
4099 #[doc = " * @note: Definition of quality level is out of scope of the present document."]
4100 #[doc = " * @category: Basic information"]
4101 #[doc = " * @revision: Editorial update in V2.1.1"]
4102 #[doc = " "]
4103 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4104 #[rasn(delegate, value("0..=7"))]
4105 pub struct InformationQuality(pub u8);
4106 #[doc = "*"]
4107 #[doc = " * This DF represents a frequency channel "]
4108 #[doc = " *"]
4109 #[doc = " * It shall include the following components: "]
4110 #[doc = " *"]
4111 #[doc = " * @field centreFrequency: the centre frequency of the channel in 10^(exp+2) Hz (where exp is exponent)"]
4112 #[doc = " * "]
4113 #[doc = " * @field channelWidth: width of the channel in 10^exp Hz (where exp is exponent)"]
4114 #[doc = " *"]
4115 #[doc = " * @field exponent: exponent of the power of 10 used in the calculation of the components above."]
4116 #[doc = " *"]
4117 #[doc = " * @category: Communication information"]
4118 #[doc = " * @revision: created in V2.1.1"]
4119 #[doc = ""]
4120 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4121 #[rasn(automatic_tags)]
4122 pub struct InterferenceManagementChannel {
4123 #[rasn(value("1..=99999"), identifier = "centreFrequency")]
4124 pub centre_frequency: u32,
4125 #[rasn(value("0..=9999"), identifier = "channelWidth")]
4126 pub channel_width: u16,
4127 #[rasn(value("0..=15"))]
4128 pub exponent: u8,
4129 }
4130 impl InterferenceManagementChannel {
4131 pub fn new(centre_frequency: u32, channel_width: u16, exponent: u8) -> Self {
4132 Self {
4133 centre_frequency,
4134 channel_width,
4135 exponent,
4136 }
4137 }
4138 }
4139 #[doc = "*"]
4140 #[doc = " * This DF shall contain a list of up to 16 definitions containing interference management information, per affected frequency channels."]
4141 #[doc = " * "]
4142 #[doc = " * @category: Communication information."]
4143 #[doc = " * @revision: created in V2.1.1"]
4144 #[doc = " "]
4145 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4146 #[rasn(delegate, size("1..=16", extensible))]
4147 pub struct InterferenceManagementInfo(pub SequenceOf<InterferenceManagementInfoPerChannel>);
4148 #[doc = "*"]
4149 #[doc = " * This DF contains interference management information for one affected frequency channel."]
4150 #[doc = " *"]
4151 #[doc = " * It shall include the following components: "]
4152 #[doc = " *"]
4153 #[doc = " * @field interferenceManagementChannel: frequency channel for which the zone should be applied interference management "]
4154 #[doc = " *"]
4155 #[doc = " * @field interferenceManagementZoneType: type of the interference management zone. "]
4156 #[doc = " *"]
4157 #[doc = " * @field interferenceManagementMitigationType: optional type of the mitigation to be used in the interference management zone. "]
4158 #[doc = " * In the case where no mitigation should be applied by the ITS-S, this is indicated by the field interferenceManagementMitigationType being absent."]
4159 #[doc = " *"]
4160 #[doc = " * @field expiryTime: optional time at which the validity of the interference management communication zone will expire. "]
4161 #[doc = " * This component is present when the interference management is temporarily valid"]
4162 #[doc = " *"]
4163 #[doc = " * @category: Communication information"]
4164 #[doc = " * @revision: created in V2.1.1"]
4165 #[doc = " "]
4166 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4167 #[rasn(automatic_tags)]
4168 #[non_exhaustive]
4169 pub struct InterferenceManagementInfoPerChannel {
4170 #[rasn(identifier = "interferenceManagementChannel")]
4171 pub interference_management_channel: InterferenceManagementChannel,
4172 #[rasn(identifier = "interferenceManagementZoneType")]
4173 pub interference_management_zone_type: InterferenceManagementZoneType,
4174 #[rasn(identifier = "interferenceManagementMitigationType")]
4175 pub interference_management_mitigation_type: Option<MitigationForTechnologies>,
4176 #[rasn(identifier = "expiryTime")]
4177 pub expiry_time: Option<TimestampIts>,
4178 }
4179 impl InterferenceManagementInfoPerChannel {
4180 pub fn new(
4181 interference_management_channel: InterferenceManagementChannel,
4182 interference_management_zone_type: InterferenceManagementZoneType,
4183 interference_management_mitigation_type: Option<MitigationForTechnologies>,
4184 expiry_time: Option<TimestampIts>,
4185 ) -> Self {
4186 Self {
4187 interference_management_channel,
4188 interference_management_zone_type,
4189 interference_management_mitigation_type,
4190 expiry_time,
4191 }
4192 }
4193 }
4194 #[doc = "*"]
4195 #[doc = " * "]
4196 #[doc = " * This DF represents a zone inside which the ITS communication should be restricted in order to manage interference."]
4197 #[doc = " *"]
4198 #[doc = " * It shall include the following components: "]
4199 #[doc = " *"]
4200 #[doc = " * @field zoneDefinition: contains the geographical definition of the zone."]
4201 #[doc = " *"]
4202 #[doc = " * @field managementInfo: contains interference management information applicable in the zone defined in the component zoneDefinition."]
4203 #[doc = " *"]
4204 #[doc = " * @category: Communication information"]
4205 #[doc = " * @revision: created in V2.1.1"]
4206 #[doc = " "]
4207 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4208 #[rasn(automatic_tags)]
4209 pub struct InterferenceManagementZone {
4210 #[rasn(identifier = "zoneDefinition")]
4211 pub zone_definition: InterferenceManagementZoneDefinition,
4212 #[rasn(identifier = "managementInfo")]
4213 pub management_info: InterferenceManagementInfo,
4214 }
4215 impl InterferenceManagementZone {
4216 pub fn new(
4217 zone_definition: InterferenceManagementZoneDefinition,
4218 management_info: InterferenceManagementInfo,
4219 ) -> Self {
4220 Self {
4221 zone_definition,
4222 management_info,
4223 }
4224 }
4225 }
4226 #[doc = "*"]
4227 #[doc = " * This DF represents the geographical definition of the zone where band sharing occurs. "]
4228 #[doc = " *"]
4229 #[doc = " * It shall include the following components: "]
4230 #[doc = " *"]
4231 #[doc = " * @field interferenceManagementZoneLatitude: Latitude of the centre point of the interference management zone."]
4232 #[doc = " *"]
4233 #[doc = " * @field interferenceManagementZoneLongitude: Longitude of the centre point of the interference management zone."]
4234 #[doc = " *"]
4235 #[doc = " * @field interferenceManagementZoneId: optional identification of the interference management zone. "]
4236 #[doc = " *"]
4237 #[doc = " * @field interferenceManagementZoneShape: shape of the interference management zone placed at the centre point. "]
4238 #[doc = " *"]
4239 #[doc = " * @category: Communication information"]
4240 #[doc = " * @revision: created in V2.1.1"]
4241 #[doc = " "]
4242 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4243 #[rasn(automatic_tags)]
4244 #[non_exhaustive]
4245 pub struct InterferenceManagementZoneDefinition {
4246 #[rasn(identifier = "interferenceManagementZoneLatitude")]
4247 pub interference_management_zone_latitude: Latitude,
4248 #[rasn(identifier = "interferenceManagementZoneLongitude")]
4249 pub interference_management_zone_longitude: Longitude,
4250 #[rasn(identifier = "interferenceManagementZoneId")]
4251 pub interference_management_zone_id: Option<ProtectedZoneId>,
4252 #[rasn(value("0.."), identifier = "interferenceManagementZoneShape")]
4253 pub interference_management_zone_shape: Option<Shape>,
4254 }
4255 impl InterferenceManagementZoneDefinition {
4256 pub fn new(
4257 interference_management_zone_latitude: Latitude,
4258 interference_management_zone_longitude: Longitude,
4259 interference_management_zone_id: Option<ProtectedZoneId>,
4260 interference_management_zone_shape: Option<Shape>,
4261 ) -> Self {
4262 Self {
4263 interference_management_zone_latitude,
4264 interference_management_zone_longitude,
4265 interference_management_zone_id,
4266 interference_management_zone_shape,
4267 }
4268 }
4269 }
4270 #[doc = "* "]
4271 #[doc = " * This DE defines the type of an interference management zone, so that an ITS-S can "]
4272 #[doc = " * assert the actions to do while passing by such zone (e.g. reduce the transmit power in case of a DSRC tolling station)."]
4273 #[doc = " * It is an extension of the type @ref ProtectedZoneType."]
4274 #[doc = " *"]
4275 #[doc = " * The value shall be set to:"]
4276 #[doc = " * - 0 - `permanentCenDsrcTolling` - as specified in ETSI TS 102 792 [14],"]
4277 #[doc = " * - 1 - `temporaryCenDsrcTolling` - as specified in ETSI TS 102 792 [14],"]
4278 #[doc = " * - 2 - `unavailable` - default value. Set to 2 for backwards compatibility with DSRC tolling,"]
4279 #[doc = " * - 3 - `urbanRail` - as specified in ETSI TS 103 724 [13], clause 7,"]
4280 #[doc = " * - 4 - `satelliteStation` - as specified in ETSI TS 103 724 [13], clause 7,"]
4281 #[doc = " * - 5 - `fixedLinks` - as specified in ETSI TS 103 724 [13], clause 7."]
4282 #[doc = " *"]
4283 #[doc = " * @category: Communication information"]
4284 #[doc = " * @revision: Created in V2.1.1"]
4285 #[doc = " "]
4286 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
4287 #[rasn(enumerated)]
4288 #[non_exhaustive]
4289 pub enum InterferenceManagementZoneType {
4290 permanentCenDsrcTolling = 0,
4291 temporaryCenDsrcTolling = 1,
4292 unavailable = 2,
4293 urbanRail = 3,
4294 satelliteStation = 4,
4295 fixedLinks = 5,
4296 }
4297 #[doc = "*"]
4298 #[doc = " * This DF shall contain a list of up to 16 interference management zones. "]
4299 #[doc = " *"]
4300 #[doc = " * **EXAMPLE**: An interference management communication zone may be defined around a CEN DSRC road side equipment or an urban rail operational area."]
4301 #[doc = " * "]
4302 #[doc = " * @category: Communication information"]
4303 #[doc = " * @revision: created in V2.1.1"]
4304 #[doc = " "]
4305 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4306 #[rasn(delegate, size("1..=16", extensible))]
4307 pub struct InterferenceManagementZones(pub SequenceOf<InterferenceManagementZone>);
4308 #[doc = "*"]
4309 #[doc = " * This DF represents a unique id for an intersection, in accordance with ETSI TS 103 301 [15]."]
4310 #[doc = " *"]
4311 #[doc = " * It shall include the following components: "]
4312 #[doc = " *"]
4313 #[doc = " * @field region: the optional identifier of the entity that is responsible for the region in which the intersection is placed."]
4314 #[doc = " * It is the duty of that entity to guarantee that the @ref Id is unique within the region."]
4315 #[doc = " *"]
4316 #[doc = " * @field id: the identifier of the intersection"]
4317 #[doc = " *"]
4318 #[doc = " * @note: when the component region is present, the IntersectionReferenceId is guaranteed to be globally unique."]
4319 #[doc = " * @category: Road topology information"]
4320 #[doc = " * @revision: created in V2.1.1"]
4321 #[doc = " "]
4322 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4323 #[rasn(automatic_tags)]
4324 pub struct IntersectionReferenceId {
4325 pub region: Option<Identifier2B>,
4326 pub id: Identifier2B,
4327 }
4328 impl IntersectionReferenceId {
4329 pub fn new(region: Option<Identifier2B>, id: Identifier2B) -> Self {
4330 Self { region, id }
4331 }
4332 }
4333 #[doc = "*"]
4334 #[doc = " * This DE represents the vehicle type according to ISO 3833 [22]."]
4335 #[doc = " * A \"term No\" refers to the number of the corresponding term and its definition in ISO 3833."]
4336 #[doc = " *"]
4337 #[doc = " * The value shall be set to:"]
4338 #[doc = " * - 0\t- `passengerCar` - term No 3.1.1"]
4339 #[doc = " * - 1\t- `saloon` - term No 3.1.1.1 (sedan)"]
4340 #[doc = " * - 2\t- `convertibleSaloon` - term No 3.1.1.2"]
4341 #[doc = " * - 3\t- `pullmanSaloon` - term No 3.1.1.3"]
4342 #[doc = " * - 4\t- `stationWagon` - term No 3.1.1.4"]
4343 #[doc = " * - 5\t- `truckStationWagon` - term No 3.1.1.4.1"]
4344 #[doc = " * - 6\t- `coupe` - term No 3.1.1.5 (coupe)"]
4345 #[doc = " * - 7\t- `convertible` - term No 3.1.1.6 (open tourer, roadstar, spider)"]
4346 #[doc = " * - 8\t- `multipurposePassengerCar` - term No 3.1.1.7"]
4347 #[doc = " * - 9\t- `forwardControlPassengerCar`- term No 3.1.1.8"]
4348 #[doc = " * - 10\t- `specialPassengerCar` - term No 3.1.1.9"]
4349 #[doc = " * - 11\t- `bus` - term No 3.1.2"]
4350 #[doc = " * - 12\t- `minibus` - term No 3.1.2.1"]
4351 #[doc = " * - 13\t- `urbanBus` - term No 3.1.2.2"]
4352 #[doc = " * - 14\t- `interurbanCoach` - term No 3.1.2.3"]
4353 #[doc = " * - 15\t- `longDistanceCoach` - term No 3.1.2.4"]
4354 #[doc = " * - 16\t- `articulatedBus` - term No 3.1.2.5"]
4355 #[doc = " * - 17\t- `trolleyBus\t` - term No 3.1.2.6"]
4356 #[doc = " * - 18\t- `specialBus` - term No 3.1.2.7"]
4357 #[doc = " * - 19\t- `commercialVehicle` - term No 3.1.3"]
4358 #[doc = " * - 20\t- `specialCommercialVehicle` - term No 3.1.3.1"]
4359 #[doc = " * - 21\t- `specialVehicle` - term No 3.1.4"]
4360 #[doc = " * - 22\t- `trailingTowingVehicle` - term No 3.1.5 (draw-bar tractor)"]
4361 #[doc = " * - 23\t- `semiTrailerTowingVehicle` - term No 3.1.6 (fifth wheel tractor)"]
4362 #[doc = " * - 24\t- `trailer` - term No 3.2.1"]
4363 #[doc = " * - 25\t- `busTrailer` - term No 3.2.1.1"]
4364 #[doc = " * - 26\t- `generalPurposeTrailer` - term No 3.2.1.2"]
4365 #[doc = " * - 27\t- `caravan` - term No 3.2.1.3"]
4366 #[doc = " * - 28\t- `specialTrailer` - term No 3.2.1.4"]
4367 #[doc = " * - 29\t- `semiTrailer` - term No 3.2.2"]
4368 #[doc = " * - 30\t- `busSemiTrailer` - term No 3.2.2.1"]
4369 #[doc = " * - 31\t- `generalPurposeSemiTrailer` - term No 3.2.2.2"]
4370 #[doc = " * - 32\t- `specialSemiTrailer` - term No 3.2.2.3"]
4371 #[doc = " * - 33\t- `roadTrain` - term No 3.3.1"]
4372 #[doc = " * - 34\t- `passengerRoadTrain` - term No 3.3.2"]
4373 #[doc = " * - 35\t- `articulatedRoadTrain` - term No 3.3.3"]
4374 #[doc = " * - 36\t- `doubleRoadTrain` - term No 3.3.4"]
4375 #[doc = " * - 37\t- `compositeRoadTrain` - term No 3.3.5"]
4376 #[doc = " * - 38\t- `specialRoadTrain` - term No 3.3.6"]
4377 #[doc = " * - 39\t- `moped` - term No 3.4"]
4378 #[doc = " * - 40\t- `motorCycle` - term No 3.5"]
4379 #[doc = " * - 41-255 - reserved for future use"]
4380 #[doc = " * "]
4381 #[doc = " * @category: Vehicle information"]
4382 #[doc = " * @revision: Created in V2.1.1"]
4383 #[doc = " "]
4384 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4385 #[rasn(delegate, value("0..=255"))]
4386 pub struct Iso3833VehicleType(pub u8);
4387 #[doc = "* "]
4388 #[doc = " * This DE represent the identifier of an organization according to the applicable registry."]
4389 #[doc = " *"]
4390 #[doc = " * @category: Basic information"]
4391 #[doc = " * @revision: Created in V2.2.1 based on ISO 14816 [23]"]
4392 #[doc = ""]
4393 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4394 #[rasn(delegate, value("0..=16383"))]
4395 pub struct IssuerIdentifier(pub u16);
4396 #[doc = "*"]
4397 #[doc = " * This DF shall contain a list of waypoints @ref ReferencePosition."]
4398 #[doc = " *"]
4399 #[doc = " * @category: GeoReference information"]
4400 #[doc = " * @revision: Editorial update in V2.1.1"]
4401 #[doc = " "]
4402 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4403 #[rasn(delegate, size("1..=40"))]
4404 pub struct ItineraryPath(pub SequenceOf<ReferencePosition>);
4405 #[doc = "*"]
4406 #[doc = " * This DF represents a common message header for application and facilities layer messages."]
4407 #[doc = " * It is included at the beginning of an ITS message as the message header."]
4408 #[doc = " *"]
4409 #[doc = " * It shall include the following components: "]
4410 #[doc = " *"]
4411 #[doc = " * @field protocolVersion: version of the ITS message."]
4412 #[doc = " *"]
4413 #[doc = " * @field messageId: type of the ITS message."]
4414 #[doc = " *"]
4415 #[doc = " * @field stationId: the identifier of the ITS-S that generated the ITS message."]
4416 #[doc = " *"]
4417 #[doc = " * @category: Communication information"]
4418 #[doc = " * @revision: update in V2.1.1: messageID and stationID changed to messageId and stationId; messageId is of type MessageId."]
4419 #[doc = " "]
4420 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4421 #[rasn(automatic_tags)]
4422 pub struct ItsPduHeader {
4423 #[rasn(identifier = "protocolVersion")]
4424 pub protocol_version: OrdinalNumber1B,
4425 #[rasn(identifier = "messageId")]
4426 pub message_id: MessageId,
4427 #[rasn(identifier = "stationId")]
4428 pub station_id: StationId,
4429 }
4430 impl ItsPduHeader {
4431 pub fn new(
4432 protocol_version: OrdinalNumber1B,
4433 message_id: MessageId,
4434 station_id: StationId,
4435 ) -> Self {
4436 Self {
4437 protocol_version,
4438 message_id,
4439 station_id,
4440 }
4441 }
4442 }
4443 #[doc = "* "]
4444 #[doc = " * This DE represents the identifier of the IVIM."]
4445 #[doc = " *"]
4446 #[doc = " * @category: Basic information"]
4447 #[doc = " * @revision: Created in V2.2.1 based on ETSI TS 103 301 [15]"]
4448 #[doc = ""]
4449 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4450 #[rasn(delegate, value("1..=32767", extensible))]
4451 pub struct IviIdentificationNumber(pub Integer);
4452 #[doc = "*"]
4453 #[doc = " * This DF provides the reference to the information contained in a IVIM according to ETSI TS 103 301 [15]. "]
4454 #[doc = " *"]
4455 #[doc = " * It shall include the following components: "]
4456 #[doc = " * "]
4457 #[doc = " * @field serviceProviderId: identifier of the organization that provided the IVIM."]
4458 #[doc = " *"]
4459 #[doc = " * @field iviIdentificationNumber: identifier of the IVIM, as assigned by the organization identified in serviceProviderId."]
4460 #[doc = " *"]
4461 #[doc = " * @category: Communication information"]
4462 #[doc = " * @revision: Created in V2.2.1"]
4463 #[doc = " "]
4464 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4465 #[rasn(automatic_tags)]
4466 pub struct IvimReference {
4467 #[rasn(identifier = "serviceProviderId")]
4468 pub service_provider_id: Provider,
4469 #[rasn(identifier = "iviIdentificationNumber")]
4470 pub ivi_identification_number: IviIdentificationNumber,
4471 }
4472 impl IvimReference {
4473 pub fn new(
4474 service_provider_id: Provider,
4475 ivi_identification_number: IviIdentificationNumber,
4476 ) -> Self {
4477 Self {
4478 service_provider_id,
4479 ivi_identification_number,
4480 }
4481 }
4482 }
4483 #[doc = "*"]
4484 #[doc = " * This DF shall contain a list of @ref IvimReference."]
4485 #[doc = " *"]
4486 #[doc = " * @category: Communication information"]
4487 #[doc = " * @revision: Created in V2.2.1"]
4488 #[doc = ""]
4489 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4490 #[rasn(delegate, size("1..=8", extensible))]
4491 pub struct IvimReferences(pub SequenceOf<IvimReference>);
4492 #[doc = "*"]
4493 #[doc = " * This DE indicates a transversal position on the carriageway at a specific longitudinal position, in resolution of lanes of the carriageway. "]
4494 #[doc = " *"]
4495 #[doc = " * For right-hand traffic roads, the value shall be set to:"]
4496 #[doc = " * - `-1` if the position is off, i.e. besides the road,"]
4497 #[doc = " * - `0` if the position is on the inner hard shoulder, i.e. the hard should adjacent to the leftmost lane,"]
4498 #[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,"]
4499 #[doc = " * - `14` if the position is on the outer hard shoulder, i.e. the hard should adjacent to rightmost lane (if present)."]
4500 #[doc = " *"]
4501 #[doc = " * For left-hand traffic roads, the value shall be set to:"]
4502 #[doc = " * - `-1` if the position is off, i.e. besides the road,"]
4503 #[doc = " * - `0` if the position is on the inner hard shoulder, i.e. the hard should adjacent to the rightmost lane,"]
4504 #[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,"]
4505 #[doc = " * - `14` if the position is on the outer hard shoulder, i.e. the hard should adjacent to leftmost lane (if present)."]
4506 #[doc = " *"]
4507 #[doc = " * @note: in practice this means that the position is counted from \"inside\" to \"outside\" no matter which traffic practice is used."]
4508 #[doc = " *"]
4509 #[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. "]
4510 #[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), "]
4511 #[doc = " * the position is counted from the legal (i.e. optical) separation between traffic directions (horizontal marking). "]
4512 #[doc = " *"]
4513 #[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:"]
4514 #[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 "]
4515 #[doc = " * imaginary separation between traffic directions is on the border between the even number of lanes N/2."]
4516 #[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. "]
4517 #[doc = " * The remaining middle lane is assigned to both traffic directions as innermost lane."]
4518 #[doc = " *"]
4519 #[doc = " * @category: Road topology information"]
4520 #[doc = " * @revision: Description of the legal separation of carriageways added in V2.2.1"]
4521 #[doc = ""]
4522 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4523 #[rasn(delegate, value("-1..=14"))]
4524 pub struct LanePosition(pub i8);
4525 #[doc = "*"]
4526 #[doc = " * This DF indicates a transversal position in resolution of lanes and other associated details."]
4527 #[doc = " *"]
4528 #[doc = " * It shall include the following components: "]
4529 #[doc = " * "]
4530 #[doc = " * @field transversalPosition: the transversal position."]
4531 #[doc = " * "]
4532 #[doc = " * @field laneType: the type of the lane identified in the component transversalPosition. By default set to `traffic`."]
4533 #[doc = " *"]
4534 #[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."]
4535 #[doc = " *"]
4536 #[doc = " * @category Road topology information"]
4537 #[doc = " * @revision: direction added in V2.2.1"]
4538 #[doc = " "]
4539 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4540 #[rasn(automatic_tags)]
4541 #[non_exhaustive]
4542 pub struct LanePositionAndType {
4543 #[rasn(identifier = "transversalPosition")]
4544 pub transversal_position: LanePosition,
4545 #[rasn(
4546 default = "lane_position_and_type_lane_type_default",
4547 identifier = "laneType"
4548 )]
4549 pub lane_type: LaneType,
4550 #[rasn(default = "lane_position_and_type_direction_default")]
4551 pub direction: Direction,
4552 }
4553 impl LanePositionAndType {
4554 pub fn new(
4555 transversal_position: LanePosition,
4556 lane_type: LaneType,
4557 direction: Direction,
4558 ) -> Self {
4559 Self {
4560 transversal_position,
4561 lane_type,
4562 direction,
4563 }
4564 }
4565 }
4566 fn lane_position_and_type_lane_type_default() -> LaneType {
4567 LaneType(0)
4568 }
4569 fn lane_position_and_type_direction_default() -> Direction {
4570 Direction(0)
4571 }
4572 #[doc = "*"]
4573 #[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. "]
4574 #[doc = " * A lane position is a transversal position on the carriageway at a specific longitudinal position, in resolution of lanes of the carriageway."]
4575 #[doc = " *"]
4576 #[doc = " * The following options are available:"]
4577 #[doc = " *"]
4578 #[doc = " * @field simplelanePosition: a single lane position without any additional context information."]
4579 #[doc = " *"]
4580 #[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 "]
4581 #[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)."]
4582 #[doc = " * "]
4583 #[doc = " * @field detailedlanePosition: a single lane position with additional lane details."]
4584 #[doc = " * "]
4585 #[doc = " * @field lanePositionWithLateralDetails: a single lane position with additional details and the lateral position within the lane."]
4586 #[doc = " *"]
4587 #[doc = " * @field trafficIslandPosition: a position on a traffic island, i.e. between two lanes. "]
4588 #[doc = " *"]
4589 #[doc = " * @category: Road Topology information"]
4590 #[doc = " * @revision: Created in V2.2.1 from the DF GeneralizedLanePosition of V2.1.1. "]
4591 #[doc = " "]
4592 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4593 #[rasn(choice, automatic_tags)]
4594 #[non_exhaustive]
4595 pub enum LanePositionOptions {
4596 simplelanePosition(LanePosition),
4597 simpleLaneType(LaneType),
4598 detailedlanePosition(LanePositionAndType),
4599 lanePositionWithLateralDetails(LanePositionWithLateralDetails),
4600 trafficIslandPosition(TrafficIslandPosition),
4601 }
4602 #[doc = "*"]
4603 #[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."]
4604 #[doc = " *"]
4605 #[doc = " * It shall additionally include the following components: "]
4606 #[doc = " *"]
4607 #[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."]
4608 #[doc = " *"]
4609 #[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."]
4610 #[doc = " * "]
4611 #[doc = " * @category: Road Topology information"]
4612 #[doc = " * @revision: Created in V2.2.1"]
4613 #[doc = " "]
4614 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4615 #[rasn(automatic_tags)]
4616 #[non_exhaustive]
4617 pub struct LanePositionWithLateralDetails {
4618 #[rasn(identifier = "distanceToLeftBorder")]
4619 pub distance_to_left_border: StandardLength9b,
4620 #[rasn(identifier = "distanceToRightBorder")]
4621 pub distance_to_right_border: StandardLength9b,
4622 #[rasn(identifier = "transversalPosition")]
4623 pub transversal_position: LanePosition,
4624 #[rasn(
4625 default = "lane_position_with_lateral_details_lane_type_default",
4626 identifier = "laneType"
4627 )]
4628 pub lane_type: LaneType,
4629 #[rasn(default = "lane_position_with_lateral_details_direction_default")]
4630 pub direction: Direction,
4631 }
4632 impl LanePositionWithLateralDetails {
4633 pub fn new(
4634 distance_to_left_border: StandardLength9b,
4635 distance_to_right_border: StandardLength9b,
4636 transversal_position: LanePosition,
4637 lane_type: LaneType,
4638 direction: Direction,
4639 ) -> Self {
4640 Self {
4641 distance_to_left_border,
4642 distance_to_right_border,
4643 transversal_position,
4644 lane_type,
4645 direction,
4646 }
4647 }
4648 }
4649 fn lane_position_with_lateral_details_lane_type_default() -> LaneType {
4650 LaneType(0)
4651 }
4652 fn lane_position_with_lateral_details_direction_default() -> Direction {
4653 Direction(0)
4654 }
4655 #[doc = "*"]
4656 #[doc = " * This DE represents the type of a lane. "]
4657 #[doc = " * "]
4658 #[doc = " * The value shall be set to:"]
4659 #[doc = " * - 0\t- `traffic` - Lane dedicated to the movement of vehicles,"]
4660 #[doc = " * - 1\t- `through` - Lane dedicated to the movement of vehicles travelling ahead and not turning,"]
4661 #[doc = " * - 2\t- `reversible` - Lane where the direction of traffic can be changed to match the peak flow,"]
4662 #[doc = " * - 3\t- `acceleration`\t - Lane that allows vehicles entering a road to accelerate to the speed of through traffic before merging with it,"]
4663 #[doc = " * - 4\t- `deceleration` - Lane that allows vehicles exiting a road to decelerate before leaving it,"]
4664 #[doc = " * - 5\t- `leftHandTurning` - Lane reserved for slowing down and making a left turn, so as not to disrupt traffic,"]
4665 #[doc = " * - 6\t- `rightHandTurning` - Lane reserved for slowing down and making a right turn so as not to disrupt traffic,"]
4666 #[doc = " * - 7\t- `dedicatedVehicle` - Lane dedicated to movement of motor vehicles with specific characteristics, such as heavy goods vehicles, etc., "]
4667 #[doc = " * - 8\t- `bus` - Lane dedicated to movement of buses providing public transport,"]
4668 #[doc = " * - 9\t- `taxi` - Lane dedicated to movement of taxis,"]
4669 #[doc = " * - 10\t- `hov` - Carpooling lane or high occupancy vehicle lane,"]
4670 #[doc = " * - 11\t- `hot` - High occupancy vehicle lanes that is allowed to be used without meeting the occupancy criteria by paying a toll,"]
4671 #[doc = " * - 12\t- `pedestrian` - Lanes dedicated to pedestrians such as pedestrian sidewalk paths,"]
4672 #[doc = " * - 13\t- `cycleLane`\t - Lane dedicated to exclusive or preferred use by bicycles,"]
4673 #[doc = " * - 14\t- `median` - Lane not dedicated to movement of vehicles but representing a median / central reservation such as the central median, "]
4674 #[doc = " separating the two directional carriageways of the highway,"]
4675 #[doc = " * - 15\t- `striping`\t - Lane not dedicated to movement of vehicles but covered with roadway markings,"]
4676 #[doc = " * - 16\t- `trackedVehicle` - Lane dedicated to movement of trains, trams and trolleys,"]
4677 #[doc = " * - 17\t- `parking` - Lanes dedicated to vehicles parking, stopping and loading lanes,"]
4678 #[doc = " * - 18\t- `emergency` - Lane dedicated to vehicles in breakdown or to emergency vehicles also called hard shoulder,"]
4679 #[doc = " * - 19\t- `verge` - Lane representing the verge, i.e. a narrow strip of grass or plants and sometimes also trees located between "]
4680 #[doc = " the road surface edge and the boundary of a road,"]
4681 #[doc = " * - 20\t`minimumRiskManoeuvre` - Lane dedicated to automated vehicles making a minimum risk manoeuvre,"]
4682 #[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."]
4683 #[doc = " * - values 22 to 30 reserved for future use. "]
4684 #[doc = " *"]
4685 #[doc = " * @category: Road topology information"]
4686 #[doc = " * @revision: Created in V2.1.1, named value 21 added in V2.2.1"]
4687 #[doc = ""]
4688 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4689 #[rasn(delegate, value("0..=31"))]
4690 pub struct LaneType(pub u8);
4691 #[doc = "*"]
4692 #[doc = " * This DE represents the width of a lane measured at a defined position."]
4693 #[doc = " *"]
4694 #[doc = " * The value shall be set to:"]
4695 #[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,"]
4696 #[doc = " * - `1022` if the lane width is out of range, i.e. greater than 10,21 m,"]
4697 #[doc = " * - `1023` if the lane width information is not available."]
4698 #[doc = " *"]
4699 #[doc = " * The value 0 shall not be used."]
4700 #[doc = " *"]
4701 #[doc = " * @unit: 0,01 metre"]
4702 #[doc = " * @category: Road topology information"]
4703 #[doc = " * @revision: Created in V2.1.1"]
4704 #[doc = " "]
4705 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4706 #[rasn(delegate, value("0..=1023"))]
4707 pub struct LaneWidth(pub u16);
4708 #[doc = "*"]
4709 #[doc = " * This DF indicates the vehicle acceleration at lateral direction and the confidence value of the lateral acceleration."]
4710 #[doc = " *"]
4711 #[doc = " * It shall include the following components: "]
4712 #[doc = " * "]
4713 #[doc = " * @field lateralAccelerationValue: lateral acceleration value at a point in time."]
4714 #[doc = " * "]
4715 #[doc = " * @field lateralAccelerationConfidence: confidence value of the lateral acceleration value."]
4716 #[doc = " *"]
4717 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead."]
4718 #[doc = " * @category Vehicle information"]
4719 #[doc = " * @revision: Description revised in V2.1.1"]
4720 #[doc = " "]
4721 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4722 #[rasn(automatic_tags)]
4723 pub struct LateralAcceleration {
4724 #[rasn(identifier = "lateralAccelerationValue")]
4725 pub lateral_acceleration_value: LateralAccelerationValue,
4726 #[rasn(identifier = "lateralAccelerationConfidence")]
4727 pub lateral_acceleration_confidence: AccelerationConfidence,
4728 }
4729 impl LateralAcceleration {
4730 pub fn new(
4731 lateral_acceleration_value: LateralAccelerationValue,
4732 lateral_acceleration_confidence: AccelerationConfidence,
4733 ) -> Self {
4734 Self {
4735 lateral_acceleration_value,
4736 lateral_acceleration_confidence,
4737 }
4738 }
4739 }
4740 #[doc = "*"]
4741 #[doc = " * This DE represents the vehicle acceleration at lateral direction in the centre of the mass of the empty vehicle."]
4742 #[doc = " * It corresponds to the vehicle coordinate system as specified in ISO 8855 [21]."]
4743 #[doc = " *"]
4744 #[doc = " * The value shall be set to:"]
4745 #[doc = " * - `-160` for acceleration values equal to or less than -16 m/s^2,"]
4746 #[doc = " * - `n` (`n > -160` and `n <= 0`) to indicate that the vehicle is accelerating towards the right side with regards to the vehicle orientation "]
4747 #[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,"]
4748 #[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 "]
4749 #[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,"]
4750 #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
4751 #[doc = " * - `161` when the data is unavailable."]
4752 #[doc = " *"]
4753 #[doc = " * @note: the empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
4754 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationValue instead."]
4755 #[doc = " * "]
4756 #[doc = " * @unit: 0,1 m/s^2"]
4757 #[doc = " * @category: Vehicle information"]
4758 #[doc = " * @revision: Description updated in V2.1.1 (the meaning of 160 has changed slightly). "]
4759 #[doc = " "]
4760 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4761 #[rasn(delegate, value("-160..=161"))]
4762 pub struct LateralAccelerationValue(pub i16);
4763 #[doc = "*"]
4764 #[doc = " * This DE represents the absolute geographical latitude in a WGS84 coordinate system, providing a range of 90 degrees in north or"]
4765 #[doc = " * in south hemisphere."]
4766 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
4767 #[doc = " *"]
4768 #[doc = " * The value shall be set to:"]
4769 #[doc = " * - `n` (`n >= -900 000 000` and `n < 0`) x 10^-7 degree, i.e. negative values for latitudes south of the Equator,"]
4770 #[doc = " * - `0` is used for the latitude of the equator,"]
4771 #[doc = " * - `n` (`n > 0` and `n < 900 000 001`) x 10^-7 degree, i.e. positive values for latitudes north of the Equator,"]
4772 #[doc = " * - `900 000 001` when the information is unavailable."]
4773 #[doc = " *"]
4774 #[doc = " * @unit: 10^-7 degree"]
4775 #[doc = " * @category: GeoReference information"]
4776 #[doc = " * @revision: Editorial update in V2.1.1"]
4777 #[doc = " "]
4778 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4779 #[rasn(delegate, value("-900000000..=900000001"))]
4780 pub struct Latitude(pub i32);
4781 #[doc = "*"]
4782 #[doc = " * This DE indicates the status of light bar and any sort of audible alarm system besides the horn."]
4783 #[doc = " * This includes various common sirens as well as backup up beepers and other slow speed manoeuvring alerts."]
4784 #[doc = " *"]
4785 #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
4786 #[doc = " * - 0 - `lightBarActivated` - when the light bar is activated,"]
4787 #[doc = " * - 1 - `sirenActivated` - when the siren is activated."]
4788 #[doc = " *"]
4789 #[doc = " * Otherwise, it shall be set to 0."]
4790 #[doc = " *"]
4791 #[doc = " * @category Vehicle information"]
4792 #[doc = " * @revision: Editorial update in V2.1.1"]
4793 #[doc = " "]
4794 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4795 #[rasn(delegate)]
4796 pub struct LightBarSirenInUse(pub FixedBitString<2usize>);
4797 #[doc = "*"]
4798 #[doc = " * This DE represents the absolute geographical longitude in a WGS84 coordinate system, providing a range of 180 degrees"]
4799 #[doc = " * to the east or to the west of the prime meridian."]
4800 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
4801 #[doc = " *"]
4802 #[doc = " * The value shall be set to:"]
4803 #[doc = " * - `n` (`n > -1 800 000 000` and `n < 0`) x 10^-7 degree, i.e. negative values for longitudes to the west,"]
4804 #[doc = " * - `0` to indicate the prime meridian,"]
4805 #[doc = " * - `n` (`n > 0` and `n < 1 800 000 001`) x 10^-7 degree, i.e. positive values for longitudes to the east,"]
4806 #[doc = " * - `1 800 000 001` when the information is unavailable."]
4807 #[doc = " *"]
4808 #[doc = " * The value -1 800 000 000 shall not be used. "]
4809 #[doc = " * "]
4810 #[doc = " * @unit: 10^-7 degree"]
4811 #[doc = " * @category: GeoReference information"]
4812 #[doc = " * @revision: Description revised in V2.1.1"]
4813 #[doc = " "]
4814 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4815 #[rasn(delegate, value("-1800000000..=1800000001"))]
4816 pub struct Longitude(pub i32);
4817 #[doc = "*"]
4818 #[doc = " * This DF indicates the vehicle acceleration at longitudinal direction and the confidence value of the longitudinal acceleration."]
4819 #[doc = " *"]
4820 #[doc = " * It shall include the following components: "]
4821 #[doc = " *"]
4822 #[doc = " * @field longitudinalAccelerationValue: longitudinal acceleration value at a point in time."]
4823 #[doc = ""]
4824 #[doc = " * @field longitudinalAccelerationConfidence: confidence value of the longitudinal acceleration value."]
4825 #[doc = " *"]
4826 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead. "]
4827 #[doc = " * @category: Vehicle information"]
4828 #[doc = " * @revision: V1.3.1"]
4829 #[doc = " "]
4830 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4831 #[rasn(automatic_tags)]
4832 pub struct LongitudinalAcceleration {
4833 #[rasn(identifier = "longitudinalAccelerationValue")]
4834 pub longitudinal_acceleration_value: LongitudinalAccelerationValue,
4835 #[rasn(identifier = "longitudinalAccelerationConfidence")]
4836 pub longitudinal_acceleration_confidence: AccelerationConfidence,
4837 }
4838 impl LongitudinalAcceleration {
4839 pub fn new(
4840 longitudinal_acceleration_value: LongitudinalAccelerationValue,
4841 longitudinal_acceleration_confidence: AccelerationConfidence,
4842 ) -> Self {
4843 Self {
4844 longitudinal_acceleration_value,
4845 longitudinal_acceleration_confidence,
4846 }
4847 }
4848 }
4849 #[doc = "*"]
4850 #[doc = " * This DE represents the vehicle acceleration at longitudinal direction in the centre of the mass of the empty vehicle."]
4851 #[doc = " * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11."]
4852 #[doc = " *"]
4853 #[doc = " * The value shall be set to:"]
4854 #[doc = " * - `-160` for acceleration values equal to or less than -16 m/s^2,"]
4855 #[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"]
4856 #[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,"]
4857 #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
4858 #[doc = " * - `161` when the data is unavailable. "]
4859 #[doc = " * "]
4860 #[doc = " * This acceleration is along the tangent plane of the road surface and does not include gravity components."]
4861 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationValue instead."]
4862 #[doc = " * "]
4863 #[doc = " * @note: The empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
4864 #[doc = " * @unit: 0,1 m/s^2"]
4865 #[doc = " * @category: Vehicle information"]
4866 #[doc = " * @revision: description revised in V2.1.1 (the meaning of 160 has changed slightly). T"]
4867 #[doc = " "]
4868 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4869 #[rasn(delegate, value("-160..=161"))]
4870 pub struct LongitudinalAccelerationValue(pub i16);
4871 #[doc = "* "]
4872 #[doc = " * This DF represents the estimated position along the longitudinal extension of a carriageway or lane. "]
4873 #[doc = " *"]
4874 #[doc = " * It shall include the following components: "]
4875 #[doc = " *"]
4876 #[doc = " * @field longitudinalLanePositionValue: the mean value of the longitudinal position along the carriageway or lane w.r.t. an externally defined start position."]
4877 #[doc = " *"]
4878 #[doc = " * @field longitudinalLanePositionConfidence: The confidence value associated to the value."]
4879 #[doc = " *"]
4880 #[doc = " * @category: Road topology information"]
4881 #[doc = " * @revision: created in V2.1.1, description revised in V2.2.1"]
4882 #[doc = " "]
4883 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4884 #[rasn(automatic_tags)]
4885 pub struct LongitudinalLanePosition {
4886 #[rasn(identifier = "longitudinalLanePositionValue")]
4887 pub longitudinal_lane_position_value: LongitudinalLanePositionValue,
4888 #[rasn(identifier = "longitudinalLanePositionConfidence")]
4889 pub longitudinal_lane_position_confidence: LongitudinalLanePositionConfidence,
4890 }
4891 impl LongitudinalLanePosition {
4892 pub fn new(
4893 longitudinal_lane_position_value: LongitudinalLanePositionValue,
4894 longitudinal_lane_position_confidence: LongitudinalLanePositionConfidence,
4895 ) -> Self {
4896 Self {
4897 longitudinal_lane_position_value,
4898 longitudinal_lane_position_confidence,
4899 }
4900 }
4901 }
4902 #[doc = "* "]
4903 #[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 %."]
4904 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
4905 #[doc = " *"]
4906 #[doc = " * The value shall be set to:"]
4907 #[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,"]
4908 #[doc = " * - `1 022` if the confidence value is out of range i.e. greater than 102,1 m,"]
4909 #[doc = " * - `1 023` if the confidence value is unavailable."]
4910 #[doc = " *"]
4911 #[doc = " * @unit 0,1 metre"]
4912 #[doc = " * @category: GeoReference information"]
4913 #[doc = " * @revision: Created in V2.1.1"]
4914 #[doc = ""]
4915 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4916 #[rasn(delegate, value("0..=1023"))]
4917 pub struct LongitudinalLanePositionConfidence(pub u16);
4918 #[doc = "* "]
4919 #[doc = " * This DE represents the longitudinal offset of a map-matched position along a matched lane, beginning from the lane's starting point."]
4920 #[doc = " * "]
4921 #[doc = " * The value shall be set to:"]
4922 #[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,"]
4923 #[doc = " * - `32 766` if the longitudinal offset is out of range, i.e. greater than 3276,5 m,"]
4924 #[doc = " * - `32 767` if the longitudinal offset information is not available. "]
4925 #[doc = " *"]
4926 #[doc = " * @unit 0,1 metre"]
4927 #[doc = " * @category: GeoReference information"]
4928 #[doc = " * @revision: Created in V2.1.1"]
4929 #[doc = ""]
4930 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4931 #[rasn(delegate, value("0..=32767"))]
4932 pub struct LongitudinalLanePositionValue(pub u16);
4933 #[doc = "* "]
4934 #[doc = " * This DF shall contain a list of a lower triangular positive semi-definite matrices."]
4935 #[doc = " *"]
4936 #[doc = " * @category: Sensing information"]
4937 #[doc = " * @revision: Created in V2.1.1"]
4938 #[doc = ""]
4939 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4940 #[rasn(delegate, size("1..=4"))]
4941 pub struct LowerTriangularPositiveSemidefiniteMatrices(
4942 pub SequenceOf<LowerTriangularPositiveSemidefiniteMatrix>,
4943 );
4944 #[doc = "* "]
4945 #[doc = " * This DF represents a lower triangular positive semi-definite matrix. "]
4946 #[doc = " *"]
4947 #[doc = " * It shall include the following components: "]
4948 #[doc = " *"]
4949 #[doc = " * @field componentsIncludedIntheMatrix: the indication of which components of a @ref PerceivedObject are included in the matrix. "]
4950 #[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\"."]
4951 #[doc = " *"]
4952 #[doc = " * @field matrix: the list of cells of the lower triangular positive semi-definite matrix ordered by columns and by rows. "]
4953 #[doc = " *"]
4954 #[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."]
4955 #[doc = " * These components shall be included in the order or their appearance in componentsIncludedIntheMatrix."]
4956 #[doc = " * Each column \"i\" of the lowerTriangularCorrelationMatrixColumns contains k-(i-1) values."]
4957 #[doc = " *"]
4958 #[doc = " * @category: Sensing information"]
4959 #[doc = " * @revision: Created in V2.1.1"]
4960 #[doc = ""]
4961 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4962 #[rasn(automatic_tags)]
4963 pub struct LowerTriangularPositiveSemidefiniteMatrix {
4964 #[rasn(identifier = "componentsIncludedIntheMatrix")]
4965 pub components_included_inthe_matrix: MatrixIncludedComponents,
4966 pub matrix: LowerTriangularPositiveSemidefiniteMatrixColumns,
4967 }
4968 impl LowerTriangularPositiveSemidefiniteMatrix {
4969 pub fn new(
4970 components_included_inthe_matrix: MatrixIncludedComponents,
4971 matrix: LowerTriangularPositiveSemidefiniteMatrixColumns,
4972 ) -> Self {
4973 Self {
4974 components_included_inthe_matrix,
4975 matrix,
4976 }
4977 }
4978 }
4979 #[doc = "* "]
4980 #[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."]
4981 #[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."]
4982 #[doc = " *"]
4983 #[doc = " * @category: Sensing information"]
4984 #[doc = " * @revision: Created in V2.1.1, extension indicator added in V2.2.1"]
4985 #[doc = ""]
4986 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4987 #[rasn(delegate, size("1..=13", extensible))]
4988 pub struct LowerTriangularPositiveSemidefiniteMatrixColumns(pub SequenceOf<CorrelationColumn>);
4989 #[doc = "*"]
4990 #[doc = " * This DF indicates a position on a topology description transmitted in a MAPEM according to ETSI TS 103 301 [15]."]
4991 #[doc = " *"]
4992 #[doc = " * It shall include the following components: "]
4993 #[doc = " * "]
4994 #[doc = " * @field mapReference: optionally identifies the MAPEM containing the topology information."]
4995 #[doc = " * It is absent if the MAPEM topology is known from the context."]
4996 #[doc = " * "]
4997 #[doc = " * @field laneId: optionally identifies the lane in the road segment or intersection topology on which the position is located."]
4998 #[doc = " *"]
4999 #[doc = " * @field connectionId: optionally identifies the connection inside the conflict area of an intersection, i.e. it identifies a trajectory for travelling through the"]
5000 #[doc = " * conflict area of an intersection which connects e.g an ingress with an egress lane."]
5001 #[doc = " *"]
5002 #[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."]
5003 #[doc = " * "]
5004 #[doc = " * @category: Road topology information"]
5005 #[doc = " * @revision: Created in V2.1.1, definition of longitudinalLanePosition amended in V2.2.1"]
5006 #[doc = " "]
5007 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5008 #[rasn(automatic_tags)]
5009 #[non_exhaustive]
5010 pub struct MapPosition {
5011 #[rasn(identifier = "mapReference")]
5012 pub map_reference: Option<MapReference>,
5013 #[rasn(identifier = "laneId")]
5014 pub lane_id: Option<Identifier1B>,
5015 #[rasn(identifier = "connectionId")]
5016 pub connection_id: Option<Identifier1B>,
5017 #[rasn(identifier = "longitudinalLanePosition")]
5018 pub longitudinal_lane_position: Option<LongitudinalLanePosition>,
5019 }
5020 impl MapPosition {
5021 pub fn new(
5022 map_reference: Option<MapReference>,
5023 lane_id: Option<Identifier1B>,
5024 connection_id: Option<Identifier1B>,
5025 longitudinal_lane_position: Option<LongitudinalLanePosition>,
5026 ) -> Self {
5027 Self {
5028 map_reference,
5029 lane_id,
5030 connection_id,
5031 longitudinal_lane_position,
5032 }
5033 }
5034 }
5035 #[doc = "*"]
5036 #[doc = " * This DF provides the reference to the information contained in a MAPEM according to ETSI TS 103 301 [15]. "]
5037 #[doc = " *"]
5038 #[doc = " * The following options are provided:"]
5039 #[doc = " * "]
5040 #[doc = " * @field roadsegment: option that identifies the description of a road segment contained in a MAPEM."]
5041 #[doc = " * "]
5042 #[doc = " * @field intersection: option that identifies the description of an intersection contained in a MAPEM."]
5043 #[doc = " *"]
5044 #[doc = " * @category: Road topology information"]
5045 #[doc = " * @revision: Created in V2.1.1"]
5046 #[doc = " "]
5047 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5048 #[rasn(choice, automatic_tags)]
5049 pub enum MapReference {
5050 roadsegment(RoadSegmentReferenceId),
5051 intersection(IntersectionReferenceId),
5052 }
5053 #[doc = "*"]
5054 #[doc = " * This DF shall contain a list of @ref MapReference."]
5055 #[doc = " *"]
5056 #[doc = " * @category: Road topology information"]
5057 #[doc = " * @revision: Created in V2.2.1"]
5058 #[doc = ""]
5059 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5060 #[rasn(delegate, size("1..=8", extensible))]
5061 pub struct MapReferences(pub SequenceOf<MapReference>);
5062 #[doc = "* "]
5063 #[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. "]
5064 #[doc = ""]
5065 #[doc = " * @category: Road topology information"]
5066 #[doc = " * @revision: Created in V2.2.1"]
5067 #[doc = ""]
5068 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5069 #[rasn(delegate, size("1..=16", extensible))]
5070 pub struct MapemConfiguration(pub SequenceOf<MapemElementReference>);
5071 #[doc = "* "]
5072 #[doc = " * This DF provides references to MAPEM connections using a list of @ref Identifier1B."]
5073 #[doc = " * Note: connections are allowed �maneuvers� (e.g. an ingress / egress relation) on an intersection."]
5074 #[doc = " *"]
5075 #[doc = " * @category: Road topology information"]
5076 #[doc = " * @revision: Created in V2.2.1"]
5077 #[doc = ""]
5078 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5079 #[rasn(delegate, size("1..=8", extensible))]
5080 pub struct MapemConnectionList(pub SequenceOf<Identifier1B>);
5081 #[doc = "* "]
5082 #[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. "]
5083 #[doc = " * "]
5084 #[doc = " * It shall include the following components: "]
5085 #[doc = " * "]
5086 #[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."]
5087 #[doc = " * "]
5088 #[doc = " * @field laneIds: the optional list of the identifiers of the lanes to be referenced. "]
5089 #[doc = " * "]
5090 #[doc = " * @field connectionIds: the optional list of the identifiers of the connections to be referenced. "]
5091 #[doc = " *"]
5092 #[doc = " * @category: Road topology information"]
5093 #[doc = " * @revision: Created in V2.2.1"]
5094 #[doc = ""]
5095 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5096 #[rasn(automatic_tags)]
5097 #[non_exhaustive]
5098 pub struct MapemElementReference {
5099 #[rasn(identifier = "mapReference")]
5100 pub map_reference: Option<MapReference>,
5101 #[rasn(identifier = "laneIds")]
5102 pub lane_ids: Option<MapemLaneList>,
5103 #[rasn(identifier = "connectionIds")]
5104 pub connection_ids: Option<MapemConnectionList>,
5105 }
5106 impl MapemElementReference {
5107 pub fn new(
5108 map_reference: Option<MapReference>,
5109 lane_ids: Option<MapemLaneList>,
5110 connection_ids: Option<MapemConnectionList>,
5111 ) -> Self {
5112 Self {
5113 map_reference,
5114 lane_ids,
5115 connection_ids,
5116 }
5117 }
5118 }
5119 #[doc = "* "]
5120 #[doc = " * This DF provides references to MAPEM lanes using a list of @ref Identifier1B."]
5121 #[doc = " *"]
5122 #[doc = " * @category: Road topology information"]
5123 #[doc = " * @revision: Created in 2.2.1"]
5124 #[doc = ""]
5125 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5126 #[rasn(delegate, size("1..=8", extensible))]
5127 pub struct MapemLaneList(pub SequenceOf<Identifier1B>);
5128 #[doc = "*"]
5129 #[doc = " * This DE indicates the components of an @ref PerceivedObject that are included in the @ref LowerTriangularPositiveSemidefiniteMatrix."]
5130 #[doc = " *"]
5131 #[doc = " * The corresponding bit shall be set to 1 if the component is included:"]
5132 #[doc = " * - 0 - `xCoordinate` - when the component xCoordinate of the component @ref CartesianPosition3dWithConfidence is included,"]
5133 #[doc = " * - 1 - `yCoordinate` - when the component yCoordinate of the component @ref CartesianPosition3dWithConfidence is included, "]
5134 #[doc = " * - 2 - `zCoordinate` - when the component zCoordinate of the component @ref CartesianPosition3dWithConfidence is included, "]
5135 #[doc = " * - 3 - `xVelocityOrVelocityMagnitude` - when the component xVelocity of the component @ref VelocityCartesian or the component VelocityMagnitude of the component @ref VelocityPolarWithZ is included, "]
5136 #[doc = " * - 4 - `yVelocityOrVelocityDirection` - when the component yVelocity of the component @ref VelocityCartesian or the component VelocityDirection of the component @ref VelocityPolarWithZ is included, "]
5137 #[doc = " * - 5 - `zVelocity` - when the component zVelocity of the component @ref VelocityCartesian or of the component @ref VelocityPolarWithZ is included,"]
5138 #[doc = " * - 6 - `xAccelOrAccelMagnitude` - when the component xAcceleration of the component @ref AccelerationCartesian or the component AccelerationMagnitude of the component @ref AccelerationPolarWithZ is included, "]
5139 #[doc = " * - 7 - `yAccelOrAccelDirection` - when the component yAcceleration of the component @ref AccelerationCartesian or the component AccelerationDirection of the component @ref AccelerationPolarWithZ is included, "]
5140 #[doc = " * - 8 - `zAcceleration` - when the component zAcceleration of the component @ref AccelerationCartesian or of the component @ref AccelerationPolarWithZ is included,"]
5141 #[doc = " * - 9 - `zAngle` - when the component zAngle is included,"]
5142 #[doc = " * - 10 - `yAngle` - when the component yAngle is included, "]
5143 #[doc = " * - 11 - `xAngle` - when the component xAngle is included, "]
5144 #[doc = " * - 12 - `zAngularVelocity` - when the component zAngularVelocity is included. "]
5145 #[doc = " *"]
5146 #[doc = " * Otherwise, it shall be set to 0."]
5147 #[doc = " *"]
5148 #[doc = " * @category: Sensing information"]
5149 #[doc = " * @revision: Created in V2.1.1"]
5150 #[doc = " "]
5151 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5152 #[rasn(delegate, size("13", extensible))]
5153 pub struct MatrixIncludedComponents(pub BitString);
5154 #[doc = "* "]
5155 #[doc = " * This DE represents the type of facility layer message."]
5156 #[doc = " *"]
5157 #[doc = " * The value shall be set to:"]
5158 #[doc = " *\t- 1 - `denm` - for Decentralized Environmental Notification Message (DENM) as specified in ETSI EN 302 637-3 [2],"]
5159 #[doc = " * - 2 - `cam` - for Cooperative Awareness Message (CAM) as specified in ETSI EN 302 637-2 [1],"]
5160 #[doc = " * - 3 - `poim` - for Point of Interest Message as specified in ETSI TS 103 916 [9],"]
5161 #[doc = " * - 4 - `spatem` - for Signal Phase And Timing Extended Message (SPATEM) as specified in ETSI TS 103 301 [15],"]
5162 #[doc = " * - 5 - `mapem` - for MAP Extended Message (MAPEM) as specified in ETSI TS 103 301 [15],"]
5163 #[doc = " * - 6 - `ivim` - for in Vehicle Information Message (IVIM) as specified in ETSI TS 103 301 [15],"]
5164 #[doc = " * - 7 - `rfu1` - reserved for future usage,"]
5165 #[doc = " * - 8 - `rfu2` - reserved for future usage,"]
5166 #[doc = " * - 9 - `srem` - for Signal Request Extended Message as specified in ETSI TS 103 301 [15],"]
5167 #[doc = " * - 10 - `ssem` - for Signal request Status Extended Message as specified in ETSI TS 103 301 [15],"]
5168 #[doc = " * - 11 - `evcsn` - for Electrical Vehicle Charging Spot Notification message as specified in ETSI TS 101 556-1 [9],"]
5169 #[doc = " * - 12 - `saem` - for Services Announcement Extended Message as specified in ETSI EN 302 890-1 [17],"]
5170 #[doc = " * - 13 - `rtcmem` - for Radio Technical Commission for Maritime Services Extended Message (RTCMEM) as specified in ETSI TS 103 301 [15],"]
5171 #[doc = " * - 14 - `cpm` - for Collective Perception Message (CPM) as specified in ETSI TS 103 324 [10], "]
5172 #[doc = " * - 15 - `imzm` - for Interference Management Zone Message (IMZM) as specified in ETSI TS 103 724 [13],"]
5173 #[doc = " * - 16 - `vam` - for Vulnerable Road User Awareness Message as specified in ETSI TS 130 300-3 [12], "]
5174 #[doc = " * - 17 - `dsm` - reserved for Diagnosis, logging and Status Message,"]
5175 #[doc = " * - 18 - `mim` - for Marshalling Infrastructure Message as specified in ETSI TS TS 103 882 [11],"]
5176 #[doc = " * - 19 - `mvm` - for Marshalling Vehicle Message as specified in ETSI TS TS 103 882 [11],"]
5177 #[doc = " * - 20 - `mcm` - reserved for Manoeuvre Coordination Message,"]
5178 #[doc = " * - 21 - `pim` - reserved for Parking Information Message, "]
5179 #[doc = " * - 22-255 - reserved for future usage."]
5180 #[doc = " *"]
5181 #[doc = " * @category: Communication information"]
5182 #[doc = " * @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, values 18 and 19 assigned in V2.3.1, "]
5183 #[doc = " value 21 assigned in V2.4.1"]
5184 #[doc = " "]
5185 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5186 #[rasn(delegate, value("0..=255"))]
5187 pub struct MessageId(pub u8);
5188 #[doc = "*"]
5189 #[doc = " * This DF indicates a message rate."]
5190 #[doc = " *"]
5191 #[doc = " * @field mantissa: indicates the mantissa."]
5192 #[doc = " *"]
5193 #[doc = " * @field exponent: indicates the exponent."]
5194 #[doc = " *"]
5195 #[doc = " * The specified message rate is: mantissa*(10^exponent) "]
5196 #[doc = " *"]
5197 #[doc = " * @unit: Hz"]
5198 #[doc = " * @category: Communication information"]
5199 #[doc = " * @revision: Created in V2.1.1"]
5200 #[doc = " "]
5201 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5202 #[rasn(automatic_tags)]
5203 pub struct MessageRateHz {
5204 #[rasn(value("1..=100"))]
5205 pub mantissa: u8,
5206 #[rasn(value("-5..=2"))]
5207 pub exponent: i8,
5208 }
5209 impl MessageRateHz {
5210 pub fn new(mantissa: u8, exponent: i8) -> Self {
5211 Self { mantissa, exponent }
5212 }
5213 }
5214 #[doc = "*"]
5215 #[doc = " * This DF provides information about a message with respect to the segmentation process on facility layer at the sender."]
5216 #[doc = " *"]
5217 #[doc = " * It shall include the following components: "]
5218 #[doc = " * "]
5219 #[doc = " * @field totalMsgNo: indicates the total number of messages that have been assembled on the transmitter side to encode the information "]
5220 #[doc = " * during the same messsage generation process."]
5221 #[doc = " *"]
5222 #[doc = " * @field thisMsgNo: indicates the position of the message within of the total set of messages generated during the same message generation process."]
5223 #[doc = " *"]
5224 #[doc = " * @category: Communication information"]
5225 #[doc = " * @revision: Created in V2.1.1, description revised in V2.2.1"]
5226 #[doc = " "]
5227 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5228 #[rasn(automatic_tags)]
5229 pub struct MessageSegmentationInfo {
5230 #[rasn(identifier = "totalMsgNo")]
5231 pub total_msg_no: CardinalNumber3b,
5232 #[rasn(identifier = "thisMsgNo")]
5233 pub this_msg_no: OrdinalNumber3b,
5234 }
5235 impl MessageSegmentationInfo {
5236 pub fn new(total_msg_no: CardinalNumber3b, this_msg_no: OrdinalNumber3b) -> Self {
5237 Self {
5238 total_msg_no,
5239 this_msg_no,
5240 }
5241 }
5242 }
5243 #[doc = "* "]
5244 #[doc = " * This DF provides information about the source of and confidence in information."]
5245 #[doc = " *"]
5246 #[doc = " * It shall include the following components: "]
5247 #[doc = " * "]
5248 #[doc = " * @field usedDetectionInformation: the type of sensor(s) that is used to provide the detection information."]
5249 #[doc = " * "]
5250 #[doc = " * @field usedStoredInformation: the type of source of the stored information. "]
5251 #[doc = " *"]
5252 #[doc = " * @field confidenceValue: an optional confidence value associated to the information. "]
5253 #[doc = " * "]
5254 #[doc = " * @category: Basic information"]
5255 #[doc = " * @revision: Created in V2.2.1"]
5256 #[doc = ""]
5257 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5258 #[rasn(automatic_tags)]
5259 #[non_exhaustive]
5260 pub struct MetaInformation {
5261 #[rasn(identifier = "usedDetectionInformation")]
5262 pub used_detection_information: SensorTypes,
5263 #[rasn(identifier = "usedStoredInformation")]
5264 pub used_stored_information: StoredInformationType,
5265 #[rasn(identifier = "confidenceValue")]
5266 pub confidence_value: Option<ConfidenceLevel>,
5267 }
5268 impl MetaInformation {
5269 pub fn new(
5270 used_detection_information: SensorTypes,
5271 used_stored_information: StoredInformationType,
5272 confidence_value: Option<ConfidenceLevel>,
5273 ) -> Self {
5274 Self {
5275 used_detection_information,
5276 used_stored_information,
5277 confidence_value,
5278 }
5279 }
5280 }
5281 #[doc = "*"]
5282 #[doc = " * This DF shall contain a list of @ref MitigationPerTechnologyClass."]
5283 #[doc = " *"]
5284 #[doc = " * @category: Communication information"]
5285 #[doc = " * @revision: Created in V2.1.1"]
5286 #[doc = ""]
5287 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5288 #[rasn(delegate, size("1..=8"))]
5289 pub struct MitigationForTechnologies(pub SequenceOf<MitigationPerTechnologyClass>);
5290 #[doc = "*"]
5291 #[doc = " * This DF represents a set of mitigation parameters for a specific technology, as specified in ETSI TS 103 724 [24], clause 7."]
5292 #[doc = " *"]
5293 #[doc = " * It shall include the following components: "]
5294 #[doc = " *"]
5295 #[doc = " * @field accessTechnologyClass: channel access technology to which this mitigation is intended to be applied."]
5296 #[doc = " *"]
5297 #[doc = " * @field lowDutyCycle: duty cycle limit."]
5298 #[doc = " * @unit: 0,01 % steps"]
5299 #[doc = " *"]
5300 #[doc = " * @field powerReduction: the delta value of power to be reduced."]
5301 #[doc = " * @unit: dB"]
5302 #[doc = " *"]
5303 #[doc = " * @field dmcToffLimit: idle time limit as defined in ETSI TS 103 175 [19]."]
5304 #[doc = " * @unit: ms"]
5305 #[doc = " *"]
5306 #[doc = " * @field dmcTonLimit: Transmission duration limit, as defined in ETSI EN 302 571 [20]."]
5307 #[doc = " * @unit: ms"]
5308 #[doc = " *"]
5309 #[doc = " * @note: All parameters are optional, as they may not apply to some of the technologies or"]
5310 #[doc = " * interference management zone types. Specification details are in ETSI TS 103 724 [24], clause 7. "]
5311 #[doc = " *"]
5312 #[doc = " * @category: Communication information"]
5313 #[doc = " * @revision: Created in V2.1.1"]
5314 #[doc = " "]
5315 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5316 #[rasn(automatic_tags)]
5317 #[non_exhaustive]
5318 pub struct MitigationPerTechnologyClass {
5319 #[rasn(identifier = "accessTechnologyClass")]
5320 pub access_technology_class: AccessTechnologyClass,
5321 #[rasn(value("0..=10000"), identifier = "lowDutyCycle")]
5322 pub low_duty_cycle: Option<u16>,
5323 #[rasn(value("0..=30"), identifier = "powerReduction")]
5324 pub power_reduction: Option<u8>,
5325 #[rasn(value("0..=1200"), identifier = "dmcToffLimit")]
5326 pub dmc_toff_limit: Option<u16>,
5327 #[rasn(value("0..=20"), identifier = "dmcTonLimit")]
5328 pub dmc_ton_limit: Option<u8>,
5329 }
5330 impl MitigationPerTechnologyClass {
5331 pub fn new(
5332 access_technology_class: AccessTechnologyClass,
5333 low_duty_cycle: Option<u16>,
5334 power_reduction: Option<u8>,
5335 dmc_toff_limit: Option<u16>,
5336 dmc_ton_limit: Option<u8>,
5337 ) -> Self {
5338 Self {
5339 access_technology_class,
5340 low_duty_cycle,
5341 power_reduction,
5342 dmc_toff_limit,
5343 dmc_ton_limit,
5344 }
5345 }
5346 }
5347 #[doc = "*"]
5348 #[doc = " * This DE provides a factor to be multiplied with a DE that represents a measure of something, to extend the range/change the unit. "]
5349 #[doc = " * The DE that is multiplied is to be specified outside of the context of this DE, e.g. in a facility layer service specification."]
5350 #[doc = " *"]
5351 #[doc = " * The value shall be set to:"]
5352 #[doc = " * - `tenth` - to indicate a factor of 0,1, "]
5353 #[doc = " * - `half` - to indicate a factor of 0,5, "]
5354 #[doc = " * - `two` - to indicate a factor of 2, "]
5355 #[doc = " * - `three` - to indicate a factor of 3, "]
5356 #[doc = " * - `five` - to indicate a factor of 5, "]
5357 #[doc = " * - `tenth` - to indicate a factor of 10, "]
5358 #[doc = " * - `fifthy` - to indicate a factor of 50, "]
5359 #[doc = " * - `hundred` - to indicate a factor of 100, "]
5360 #[doc = " *"]
5361 #[doc = " * @category: Basic information"]
5362 #[doc = " * @revision: Created in V2.4.1"]
5363 #[doc = " "]
5364 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5365 #[rasn(enumerated)]
5366 #[non_exhaustive]
5367 pub enum MultiplicativeFactor {
5368 tenth = 0,
5369 half = 1,
5370 two = 2,
5371 three = 3,
5372 five = 4,
5373 ten = 5,
5374 fifty = 6,
5375 hundred = 7,
5376 }
5377 #[doc = "*"]
5378 #[doc = " * This DE represents the number of occupants in a vehicle."]
5379 #[doc = " *"]
5380 #[doc = " * The value shall be set to:"]
5381 #[doc = " * - `n` (`n >= 0` and `n < 126`) for the number n of occupants,"]
5382 #[doc = " * - `126` for values equal to or higher than 125,"]
5383 #[doc = " * - `127` if information is not available."]
5384 #[doc = " *"]
5385 #[doc = " * @unit: 1 person"]
5386 #[doc = " * @category: Vehicle information"]
5387 #[doc = " * @revision: Editorial update in V2.1.1"]
5388 #[doc = " "]
5389 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5390 #[rasn(delegate, value("0..=127"))]
5391 pub struct NumberOfOccupants(pub u8);
5392 #[doc = "* "]
5393 #[doc = " * This DF indicates both the class and associated subclass that best describes an object."]
5394 #[doc = " *"]
5395 #[doc = " * The following options are available:"]
5396 #[doc = " *"]
5397 #[doc = " * @field vehicleSubClass: the object is a road vehicle and the specific subclass is specified."]
5398 #[doc = " *"]
5399 #[doc = " * @field vruSubClass: the object is a VRU and the specific subclass is specified."]
5400 #[doc = " *"]
5401 #[doc = " * @field groupSubClass: the object is a VRU group or cluster and the cluster information is specified."]
5402 #[doc = " *"]
5403 #[doc = " * @field otherSubClass: the object is of a different type than the above and the specific subclass is specified."]
5404 #[doc = " *"]
5405 #[doc = " * @category: Sensing information"]
5406 #[doc = " * @revision: Created in V2.1.1"]
5407 #[doc = " "]
5408 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5409 #[rasn(choice, automatic_tags)]
5410 #[non_exhaustive]
5411 pub enum ObjectClass {
5412 #[rasn(value("0..=14"))]
5413 vehicleSubClass(TrafficParticipantType),
5414 vruSubClass(VruProfileAndSubprofile),
5415 #[rasn(value("0.."))]
5416 groupSubClass(VruClusterInformation),
5417 otherSubClass(OtherSubClass),
5418 }
5419 #[doc = "* "]
5420 #[doc = " * This DF shall contain a list of object classes."]
5421 #[doc = " *"]
5422 #[doc = " * @category: Sensing information"]
5423 #[doc = " * @revision: Created in V2.1.1"]
5424 #[doc = ""]
5425 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5426 #[rasn(delegate, size("1..=8"))]
5427 pub struct ObjectClassDescription(pub SequenceOf<ObjectClassWithConfidence>);
5428 #[doc = "* "]
5429 #[doc = " * This DF represents the classification of a detected object together with a confidence level."]
5430 #[doc = " *"]
5431 #[doc = " * It shall include the following components: "]
5432 #[doc = " *"]
5433 #[doc = " * @field objectClass: the class of the object."]
5434 #[doc = " *"]
5435 #[doc = " * @field Confidence: the associated confidence level."]
5436 #[doc = " *"]
5437 #[doc = " * @category: Sensing information"]
5438 #[doc = " * @revision: Created in V2.1.1"]
5439 #[doc = ""]
5440 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5441 #[rasn(automatic_tags)]
5442 pub struct ObjectClassWithConfidence {
5443 #[rasn(identifier = "objectClass")]
5444 pub object_class: ObjectClass,
5445 pub confidence: ConfidenceLevel,
5446 }
5447 impl ObjectClassWithConfidence {
5448 pub fn new(object_class: ObjectClass, confidence: ConfidenceLevel) -> Self {
5449 Self {
5450 object_class,
5451 confidence,
5452 }
5453 }
5454 }
5455 #[doc = "* "]
5456 #[doc = " * This DF represents a dimension of an object together with a confidence value."]
5457 #[doc = " *"]
5458 #[doc = " * It shall include the following components: "]
5459 #[doc = " * "]
5460 #[doc = " * @field value: the object dimension value which can be estimated as the mean of the current distribution."]
5461 #[doc = " *"]
5462 #[doc = " * @field confidence: the associated confidence value."]
5463 #[doc = " *"]
5464 #[doc = " * @category: Sensing information"]
5465 #[doc = " * @revision: Created in V2.1.1"]
5466 #[doc = ""]
5467 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5468 #[rasn(automatic_tags)]
5469 pub struct ObjectDimension {
5470 pub value: ObjectDimensionValue,
5471 pub confidence: ObjectDimensionConfidence,
5472 }
5473 impl ObjectDimension {
5474 pub fn new(value: ObjectDimensionValue, confidence: ObjectDimensionConfidence) -> Self {
5475 Self { value, confidence }
5476 }
5477 }
5478 #[doc = "* "]
5479 #[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 %."]
5480 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
5481 #[doc = " *"]
5482 #[doc = " * The value shall be set to:"]
5483 #[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,"]
5484 #[doc = " * - `31` if the confidence value is out of range i.e. greater than 3,0 m,"]
5485 #[doc = " * - `32` if the confidence value is unavailable."]
5486 #[doc = " *"]
5487 #[doc = " * @unit 0,1 m"]
5488 #[doc = " * @category: Sensing information"]
5489 #[doc = " * @revision: Created in V2.1.1 "]
5490 #[doc = ""]
5491 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5492 #[rasn(delegate, value("1..=32"))]
5493 pub struct ObjectDimensionConfidence(pub u8);
5494 #[doc = "* "]
5495 #[doc = " * This DE represents a single dimension of an object."]
5496 #[doc = " *"]
5497 #[doc = " * The value shall be set to:"]
5498 #[doc = " * - `n` (`n > 0` and `n < 255`) if the dimension is equal to or less than n x 0,1 m, and more than (n-1) x 0,1 m,"]
5499 #[doc = " * - `255` if the dimension is out of range i.e. greater than 25,4 m,"]
5500 #[doc = " * - `256` if the dimension is unavailable."]
5501 #[doc = " *"]
5502 #[doc = " * @unit 0,1 m"]
5503 #[doc = " * @category: Basic information"]
5504 #[doc = " * @revision: Created in V2.1.1, corrected the wording in V2.4.1 "]
5505 #[doc = ""]
5506 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5507 #[rasn(delegate, value("1..=256"))]
5508 pub struct ObjectDimensionValue(pub u16);
5509 #[doc = "*"]
5510 #[doc = " * This DE indicates the face or part of a face of a solid object."]
5511 #[doc = " *"]
5512 #[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:"]
5513 #[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,"]
5514 #[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,"]
5515 #[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. "]
5516 #[doc = " *"]
5517 #[doc = " * Note: It is permissible to derive the required object dimensions and orientation from models to provide a best guess."]
5518 #[doc = " * "]
5519 #[doc = " * @category: Basic information"]
5520 #[doc = " * @revision: V2.1.1"]
5521 #[doc = ""]
5522 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5523 #[rasn(enumerated)]
5524 pub enum ObjectFace {
5525 front = 0,
5526 sideLeftFront = 1,
5527 sideLeftBack = 2,
5528 sideRightFront = 3,
5529 sideRightBack = 4,
5530 back = 5,
5531 }
5532 #[doc = "* "]
5533 #[doc = " * This DE represents a single-value indication about the overall information quality of a perceived object."]
5534 #[doc = " * "]
5535 #[doc = " * The value shall be set to: "]
5536 #[doc = " * - `0` : if there is no confidence in detected object, e.g. for \"ghost\"-objects or if confidence could not be computed,"]
5537 #[doc = " * - `n` (`n > 0` and `n < 15`) : for the applicable confidence value,"]
5538 #[doc = " * - `15` : if there is full confidence in the detected Object."]
5539 #[doc = " * "]
5540 #[doc = " * @unit n/a"]
5541 #[doc = " * @category: Sensing information"]
5542 #[doc = " * @revision: Created in V2.1.1 "]
5543 #[doc = ""]
5544 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5545 #[rasn(delegate, value("0..=15"))]
5546 pub struct ObjectPerceptionQuality(pub u8);
5547 #[doc = "*"]
5548 #[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. "]
5549 #[doc = " *"]
5550 #[doc = " * @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, "]
5551 #[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 "]
5552 #[doc = " * probability that exactly all the provided lanes are occupied. "]
5553 #[doc = " *"]
5554 #[doc = " * It shall include the following components: "]
5555 #[doc = " *"]
5556 #[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. "]
5557 #[doc = " * Lanes that are partially occupied can be described using the component lanePositionWithLateralDetails of @ref Options, with the following constraints: "]
5558 #[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 "]
5559 #[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 , "]
5560 #[doc = " * and/or the last entry shall contain the component distanceToRightBorder > 0; the respective other components of these entries shall be set to 0."]
5561 #[doc = " * "]
5562 #[doc = " * @field mapBased: optional lane information described in the context of a MAPEM as specified in ETSI TS 103 301 [15]. "]
5563 #[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 "]
5564 #[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. "]
5565 #[doc = " *"]
5566 #[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 "]
5567 #[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."]
5568 #[doc = " *"]
5569 #[doc = " * @category: Road Topology information"]
5570 #[doc = " * @revision: Created in V2.2.1"]
5571 #[doc = " "]
5572 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5573 #[rasn(automatic_tags)]
5574 #[non_exhaustive]
5575 pub struct OccupiedLanesWithConfidence {
5576 #[rasn(size("1..=4"), identifier = "lanePositionBased")]
5577 pub lane_position_based: SequenceOf<LanePositionOptions>,
5578 #[rasn(size("1..=4"), identifier = "mapBased")]
5579 pub map_based: Option<SequenceOf<MapPosition>>,
5580 pub confidence: MetaInformation,
5581 }
5582 impl OccupiedLanesWithConfidence {
5583 pub fn new(
5584 lane_position_based: SequenceOf<LanePositionOptions>,
5585 map_based: Option<SequenceOf<MapPosition>>,
5586 confidence: MetaInformation,
5587 ) -> Self {
5588 Self {
5589 lane_position_based,
5590 map_based,
5591 confidence,
5592 }
5593 }
5594 }
5595 #[doc = "*"]
5596 #[doc = " * This DE represents a time period to describe the opening days and hours of a Point of Interest."]
5597 #[doc = " * (for example local commerce)."]
5598 #[doc = " *"]
5599 #[doc = " * @category: Basic information"]
5600 #[doc = " * @revision: V1.3.1"]
5601 #[doc = " "]
5602 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5603 #[rasn(delegate)]
5604 pub struct OpeningDaysHours(pub Utf8String);
5605 #[doc = "*"]
5606 #[doc = " * The DE represents an ordinal number that indicates the position of an element in a set. "]
5607 #[doc = " * "]
5608 #[doc = " * @category: Basic information"]
5609 #[doc = " * @revision: Created in V2.1.1"]
5610 #[doc = ""]
5611 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5612 #[rasn(delegate, value("0..=255"))]
5613 pub struct OrdinalNumber1B(pub u8);
5614 #[doc = "*"]
5615 #[doc = " * The DE represents an ordinal number that indicates the position of an element in a set. "]
5616 #[doc = " * "]
5617 #[doc = " * @category: Basic information"]
5618 #[doc = " * @revision: Created in V2.1.1"]
5619 #[doc = ""]
5620 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5621 #[rasn(delegate, value("1..=8"))]
5622 pub struct OrdinalNumber3b(pub u8);
5623 #[doc = "* "]
5624 #[doc = " * This DE indicates the subclass of a detected object for @ref ObjectClass \"otherSubclass\"."]
5625 #[doc = " *"]
5626 #[doc = " * The value shall be set to:"]
5627 #[doc = " * - `0` - unknown - if the subclass is unknown."]
5628 #[doc = " * - `1` - singleObject - if the object is a single object."]
5629 #[doc = " * - `2` - multipleObjects - if the object is a group of multiple objects."]
5630 #[doc = " * - `3` - bulkMaterial - if the object is a bulk material."]
5631 #[doc = " *"]
5632 #[doc = " * @category: Sensing information"]
5633 #[doc = " * @revision: Created in V2.1.1"]
5634 #[doc = " "]
5635 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5636 #[rasn(delegate, value("0..=255"))]
5637 pub struct OtherSubClass(pub u8);
5638 #[doc = "* "]
5639 #[doc = " * This DE indicates the arrangement of parking space in a parking area."]
5640 #[doc = " *"]
5641 #[doc = " * The value shall be set to:"]
5642 #[doc = " * - `0` to indicate that the parking spaces are arranged in a line and parallel to a road or curb,"]
5643 #[doc = " * - `1` to indicate that the parking spaces are arranged side-by-side and diagonally to a curb,"]
5644 #[doc = " * - `2` to indicate that the parking spaces are arranged side-by-side and perpendicularly to a curb,"]
5645 #[doc = " * - `3` to indicate that the parking spaces are arranged so that vehicles form a queue,"]
5646 #[doc = " * - `4` to indicate that the parking spaces are arranged in a mixed fashion, "]
5647 #[doc = " * - 5-7 - reserved for future usage. "]
5648 #[doc = " *"]
5649 #[doc = " * @category: Road topology information"]
5650 #[doc = " * @revision: Created in V2.3.1"]
5651 #[doc = ""]
5652 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5653 #[rasn(delegate, value("0..=7"))]
5654 pub struct ParkingAreaArrangementType(pub u8);
5655 #[doc = "* "]
5656 #[doc = " * This DF indicates the allowed type of occupancy of a parking space/area in terms of time and/or usage."]
5657 #[doc = " *"]
5658 #[doc = " * The following options are available:"]
5659 #[doc = " * "]
5660 #[doc = " * @field unknown: indicates that the allowed type of occupancy is unknown."]
5661 #[doc = " *"]
5662 #[doc = " * @field unlimitedOccupancy: indicates that it can be occupied without limits."]
5663 #[doc = " *"]
5664 #[doc = " * @field onlyWhileCharging: indicates that it can be occupied only while charging an electric vehicle."]
5665 #[doc = " *"]
5666 #[doc = " * @field limitedDuration: indicates that it can be occupied for a limited and indicated duration in minutes."]
5667 #[doc = " *"]
5668 #[doc = " * @field onlyWhileChargingLimitedDuration: indicates that it can be occupied only while charging an electric vehicle and only for a limited and indicated duration in minutes."]
5669 #[doc = " *"]
5670 #[doc = " * @field parkingAllowedUntil: indicates that it can be occupied only until an indicated moment in time."]
5671 #[doc = " *"]
5672 #[doc = " * @field forcedParkingUntil: indicates that it can be occupied and departure is possible only after an indicated moment in time."]
5673 #[doc = " *"]
5674 #[doc = " * @category: Road Topology information"]
5675 #[doc = " * @revision: Created in V2.3.1 "]
5676 #[doc = ""]
5677 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5678 #[rasn(choice, automatic_tags)]
5679 #[non_exhaustive]
5680 pub enum ParkingOccupancyInfo {
5681 unknown(()),
5682 unlimitedOccupancy(()),
5683 onlyWhileCharging(()),
5684 limitedDuration(Integer),
5685 onlyWhileChargingLimitedDuration(Integer),
5686 parkingAllowedUntil(TimestampIts),
5687 forcedParkingUntil(TimestampIts),
5688 }
5689 #[doc = "* "]
5690 #[doc = " * This DE indicates the type of a reservation of a parking space/area."]
5691 #[doc = " *"]
5692 #[doc = " * The value shall be set to:"]
5693 #[doc = " * - `0` to indicate that it is reserved to disabled persons,"]
5694 #[doc = " * - `1` to indicate that it is reserved to pregnant women,"]
5695 #[doc = " * - `2` to indicate that it is reserved to women,"]
5696 #[doc = " * - `3` to indicate that it is reserved to parents with small children,"]
5697 #[doc = " * - `4` to indicate that it is reserved for loading and unloading of goods,"]
5698 #[doc = " * - `5` to indicate that it is reserved for manual charging of electric vehicles,"]
5699 #[doc = " * - `6` to indicate that it is reserved for automated charging of electric vehicles,"]
5700 #[doc = " * - `7` to indicate that it is reserved for vehicles carrying out refrigerated transport of goods,"]
5701 #[doc = " * - `8` to indicate that it is reserved for VIPs,"]
5702 #[doc = " * - `9` to indicate that it is reserved for pre-booked reservations only,"]
5703 #[doc = " * - `10` to indicate that it is not reserved and can still be reserved,"]
5704 #[doc = " * - `11` to indicate that a reservation type is not applicable, i.e. that it cannot be reserved,"]
5705 #[doc = " * - `12` to indicate that it reserved for drop-off and pick-up of vehicles for automated valet parking,"]
5706 #[doc = " * - `13` to indicate that it is reserved for vehicles with a permit,"]
5707 #[doc = " * - `14` to indicate that it is an (often unmarked / undesignated, but still not prohibited) space/area which is reserved for use only on occasions "]
5708 #[doc = " when all official marked parking spaces to which it blocks the access (if any), are already occupied at the moment of arrival."]
5709 #[doc = " * - 15-31 - reserved for future usage. "]
5710 #[doc = " *"]
5711 #[doc = " * @category: Road topology information"]
5712 #[doc = " * @revision: Created in V2.3.1, value 14 assigned in V2.4.1."]
5713 #[doc = ""]
5714 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5715 #[rasn(delegate, value("0..=31"))]
5716 pub struct ParkingReservationType(pub u8);
5717 #[doc = "*"]
5718 #[doc = " * This DF provides basic information about the parking capabilities and availabilities of a single parking space. "]
5719 #[doc = " *"]
5720 #[doc = " * It shall include the following components: "]
5721 #[doc = " *"]
5722 #[doc = " * @field id: the unqiue identifier of the parking space within the parking area."]
5723 #[doc = " *"]
5724 #[doc = " * @field location: the optional location of the geometrical center of the parking space w.r.t. the location of the parking area."]
5725 #[doc = " *"]
5726 #[doc = " * @field status: the actual status of the parking space."]
5727 #[doc = " *"]
5728 #[doc = " * @category: Road Topology information"]
5729 #[doc = " * @revision: Created in V2.3.1 "]
5730 #[doc = ""]
5731 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5732 #[rasn(automatic_tags)]
5733 pub struct ParkingSpaceBasic {
5734 pub id: Identifier2B,
5735 pub location: Option<DeltaReferencePosition>,
5736 pub status: ParkingSpaceStatus,
5737 }
5738 impl ParkingSpaceBasic {
5739 pub fn new(
5740 id: Identifier2B,
5741 location: Option<DeltaReferencePosition>,
5742 status: ParkingSpaceStatus,
5743 ) -> Self {
5744 Self {
5745 id,
5746 location,
5747 status,
5748 }
5749 }
5750 }
5751 #[doc = "*"]
5752 #[doc = " * This DF provides detailed information about the parking capabilities and availabilities of a single parking space. "]
5753 #[doc = " * "]
5754 #[doc = " * It is an extension of @ref ParkingSpaceBasic and it shall additionally include the following additional components: "]
5755 #[doc = " *"]
5756 #[doc = " * @field arrangementType: the optional arrangement of the parking space w.r.t. other spaces."]
5757 #[doc = " * This is component, if present, overrides the common arrangementType defined in the @ref ParkingArea."]
5758 #[doc = " *"]
5759 #[doc = " * @field boundary: the optional physical boundary of the parking space as a polygon w.r.t. the location of the parking space."]
5760 #[doc = " *"]
5761 #[doc = " * @field orientation: the optional orientation of the parking space."]
5762 #[doc = " * This is component, if present, overrides the common orientation defined in the @ref ParkingArea."]
5763 #[doc = " *"]
5764 #[doc = " * @field occupancyRule: the occupancy rule applicable to the parking space."]
5765 #[doc = " *"]
5766 #[doc = " * @field chargingStationId: the optional identitfier of a charging station that serves the parking space."]
5767 #[doc = " *"]
5768 #[doc = " * @field accessViaLane: the optional identifier of a lane that provides access to the parking space."]
5769 #[doc = " *"]
5770 #[doc = " * @field accessViaParkingSpaces: the optional identifier(s) of a parking spaces that provide access to the parking space."]
5771 #[doc = " * "]
5772 #[doc = " * @field reservationType: the optional parking reservation type(s) associated to the parking space."]
5773 #[doc = " * This is component, if present, overrides the common reservationType defined in the @ref ParkingArea."]
5774 #[doc = " *"]
5775 #[doc = " * @category: Road Topology information"]
5776 #[doc = " * @revision: Created in V2.3.1 "]
5777 #[doc = ""]
5778 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5779 #[rasn(automatic_tags)]
5780 #[non_exhaustive]
5781 pub struct ParkingSpaceDetailed {
5782 #[rasn(identifier = "arrangementType")]
5783 pub arrangement_type: Option<ParkingAreaArrangementType>,
5784 pub boundary: Option<DeltaPositions>,
5785 pub orientation: Option<Wgs84Angle>,
5786 #[rasn(identifier = "occupancyRule")]
5787 pub occupancy_rule: ParkingOccupancyInfo,
5788 #[rasn(identifier = "chargingStationId")]
5789 pub charging_station_id: Option<Identifier2B>,
5790 #[rasn(identifier = "accessViaLane")]
5791 pub access_via_lane: Option<Identifier2B>,
5792 #[rasn(size("0..=7"), identifier = "accessViaParkingSpaces")]
5793 pub access_via_parking_spaces: Option<SequenceOf<Identifier2B>>,
5794 #[rasn(size("1..=4", extensible), identifier = "reservationType")]
5795 pub reservation_type: Option<SequenceOf<ParkingReservationType>>,
5796 pub id: Identifier2B,
5797 pub location: Option<DeltaReferencePosition>,
5798 pub status: ParkingSpaceStatus,
5799 }
5800 impl ParkingSpaceDetailed {
5801 pub fn new(
5802 arrangement_type: Option<ParkingAreaArrangementType>,
5803 boundary: Option<DeltaPositions>,
5804 orientation: Option<Wgs84Angle>,
5805 occupancy_rule: ParkingOccupancyInfo,
5806 charging_station_id: Option<Identifier2B>,
5807 access_via_lane: Option<Identifier2B>,
5808 access_via_parking_spaces: Option<SequenceOf<Identifier2B>>,
5809 reservation_type: Option<SequenceOf<ParkingReservationType>>,
5810 id: Identifier2B,
5811 location: Option<DeltaReferencePosition>,
5812 status: ParkingSpaceStatus,
5813 ) -> Self {
5814 Self {
5815 arrangement_type,
5816 boundary,
5817 orientation,
5818 occupancy_rule,
5819 charging_station_id,
5820 access_via_lane,
5821 access_via_parking_spaces,
5822 reservation_type,
5823 id,
5824 location,
5825 status,
5826 }
5827 }
5828 }
5829 #[doc = "* "]
5830 #[doc = " * This DF indicates the status of parking space."]
5831 #[doc = " *"]
5832 #[doc = " * The following options are available:"]
5833 #[doc = " * "]
5834 #[doc = " * @field unknown: indicates that the status is unknown."]
5835 #[doc = " *"]
5836 #[doc = " * @field free: indicates that the parking space is free and hence available to be used."]
5837 #[doc = " *"]
5838 #[doc = " * @field freeUntil: indicates that the parking space is free to be used until an indicated moment in time."]
5839 #[doc = " *"]
5840 #[doc = " * @field fullyOccupied: indicates that the parking space is interely occupied."]
5841 #[doc = " *"]
5842 #[doc = " * @field partiallyOccupied: indicates that the parking space that allows parking of multiple vehicles is occupied by an indicated percentage."]
5843 #[doc = " *"]
5844 #[doc = " * @field occupiedUntil: indicates that the parking space is entirely occupied until an indicated moment in time."]
5845 #[doc = " *"]
5846 #[doc = " * @field reservedUntil: indicates that the parking space is reserved (but not necessarily occupied) until an indicated moment in time."]
5847 #[doc = " *"]
5848 #[doc = " * @field accessBlocked: indicates that the parking space cannot accessed, e.g. due to obstructing vehicles."]
5849 #[doc = " *"]
5850 #[doc = " * @field retrictedUsage: indicates that the parking space is available but that it is not an official parking space and that there are some phyiscal restrictions applicable, "]
5851 #[doc = " * such as parking behind or in front of other vehicles that, depending on the situation, may then have problems entering or leaving their respective parking spaces."]
5852 #[doc = " *"]
5853 #[doc = " * @category: Road Topology information"]
5854 #[doc = " * @revision: Created in V2.3.1 "]
5855 #[doc = ""]
5856 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5857 #[rasn(choice, automatic_tags)]
5858 #[non_exhaustive]
5859 pub enum ParkingSpaceStatus {
5860 unknown(()),
5861 free(()),
5862 freeUntil(TimestampIts),
5863 fullyOccupied(()),
5864 #[rasn(value("0..=100"))]
5865 partiallyOccupied(u8),
5866 occupiedUntil(TimestampIts),
5867 reservedUntil(TimestampIts),
5868 accessBlocked(()),
5869 retrictedUsage(()),
5870 }
5871 #[doc = "*"]
5872 #[doc = " * This DF represents a path with a set of path points."]
5873 #[doc = " * It shall contain up to `40` @ref PathPoint. "]
5874 #[doc = " * "]
5875 #[doc = " * The first PathPoint presents an offset delta position with regards to an external reference position."]
5876 #[doc = " * Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
5877 #[doc = " *"]
5878 #[doc = " * @category: GeoReference information, Vehicle information"]
5879 #[doc = " * @revision: created in V2.1.1 based on PathHistory"]
5880 #[doc = " "]
5881 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5882 #[rasn(delegate, size("0..=40"))]
5883 pub struct Path(pub SequenceOf<PathPoint>);
5884 #[doc = "*"]
5885 #[doc = " * This DE represents the recorded or estimated travel time between a position and a predefined reference position. "]
5886 #[doc = " *"]
5887 #[doc = " * @unit 0,01 second"]
5888 #[doc = " * @category: Basic information"]
5889 #[doc = " * @revision: V1.3.1"]
5890 #[doc = " "]
5891 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5892 #[rasn(delegate, value("1..=65535", extensible))]
5893 pub struct PathDeltaTime(pub Integer);
5894 #[doc = "*"]
5895 #[doc = " * This DF represents estimated/predicted travel time between a position and a predefined reference position. "]
5896 #[doc = " *"]
5897 #[doc = " * the following options are available:"]
5898 #[doc = " * "]
5899 #[doc = " * @field deltaTimeHighPrecision: delta time with precision of 0,1 s."]
5900 #[doc = " *"]
5901 #[doc = " * @field deltaTimeBigRange: delta time with precision of 10 s."]
5902 #[doc = " *"]
5903 #[doc = " * @field deltaTimeMidRange: delta time with precision of 1 s."]
5904 #[doc = " *"]
5905 #[doc = " * @category: Basic information"]
5906 #[doc = " * @revision: Created in V2.2.1, added deltaTimeMidRange extension in V2.3.1"]
5907 #[doc = " "]
5908 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5909 #[rasn(choice, automatic_tags)]
5910 #[non_exhaustive]
5911 pub enum PathDeltaTimeChoice {
5912 deltaTimeHighPrecision(DeltaTimeTenthOfSecond),
5913 deltaTimeBigRange(DeltaTimeTenSeconds),
5914 #[rasn(extension_addition)]
5915 deltaTimeMidRange(DeltaTimeSecond),
5916 }
5917 #[doc = "* "]
5918 #[doc = " * This DF represents a path towards a specific point specified in the @ref EventZone."]
5919 #[doc = " *"]
5920 #[doc = " * It shall include the following components: "]
5921 #[doc = " * "]
5922 #[doc = " * @field pointOfEventZone: the ordinal number of the point within the DF EventZone, i.e. within the list of EventPoints."]
5923 #[doc = " *"]
5924 #[doc = " * @field path: the associated path towards the point specified in pointOfEventZone."]
5925 #[doc = " * The first PathPoint presents an offset delta position with regards to the position of that pointOfEventZone."]
5926 #[doc = " *"]
5927 #[doc = " * @category: GeoReference information"]
5928 #[doc = " * @revision: Created in V2.2.1"]
5929 #[doc = ""]
5930 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5931 #[rasn(automatic_tags)]
5932 pub struct PathExtended {
5933 #[rasn(value("1..=23"), identifier = "pointOfEventZone")]
5934 pub point_of_event_zone: u8,
5935 pub path: Path,
5936 }
5937 impl PathExtended {
5938 pub fn new(point_of_event_zone: u8, path: Path) -> Self {
5939 Self {
5940 point_of_event_zone,
5941 path,
5942 }
5943 }
5944 }
5945 #[doc = "*"]
5946 #[doc = " * This DF represents a path history with a set of path points."]
5947 #[doc = " * It shall contain up to `40` @ref PathPoint. "]
5948 #[doc = " * "]
5949 #[doc = " * The first PathPoint presents an offset delta position with regards to an external reference position."]
5950 #[doc = " * Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
5951 #[doc = " *"]
5952 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref Path instead."]
5953 #[doc = " * @category: GeoReference information, Vehicle information"]
5954 #[doc = " * @revision: semantics updated in V2.1.1, size corrected to 0..40 in V2.2.1"]
5955 #[doc = " "]
5956 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5957 #[rasn(delegate, size("0..=40"))]
5958 pub struct PathHistory(pub SequenceOf<PathPoint>);
5959 #[doc = "* "]
5960 #[doc = " * This DE indicates an ordinal number that represents the position of a component in the list of @ref Traces or @ref TracesExtended. "]
5961 #[doc = " *"]
5962 #[doc = " * The value shall be set to:"]
5963 #[doc = " * - `0` - noPath - if no path is identified"]
5964 #[doc = " * - `1..7` - for instances 1..7 of @ref Traces "]
5965 #[doc = " * - `8..14` - for instances 1..7 of @ref TracesExtended. "]
5966 #[doc = " *"]
5967 #[doc = " * @category: Road topology information"]
5968 #[doc = " * @revision: Created in V2.2.1"]
5969 #[doc = ""]
5970 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5971 #[rasn(delegate, value("0..=14"))]
5972 pub struct PathId(pub u8);
5973 #[doc = "*"]
5974 #[doc = " * This DF defines an offset waypoint position within a path."]
5975 #[doc = " *"]
5976 #[doc = " * It shall include the following components: "]
5977 #[doc = " *"]
5978 #[doc = " * @field pathPosition: The waypoint position defined as an offset position with regards to a pre-defined reference position. "]
5979 #[doc = " *"]
5980 #[doc = " * @field pathDeltaTime: The optional travel time separated from a waypoint to the predefined reference position."]
5981 #[doc = " *"]
5982 #[doc = " * @category GeoReference information"]
5983 #[doc = " * @revision: semantics updated in V2.1.1"]
5984 #[doc = " "]
5985 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5986 #[rasn(automatic_tags)]
5987 pub struct PathPoint {
5988 #[rasn(identifier = "pathPosition")]
5989 pub path_position: DeltaReferencePosition,
5990 #[rasn(identifier = "pathDeltaTime")]
5991 pub path_delta_time: Option<PathDeltaTime>,
5992 }
5993 impl PathPoint {
5994 pub fn new(
5995 path_position: DeltaReferencePosition,
5996 path_delta_time: Option<PathDeltaTime>,
5997 ) -> Self {
5998 Self {
5999 path_position,
6000 path_delta_time,
6001 }
6002 }
6003 }
6004 #[doc = "*"]
6005 #[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."]
6006 #[doc = " *"]
6007 #[doc = " * It shall include the following components: "]
6008 #[doc = " *"]
6009 #[doc = " * @field deltaLatitude: the offset latitude with regards to a pre-defined reference position. "]
6010 #[doc = " *"]
6011 #[doc = " * @field deltaLongitude: the offset longitude with regards to a pre-defined reference position. "]
6012 #[doc = " * "]
6013 #[doc = " * @field horizontalPositionConfidence: the optional confidence value associated to the horizontal geographical position."]
6014 #[doc = " *"]
6015 #[doc = " * @field deltaAltitude: the optional offset altitude with regards to a pre-defined reference position, with default value unavailable. "]
6016 #[doc = " *"]
6017 #[doc = " * @field altitudeConfidence: the optional confidence value associated to the altitude value of the geographical position, with default value unavailable."]
6018 #[doc = " * "]
6019 #[doc = " * @field pathDeltaTime: the optional travel time to the waypoint from the predefined reference position."]
6020 #[doc = ""]
6021 #[doc = " * @field symmetricAreaOffset: the optional symmetric offset to generate a shape, see Annex D for details."]
6022 #[doc = " * "]
6023 #[doc = " * @field asymmetricAreaOffset: the optional asymmetric offset to generate a shape, see Annex D for details. "]
6024 #[doc = " *"]
6025 #[doc = " * @category GeoReference information"]
6026 #[doc = " * @revision: Created in V2.1.1, type of pathDeltaTime changed and optionality added, fields symmetricAreaOffset and asymmetricAreaOffset added in V2.2.1"]
6027 #[doc = " "]
6028 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6029 #[rasn(automatic_tags)]
6030 #[non_exhaustive]
6031 pub struct PathPointPredicted {
6032 #[rasn(identifier = "deltaLatitude")]
6033 pub delta_latitude: DeltaLatitude,
6034 #[rasn(identifier = "deltaLongitude")]
6035 pub delta_longitude: DeltaLongitude,
6036 #[rasn(identifier = "horizontalPositionConfidence")]
6037 pub horizontal_position_confidence: Option<PosConfidenceEllipse>,
6038 #[rasn(
6039 default = "path_point_predicted_delta_altitude_default",
6040 identifier = "deltaAltitude"
6041 )]
6042 pub delta_altitude: DeltaAltitude,
6043 #[rasn(
6044 default = "path_point_predicted_altitude_confidence_default",
6045 identifier = "altitudeConfidence"
6046 )]
6047 pub altitude_confidence: AltitudeConfidence,
6048 #[rasn(identifier = "pathDeltaTime")]
6049 pub path_delta_time: Option<PathDeltaTimeChoice>,
6050 #[rasn(identifier = "symmetricAreaOffset")]
6051 pub symmetric_area_offset: Option<StandardLength9b>,
6052 #[rasn(identifier = "asymmetricAreaOffset")]
6053 pub asymmetric_area_offset: Option<StandardLength9b>,
6054 }
6055 impl PathPointPredicted {
6056 pub fn new(
6057 delta_latitude: DeltaLatitude,
6058 delta_longitude: DeltaLongitude,
6059 horizontal_position_confidence: Option<PosConfidenceEllipse>,
6060 delta_altitude: DeltaAltitude,
6061 altitude_confidence: AltitudeConfidence,
6062 path_delta_time: Option<PathDeltaTimeChoice>,
6063 symmetric_area_offset: Option<StandardLength9b>,
6064 asymmetric_area_offset: Option<StandardLength9b>,
6065 ) -> Self {
6066 Self {
6067 delta_latitude,
6068 delta_longitude,
6069 horizontal_position_confidence,
6070 delta_altitude,
6071 altitude_confidence,
6072 path_delta_time,
6073 symmetric_area_offset,
6074 asymmetric_area_offset,
6075 }
6076 }
6077 }
6078 fn path_point_predicted_delta_altitude_default() -> DeltaAltitude {
6079 DeltaAltitude(12800)
6080 }
6081 fn path_point_predicted_altitude_confidence_default() -> AltitudeConfidence {
6082 AltitudeConfidence::unavailable
6083 }
6084 #[doc = "*"]
6085 #[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. "]
6086 #[doc = " * It shall contain up to `16` @ref PathPointPredicted. "]
6087 #[doc = " * "]
6088 #[doc = " * The first PathPoint presents an offset delta position with regards to an external reference position."]
6089 #[doc = " * Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
6090 #[doc = " *"]
6091 #[doc = " * @category: GeoReference information"]
6092 #[doc = " * @revision: created in V2.1.1 , size constraint changed to SIZE(1..16, ...) in V2.2.1, size extended in V2.3.1"]
6093 #[doc = " "]
6094 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6095 #[rasn(delegate, size("1..=16", extensible))]
6096 pub struct PathPredicted(pub SequenceOf<PathPointPredicted>);
6097 #[doc = "* "]
6098 #[doc = " * This DF represents a predicted path, predicted trajectory or predicted path zone together with usage information and a prediction confidence."]
6099 #[doc = " *"]
6100 #[doc = " * It shall include the following components: "]
6101 #[doc = " *"]
6102 #[doc = " * @field pathPredicted: the predicted path (pathDeltaTime ABSENT) or trajectory (pathDeltaTime PRESENT) and/or the path zone (symmetricAreaOffset PRESENT)."]
6103 #[doc = " *"]
6104 #[doc = " * @field usageIndication: an indication of how the predicted path will be used. "]
6105 #[doc = " *"]
6106 #[doc = " * @field confidenceLevel: the confidence that the path/trajectory in pathPredicted will occur as predicted."]
6107 #[doc = " *"]
6108 #[doc = " * @category: GeoReference information"]
6109 #[doc = " * @revision: created in V2.2.1 "]
6110 #[doc = " "]
6111 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6112 #[rasn(automatic_tags)]
6113 #[non_exhaustive]
6114 pub struct PathPredicted2 {
6115 #[rasn(value("0.."), identifier = "pathPredicted")]
6116 pub path_predicted: PathPredicted,
6117 #[rasn(identifier = "usageIndication")]
6118 pub usage_indication: UsageIndication,
6119 #[rasn(identifier = "confidenceLevel")]
6120 pub confidence_level: ConfidenceLevel,
6121 }
6122 impl PathPredicted2 {
6123 pub fn new(
6124 path_predicted: PathPredicted,
6125 usage_indication: UsageIndication,
6126 confidence_level: ConfidenceLevel,
6127 ) -> Self {
6128 Self {
6129 path_predicted,
6130 usage_indication,
6131 confidence_level,
6132 }
6133 }
6134 }
6135 #[doc = "*"]
6136 #[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."]
6137 #[doc = " * It shall contain up to `16` @ref PathPredicted2. "]
6138 #[doc = " * "]
6139 #[doc = " * @category: GeoReference information"]
6140 #[doc = " * @revision: V2.2.1"]
6141 #[doc = " "]
6142 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6143 #[rasn(delegate, size("1..=16", extensible))]
6144 pub struct PathPredictedList(pub SequenceOf<PathPredicted2>);
6145 #[doc = "* "]
6146 #[doc = " * This DF represents a list of references to the components of a @ref Traces or @ref TracesExtended DF using the @ref PathId. "]
6147 #[doc = " *"]
6148 #[doc = " * @category: Road topology information"]
6149 #[doc = " * @revision: Created in V2.2.1"]
6150 #[doc = ""]
6151 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6152 #[rasn(delegate, size("1..=14"))]
6153 pub struct PathReferences(pub SequenceOf<PathId>);
6154 #[doc = "*"]
6155 #[doc = " * This DE represents the position of a vehicle pedal (e.g. brake or accelerator pedal)."]
6156 #[doc = " *"]
6157 #[doc = " * @unit: 10%"]
6158 #[doc = " * @category: Vehicle information"]
6159 #[doc = " * @revision: Created in V2.3.1"]
6160 #[doc = ""]
6161 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6162 #[rasn(delegate, value("0..=11"))]
6163 pub struct PedalPositionValue(pub u8);
6164 #[doc = "*"]
6165 #[doc = " * This DE contains information about the status of a vehicle pedal."]
6166 #[doc = " *"]
6167 #[doc = " * It shall include the following components: "]
6168 #[doc = " *"]
6169 #[doc = " * @field pedalPositionValue: information about the pedal position. "]
6170 #[doc = " *"]
6171 #[doc = " * @category: vehicle information"]
6172 #[doc = " * @revision: created in V2.3.1"]
6173 #[doc = " "]
6174 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6175 #[rasn(automatic_tags)]
6176 #[non_exhaustive]
6177 pub struct PedalStatus {
6178 #[rasn(identifier = "pedalPositionValue")]
6179 pub pedal_position_value: PedalPositionValue,
6180 }
6181 impl PedalStatus {
6182 pub fn new(pedal_position_value: PedalPositionValue) -> Self {
6183 Self {
6184 pedal_position_value,
6185 }
6186 }
6187 }
6188 #[doc = "* "]
6189 #[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."]
6190 #[doc = " * "]
6191 #[doc = " * It shall include the following components: "]
6192 #[doc = " *"]
6193 #[doc = " * @field objectId: optional identifier assigned to a detected object."]
6194 #[doc = " *"]
6195 #[doc = " * @field measurementDeltaTime: the time difference from a reference time to the time of the measurement of the object. "]
6196 #[doc = " * Negative values indicate that the provided object state refers to a point in time before the reference time."]
6197 #[doc = " *"]
6198 #[doc = " * @field position: the position of the geometric centre of the object's bounding box within the pre-defined coordinate system."]
6199 #[doc = " *"]
6200 #[doc = " * @field velocity: the velocity vector of the object within the pre-defined coordinate system."]
6201 #[doc = " *"]
6202 #[doc = " * @field acceleration: the acceleration vector of the object within the pre-defined coordinate system."]
6203 #[doc = " *"]
6204 #[doc = " * @field angles: optional Euler angles of the object bounding box at the time of measurement. "]
6205 #[doc = " * "]
6206 #[doc = " * @field zAngularVelocity: optional angular velocity of the object around the z-axis at the time of measurement."]
6207 #[doc = " * The angular velocity is measured with positive values considering the object orientation turning around the z-axis using the right-hand rule."]
6208 #[doc = " *"]
6209 #[doc = " * @field lowerTriangularCorrelationMatrices: optional set of lower triangular correlation matrices for selected components of the provided kinematic state and attitude vector."]
6210 #[doc = " *"]
6211 #[doc = " * @field objectDimensionZ: optional z-dimension of object bounding box. "]
6212 #[doc = " * This dimension shall be measured along the direction of the z-axis after all the rotations have been applied. "]
6213 #[doc = " *"]
6214 #[doc = " * @field objectDimensionY: optional y-dimension of the object bounding box. "]
6215 #[doc = " * This dimension shall be measured along the direction of the y-axis after all the rotations have been applied. "]
6216 #[doc = " *"]
6217 #[doc = " * @field objectDimensionX: optional x-dimension of object bounding box."]
6218 #[doc = " * This dimension shall be measured along the direction of the x-axis after all the rotations have been applied."]
6219 #[doc = " * "]
6220 #[doc = " * @field objectAge: optional age of the detected and described object, i.e. the difference in time between the moment "]
6221 #[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."]
6222 #[doc = " *"]
6223 #[doc = " * @field objectPerceptionQuality: optional confidence associated to the object. "]
6224 #[doc = " *"]
6225 #[doc = " * @field sensorIdList: optional list of sensor-IDs which provided the measurement data. "]
6226 #[doc = " *"]
6227 #[doc = " * @field classification: optional classification of the described object"]
6228 #[doc = " *"]
6229 #[doc = " * @field matchedPosition: optional map-matched position of an object."]
6230 #[doc = " *"]
6231 #[doc = " * @category Sensing information"]
6232 #[doc = " * @revision: created in V2.1.1"]
6233 #[doc = " "]
6234 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6235 #[rasn(automatic_tags)]
6236 #[non_exhaustive]
6237 pub struct PerceivedObject {
6238 #[rasn(identifier = "objectId")]
6239 pub object_id: Option<Identifier2B>,
6240 #[rasn(identifier = "measurementDeltaTime")]
6241 pub measurement_delta_time: DeltaTimeMilliSecondSigned,
6242 pub position: CartesianPosition3dWithConfidence,
6243 pub velocity: Option<Velocity3dWithConfidence>,
6244 pub acceleration: Option<Acceleration3dWithConfidence>,
6245 pub angles: Option<EulerAnglesWithConfidence>,
6246 #[rasn(identifier = "zAngularVelocity")]
6247 pub z_angular_velocity: Option<CartesianAngularVelocityComponent>,
6248 #[rasn(identifier = "lowerTriangularCorrelationMatrices")]
6249 pub lower_triangular_correlation_matrices:
6250 Option<LowerTriangularPositiveSemidefiniteMatrices>,
6251 #[rasn(identifier = "objectDimensionZ")]
6252 pub object_dimension_z: Option<ObjectDimension>,
6253 #[rasn(identifier = "objectDimensionY")]
6254 pub object_dimension_y: Option<ObjectDimension>,
6255 #[rasn(identifier = "objectDimensionX")]
6256 pub object_dimension_x: Option<ObjectDimension>,
6257 #[rasn(value("0..=2047"), identifier = "objectAge")]
6258 pub object_age: Option<DeltaTimeMilliSecondSigned>,
6259 #[rasn(identifier = "objectPerceptionQuality")]
6260 pub object_perception_quality: Option<ObjectPerceptionQuality>,
6261 #[rasn(identifier = "sensorIdList")]
6262 pub sensor_id_list: Option<SequenceOfIdentifier1B>,
6263 pub classification: Option<ObjectClassDescription>,
6264 #[rasn(identifier = "mapPosition")]
6265 pub map_position: Option<MapPosition>,
6266 }
6267 impl PerceivedObject {
6268 pub fn new(
6269 object_id: Option<Identifier2B>,
6270 measurement_delta_time: DeltaTimeMilliSecondSigned,
6271 position: CartesianPosition3dWithConfidence,
6272 velocity: Option<Velocity3dWithConfidence>,
6273 acceleration: Option<Acceleration3dWithConfidence>,
6274 angles: Option<EulerAnglesWithConfidence>,
6275 z_angular_velocity: Option<CartesianAngularVelocityComponent>,
6276 lower_triangular_correlation_matrices: Option<
6277 LowerTriangularPositiveSemidefiniteMatrices,
6278 >,
6279 object_dimension_z: Option<ObjectDimension>,
6280 object_dimension_y: Option<ObjectDimension>,
6281 object_dimension_x: Option<ObjectDimension>,
6282 object_age: Option<DeltaTimeMilliSecondSigned>,
6283 object_perception_quality: Option<ObjectPerceptionQuality>,
6284 sensor_id_list: Option<SequenceOfIdentifier1B>,
6285 classification: Option<ObjectClassDescription>,
6286 map_position: Option<MapPosition>,
6287 ) -> Self {
6288 Self {
6289 object_id,
6290 measurement_delta_time,
6291 position,
6292 velocity,
6293 acceleration,
6294 angles,
6295 z_angular_velocity,
6296 lower_triangular_correlation_matrices,
6297 object_dimension_z,
6298 object_dimension_y,
6299 object_dimension_x,
6300 object_age,
6301 object_perception_quality,
6302 sensor_id_list,
6303 classification,
6304 map_position,
6305 }
6306 }
6307 }
6308 #[doc = "*"]
6309 #[doc = " * This DE denotes the ability of an ITS-S to provide information fullfilling additional requirements."]
6310 #[doc = " * A performance class value is used to describe characteristics of data. The semantic defintion of the values are out of scope of the present document "]
6311 #[doc = " * and should be subject to profiling."]
6312 #[doc = " * "]
6313 #[doc = " * The value shall be set to:"]
6314 #[doc = " * - `0` if the performance class is unknown,"]
6315 #[doc = " * - `1` for performance class A,"]
6316 #[doc = " * - `2` for performance class B,"]
6317 #[doc = " * - 3-7 reserved for future use."]
6318 #[doc = " *"]
6319 #[doc = " * @category: Vehicle information"]
6320 #[doc = " * @revision: Editorial update in V2.1.1, description changed in V2.3.1"]
6321 #[doc = " "]
6322 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6323 #[rasn(delegate, value("0..=7"))]
6324 pub struct PerformanceClass(pub u8);
6325 #[doc = "*"]
6326 #[doc = " * This DE represents a telephone number"]
6327 #[doc = " * "]
6328 #[doc = " * @category: Basic information"]
6329 #[doc = " * @revision: V1.3.1"]
6330 #[doc = " "]
6331 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6332 #[rasn(delegate, size("1..=16"))]
6333 pub struct PhoneNumber(pub NumericString);
6334 #[doc = "*"]
6335 #[doc = "* The data frame PolygonalLine shall contain the definition of a polygonal line (also known as polygonal chain) w.r.t. an externally defined reference position."]
6336 #[doc = "*"]
6337 #[doc = "* The following options are available:"]
6338 #[doc = "* "]
6339 #[doc = "* @field deltaPositions: an ordered sequence of delta geographical positions with respect to the previous position, with latitude and longitude,"]
6340 #[doc = "* with the first instance referring to the reference position and with the order implicitly defining a direction associated with the polygonal line."]
6341 #[doc = "*"]
6342 #[doc = "* @field deltaPositionsWithAltitude: an ordered sequence of delta geographical positions with respect to the previous position, with latitude, longitude and altitude,"]
6343 #[doc = "* with the first instance referring to the reference position and with the order implicitly defining a direction associated with the polygonal line."]
6344 #[doc = "*"]
6345 #[doc = "* @field absolutePositions: a sequence of absolute geographical positions, with latitude and longitude."]
6346 #[doc = "*"]
6347 #[doc = "* @field absolutePositionsWithAltitude: a sequence of absolute geographical positions, with latitude, longitude and altitude."]
6348 #[doc = "*"]
6349 #[doc = "* @category: GeoReference information"]
6350 #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321"]
6351 #[doc = ""]
6352 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6353 #[rasn(choice, automatic_tags)]
6354 #[non_exhaustive]
6355 pub enum PolygonalLine {
6356 deltaPositions(DeltaPositions),
6357 deltaPositionsWithAltitude(DeltaReferencePositions),
6358 absolutePositions(GeoPositionsWoAltitude),
6359 absolutePositionsWithAltitude(GeoPositionsWAltitude),
6360 }
6361 #[doc = "* "]
6362 #[doc = " * This DF represents the shape of a polygonal area or of a right prism."]
6363 #[doc = " *"]
6364 #[doc = " * It shall include the following components: "]
6365 #[doc = " *"]
6366 #[doc = " * @field shapeReferencePoint: the optional reference point used for the definition of the shape, relative to an externally specified reference position. "]
6367 #[doc = " * If this component is absent, the externally specified reference position represents the shape's reference point. "]
6368 #[doc = " *"]
6369 #[doc = " * @field polygon: the polygonal area represented by a list of minimum `3` to maximum `16` @ref CartesianPosition3d."]
6370 #[doc = " * All nodes of the polygon shall be considered relative to the shape's reference point."]
6371 #[doc = " *"]
6372 #[doc = " * @field height: the optional height, present if the shape is a right prism extending in the positive z-axis."]
6373 #[doc = " * "]
6374 #[doc = " * @category GeoReference information"]
6375 #[doc = " * @revision: created in V2.1.1"]
6376 #[doc = " *"]
6377 #[doc = " "]
6378 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6379 #[rasn(automatic_tags)]
6380 pub struct PolygonalShape {
6381 #[rasn(identifier = "shapeReferencePoint")]
6382 pub shape_reference_point: Option<CartesianPosition3d>,
6383 #[rasn(size("3..=16", extensible))]
6384 pub polygon: SequenceOfCartesianPosition3d,
6385 pub height: Option<StandardLength12b>,
6386 }
6387 impl PolygonalShape {
6388 pub fn new(
6389 shape_reference_point: Option<CartesianPosition3d>,
6390 polygon: SequenceOfCartesianPosition3d,
6391 height: Option<StandardLength12b>,
6392 ) -> Self {
6393 Self {
6394 shape_reference_point,
6395 polygon,
6396 height,
6397 }
6398 }
6399 }
6400 #[doc = "*"]
6401 #[doc = " * This DE indicates the perpendicular distance from the centre of mass of an empty load vehicle to the front line of"]
6402 #[doc = " * the vehicle bounding box of the empty load vehicle."]
6403 #[doc = " *"]
6404 #[doc = " * The value shall be set to:"]
6405 #[doc = " * - `n` (`n > 0` and `n < 62`) for any aplicable value n between 0,1 metre and 6,2 metres, "]
6406 #[doc = " * - `62` for values equal to or higher than 6.1 metres,"]
6407 #[doc = " * - `63` if the information is unavailable."]
6408 #[doc = " * "]
6409 #[doc = " * @note:\tThe empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
6410 #[doc = " *"]
6411 #[doc = " * @unit 0,1 metre "]
6412 #[doc = " * @category Vehicle information"]
6413 #[doc = " * @revision: description revised in V2.1.1 (the meaning of 62 has changed slightly) "]
6414 #[doc = " "]
6415 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6416 #[rasn(delegate, value("1..=63"))]
6417 pub struct PosCentMass(pub u8);
6418 #[doc = "*"]
6419 #[doc = " * This DF indicates the horizontal position confidence ellipse which represents the estimated accuracy with a "]
6420 #[doc = " * confidence level of 95 %. The centre of the ellipse shape corresponds to the reference"]
6421 #[doc = " * position point for which the position accuracy is evaluated."]
6422 #[doc = " *"]
6423 #[doc = " * It shall include the following components: "]
6424 #[doc = " *"]
6425 #[doc = " * @field semiMajorConfidence: half of length of the major axis, i.e. distance between the centre point"]
6426 #[doc = " * and major axis point of the position accuracy ellipse. "]
6427 #[doc = " *"]
6428 #[doc = " * @field semiMinorConfidence: half of length of the minor axis, i.e. distance between the centre point"]
6429 #[doc = " * and minor axis point of the position accuracy ellipse. "]
6430 #[doc = " *"]
6431 #[doc = " * @field semiMajorOrientation: orientation direction of the ellipse major axis of the position accuracy"]
6432 #[doc = " * ellipse with regards to the WGS84 north. "]
6433 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
6434 #[doc = " *"]
6435 #[doc = " *"]
6436 #[doc = " * @category GeoReference information"]
6437 #[doc = " * @revision: V1.3.1"]
6438 #[doc = " "]
6439 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6440 #[rasn(automatic_tags)]
6441 pub struct PosConfidenceEllipse {
6442 #[rasn(identifier = "semiMajorConfidence")]
6443 pub semi_major_confidence: SemiAxisLength,
6444 #[rasn(identifier = "semiMinorConfidence")]
6445 pub semi_minor_confidence: SemiAxisLength,
6446 #[rasn(identifier = "semiMajorOrientation")]
6447 pub semi_major_orientation: HeadingValue,
6448 }
6449 impl PosConfidenceEllipse {
6450 pub fn new(
6451 semi_major_confidence: SemiAxisLength,
6452 semi_minor_confidence: SemiAxisLength,
6453 semi_major_orientation: HeadingValue,
6454 ) -> Self {
6455 Self {
6456 semi_major_confidence,
6457 semi_minor_confidence,
6458 semi_major_orientation,
6459 }
6460 }
6461 }
6462 #[doc = "*"]
6463 #[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."]
6464 #[doc = " *"]
6465 #[doc = " * The value shall be set to:"]
6466 #[doc = " * - `n` (`n > 0` and `n < 19`) for any aplicable value between 0,1 metre and 1,9 metres,"]
6467 #[doc = " * - `19` for values equal to or higher than 1.8 metres,"]
6468 #[doc = " * - `20` if the information is unavailable."]
6469 #[doc = " *"]
6470 #[doc = " * @category: Vehicle information"]
6471 #[doc = " * @unit 0,1 metre"]
6472 #[doc = " * @revision: description revised in V2.1.1 (the meaning of 19 has changed slightly) "]
6473 #[doc = " "]
6474 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6475 #[rasn(delegate, value("1..=20"))]
6476 pub struct PosFrontAx(pub u8);
6477 #[doc = "*"]
6478 #[doc = " * This DE represents the distance from the centre of vehicle front bumper to the right or left longitudinal carrier of vehicle."]
6479 #[doc = " * The left/right carrier refers to the left/right as seen from a passenger sitting in the vehicle."]
6480 #[doc = " *"]
6481 #[doc = " * The value shall be set to:"]
6482 #[doc = " * - `n` (`n > 0` and `n < 126`) for any aplicable value between 0,01 metre and 1,26 metres, "]
6483 #[doc = " * - `126` for values equal to or higher than 1.25 metres,"]
6484 #[doc = " * - `127` if the information is unavailable."]
6485 #[doc = " *"]
6486 #[doc = " * @unit 0,01 metre "]
6487 #[doc = " * @category Vehicle information"]
6488 #[doc = " * @revision: description revised in V2.1.1 (the meaning of 126 has changed slightly) "]
6489 #[doc = " "]
6490 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6491 #[rasn(delegate, value("1..=127"))]
6492 pub struct PosLonCarr(pub u8);
6493 #[doc = "*"]
6494 #[doc = " * This DE represents the perpendicular inter-distance of neighbouring pillar axis of vehicle starting from the"]
6495 #[doc = " * middle point of the front line of the vehicle bounding box."]
6496 #[doc = " *"]
6497 #[doc = " * The value shall be set to:"]
6498 #[doc = " * - `n` (`n > 0` and `n < 29`) for any aplicable value between 0,1 metre and 2,9 metres, "]
6499 #[doc = " * - `29` for values equal to or greater than 2.8 metres,"]
6500 #[doc = " * - `30` if the information is unavailable."]
6501 #[doc = " * "]
6502 #[doc = " * @unit 0,1 metre "]
6503 #[doc = " * @category Vehicle information"]
6504 #[doc = " * @revision: description revised in V2.1.1 (the meaning of 29 has changed slightly) "]
6505 #[doc = " "]
6506 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6507 #[rasn(delegate, value("1..=30"))]
6508 pub struct PosPillar(pub u8);
6509 #[doc = "* "]
6510 #[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, "]
6511 #[doc = " * in direction of an externally defined reference direction."]
6512 #[doc = " * "]
6513 #[doc = " * The value shall be set to:"]
6514 #[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,"]
6515 #[doc = " * - `0` if the position is at the starting point,"]
6516 #[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,"]
6517 #[doc = " * - `8 190` if the position is out of range, i.e. equal to or greater than 8 189 m,"]
6518 #[doc = " * - `8 191` if the position information is not available. "]
6519 #[doc = " *"]
6520 #[doc = " * @unit 1 metre"]
6521 #[doc = " * @category: GeoReference information"]
6522 #[doc = " * @revision: Created in V2.2.1"]
6523 #[doc = " "]
6524 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6525 #[rasn(delegate, value("-8190..=8191"))]
6526 pub struct Position1d(pub i16);
6527 #[doc = "*"]
6528 #[doc = " * This DF indicates the horizontal position confidence ellipse which represents the estimated accuracy with a "]
6529 #[doc = " * confidence level of 95 %. The centre of the ellipse shape corresponds to the reference"]
6530 #[doc = " * position point for which the position accuracy is evaluated."]
6531 #[doc = " *"]
6532 #[doc = " * It shall include the following components: "]
6533 #[doc = " *"]
6534 #[doc = " * @field semiMajorAxisLength: half of length of the major axis, i.e. distance between the centre point"]
6535 #[doc = " * and major axis point of the position accuracy ellipse. "]
6536 #[doc = " *"]
6537 #[doc = " * @field semiMinorAxisLength: half of length of the minor axis, i.e. distance between the centre point"]
6538 #[doc = " * and minor axis point of the position accuracy ellipse. "]
6539 #[doc = " *"]
6540 #[doc = " * @field semiMajorAxisOrientation: orientation direction of the ellipse major axis of the position accuracy"]
6541 #[doc = " * ellipse with regards to the WGS84 north. "]
6542 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
6543 #[doc = " *"]
6544 #[doc = " * @category GeoReference information"]
6545 #[doc = " * @revision: created in V2.1.1 based on @ref PosConfidenceEllipse"]
6546 #[doc = " "]
6547 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6548 #[rasn(automatic_tags)]
6549 pub struct PositionConfidenceEllipse {
6550 #[rasn(identifier = "semiMajorAxisLength")]
6551 pub semi_major_axis_length: SemiAxisLength,
6552 #[rasn(identifier = "semiMinorAxisLength")]
6553 pub semi_minor_axis_length: SemiAxisLength,
6554 #[rasn(identifier = "semiMajorAxisOrientation")]
6555 pub semi_major_axis_orientation: Wgs84AngleValue,
6556 }
6557 impl PositionConfidenceEllipse {
6558 pub fn new(
6559 semi_major_axis_length: SemiAxisLength,
6560 semi_minor_axis_length: SemiAxisLength,
6561 semi_major_axis_orientation: Wgs84AngleValue,
6562 ) -> Self {
6563 Self {
6564 semi_major_axis_length,
6565 semi_minor_axis_length,
6566 semi_major_axis_orientation,
6567 }
6568 }
6569 }
6570 #[doc = "*"]
6571 #[doc = " * This DE indicates whether a passenger seat is occupied or whether the occupation status is detectable or not."]
6572 #[doc = " * "]
6573 #[doc = " * The number of row in vehicle seats layout is counted in rows from the driver row backwards from front to the rear"]
6574 #[doc = " * of the vehicle."]
6575 #[doc = " * The left side seat of a row refers to the left hand side seen from vehicle rear to front."]
6576 #[doc = " * Additionally, a bit is reserved for each seat row, to indicate if the seat occupation of a row is detectable or not,"]
6577 #[doc = " * i.e. `row1NotDetectable (3)`, `row2NotDetectable(8)`, `row3NotDetectable(13)` and `row4NotDetectable(18)`."]
6578 #[doc = " * Finally, a bit is reserved for each row seat to indicate if the seat row is present or not in the vehicle,"]
6579 #[doc = " * i.e. `row1NotPresent (4)`, `row2NotPresent (9)`, `row3NotPresent(14)`, `row4NotPresent(19)`."]
6580 #[doc = " * "]
6581 #[doc = " * When a seat is detected to be occupied, the corresponding seat occupation bit shall be set to `1`."]
6582 #[doc = " * For example, when the row 1 left seat is occupied, `row1LeftOccupied(0)` bit shall be set to `1`."]
6583 #[doc = " * When a seat is detected to be not occupied, the corresponding seat occupation bit shall be set to `0`."]
6584 #[doc = " * Otherwise, the value of seat occupation bit shall be set according to the following conditions:"]
6585 #[doc = " * - If the seat occupation of a seat row is not detectable, the corresponding bit shall be set to `1`."]
6586 #[doc = " * When any seat row not detectable bit is set to `1`, all corresponding seat occupation bits of the same row"]
6587 #[doc = " * shall be set to `1`."]
6588 #[doc = " * - If the seat row is not present, the corresponding not present bit of the same row shall be set to `1`."]
6589 #[doc = " * When any of the seat row not present bit is set to `1`, the corresponding not detectable bit for that row"]
6590 #[doc = " * shall be set to `1`, and all the corresponding seat occupation bits in that row shall be set to `0`."]
6591 #[doc = " * "]
6592 #[doc = " * @category: Vehicle information"]
6593 #[doc = " * @revision: V1.3.1"]
6594 #[doc = " "]
6595 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6596 #[rasn(delegate)]
6597 pub struct PositionOfOccupants(pub FixedBitString<20usize>);
6598 #[doc = "*"]
6599 #[doc = " * This DF shall contain a list of distances @ref PosPillar that refer to the perpendicular distance between centre of vehicle front bumper"]
6600 #[doc = " * and vehicle pillar A, between neighbour pillars until the last pillar of the vehicle."]
6601 #[doc = " *"]
6602 #[doc = " * Vehicle pillars refer to the vertical or near vertical support of vehicle,"]
6603 #[doc = " * designated respectively as the A, B, C or D and other pillars moving in side profile view from the front to rear."]
6604 #[doc = " * "]
6605 #[doc = " * The first value of the DF refers to the perpendicular distance from the centre of vehicle front bumper to "]
6606 #[doc = " * vehicle A pillar. The second value refers to the perpendicular distance from the centre position of A pillar"]
6607 #[doc = " * to the B pillar of vehicle and so on until the last pillar."]
6608 #[doc = " *"]
6609 #[doc = " * @category: Vehicle information"]
6610 #[doc = " * @revision: V1.3.1"]
6611 #[doc = " "]
6612 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6613 #[rasn(delegate, size("1..=3", extensible))]
6614 pub struct PositionOfPillars(pub SequenceOf<PosPillar>);
6615 #[doc = "*"]
6616 #[doc = " * This DE indicates the positioning technology being used to estimate a geographical position."]
6617 #[doc = " *"]
6618 #[doc = " * The value shall be set to:"]
6619 #[doc = " * - 0 `noPositioningSolution` - no positioning solution used,"]
6620 #[doc = " * - 1 `sGNSS` - Global Navigation Satellite System used,"]
6621 #[doc = " * - 2 `dGNSS` - Differential GNSS used,"]
6622 #[doc = " * - 3 `sGNSSplusDR` - GNSS and dead reckoning used,"]
6623 #[doc = " * - 4 `dGNSSplusDR` - Differential GNSS and dead reckoning used,"]
6624 #[doc = " * - 5 `dR` - dead reckoning used,"]
6625 #[doc = " * - 6 `manuallyByOperator` - position set manually by a human operator."]
6626 #[doc = " *"]
6627 #[doc = " * @category: GeoReference information"]
6628 #[doc = " * @revision: V1.3.1, extension with value 6 added in V2.2.1"]
6629 #[doc = " "]
6630 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6631 #[rasn(enumerated)]
6632 #[non_exhaustive]
6633 pub enum PositioningSolutionType {
6634 noPositioningSolution = 0,
6635 sGNSS = 1,
6636 dGNSS = 2,
6637 sGNSSplusDR = 3,
6638 dGNSSplusDR = 4,
6639 dR = 5,
6640 #[rasn(extension_addition)]
6641 manuallyByOperator = 6,
6642 }
6643 #[doc = "*"]
6644 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `postCrash` ."]
6645 #[doc = " * "]
6646 #[doc = " * The value shall be set to:"]
6647 #[doc = " * - 0 `unavailable` - in case further detailed information on post crash event is unavailable,"]
6648 #[doc = " * - 1 `accidentWithoutECallTriggered` - in case no eCall has been triggered for an accident,"]
6649 #[doc = " * - 2 `accidentWithECallManuallyTriggered` - in case eCall has been manually triggered and transmitted to eCall back end,"]
6650 #[doc = " * - 3 `accidentWithECallAutomaticallyTriggered` - in case eCall has been automatically triggered and transmitted to eCall back end,"]
6651 #[doc = " * - 4 `accidentWithECallTriggeredWithoutAccessToCellularNetwork` - in case eCall has been triggered but cellular network is not accessible from triggering vehicle."]
6652 #[doc = " * - 5-255 - are reserved for future usage."]
6653 #[doc = " *"]
6654 #[doc = " * @category: Traffic information"]
6655 #[doc = " * @revision: V1.3.1"]
6656 #[doc = " "]
6657 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6658 #[rasn(delegate, value("0..=255"))]
6659 pub struct PostCrashSubCauseCode(pub u8);
6660 #[doc = "*"]
6661 #[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. "]
6662 #[doc = "* "]
6663 #[doc = "* The following values are specified:"]
6664 #[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,"]
6665 #[doc = "* - `2000` if the amount of rain falling is greater than 199.9 mm/h, "]
6666 #[doc = "* - `2001` if the information is not available."]
6667 #[doc = "*"]
6668 #[doc = "* @unit: 0,1 mm/h "]
6669 #[doc = "* @category: Basic Information"]
6670 #[doc = "* @revision: created in V2.1.1"]
6671 #[doc = ""]
6672 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6673 #[rasn(delegate, value("1..=2001"))]
6674 pub struct PrecipitationIntensity(pub u16);
6675 #[doc = "*"]
6676 #[doc = " * This DF describes a zone of protection inside which the ITS communication should be restricted."]
6677 #[doc = " *"]
6678 #[doc = " * It shall include the following components: "]
6679 #[doc = " * "]
6680 #[doc = " * @field protectedZoneType: type of the protected zone. "]
6681 #[doc = " * "]
6682 #[doc = " * @field expiryTime: optional time at which the validity of the protected communication zone will expire."]
6683 #[doc = " * "]
6684 #[doc = " * @field protectedZoneLatitude: latitude of the centre point of the protected communication zone."]
6685 #[doc = " * "]
6686 #[doc = " * @field protectedZoneLongitude: longitude of the centre point of the protected communication zone."]
6687 #[doc = " * "]
6688 #[doc = " * @field protectedZoneRadius: optional radius of the protected communication zone in metres."]
6689 #[doc = " * "]
6690 #[doc = " * @field protectedZoneId: the optional ID of the protected communication zone."]
6691 #[doc = " * "]
6692 #[doc = " * @note: A protected communication zone may be defined around a CEN DSRC road side equipment."]
6693 #[doc = " * "]
6694 #[doc = " * @category: Infrastructure information, Communication information"]
6695 #[doc = " * @revision: revised in V2.1.1 (changed protectedZoneID to protectedZoneId)"]
6696 #[doc = " "]
6697 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6698 #[rasn(automatic_tags)]
6699 #[non_exhaustive]
6700 pub struct ProtectedCommunicationZone {
6701 #[rasn(identifier = "protectedZoneType")]
6702 pub protected_zone_type: ProtectedZoneType,
6703 #[rasn(identifier = "expiryTime")]
6704 pub expiry_time: Option<TimestampIts>,
6705 #[rasn(identifier = "protectedZoneLatitude")]
6706 pub protected_zone_latitude: Latitude,
6707 #[rasn(identifier = "protectedZoneLongitude")]
6708 pub protected_zone_longitude: Longitude,
6709 #[rasn(identifier = "protectedZoneRadius")]
6710 pub protected_zone_radius: Option<ProtectedZoneRadius>,
6711 #[rasn(identifier = "protectedZoneId")]
6712 pub protected_zone_id: Option<ProtectedZoneId>,
6713 }
6714 impl ProtectedCommunicationZone {
6715 pub fn new(
6716 protected_zone_type: ProtectedZoneType,
6717 expiry_time: Option<TimestampIts>,
6718 protected_zone_latitude: Latitude,
6719 protected_zone_longitude: Longitude,
6720 protected_zone_radius: Option<ProtectedZoneRadius>,
6721 protected_zone_id: Option<ProtectedZoneId>,
6722 ) -> Self {
6723 Self {
6724 protected_zone_type,
6725 expiry_time,
6726 protected_zone_latitude,
6727 protected_zone_longitude,
6728 protected_zone_radius,
6729 protected_zone_id,
6730 }
6731 }
6732 }
6733 #[doc = "*"]
6734 #[doc = " * This DF shall contain a list of @ref ProtectedCommunicationZone provided by a road side ITS-S (Road Side Unit RSU)."]
6735 #[doc = " *"]
6736 #[doc = " * It may provide up to 16 protected communication zones information."]
6737 #[doc = " *"]
6738 #[doc = " * @category: Infrastructure information, Communication information"]
6739 #[doc = " * @revision: V1.3.1"]
6740 #[doc = " "]
6741 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6742 #[rasn(delegate, size("1..=16"))]
6743 pub struct ProtectedCommunicationZonesRSU(pub SequenceOf<ProtectedCommunicationZone>);
6744 #[doc = "*"]
6745 #[doc = " * This DE represents the indentifier of a protected communication zone."]
6746 #[doc = " * "]
6747 #[doc = " * "]
6748 #[doc = " * @category: Infrastructure information, Communication information"]
6749 #[doc = " * @revision: Revision in V2.1.1 (changed name from ProtectedZoneID to ProtectedZoneId)"]
6750 #[doc = " "]
6751 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6752 #[rasn(delegate, value("0..=134217727"))]
6753 pub struct ProtectedZoneId(pub u32);
6754 #[doc = "*"]
6755 #[doc = " * This DE represents the radius of a protected communication zone. "]
6756 #[doc = " * "]
6757 #[doc = " * "]
6758 #[doc = " * @unit: metre"]
6759 #[doc = " * @category: Infrastructure information, Communication information"]
6760 #[doc = " * @revision: V1.3.1"]
6761 #[doc = " "]
6762 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6763 #[rasn(delegate, value("1..=255", extensible))]
6764 pub struct ProtectedZoneRadius(pub Integer);
6765 #[doc = "*"]
6766 #[doc = " * This DE indicates the type of a protected communication zone, so that an ITS-S is aware of the actions to do"]
6767 #[doc = " * while passing by such zone (e.g. reduce the transmit power in case of a DSRC tolling station)."]
6768 #[doc = " * "]
6769 #[doc = " * The protected zone type is defined in ETSI TS 102 792 [14]."]
6770 #[doc = " * "]
6771 #[doc = " * "]
6772 #[doc = " * @category: Communication information"]
6773 #[doc = " * @revision: V1.3.1"]
6774 #[doc = " "]
6775 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6776 #[rasn(enumerated)]
6777 #[non_exhaustive]
6778 pub enum ProtectedZoneType {
6779 permanentCenDsrcTolling = 0,
6780 #[rasn(extension_addition)]
6781 temporaryCenDsrcTolling = 1,
6782 }
6783 #[doc = "*"]
6784 #[doc = " * This DF identifies an organization."]
6785 #[doc = " *"]
6786 #[doc = " * It shall include the following components: "]
6787 #[doc = " * "]
6788 #[doc = " * @field countryCode: represents the country code that identifies the country of the national registration administrator for issuers according to ISO 14816."]
6789 #[doc = " *"]
6790 #[doc = " * @field providerIdentifier: identifies the organization according to the national ISO 14816 register for issuers."]
6791 #[doc = " *"]
6792 #[doc = " * @note: See https://www.itsstandards.eu/registries/register-of-nra-i-cs1/ for a list of national registration administrators and their respective registers"]
6793 #[doc = " * "]
6794 #[doc = " * @category: Communication information"]
6795 #[doc = " * @revision: Created in V2.2.1 based on ISO 17573-3 [24]"]
6796 #[doc = " "]
6797 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6798 #[rasn(automatic_tags)]
6799 pub struct Provider {
6800 #[rasn(identifier = "countryCode")]
6801 pub country_code: CountryCode,
6802 #[rasn(identifier = "providerIdentifier")]
6803 pub provider_identifier: IssuerIdentifier,
6804 }
6805 impl Provider {
6806 pub fn new(country_code: CountryCode, provider_identifier: IssuerIdentifier) -> Self {
6807 Self {
6808 country_code,
6809 provider_identifier,
6810 }
6811 }
6812 }
6813 #[doc = "*"]
6814 #[doc = " * This DF represents activation data for real-time systems designed for operations control, traffic light priorities, track switches, barriers, etc."]
6815 #[doc = " * using a range of activation devices equipped in public transport vehicles."]
6816 #[doc = " *"]
6817 #[doc = " * The activation of the corresponding equipment is triggered by the approach or passage of a public transport"]
6818 #[doc = " * vehicle at a certain point (e.g. a beacon)."]
6819 #[doc = " *"]
6820 #[doc = " * @field ptActivationType: type of activation. "]
6821 #[doc = " *"]
6822 #[doc = " * @field ptActicationData: data of activation. "]
6823 #[doc = " *"]
6824 #[doc = " * Today there are different payload variants defined for public transport activation-data. The R09.x is one of"]
6825 #[doc = " * the industry standard used by public transport vehicles (e.g. buses, trams) in Europe (e.g. Germany Austria)"]
6826 #[doc = " * for controlling traffic lights, barriers, bollards, etc. This DF shall include information like route, course,"]
6827 #[doc = " * destination, priority, etc."]
6828 #[doc = " * "]
6829 #[doc = " * The R09.x content is defined in VDV recommendation 420 [7]. It includes following information:"]
6830 #[doc = " * - Priority Request Information (pre-request, request, ready to start)"]
6831 #[doc = " * - End of Prioritization procedure"]
6832 #[doc = " * - Priority request direction"]
6833 #[doc = " * - Public Transport line number"]
6834 #[doc = " * - Priority of public transport"]
6835 #[doc = " * - Route line identifier of the public transport"]
6836 #[doc = " * - Route number identification"]
6837 #[doc = " * - Destination of public transport vehicle"]
6838 #[doc = " *"]
6839 #[doc = " * Other countries may use different message sets defined by the local administration."]
6840 #[doc = " * @category: Vehicle information"]
6841 #[doc = " * @revision: V1.3.1"]
6842 #[doc = " "]
6843 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6844 #[rasn(automatic_tags)]
6845 pub struct PtActivation {
6846 #[rasn(identifier = "ptActivationType")]
6847 pub pt_activation_type: PtActivationType,
6848 #[rasn(identifier = "ptActivationData")]
6849 pub pt_activation_data: PtActivationData,
6850 }
6851 impl PtActivation {
6852 pub fn new(
6853 pt_activation_type: PtActivationType,
6854 pt_activation_data: PtActivationData,
6855 ) -> Self {
6856 Self {
6857 pt_activation_type,
6858 pt_activation_data,
6859 }
6860 }
6861 }
6862 #[doc = "*"]
6863 #[doc = " * This DE is used for various tasks in the public transportation environment, especially for controlling traffic"]
6864 #[doc = " * signal systems to prioritize and speed up public transportation in urban area (e.g. intersection \"_bottlenecks_\")."]
6865 #[doc = " * The traffic lights may be controlled by an approaching bus or tram automatically. This permits \"_In Time_\" activation"]
6866 #[doc = " * of the green phase, will enable the individual traffic to clear a potential traffic jam in advance. Thereby the"]
6867 #[doc = " * approaching bus or tram may pass an intersection with activated green light without slowing down the speed due to"]
6868 #[doc = " * traffic congestion. Other usage of the DE is the provision of information like the public transport line number"]
6869 #[doc = " * or the schedule delay of a public transport vehicle."]
6870 #[doc = " * "]
6871 #[doc = " * @category: Vehicle information"]
6872 #[doc = " * @revision: V1.3.1"]
6873 #[doc = " "]
6874 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6875 #[rasn(delegate, size("1..=20"))]
6876 pub struct PtActivationData(pub OctetString);
6877 #[doc = "*"]
6878 #[doc = " * This DE indicates a certain coding type of the PtActivationData data."]
6879 #[doc = " *"]
6880 #[doc = " * The folowing value are specified:"]
6881 #[doc = " * - 0 `undefinedCodingType` : undefined coding type,"]
6882 #[doc = " * - 1 `r09-16CodingType` : coding of PtActivationData conform to VDV recommendation 420 [7],"]
6883 #[doc = " * - 2 `vdv-50149CodingType` : coding of PtActivationData based on VDV recommendation 420 [7]."]
6884 #[doc = " * - 3 - 255 : reserved for alternative and future use."]
6885 #[doc = " * "]
6886 #[doc = " * @category: Vehicle information "]
6887 #[doc = " * @revision: V1.3.1"]
6888 #[doc = " "]
6889 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6890 #[rasn(delegate, value("0..=255"))]
6891 pub struct PtActivationType(pub u8);
6892 #[doc = "*"]
6893 #[doc = " * This DF describes a radial shape. The circular or spherical sector is constructed by sweeping "]
6894 #[doc = " * the provided range about the reference position specified outside of the context of this DF or "]
6895 #[doc = " * about the optional shapeReferencePoint. The range is swept between a horizontal start and a "]
6896 #[doc = " * horizontal end angle in the X-Y plane of a cartesian coordinate system specified outside of the "]
6897 #[doc = " * context of this DF, in a right-hand positive angular direction w.r.t. the x-axis. "]
6898 #[doc = " * A vertical opening angle in the X-Z plane may optionally be provided in a right-hand positive "]
6899 #[doc = " * angular direction w.r.t. the x-axis. "]
6900 #[doc = " *"]
6901 #[doc = " * It shall include the following components:"]
6902 #[doc = " * "]
6903 #[doc = " * @field shapeReferencePoint: the optional reference point used for the definition of the shape, "]
6904 #[doc = " * relative to an externally specified reference position. If this component is absent, the "]
6905 #[doc = " * externally specified reference position represents the shape's reference point. "]
6906 #[doc = " *"]
6907 #[doc = " * @field range: the radial range of the shape from the shape's reference point. "]
6908 #[doc = " *"]
6909 #[doc = " * @field horizontalOpeningAngleStart: the start of the shape's horizontal opening angle. "]
6910 #[doc = " *"]
6911 #[doc = " * @field horizontalOpeningAngleEnd: the end of the shape's horizontal opening angle. "]
6912 #[doc = " *"]
6913 #[doc = " * @field verticalOpeningAngleStart: optional start of the shape's vertical opening angle. "]
6914 #[doc = " *"]
6915 #[doc = " * @field verticalOpeningAngleEnd: optional end of the shape's vertical opening angle. "]
6916 #[doc = " *"]
6917 #[doc = " * @category GeoReference information"]
6918 #[doc = " * @revision: created in V2.1.1, names and types of the horizontal opening angles changed, constraint added and description revised in V2.2.1"]
6919 #[doc = ""]
6920 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6921 #[rasn(automatic_tags)]
6922 pub struct RadialShape {
6923 #[rasn(identifier = "shapeReferencePoint")]
6924 pub shape_reference_point: Option<CartesianPosition3d>,
6925 pub range: StandardLength12b,
6926 #[rasn(identifier = "horizontalOpeningAngleStart")]
6927 pub horizontal_opening_angle_start: CartesianAngleValue,
6928 #[rasn(identifier = "horizontalOpeningAngleEnd")]
6929 pub horizontal_opening_angle_end: CartesianAngleValue,
6930 #[rasn(identifier = "verticalOpeningAngleStart")]
6931 pub vertical_opening_angle_start: Option<CartesianAngleValue>,
6932 #[rasn(identifier = "verticalOpeningAngleEnd")]
6933 pub vertical_opening_angle_end: Option<CartesianAngleValue>,
6934 }
6935 impl RadialShape {
6936 pub fn new(
6937 shape_reference_point: Option<CartesianPosition3d>,
6938 range: StandardLength12b,
6939 horizontal_opening_angle_start: CartesianAngleValue,
6940 horizontal_opening_angle_end: CartesianAngleValue,
6941 vertical_opening_angle_start: Option<CartesianAngleValue>,
6942 vertical_opening_angle_end: Option<CartesianAngleValue>,
6943 ) -> Self {
6944 Self {
6945 shape_reference_point,
6946 range,
6947 horizontal_opening_angle_start,
6948 horizontal_opening_angle_end,
6949 vertical_opening_angle_start,
6950 vertical_opening_angle_end,
6951 }
6952 }
6953 }
6954 #[doc = "*"]
6955 #[doc = " * This DF describes radial shape details. The circular sector or cone is"]
6956 #[doc = " * constructed by sweeping the provided range about the position specified outside of the "]
6957 #[doc = " * context of this DF. The range is swept between a horizontal start and a horizontal end angle in "]
6958 #[doc = " * the X-Y plane of a right-hand cartesian coordinate system specified outside of the context of "]
6959 #[doc = " * this DF, in positive angular direction w.r.t. the x-axis. A vertical opening angle in the X-Z "]
6960 #[doc = " * plane may optionally be provided in positive angular direction w.r.t. the x-axis."]
6961 #[doc = " * "]
6962 #[doc = " * It shall include the following components:"]
6963 #[doc = " * "]
6964 #[doc = " * @field range: the radial range of the sensor from the reference point or sensor point offset. "]
6965 #[doc = " *"]
6966 #[doc = " * @field horizontalOpeningAngleStart: the start of the shape's horizontal opening angle."]
6967 #[doc = " *"]
6968 #[doc = " * @field horizontalOpeningAngleEnd: the end of the shape's horizontal opening angle. "]
6969 #[doc = " *"]
6970 #[doc = " * @field verticalOpeningAngleStart: optional start of the shape's vertical opening angle. "]
6971 #[doc = " *"]
6972 #[doc = " * @field verticalOpeningAngleEnd: optional end of the shape's vertical opening angle. "]
6973 #[doc = " *"]
6974 #[doc = " * @category: Georeference information"]
6975 #[doc = " * @revision: created in V2.1.1, description revised and constraint added in V2.2.1"]
6976 #[doc = " "]
6977 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6978 #[rasn(automatic_tags)]
6979 pub struct RadialShapeDetails {
6980 pub range: StandardLength12b,
6981 #[rasn(identifier = "horizontalOpeningAngleStart")]
6982 pub horizontal_opening_angle_start: CartesianAngleValue,
6983 #[rasn(identifier = "horizontalOpeningAngleEnd")]
6984 pub horizontal_opening_angle_end: CartesianAngleValue,
6985 #[rasn(identifier = "verticalOpeningAngleStart")]
6986 pub vertical_opening_angle_start: Option<CartesianAngleValue>,
6987 #[rasn(identifier = "verticalOpeningAngleEnd")]
6988 pub vertical_opening_angle_end: Option<CartesianAngleValue>,
6989 }
6990 impl RadialShapeDetails {
6991 pub fn new(
6992 range: StandardLength12b,
6993 horizontal_opening_angle_start: CartesianAngleValue,
6994 horizontal_opening_angle_end: CartesianAngleValue,
6995 vertical_opening_angle_start: Option<CartesianAngleValue>,
6996 vertical_opening_angle_end: Option<CartesianAngleValue>,
6997 ) -> Self {
6998 Self {
6999 range,
7000 horizontal_opening_angle_start,
7001 horizontal_opening_angle_end,
7002 vertical_opening_angle_start,
7003 vertical_opening_angle_end,
7004 }
7005 }
7006 }
7007 #[doc = "*"]
7008 #[doc = " * This DF describes a list of radial shapes positioned w.r.t. to an offset position defined "]
7009 #[doc = " * relative to a reference position specified outside of the context of this DF and oriented w.r.t. "]
7010 #[doc = " * a cartesian coordinate system specified outside of the context of this DF. "]
7011 #[doc = " *"]
7012 #[doc = " * It shall include the following components:"]
7013 #[doc = " *"]
7014 #[doc = " * @field refPointId: the identification of the reference point in case of a sensor mounted to trailer. Defaults to ITS ReferencePoint (0)."]
7015 #[doc = " * "]
7016 #[doc = " * @field xCoordinate: the x-coordinate of the offset position."]
7017 #[doc = " *"]
7018 #[doc = " * @field yCoordinate: the y-coordinate of the offset position."]
7019 #[doc = " *"]
7020 #[doc = " * @field zCoordinate: the optional z-coordinate of the offset position."]
7021 #[doc = " *"]
7022 #[doc = " * @field radialShapesList: the list of radial shape details."]
7023 #[doc = " *"]
7024 #[doc = " * @category: Georeference information"]
7025 #[doc = " * @revision: created in V2.1.1, description revised in V2.2.1"]
7026 #[doc = " "]
7027 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7028 #[rasn(automatic_tags)]
7029 pub struct RadialShapes {
7030 #[rasn(identifier = "refPointId")]
7031 pub ref_point_id: Identifier1B,
7032 #[rasn(identifier = "xCoordinate")]
7033 pub x_coordinate: CartesianCoordinateSmall,
7034 #[rasn(identifier = "yCoordinate")]
7035 pub y_coordinate: CartesianCoordinateSmall,
7036 #[rasn(identifier = "zCoordinate")]
7037 pub z_coordinate: Option<CartesianCoordinateSmall>,
7038 #[rasn(identifier = "radialShapesList")]
7039 pub radial_shapes_list: RadialShapesList,
7040 }
7041 impl RadialShapes {
7042 pub fn new(
7043 ref_point_id: Identifier1B,
7044 x_coordinate: CartesianCoordinateSmall,
7045 y_coordinate: CartesianCoordinateSmall,
7046 z_coordinate: Option<CartesianCoordinateSmall>,
7047 radial_shapes_list: RadialShapesList,
7048 ) -> Self {
7049 Self {
7050 ref_point_id,
7051 x_coordinate,
7052 y_coordinate,
7053 z_coordinate,
7054 radial_shapes_list,
7055 }
7056 }
7057 }
7058 #[doc = "* "]
7059 #[doc = " * The DF contains a list of @ref RadialShapeDetails."]
7060 #[doc = " *"]
7061 #[doc = " * @category: Georeference information"]
7062 #[doc = " * @revision: created in V2.1.1"]
7063 #[doc = " "]
7064 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7065 #[rasn(delegate, size("1..=16", extensible))]
7066 pub struct RadialShapesList(pub SequenceOf<RadialShapeDetails>);
7067 #[doc = "*"]
7068 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `railwayLevelCrossing` ."]
7069 #[doc = " * "]
7070 #[doc = " * The value shall be set to:"]
7071 #[doc = " * - 0 `unavailable` - in case no further detailed information on the railway level crossing status is available,"]
7072 #[doc = " * - 1 `doNotCrossAbnormalSituation` - in case when something wrong is detected by equation or sensors of the railway level crossing, "]
7073 #[doc = " including level crossing is closed for too long (e.g. more than 10 minutes long ; default value),"]
7074 #[doc = " * - 2 `closed` - in case the crossing is closed or closing (barriers down),"]
7075 #[doc = " * - 3 `unguarded` - in case the level crossing is unguarded (i.e a Saint Andrew cross level crossing without detection of train),"]
7076 #[doc = " * - 4 `nominal` - in case the barriers are up and/or the warning systems are off,"]
7077 #[doc = " * - 5 `trainApproaching` - in case a train is approaching and the railway level crossing is without barriers."]
7078 #[doc = " * - 6-255: reserved for future usage."]
7079 #[doc = " *"]
7080 #[doc = " * @category: Traffic information"]
7081 #[doc = " * @revision: V1.3.1, description of value 2 and 4 changed and value 5 added in V2.3.1"]
7082 #[doc = " "]
7083 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7084 #[rasn(delegate, value("0..=255"))]
7085 pub struct RailwayLevelCrossingSubCauseCode(pub u8);
7086 #[doc = "* "]
7087 #[doc = " * This DF represents the shape of a rectangular area or a right rectangular prism that is centred "]
7088 #[doc = " * on a reference position defined outside of the context of this DF and oriented w.r.t. a cartesian "]
7089 #[doc = " * coordinate system defined outside of the context of this DF. "]
7090 #[doc = " *"]
7091 #[doc = " * It shall include the following components: "]
7092 #[doc = " * "]
7093 #[doc = " * @field shapeReferencePoint: represents an optional offset point which the rectangle is centred on with "]
7094 #[doc = " * respect to the reference position. If this component is absent, the externally specified "]
7095 #[doc = " * reference position represents the shape's reference point. "]
7096 #[doc = " *"]
7097 #[doc = " * @field semiLength: represents half the length of the rectangle located in the X-Y Plane."]
7098 #[doc = " * "]
7099 #[doc = " * @field semiBreadth: represents half the breadth of the rectangle located in the X-Y Plane."]
7100 #[doc = " *"]
7101 #[doc = " * @field orientation: represents the optional orientation of the longer side of the rectangle, "]
7102 #[doc = " * measured with positive values turning around the Z-axis using the right-hand rule, starting from"]
7103 #[doc = " * the X-axis. If absent, the orientation is equal to the value zero."]
7104 #[doc = " *"]
7105 #[doc = " * @field height: represents the optional height, present if the shape is a right rectangular prism "]
7106 #[doc = " * with height extending in the positive Z-axis."]
7107 #[doc = " *"]
7108 #[doc = " * @category GeoReference information"]
7109 #[doc = " * @revision: created in V2.1.1, centerPoint renamed to shapeReferencePoint, the type of the field orientation changed "]
7110 #[doc = " * and description revised in V2.2.1, added sentence on absence in V2.4.1"]
7111 #[doc = " "]
7112 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7113 #[rasn(automatic_tags)]
7114 pub struct RectangularShape {
7115 #[rasn(identifier = "shapeReferencePoint")]
7116 pub shape_reference_point: Option<CartesianPosition3d>,
7117 #[rasn(identifier = "semiLength")]
7118 pub semi_length: StandardLength12b,
7119 #[rasn(identifier = "semiBreadth")]
7120 pub semi_breadth: StandardLength12b,
7121 pub orientation: Option<CartesianAngleValue>,
7122 pub height: Option<StandardLength12b>,
7123 }
7124 impl RectangularShape {
7125 pub fn new(
7126 shape_reference_point: Option<CartesianPosition3d>,
7127 semi_length: StandardLength12b,
7128 semi_breadth: StandardLength12b,
7129 orientation: Option<CartesianAngleValue>,
7130 height: Option<StandardLength12b>,
7131 ) -> Self {
7132 Self {
7133 shape_reference_point,
7134 semi_length,
7135 semi_breadth,
7136 orientation,
7137 height,
7138 }
7139 }
7140 }
7141 #[doc = "*"]
7142 #[doc = " * A position within a geographic coordinate system together with a confidence ellipse. "]
7143 #[doc = " *"]
7144 #[doc = " * It shall include the following components: "]
7145 #[doc = " *"]
7146 #[doc = " * @field latitude: the latitude of the geographical point."]
7147 #[doc = " *"]
7148 #[doc = " * @field longitude: the longitude of the geographical point."]
7149 #[doc = " *"]
7150 #[doc = " * @field positionConfidenceEllipse: the confidence ellipse associated to the geographical position."]
7151 #[doc = " *"]
7152 #[doc = " * @field altitude: the altitude and an altitude accuracy of the geographical point."]
7153 #[doc = " *"]
7154 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref ReferencePositionWithConfidence instead. "]
7155 #[doc = " * @category: GeoReference information"]
7156 #[doc = " * @revision: description updated in V2.1.1"]
7157 #[doc = " "]
7158 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7159 #[rasn(automatic_tags)]
7160 pub struct ReferencePosition {
7161 pub latitude: Latitude,
7162 pub longitude: Longitude,
7163 #[rasn(identifier = "positionConfidenceEllipse")]
7164 pub position_confidence_ellipse: PosConfidenceEllipse,
7165 pub altitude: Altitude,
7166 }
7167 impl ReferencePosition {
7168 pub fn new(
7169 latitude: Latitude,
7170 longitude: Longitude,
7171 position_confidence_ellipse: PosConfidenceEllipse,
7172 altitude: Altitude,
7173 ) -> Self {
7174 Self {
7175 latitude,
7176 longitude,
7177 position_confidence_ellipse,
7178 altitude,
7179 }
7180 }
7181 }
7182 #[doc = "*"]
7183 #[doc = " * A position within a geographic coordinate system together with a confidence ellipse. "]
7184 #[doc = " *"]
7185 #[doc = " * It shall include the following components: "]
7186 #[doc = " *"]
7187 #[doc = " * @field latitude: the latitude of the geographical point."]
7188 #[doc = " *"]
7189 #[doc = " * @field longitude: the longitude of the geographical point."]
7190 #[doc = " *"]
7191 #[doc = " * @field positionConfidenceEllipse: the confidence ellipse associated to the geographical position."]
7192 #[doc = " *"]
7193 #[doc = " * @field altitude: the altitude and an altitude accuracy of the geographical point."]
7194 #[doc = " *"]
7195 #[doc = " * @category: GeoReference information"]
7196 #[doc = " * @revision: created in V2.1.1 based on @ref ReferencePosition but using @ref PositionConfidenceEllipse."]
7197 #[doc = " "]
7198 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7199 #[rasn(automatic_tags)]
7200 pub struct ReferencePositionWithConfidence {
7201 pub latitude: Latitude,
7202 pub longitude: Longitude,
7203 #[rasn(identifier = "positionConfidenceEllipse")]
7204 pub position_confidence_ellipse: PositionConfidenceEllipse,
7205 pub altitude: Altitude,
7206 }
7207 impl ReferencePositionWithConfidence {
7208 pub fn new(
7209 latitude: Latitude,
7210 longitude: Longitude,
7211 position_confidence_ellipse: PositionConfidenceEllipse,
7212 altitude: Altitude,
7213 ) -> Self {
7214 Self {
7215 latitude,
7216 longitude,
7217 position_confidence_ellipse,
7218 altitude,
7219 }
7220 }
7221 }
7222 #[doc = "*"]
7223 #[doc = " * This DE describes a distance of relevance for information indicated in a message."]
7224 #[doc = " *"]
7225 #[doc = " * The value shall be set to:"]
7226 #[doc = " * - 0 `lessThan50m` - for distances below 50 m,"]
7227 #[doc = " * - 1 `lessThan100m` - for distances below 100 m, "]
7228 #[doc = " * - 2 `lessThan200m` - for distances below 200 m, "]
7229 #[doc = " * - 3 `lessThan500m` - for distances below 300 m, "]
7230 #[doc = " * - 4 `lessThan1000m` - for distances below 1 000 m, "]
7231 #[doc = " * - 5 `lessThan5km` - for distances below 5 000 m, "]
7232 #[doc = " * - 6 `lessThan10km` - for distances below 10 000 m, "]
7233 #[doc = " * - 7 `over10km` - for distances over 10 000 m. "]
7234 #[doc = " * "]
7235 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref StandardLength3b instead. "]
7236 #[doc = " *"]
7237 #[doc = " * @category: GeoReference information"]
7238 #[doc = " * @revision: Editorial update in V2.1.1"]
7239 #[doc = " "]
7240 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7241 #[rasn(enumerated)]
7242 pub enum RelevanceDistance {
7243 lessThan50m = 0,
7244 lessThan100m = 1,
7245 lessThan200m = 2,
7246 lessThan500m = 3,
7247 lessThan1000m = 4,
7248 lessThan5km = 5,
7249 lessThan10km = 6,
7250 over10km = 7,
7251 }
7252 #[doc = "*"]
7253 #[doc = " * This DE indicates a traffic direction that is relevant to information indicated in a message."]
7254 #[doc = " * "]
7255 #[doc = " * The value shall be set to:"]
7256 #[doc = " * - 0 `allTrafficDirections` - for all traffic directions, "]
7257 #[doc = " * - 1 `upstreamTraffic` - for upstream traffic, "]
7258 #[doc = " * - 2 `downstreamTraffic` - for downstream traffic, "]
7259 #[doc = " * - 3 `oppositeTraffic` - for traffic in the opposite direction. "]
7260 #[doc = " *"]
7261 #[doc = " * The terms `upstream`, `downstream` and `oppositeTraffic` are relative to the event position."]
7262 #[doc = " *"]
7263 #[doc = " * @note: Upstream traffic corresponds to the incoming traffic towards the event position,"]
7264 #[doc = " * and downstream traffic to the departing traffic away from the event position."]
7265 #[doc = " *"]
7266 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrafficDirection instead. "]
7267 #[doc = " *"]
7268 #[doc = " * @category: GeoReference information"]
7269 #[doc = " * @revision: Editorial update in V2.1.1"]
7270 #[doc = " "]
7271 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7272 #[rasn(enumerated)]
7273 pub enum RelevanceTrafficDirection {
7274 allTrafficDirections = 0,
7275 upstreamTraffic = 1,
7276 downstreamTraffic = 2,
7277 oppositeTraffic = 3,
7278 }
7279 #[doc = "*"]
7280 #[doc = " * This DE indicates whether an ITS message is transmitted as request from ITS-S or a response transmitted from"]
7281 #[doc = " * ITS-S after receiving request from other ITS-Ss."]
7282 #[doc = " *"]
7283 #[doc = " * The value shall be set to:"]
7284 #[doc = " * - 0 `request` - for a request message, "]
7285 #[doc = " * - 1 `response` - for a response message. "]
7286 #[doc = " *"]
7287 #[doc = " * @category Communication information"]
7288 #[doc = " * @revision: Editorial update in V2.1.1"]
7289 #[doc = " "]
7290 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7291 #[rasn(enumerated)]
7292 pub enum RequestResponseIndication {
7293 request = 0,
7294 response = 1,
7295 }
7296 #[doc = "*"]
7297 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `RescueRecoveryAndMaintenanceWorkInProgressSubCauseCode` "]
7298 #[doc = " * "]
7299 #[doc = " * The value shall be set to:"]
7300 #[doc = " * - 0 `unavailable` - in case further detailed information on rescue and recovery work is unavailable,"]
7301 #[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,"]
7302 #[doc = " * - 2 `rescueHelicopterLanding` - in case rescue helicopter is landing,"]
7303 #[doc = " * - 3 `policeActivityOngoing` - in case police activity is ongoing (only to be used if a more specific sub cause than (1) is needed),"]
7304 #[doc = " * - 4 `medicalEmergencyOngoing` - in case medical emergency recovery is ongoing (only to be used if a more specific sub cause than (1) is needed),"]
7305 #[doc = " * - 5 `childAbductionInProgress-deprecated` - deprecated,"]
7306 #[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,"]
7307 #[doc = " * - 7 `rescueAndRecoveryVehicle` - in case technical rescue work is ongoing by rescue and recovery vehicles."]
7308 #[doc = " * - 8-255: reserved for future usage."]
7309 #[doc = ""]
7310 #[doc = " *"]
7311 #[doc = " * @category: Traffic information"]
7312 #[doc = " * @revision: V1.3.1, named values 6 and 7 added in V2.2.1, DE renamed and value 5 deprecated in V2.4.1"]
7313 #[doc = " "]
7314 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7315 #[rasn(delegate, value("0..=255"))]
7316 pub struct RescueRecoveryAndMaintenanceWorkInProgressSubCauseCode(pub u8);
7317 #[doc = "*"]
7318 #[doc = " * This DF shall contain a list of @ref StationType. to which a certain traffic restriction, e.g. the speed limit, applies."]
7319 #[doc = " * "]
7320 #[doc = " * @category: Infrastructure information, Traffic information"]
7321 #[doc = " * @revision: V1.3.1"]
7322 #[doc = " "]
7323 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7324 #[rasn(delegate, size("1..=3", extensible))]
7325 pub struct RestrictedTypes(pub SequenceOf<StationType>);
7326 #[doc = "* "]
7327 #[doc = " * This DF provides configuration information about a road section."]
7328 #[doc = " *"]
7329 #[doc = " * It shall include the following components: "]
7330 #[doc = " *"]
7331 #[doc = " * @field roadSectionDefinition: the topological definition of the road section for which the information in the other components applies throughout its entire length."]
7332 #[doc = " * "]
7333 #[doc = " * @field roadType: the optional type of road on which the section is located."]
7334 #[doc = " * "]
7335 #[doc = " * @field laneConfiguration: the optional configuration of the road section in terms of basic information per lane."]
7336 #[doc = " *"]
7337 #[doc = " * @field mapemConfiguration: the optional configuration of the road section in terms of MAPEM lanes or connections."]
7338 #[doc = " *"]
7339 #[doc = " * @category: Road topology information"]
7340 #[doc = " * @revision: Created in V2.2.1"]
7341 #[doc = ""]
7342 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7343 #[rasn(automatic_tags)]
7344 #[non_exhaustive]
7345 pub struct RoadConfigurationSection {
7346 #[rasn(identifier = "roadSectionDefinition")]
7347 pub road_section_definition: RoadSectionDefinition,
7348 #[rasn(identifier = "roadType")]
7349 pub road_type: Option<RoadType>,
7350 #[rasn(identifier = "laneConfiguration")]
7351 pub lane_configuration: Option<BasicLaneConfiguration>,
7352 #[rasn(identifier = "mapemConfiguration")]
7353 pub mapem_configuration: Option<MapemConfiguration>,
7354 }
7355 impl RoadConfigurationSection {
7356 pub fn new(
7357 road_section_definition: RoadSectionDefinition,
7358 road_type: Option<RoadType>,
7359 lane_configuration: Option<BasicLaneConfiguration>,
7360 mapem_configuration: Option<MapemConfiguration>,
7361 ) -> Self {
7362 Self {
7363 road_section_definition,
7364 road_type,
7365 lane_configuration,
7366 mapem_configuration,
7367 }
7368 }
7369 }
7370 #[doc = "*"]
7371 #[doc = " * This DF shall contain a list of @ref RoadConfigurationSection."]
7372 #[doc = " * "]
7373 #[doc = " * @category: Road Topology information"]
7374 #[doc = " * @revision: Created in V2.2.1"]
7375 #[doc = " "]
7376 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7377 #[rasn(delegate, size("1..=8", extensible))]
7378 pub struct RoadConfigurationSectionList(pub SequenceOf<RoadConfigurationSection>);
7379 #[doc = "* "]
7380 #[doc = " * This DF provides the basic topological definition of a road section."]
7381 #[doc = " *"]
7382 #[doc = " * It shall include the following components: "]
7383 #[doc = " * "]
7384 #[doc = " * @field startingPointSection: the position of the starting point of the section. "]
7385 #[doc = " * "]
7386 #[doc = " * @field lengthOfSection: the optional length of the section along the road profile (i.e. including curves)."]
7387 #[doc = " * "]
7388 #[doc = " * @field endingPointSection: the optional position of the ending point of the section. "]
7389 #[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."]
7390 #[doc = " *"]
7391 #[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. "]
7392 #[doc = " * "]
7393 #[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. "]
7394 #[doc = " *"]
7395 #[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). "]
7396 #[doc = " * "]
7397 #[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."]
7398 #[doc = " *"]
7399 #[doc = " * @category: Road topology information"]
7400 #[doc = " * @revision: Created in V2.2.1"]
7401 #[doc = ""]
7402 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7403 #[rasn(automatic_tags)]
7404 #[non_exhaustive]
7405 pub struct RoadSectionDefinition {
7406 #[rasn(identifier = "startingPointSection")]
7407 pub starting_point_section: GeoPosition,
7408 #[rasn(identifier = "lengthOfSection")]
7409 pub length_of_section: Option<StandardLength2B>,
7410 #[rasn(identifier = "endingPointSection")]
7411 pub ending_point_section: Option<GeoPosition>,
7412 #[rasn(identifier = "connectedPaths")]
7413 pub connected_paths: PathReferences,
7414 #[rasn(identifier = "includedPaths")]
7415 pub included_paths: PathReferences,
7416 #[rasn(identifier = "isEventZoneIncluded")]
7417 pub is_event_zone_included: bool,
7418 #[rasn(identifier = "isEventZoneConnected")]
7419 pub is_event_zone_connected: bool,
7420 }
7421 impl RoadSectionDefinition {
7422 pub fn new(
7423 starting_point_section: GeoPosition,
7424 length_of_section: Option<StandardLength2B>,
7425 ending_point_section: Option<GeoPosition>,
7426 connected_paths: PathReferences,
7427 included_paths: PathReferences,
7428 is_event_zone_included: bool,
7429 is_event_zone_connected: bool,
7430 ) -> Self {
7431 Self {
7432 starting_point_section,
7433 length_of_section,
7434 ending_point_section,
7435 connected_paths,
7436 included_paths,
7437 is_event_zone_included,
7438 is_event_zone_connected,
7439 }
7440 }
7441 }
7442 #[doc = "* "]
7443 #[doc = " * This DE indicates an ordinal number that represents the position of a component in the list @ref RoadConfigurationSectionList. "]
7444 #[doc = " *"]
7445 #[doc = " * The value shall be set to:"]
7446 #[doc = " * - `0` - if no road section is identified"]
7447 #[doc = " * - `1..8` - for instances 1..8 of @ref RoadConfigurationSectionList "]
7448 #[doc = " *"]
7449 #[doc = " * @category: Road topology information"]
7450 #[doc = " * @revision: Created in V2.2.1"]
7451 #[doc = " "]
7452 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7453 #[rasn(delegate, value("0..=8", extensible))]
7454 pub struct RoadSectionId(pub Integer);
7455 #[doc = "*"]
7456 #[doc = " * This DF represents a unique id for a road segment"]
7457 #[doc = " *"]
7458 #[doc = " * It shall include the following components: "]
7459 #[doc = " *"]
7460 #[doc = " * @field region: the optional identifier of the entity that is responsible for the region in which the road segment is placed."]
7461 #[doc = " * It is the duty of that entity to guarantee that the @ref Id is unique within the region."]
7462 #[doc = " *"]
7463 #[doc = " * @field id: the identifier of the road segment."]
7464 #[doc = " *"]
7465 #[doc = " * @note: when the component region is present, the RoadSegmentReferenceId is guaranteed to be globally unique."]
7466 #[doc = " * @category: GeoReference information"]
7467 #[doc = " * @revision: created in V2.1.1"]
7468 #[doc = " "]
7469 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7470 #[rasn(automatic_tags)]
7471 pub struct RoadSegmentReferenceId {
7472 pub region: Option<Identifier2B>,
7473 pub id: Identifier2B,
7474 }
7475 impl RoadSegmentReferenceId {
7476 pub fn new(region: Option<Identifier2B>, id: Identifier2B) -> Self {
7477 Self { region, id }
7478 }
7479 }
7480 #[doc = "*"]
7481 #[doc = " * This DE indicates the type of a road segment."]
7482 #[doc = " * "]
7483 #[doc = " * The value shall be set to:"]
7484 #[doc = " * - 0 `urban-NoStructuralSeparationToOppositeLanes` - for an urban road with no structural separation between lanes carrying traffic in opposite directions,"]
7485 #[doc = " * - 1 `urban-WithStructuralSeparationToOppositeLanes` - for an urban road with structural separation between lanes carrying traffic in opposite directions,"]
7486 #[doc = " * - 2 `nonUrban-NoStructuralSeparationToOppositeLanes` - for an non urban road with no structural separation between lanes carrying traffic in opposite directions,"]
7487 #[doc = " * - 3 `nonUrban-WithStructuralSeparationToOppositeLanes` - for an non urban road with structural separation between lanes carrying traffic in opposite directions."]
7488 #[doc = " *"]
7489 #[doc = " * @category: Road Topology Information"]
7490 #[doc = " * @revision: Editorial update in V2.1.1"]
7491 #[doc = " "]
7492 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7493 #[rasn(enumerated)]
7494 pub enum RoadType {
7495 #[rasn(identifier = "urban-NoStructuralSeparationToOppositeLanes")]
7496 urban_NoStructuralSeparationToOppositeLanes = 0,
7497 #[rasn(identifier = "urban-WithStructuralSeparationToOppositeLanes")]
7498 urban_WithStructuralSeparationToOppositeLanes = 1,
7499 #[rasn(identifier = "nonUrban-NoStructuralSeparationToOppositeLanes")]
7500 nonUrban_NoStructuralSeparationToOppositeLanes = 2,
7501 #[rasn(identifier = "nonUrban-WithStructuralSeparationToOppositeLanes")]
7502 nonUrban_WithStructuralSeparationToOppositeLanes = 3,
7503 }
7504 #[doc = "*"]
7505 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `roadworks`."]
7506 #[doc = " * "]
7507 #[doc = "The value shall be set to:"]
7508 #[doc = " * - 0 `unavailable` - in case further detailed information on roadworks is unavailable,"]
7509 #[doc = " * - 1 `roadOrCarriagewayClosure` - in case roadworks are ongoing which comprise the closure of the entire road or of one entire carriageway,"]
7510 #[doc = " * - 2 `roadMarkingWork-deprecated` - deprecated since covered by 3 or 4,"]
7511 #[doc = " * - 3 `movingLaneClosure` - in case moving roadworks are ongoing, which comprise the closure of a lane,"]
7512 #[doc = " * - 4 `stationaryLaneClosure` - in case stationary roadworks are ongoing, which comprise the closure of one or multiple lanes but not of the carriageway/road,"]
7513 #[doc = " * - 5 `streetCleaning-deprecated` - deprecated since not pertinent to roadworks and already covered by SlowVehicleSubCauseCode,"]
7514 #[doc = " * - 6 `winterService-deprecated` - deprecated since not pertinent to roadworks and already covered by SlowVehicleSubCauseCode,"]
7515 #[doc = " * - 7 `setupPhase` - in case the work zone is being setup which, may comprise the closure of one or multiple lanes but the carriageway/road is not closed, "]
7516 #[doc = " * - 8 `remodellingPhase` - in case the work zone is being changed, which may comprise the closure of one or multiple lanes but the carriageway/road is not closed, "]
7517 #[doc = " * - 9 `dismantlingPhase` - in case the work zone is being dismantled after finished works, which comprised the closure of one or multiple lanes "]
7518 #[doc = " but the carriageway/road was not closed,"]
7519 #[doc = " * - 10 `carriagewayCrossover` - in case the work zone includes lanes that are re-directed to another carriageway. "]
7520 #[doc = " * - 11-255 - are reserved for future usage."]
7521 #[doc = " *"]
7522 #[doc = " * @category: Traffic information"]
7523 #[doc = " * @revision: V1.3.1, values 7-9 added in V2.3.1, values 1, 3, 4 renamed in V2.4.1, value 2, 5 und 6 deprecated in V2.4.1, value 10 added in V2.4.1"]
7524 #[doc = " "]
7525 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7526 #[rasn(delegate, value("0..=255"))]
7527 pub struct RoadworksSubCauseCode(pub u8);
7528 #[doc = "*"]
7529 #[doc = " * This DE indicates the driving automation level as defined in SAE J3016 [26]."]
7530 #[doc = " *"]
7531 #[doc = " * @category: Vehicle information"]
7532 #[doc = " * @revision: created in V2.3.1"]
7533 #[doc = ""]
7534 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7535 #[rasn(delegate, value("0..=5"))]
7536 pub struct SaeAutomationLevel(pub u8);
7537 #[doc = "*"]
7538 #[doc = " * This DF provides the safe distance indication of a traffic participant with other traffic participant(s)."]
7539 #[doc = " *"]
7540 #[doc = " * It shall include the following components: "]
7541 #[doc = " * "]
7542 #[doc = " * @field subjectStation: optionally indicates one \"other\" traffic participant identified by its ITS-S."]
7543 #[doc = " * "]
7544 #[doc = " * @field safeDistanceIndicator: indicates whether the distance between the ego ITS-S and the traffic participant(s) is safe."]
7545 #[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. "]
7546 #[doc = " *"]
7547 #[doc = " * @field timeToCollision: optionally indicated the time-to-collision calculated as sqrt(LaDi^2 + LoDi^2 + VDi^2/relative speed "]
7548 #[doc = " * and represented in the nearest 100 ms. This component may be present only if subjectStation is present. "]
7549 #[doc = " *"]
7550 #[doc = " * @note: the abbreviations used are Lateral Distance (LaD), Longitudinal Distance (LoD) and Vertical Distance (VD) "]
7551 #[doc = " * and their respective thresholds, Minimum Safe Lateral Distance (MSLaD), Minimum Safe Longitudinal Distance (MSLoD), and Minimum Safe Vertical Distance (MSVD)."]
7552 #[doc = " *"]
7553 #[doc = " * @category: Traffic information, Kinematic information"]
7554 #[doc = " * @revision: created in V2.1.1"]
7555 #[doc = " "]
7556 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7557 #[rasn(automatic_tags)]
7558 #[non_exhaustive]
7559 pub struct SafeDistanceIndication {
7560 #[rasn(identifier = "subjectStation")]
7561 pub subject_station: Option<StationId>,
7562 #[rasn(identifier = "safeDistanceIndicator")]
7563 pub safe_distance_indicator: SafeDistanceIndicator,
7564 #[rasn(identifier = "timeToCollision")]
7565 pub time_to_collision: Option<DeltaTimeTenthOfSecond>,
7566 }
7567 impl SafeDistanceIndication {
7568 pub fn new(
7569 subject_station: Option<StationId>,
7570 safe_distance_indicator: SafeDistanceIndicator,
7571 time_to_collision: Option<DeltaTimeTenthOfSecond>,
7572 ) -> Self {
7573 Self {
7574 subject_station,
7575 safe_distance_indicator,
7576 time_to_collision,
7577 }
7578 }
7579 }
7580 #[doc = "*"]
7581 #[doc = " * This DE indicates if a distance is safe. "]
7582 #[doc = " *"]
7583 #[doc = " * The value shall be set to:"]
7584 #[doc = " * - `FALSE` if the triple {LaD, LoD, VD} < {MSLaD, MSLoD, MSVD} is simultaneously satisfied with confidence level of 90 % or more, "]
7585 #[doc = " * - `TRUE` otherwise. "]
7586 #[doc = " *"]
7587 #[doc = " * @note: the abbreviations used are Lateral Distance (LaD), Longitudinal Distance (LoD) and Vertical Distance (VD) "]
7588 #[doc = " * and their respective thresholds, Minimum Safe Lateral Distance (MSLaD), Minimum Safe Longitudinal Distance (MSLoD), and Minimum Safe Vertical Distance (MSVD)."]
7589 #[doc = " *"]
7590 #[doc = " * @category: Traffic information, Kinematic information"]
7591 #[doc = " * @revision: Created in V2.1.1"]
7592 #[doc = ""]
7593 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7594 #[rasn(delegate)]
7595 pub struct SafeDistanceIndicator(pub bool);
7596 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7597 #[rasn(delegate, value("0..=4095"))]
7598 pub struct SemiAxisLength(pub u16);
7599 #[doc = "* "]
7600 #[doc = " * This DE indicates the type of sensor."]
7601 #[doc = " * "]
7602 #[doc = " * The value shall be set to:"]
7603 #[doc = " * - 0 `undefined` - in case the sensor type is undefined, "]
7604 #[doc = " * - 1 `radar` - in case the sensor is a radar,"]
7605 #[doc = " * - 2 `lidar` - in case the sensor is a lidar,"]
7606 #[doc = " * - 3 `monovideo` - in case the sensor is mono video,"]
7607 #[doc = " * - 4 `stereovision` - in case the sensor is stereo vision,"]
7608 #[doc = " * - 5 `nightvision` - in case the sensor supports night vision, using e.g. infrared illumination or thermal imaging,"]
7609 #[doc = " * - 6 `ultrasonic` - in case the sensor is ultrasonic,"]
7610 #[doc = " * - 7 `pmd` - in case the sensor is photonic mixing device,"]
7611 #[doc = " * - 8 `inductionLoop` - in case the sensor is an induction loop,"]
7612 #[doc = " * - 9 `sphericalCamera` - in case the sensor is a spherical camera,"]
7613 #[doc = " * - 10 `uwb` - in case the sensor is ultra wide band,"]
7614 #[doc = " * - 11 `acoustic` - in case the sensor is acoustic,"]
7615 #[doc = " * - 12 `localAggregation` - in case the information is provided by a system that aggregates information from different local sensors. Aggregation may include fusion,"]
7616 #[doc = " * - 13 `itsAggregation` - in case the information is provided by a system that aggregates information from other received ITS messages,"]
7617 #[doc = " * - 14 `rfid` - in case the sensor is radio frequency identification using a passive or active (e.g. Bluetooth, W-LAN) technology. "]
7618 #[doc = " * - 15-31 - are reserved for future usage."]
7619 #[doc = " *"]
7620 #[doc = " * @category: Sensing Information"]
7621 #[doc = " * @revision: created in V2.1.1, description of value 5 changed and value 14 added in V2.3.1"]
7622 #[doc = ""]
7623 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7624 #[rasn(delegate, value("0..=31"))]
7625 pub struct SensorType(pub u8);
7626 #[doc = "* "]
7627 #[doc = " * This DE indicates the type of sensor(s)."]
7628 #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
7629 #[doc = " * "]
7630 #[doc = " * - 0 `undefined` - in case the sensor type is undefined. "]
7631 #[doc = " * - 1 `radar` - in case the sensor is a radar,"]
7632 #[doc = " * - 2 `lidar` - in case the sensor is a lidar,"]
7633 #[doc = " * - 3 `monovideo` - in case the sensor is mono video,"]
7634 #[doc = " * - 4 `stereovision` - in case the sensor is stereo vision,"]
7635 #[doc = " * - 5 `nightvision` - in case the sensor supports night vision, using e.g. infrared illumination or thermal imaging,"]
7636 #[doc = " * - 6 `ultrasonic` - in case the sensor is ultrasonic,"]
7637 #[doc = " * - 7 `pmd` - in case the sensor is photonic mixing device,"]
7638 #[doc = " * - 8 `inductionLoop` - in case the sensor is an induction loop,"]
7639 #[doc = " * - 9 `sphericalCamera` - in case the sensor is a spherical camera,"]
7640 #[doc = " * - 10 `uwb` - in case the sensor is ultra wide band,"]
7641 #[doc = " * - 11 `acoustic` - in case the sensor is acoustic,"]
7642 #[doc = " * - 12 `localAggregation` - in case the information is provided by a system that aggregates information from different local sensors. Aggregation may include fusion,"]
7643 #[doc = " * - 13 `itsAggregation` - in case the information is provided by a system that aggregates information from other received ITS messages,"]
7644 #[doc = " * - 14 `rfid` - in case the sensor is radio frequency identification using a passive or active (e.g. Bluetooth, W-LAN) technology. "]
7645 #[doc = " * - 15 - reserved for future usage."]
7646 #[doc = " * "]
7647 #[doc = " * @note: If all bits are set to 0, then no sensor type is used"]
7648 #[doc = " *"]
7649 #[doc = " * @category: Sensing Information"]
7650 #[doc = " * @revision: created in V2.2.1, description of value 5 changed and value 14 added in V2.3.1"]
7651 #[doc = ""]
7652 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7653 #[rasn(delegate, size("16", extensible))]
7654 pub struct SensorTypes(pub BitString);
7655 #[doc = "*"]
7656 #[doc = " * This DE represents a sequence number."]
7657 #[doc = " * "]
7658 #[doc = " * @category: Basic information"]
7659 #[doc = " * @revision: V1.3.1"]
7660 #[doc = " "]
7661 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7662 #[rasn(delegate, value("0..=65535"))]
7663 pub struct SequenceNumber(pub u16);
7664 #[doc = "* "]
7665 #[doc = " * This DF shall contain a list of DF @ref CartesianPosition3d."]
7666 #[doc = " * "]
7667 #[doc = " * @category: GeoReference information"]
7668 #[doc = " * @revision: created in V2.1.1"]
7669 #[doc = " "]
7670 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7671 #[rasn(delegate, size("1..=16", extensible))]
7672 pub struct SequenceOfCartesianPosition3d(pub SequenceOf<CartesianPosition3d>);
7673 #[doc = "* "]
7674 #[doc = " * The DF contains a list of DE @ref Identifier1B."]
7675 #[doc = " *"]
7676 #[doc = " * @category: Basic information"]
7677 #[doc = " * @revision: created in V2.1.1"]
7678 #[doc = ""]
7679 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7680 #[rasn(delegate, size("1..=128", extensible))]
7681 pub struct SequenceOfIdentifier1B(pub SequenceOf<Identifier1B>);
7682 #[doc = "*"]
7683 #[doc = " * The DF contains a list of DF @ref SafeDistanceIndication."]
7684 #[doc = " *"]
7685 #[doc = " * @category: Traffic information, Kinematic information"]
7686 #[doc = " * @revision: created in V2.1.1"]
7687 #[doc = ""]
7688 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7689 #[rasn(delegate, size("1..=8", extensible))]
7690 pub struct SequenceOfSafeDistanceIndication(pub SequenceOf<SafeDistanceIndication>);
7691 #[doc = "*"]
7692 #[doc = " * The DF shall contain a list of DF @ref TrajectoryInterceptionIndication."]
7693 #[doc = " *"]
7694 #[doc = " * @category: Traffic information, Kinematic information"]
7695 #[doc = " * @revision: created in V2.1.1"]
7696 #[doc = ""]
7697 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7698 #[rasn(delegate, size("1..=8", extensible))]
7699 pub struct SequenceOfTrajectoryInterceptionIndication(
7700 pub SequenceOf<TrajectoryInterceptionIndication>,
7701 );
7702 #[doc = "*"]
7703 #[doc = " * This DF provides the definition of a geographical area or volume, based on different options."]
7704 #[doc = " *"]
7705 #[doc = " * It is a choice of the following components: "]
7706 #[doc = " *"]
7707 #[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."]
7708 #[doc = " *"]
7709 #[doc = " * @field circular: definition of an area of circular shape or a right circular cylinder."]
7710 #[doc = " *"]
7711 #[doc = " * @field polygonal: definition of an area of polygonal shape or a right prism."]
7712 #[doc = " *"]
7713 #[doc = " * @field elliptical: definition of an area of elliptical shape or a right elliptical cylinder."]
7714 #[doc = " *"]
7715 #[doc = " * @field radial: definition of a radial shape."]
7716 #[doc = " *"]
7717 #[doc = " * @field radialList: definition of list of radial shapes."]
7718 #[doc = " *"]
7719 #[doc = " * @category: GeoReference information"]
7720 #[doc = " * @revision: Created in V2.1.1"]
7721 #[doc = " "]
7722 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7723 #[rasn(choice, automatic_tags)]
7724 #[non_exhaustive]
7725 pub enum Shape {
7726 rectangular(RectangularShape),
7727 circular(CircularShape),
7728 polygonal(PolygonalShape),
7729 elliptical(EllipticalShape),
7730 radial(RadialShape),
7731 radialShapes(RadialShapes),
7732 }
7733 #[doc = "*"]
7734 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `signalViolation`."]
7735 #[doc = " * "]
7736 #[doc = " * The value shall be set to:"]
7737 #[doc = " * - 0 `unavailable` - in case further detailed information on signal violation event is unavailable,"]
7738 #[doc = " * - 1 `stopSignViolation` - in case a stop sign violation is detected,"]
7739 #[doc = " * - 2 `trafficLightViolation` - in case a traffic light violation is detected,"]
7740 #[doc = " * - 3 `turningRegulationViolation`- in case a turning regulation violation is detected."]
7741 #[doc = " * - 4-255 - are reserved for future usage."]
7742 #[doc = " *"]
7743 #[doc = " * @category: Traffic information"]
7744 #[doc = " * @revision: V1.3.1"]
7745 #[doc = " "]
7746 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7747 #[rasn(delegate, value("0..=255"))]
7748 pub struct SignalViolationSubCauseCode(pub u8);
7749 #[doc = "*"]
7750 #[doc = " * This DE represents the sub cause codes of the @ref CauseCode \"slowVehicle\"."]
7751 #[doc = " * "]
7752 #[doc = " * The value shall be set to:"]
7753 #[doc = " * - 0 `unavailable` - in case further detailed information on slow vehicle driving event is unavailable,"]
7754 #[doc = " * - 1 `maintenanceVehicle` - in case of a slow driving maintenance vehicle on the road (incl. winter maintenance without detailed status),"]
7755 #[doc = " * - 2 `vehiclesSlowingToLookAtAccident` - in case vehicle is temporally slowing down to look at accident, spot, etc.,"]
7756 #[doc = " * - 3 `abnormalLoad` - in case an abnormal loaded vehicle is driving slowly on the road,"]
7757 #[doc = " * - 4 `abnormalWideLoad` - in case an abnormal wide load vehicle is driving slowly on the road,"]
7758 #[doc = " * - 5 `convoy` - in case of slow driving convoy on the road,"]
7759 #[doc = " * - 6 `winterMaintenanceSnowplough - in case of slow driving snow plough on the road,"]
7760 #[doc = " * - 7 `deicing-deprecated` - deprecated since covered by 8 `winterMaintenanceAdhesionImprovement`,"]
7761 #[doc = " * - 8 `winterMaintenanceAdhesionImprovement` - in case of a slow driving winter maintenance vehicle applying measures to improve the driving conditions "]
7762 #[doc = " and adhesion on winter roads, including improving grip (by applying sand or grit), de-icing (by applying salt or brine),"]
7763 #[doc = " or anti-icing (by applying brine to prevent buildup of ice and snow). "]
7764 #[doc = " * - 9-255 - are reserved for future usage."]
7765 #[doc = " * "]
7766 #[doc = " * @category: Traffic information"]
7767 #[doc = " * @revision: V1.3.1, value 7 deprecated and name of 6 and 8 changed and semantics of 8 refined in V2.4.1"]
7768 #[doc = " "]
7769 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7770 #[rasn(delegate, value("0..=255"))]
7771 pub struct SlowVehicleSubCauseCode(pub u8);
7772 #[doc = "*"]
7773 #[doc = " * The DE indicates if a vehicle is carrying goods in the special transport conditions."]
7774 #[doc = " *"]
7775 #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
7776 #[doc = " * - 0 `heavyLoad` - the vehicle is carrying goods with heavy load,"]
7777 #[doc = " * - 1 `excessWidth` - the vehicle is carrying goods in excess of width,"]
7778 #[doc = " * - 2 `excessLength` - the vehicle is carrying goods in excess of length,"]
7779 #[doc = " * - 3 `excessHeight` - the vehicle is carrying goods in excess of height."]
7780 #[doc = " *"]
7781 #[doc = " * Otherwise, the corresponding bit shall be set to 0."]
7782 #[doc = " * @category Vehicle information"]
7783 #[doc = " * @revision: Description revised in V2.1.1"]
7784 #[doc = " "]
7785 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7786 #[rasn(delegate)]
7787 pub struct SpecialTransportType(pub FixedBitString<4usize>);
7788 #[doc = "*"]
7789 #[doc = " * This DF represents the speed and associated confidence value."]
7790 #[doc = " *"]
7791 #[doc = " * It shall include the following components: "]
7792 #[doc = " * "]
7793 #[doc = " * @field speedValue: the speed value."]
7794 #[doc = " * "]
7795 #[doc = " * @field speedConfidence: the confidence value of the speed value."]
7796 #[doc = " *"]
7797 #[doc = " * @category: Kinematic information"]
7798 #[doc = " * @revision: V1.3.1"]
7799 #[doc = " "]
7800 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7801 #[rasn(automatic_tags)]
7802 pub struct Speed {
7803 #[rasn(identifier = "speedValue")]
7804 pub speed_value: SpeedValue,
7805 #[rasn(identifier = "speedConfidence")]
7806 pub speed_confidence: SpeedConfidence,
7807 }
7808 impl Speed {
7809 pub fn new(speed_value: SpeedValue, speed_confidence: SpeedConfidence) -> Self {
7810 Self {
7811 speed_value,
7812 speed_confidence,
7813 }
7814 }
7815 }
7816 #[doc = "*"]
7817 #[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 %."]
7818 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
7819 #[doc = " * "]
7820 #[doc = " * The value shall be set to:"]
7821 #[doc = " * - `n` (`n > 0` and `n < 126`) if the confidence value is equal to or less than n * 0,01 m/s."]
7822 #[doc = " * - `126` if the confidence value is out of range, i.e. greater than 1,25 m/s,"]
7823 #[doc = " * - `127` if the confidence value information is not available."]
7824 #[doc = " * "]
7825 #[doc = " * @note: The fact that a speed value is received with confidence value set to `unavailable(127)` can be caused by several reasons, such as:"]
7826 #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
7827 #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
7828 #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
7829 #[doc = " * In all 3 cases above, the speed value may be valid and used by the application."]
7830 #[doc = " * "]
7831 #[doc = " * @note: If a speed value is received and its confidence value is set to `outOfRange(126)`, it means that the speed value is not valid "]
7832 #[doc = " * and therefore cannot be trusted. Such is not useful for the application."]
7833 #[doc = " *"]
7834 #[doc = " * @unit: 0,01 m/s"]
7835 #[doc = " * @category: Vehicle information"]
7836 #[doc = " * @revision: Description revised in V2.1.1 "]
7837 #[doc = " "]
7838 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7839 #[rasn(delegate, value("1..=127"))]
7840 pub struct SpeedConfidence(pub u8);
7841 #[doc = "*"]
7842 #[doc = " * This DE represents a speed limitation applied to a geographical position, a road section or a geographical region."]
7843 #[doc = " * "]
7844 #[doc = " * @unit: km/h"]
7845 #[doc = " * @category: Infrastructure information, Traffic information"]
7846 #[doc = " * @revision: V1.3.1"]
7847 #[doc = " "]
7848 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7849 #[rasn(delegate, value("1..=255"))]
7850 pub struct SpeedLimit(pub u8);
7851 #[doc = "*"]
7852 #[doc = " * This DE represents a speed value, i.e. the magnitude of the velocity-vector. "]
7853 #[doc = " *"]
7854 #[doc = " * The value shall be set to:"]
7855 #[doc = " * - `0` in a standstill situation."]
7856 #[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,"]
7857 #[doc = " * - `16 382` for speed values greater than 163,81 m/s,"]
7858 #[doc = " * - `16 383` if the speed accuracy information is not available."]
7859 #[doc = " * "]
7860 #[doc = " * @note: the definition of standstill is out of scope of the present document."]
7861 #[doc = " *"]
7862 #[doc = " * @unit: 0,01 m/s"]
7863 #[doc = " * @category: Kinematic information"]
7864 #[doc = " * @revision: Description revised in V2.1.1 (the meaning of 16382 has changed slightly) "]
7865 #[doc = ""]
7866 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7867 #[rasn(delegate, value("0..=16383"))]
7868 pub struct SpeedValue(pub u16);
7869 #[doc = "*"]
7870 #[doc = " * This DF provides the indication of change in stability."]
7871 #[doc = " *"]
7872 #[doc = " * It shall include the following components: "]
7873 #[doc = " * "]
7874 #[doc = " * @field lossProbability: the probability of stability loss. "]
7875 #[doc = " * "]
7876 #[doc = " * @field actionDeltaTime: the period over which the the probability of stability loss is estimated. "]
7877 #[doc = " *"]
7878 #[doc = " * @category: Kinematic information"]
7879 #[doc = " * @revision: V2.1.1"]
7880 #[doc = " "]
7881 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7882 #[rasn(automatic_tags)]
7883 #[non_exhaustive]
7884 pub struct StabilityChangeIndication {
7885 #[rasn(identifier = "lossProbability")]
7886 pub loss_probability: StabilityLossProbability,
7887 #[rasn(identifier = "actionDeltaTime")]
7888 pub action_delta_time: DeltaTimeTenthOfSecond,
7889 }
7890 impl StabilityChangeIndication {
7891 pub fn new(
7892 loss_probability: StabilityLossProbability,
7893 action_delta_time: DeltaTimeTenthOfSecond,
7894 ) -> Self {
7895 Self {
7896 loss_probability,
7897 action_delta_time,
7898 }
7899 }
7900 }
7901 #[doc = "*"]
7902 #[doc = " * This DE indicates the estimated probability of a stability level and conversely also the probability of a stability loss."]
7903 #[doc = " *"]
7904 #[doc = " * The value shall be set to:"]
7905 #[doc = " * - `0` to indicate an estimated probability of a loss of stability of 0 %, i.e. \"stable\", "]
7906 #[doc = " * - `n` (`n > 0` and `n < 50`) to indicate the actual stability level,"]
7907 #[doc = " * - `50` to indicate a estimated probability of a loss of stability of 100 %, i.e. \"total loss of stability\","]
7908 #[doc = " * - the values between 51 and 62 are reserved for future use,"]
7909 #[doc = " * - `63`: this value indicates that the information is unavailable."]
7910 #[doc = " *"]
7911 #[doc = " * @unit: 2 %"]
7912 #[doc = " * @category: Kinematic information"]
7913 #[doc = " * @revision: Created in V2.1.1"]
7914 #[doc = " "]
7915 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7916 #[rasn(delegate, value("0..=63"))]
7917 pub struct StabilityLossProbability(pub u8);
7918 #[doc = "*"]
7919 #[doc = " * The DE represents length as a measure of distance between points or as a dimension of an object or shape. "]
7920 #[doc = " *"]
7921 #[doc = " * @unit: 0,1 metre"]
7922 #[doc = " * @category: Basic information"]
7923 #[doc = " * @revision: Created in V2.1.1"]
7924 #[doc = " "]
7925 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7926 #[rasn(delegate, value("0..=4095"))]
7927 pub struct StandardLength12b(pub u16);
7928 #[doc = "*"]
7929 #[doc = " * The DE represents length as a measure of distance between points or as a dimension of an object. "]
7930 #[doc = " *"]
7931 #[doc = " * @unit: 0,1 metre"]
7932 #[doc = " * @category: Basic information"]
7933 #[doc = " * @revision: Created in V2.1.1"]
7934 #[doc = " "]
7935 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7936 #[rasn(delegate, value("0..=255"))]
7937 pub struct StandardLength1B(pub u8);
7938 #[doc = "*"]
7939 #[doc = " * The DE represents length as a measure of distance between points or as a dimension of an object. "]
7940 #[doc = " *"]
7941 #[doc = " * @unit: 0,1 metre"]
7942 #[doc = " * @category: Basic information"]
7943 #[doc = " * @revision: Created in V2.1.1"]
7944 #[doc = " "]
7945 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7946 #[rasn(delegate, value("0..=65535"))]
7947 pub struct StandardLength2B(pub u16);
7948 #[doc = "*"]
7949 #[doc = " * The DE represents length as a measure of distance between points. "]
7950 #[doc = " *"]
7951 #[doc = " * The value shall be set to:"]
7952 #[doc = " * - 0 `lessThan50m` - for distances below 50 m, "]
7953 #[doc = " * - 1 `lessThan100m` - for distances below 100 m,"]
7954 #[doc = " * - 2 `lessThan200m` - for distances below 200 m, "]
7955 #[doc = " * - 3 `lessThan500m` - for distances below 300 m, "]
7956 #[doc = " * - 4 `lessThan1000m` - for distances below 1 000 m,"]
7957 #[doc = " * - 5 `lessThan5km` - for distances below 5 000 m, "]
7958 #[doc = " * - 6 `lessThan10km` - for distances below 10 000 m, "]
7959 #[doc = " * - 7 `over10km` - for distances over 10 000 m."]
7960 #[doc = " *"]
7961 #[doc = " * @category: GeoReference information"]
7962 #[doc = " * @revision: Created in V2.1.1 from RelevanceDistance"]
7963 #[doc = " "]
7964 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7965 #[rasn(enumerated)]
7966 pub enum StandardLength3b {
7967 lessThan50m = 0,
7968 lessThan100m = 1,
7969 lessThan200m = 2,
7970 lessThan500m = 3,
7971 lessThan1000m = 4,
7972 lessThan5km = 5,
7973 lessThan10km = 6,
7974 over10km = 7,
7975 }
7976 #[doc = "*"]
7977 #[doc = " * The DE represents length as a measure of distance between points or as a dimension of an object. "]
7978 #[doc = " *"]
7979 #[doc = " * @unit: 0,1 metre"]
7980 #[doc = " * @category: Basic information"]
7981 #[doc = " * @revision: Created in V2.1.1"]
7982 #[doc = " "]
7983 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7984 #[rasn(delegate, value("0..=511"))]
7985 pub struct StandardLength9b(pub u16);
7986 #[doc = "*"]
7987 #[doc = " * This DE represents the identifier of an ITS-S."]
7988 #[doc = " * The ITS-S ID may be a pseudonym. It may change over space and/or over time."]
7989 #[doc = " *"]
7990 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref StationId instead."]
7991 #[doc = " * @category: Basic information"]
7992 #[doc = " * @revision: V1.3.1"]
7993 #[doc = " "]
7994 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7995 #[rasn(delegate, value("0..=4294967295"))]
7996 pub struct StationID(pub u32);
7997 #[doc = "*"]
7998 #[doc = " * This DE represents the identifier of an ITS-S."]
7999 #[doc = " * The ITS-S ID may be a pseudonym. It may change over space and/or over time."]
8000 #[doc = " *"]
8001 #[doc = " * @category: Basic information"]
8002 #[doc = " * @revision: Created in V2.1.1 based on @ref StationID"]
8003 #[doc = " "]
8004 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8005 #[rasn(delegate, value("0..=4294967295"))]
8006 pub struct StationId(pub u32);
8007 #[doc = "*"]
8008 #[doc = " * This DE represents the type of technical context the ITS-S is integrated in."]
8009 #[doc = " * The station type depends on the integration environment of ITS-S into vehicle, mobile devices or at infrastructure."]
8010 #[doc = " * "]
8011 #[doc = " * The value shall be set to the corresponding value of the integration environment of DE TrafficParticipantType"]
8012 #[doc = " * "]
8013 #[doc = " * @category: Communication information."]
8014 #[doc = " * @revision: revised in V2.1.1 (named values 12 and 13 added and note to value 9 deleted). Deleted note and type set equal to TrafficParticipantType in V2.4.1."]
8015 #[doc = " "]
8016 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8017 #[rasn(delegate)]
8018 pub struct StationType(pub TrafficParticipantType);
8019 #[doc = "*"]
8020 #[doc = " * This DE indicates the duration in minutes since which something is stationary."]
8021 #[doc = " * "]
8022 #[doc = " * The value shall be set to:"]
8023 #[doc = " * - 0 `lessThan1Minute` - for being stationary since less than 1 minute, "]
8024 #[doc = " * - 1 `lessThan2Minutes` - for being stationary since less than 2 minute and for equal to or more than 1 minute,"]
8025 #[doc = " * - 2 `lessThan15Minutes` - for being stationary since less than 15 minutes and for equal to or more than 1 minute,"]
8026 #[doc = " * - 3 `equalOrGreater15Minutes` - for being stationary since equal to or more than 15 minutes."]
8027 #[doc = " *"]
8028 #[doc = " * @category: Kinematic information"]
8029 #[doc = " * @revision: Created in V2.1.1"]
8030 #[doc = " "]
8031 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8032 #[rasn(enumerated)]
8033 pub enum StationarySince {
8034 lessThan1Minute = 0,
8035 lessThan2Minutes = 1,
8036 lessThan15Minutes = 2,
8037 equalOrGreater15Minutes = 3,
8038 }
8039 #[doc = "*"]
8040 #[doc = " * This DE provides the value of the sub cause codes of the @ref CauseCode \"stationaryVehicle\". "]
8041 #[doc = " * "]
8042 #[doc = " * The value shall be set to:"]
8043 #[doc = " * - 0 `unavailable` - in case further detailed information on stationary vehicle is unavailable,"]
8044 #[doc = " * - 1 `humanProblem-deprecated` - deprecated since covered by DE HumanProblemSubCauseCode,"]
8045 #[doc = " * - 2 `vehicleBreakdown` - in case stationary vehicle is due to vehicle break down,"]
8046 #[doc = " * - 3 `postCrash` - in case stationary vehicle is caused by collision,"]
8047 #[doc = " * - 4 `publicTransportStop` - in case public transport vehicle is stationary at bus stop,"]
8048 #[doc = " * - 5 `carryingDangerousGoods` - in case the stationary vehicle is carrying dangerous goods,"]
8049 #[doc = " * - 6 `vehicleOnFire` - in case of vehicle on fire."]
8050 #[doc = " * - 7-255 reserved for future usage."]
8051 #[doc = " *"]
8052 #[doc = " * @category: Traffic information"]
8053 #[doc = " * @revision: V1.3.1, value 6 added in V2.1.1, value 1 deprecated in V2.4.1"]
8054 #[doc = " "]
8055 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8056 #[rasn(delegate, value("0..=255"))]
8057 pub struct StationaryVehicleSubCauseCode(pub u8);
8058 #[doc = "*"]
8059 #[doc = " * This DF represents the steering wheel angle of the vehicle at certain point in time."]
8060 #[doc = " *"]
8061 #[doc = " * It shall include the following components: "]
8062 #[doc = " * "]
8063 #[doc = " * @field steeringWheelAngleValue: steering wheel angle value."]
8064 #[doc = " * "]
8065 #[doc = " * @field steeringWheelAngleConfidence: confidence value of the steering wheel angle value."]
8066 #[doc = " * "]
8067 #[doc = " * @category: Vehicle information"]
8068 #[doc = " * @revision: Created in V2.1.1"]
8069 #[doc = " "]
8070 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8071 #[rasn(automatic_tags)]
8072 pub struct SteeringWheelAngle {
8073 #[rasn(identifier = "steeringWheelAngleValue")]
8074 pub steering_wheel_angle_value: SteeringWheelAngleValue,
8075 #[rasn(identifier = "steeringWheelAngleConfidence")]
8076 pub steering_wheel_angle_confidence: SteeringWheelAngleConfidence,
8077 }
8078 impl SteeringWheelAngle {
8079 pub fn new(
8080 steering_wheel_angle_value: SteeringWheelAngleValue,
8081 steering_wheel_angle_confidence: SteeringWheelAngleConfidence,
8082 ) -> Self {
8083 Self {
8084 steering_wheel_angle_value,
8085 steering_wheel_angle_confidence,
8086 }
8087 }
8088 }
8089 #[doc = "*"]
8090 #[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 %."]
8091 #[doc = " * "]
8092 #[doc = " * The value shall be set to:"]
8093 #[doc = " * - `n` (`n > 0` and `n < 126`) if the confidence value is equal to or less than n x 1,5 degrees,"]
8094 #[doc = " * - `126` if the confidence value is out of range, i.e. greater than 187,5 degrees,"]
8095 #[doc = " * - `127` if the confidence value is not available."]
8096 #[doc = " * "]
8097 #[doc = " * @note: The fact that a steering wheel angle value is received with confidence value set to `unavailable(127)`"]
8098 #[doc = " * can be caused by several reasons, such as:"]
8099 #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
8100 #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
8101 #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
8102 #[doc = " * In all 3 cases above, the steering wheel angle value may be valid and used by the application."]
8103 #[doc = " * "]
8104 #[doc = " * If a steering wheel angle value is received and its confidence value is set to `outOfRange(126)`,"]
8105 #[doc = " * it means that the steering wheel angle value is not valid and therefore cannot be trusted."]
8106 #[doc = " * Such value is not useful for the application."]
8107 #[doc = " * "]
8108 #[doc = " * @unit: 1,5 degree"]
8109 #[doc = " * @category: Vehicle Information"]
8110 #[doc = " * @revision: Description revised in V2.1.1"]
8111 #[doc = ""]
8112 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8113 #[rasn(delegate, value("1..=127"))]
8114 pub struct SteeringWheelAngleConfidence(pub u8);
8115 #[doc = "*"]
8116 #[doc = " * This DE represents the steering wheel angle of the vehicle at certain point in time."]
8117 #[doc = " * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11."]
8118 #[doc = " * "]
8119 #[doc = " * The value shall be set to:"]
8120 #[doc = " * - `-511` if the steering wheel angle is equal to or greater than 511 x 1,5 degrees = 766,5 degrees to the right,"]
8121 #[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, "]
8122 #[doc = " turning clockwise (i.e. to the right),"]
8123 #[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, "]
8124 #[doc = " turning counter-clockwise (i.e. to the left),"]
8125 #[doc = " * - `511` if the steering wheel angle is greater than 510 x 1,5 degrees = 765 degrees to the left,"]
8126 #[doc = " * - `512` if information is not available."]
8127 #[doc = " *"]
8128 #[doc = " * @unit: 1,5 degree"]
8129 #[doc = " * @revision: Description revised in V2.1.1 (meaning of value 511 has changed slightly)."]
8130 #[doc = " "]
8131 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8132 #[rasn(delegate, value("-511..=512"))]
8133 pub struct SteeringWheelAngleValue(pub i16);
8134 #[doc = "* "]
8135 #[doc = " * This DE indicates the type of stored information."]
8136 #[doc = " *"]
8137 #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
8138 #[doc = " * "]
8139 #[doc = " * - `0` undefined - in case the stored information type is undefined. "]
8140 #[doc = " * - `1` staticDb - in case the stored information type is a static database."]
8141 #[doc = " * - `2` dynamicDb - in case the stored information type is a dynamic database"]
8142 #[doc = " * - `3` realTimeDb - in case the stored information type is a real time updated database."]
8143 #[doc = " * - `4` map - in case the stored information type is a road topology map."]
8144 #[doc = " * - Bits 5 to 7 - are reserved for future use."]
8145 #[doc = " *"]
8146 #[doc = " * @note: If all bits are set to 0, then no stored information type is used"]
8147 #[doc = " *"]
8148 #[doc = " * @category: Basic Information"]
8149 #[doc = " * @revision: created in V2.2.1"]
8150 #[doc = ""]
8151 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8152 #[rasn(delegate, size("8", extensible))]
8153 pub struct StoredInformationType(pub BitString);
8154 #[doc = "*"]
8155 #[doc = " * This DE indicates the generic sub cause of a detected event."]
8156 #[doc = " * "]
8157 #[doc = " * @note: The sub cause code value assignment varies based on value of @ref CauseCode."]
8158 #[doc = " *"]
8159 #[doc = " * @category: Traffic information"]
8160 #[doc = " * @revision: Description revised in V2.1.1 (this is the generic sub cause type)"]
8161 #[doc = " "]
8162 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8163 #[rasn(delegate, value("0..=255"))]
8164 pub struct SubCauseCodeType(pub u8);
8165 #[doc = "*"]
8166 #[doc = " * This DE indicates a temperature value."]
8167 #[doc = ""]
8168 #[doc = " * The value shall be set to:"]
8169 #[doc = " * - `-60` for temperature equal to or less than -60 degrees C,"]
8170 #[doc = " * - `n` (`n > -60` and `n < 67`) for the actual temperature n in degrees C,"]
8171 #[doc = " * - `67` for temperature equal to or greater than 67 degrees C."]
8172 #[doc = " * "]
8173 #[doc = " * @unit: degrees Celsius"]
8174 #[doc = " * @category: Basic information"]
8175 #[doc = " * @revision: Editorial update in V2.1.1"]
8176 #[doc = " "]
8177 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8178 #[rasn(delegate, value("-60..=67"))]
8179 pub struct Temperature(pub i8);
8180 #[doc = "*"]
8181 #[doc = " * This DE represents the number of elapsed (TAI) milliseconds since the ITS Epoch. "]
8182 #[doc = " * The ITS epoch is `00:00:00.000 UTC, 1 January 2004`."]
8183 #[doc = " * \"Elapsed\" means that the true number of milliseconds is continuously counted without interruption,"]
8184 #[doc = " * i.e. it is not altered by leap seconds, which occur in UTC."]
8185 #[doc = " * "]
8186 #[doc = " * @note: International Atomic Time (TAI) is the time reference coordinate on the basis of the readings of atomic clocks, "]
8187 #[doc = " * operated in accordance with the definition of the second, the unit of time of the International System of Units. "]
8188 #[doc = " * TAI is a continuous time scale. UTC has discontinuities, as it is occasionally adjusted by leap seconds. "]
8189 #[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, "]
8190 #[doc = " * further 5 leap seconds have been inserted in UTC."]
8191 #[doc = " * "]
8192 #[doc = " * EXAMPLE: The value for TimestampIts for 1 January 2007 00:00:00.000 UTC is `94 694 401 000` milliseconds,"]
8193 #[doc = " * which includes one leap second insertion since the ITS epoch."]
8194 #[doc = " * @unit: 0,001 s"]
8195 #[doc = " * @category: Basic information"]
8196 #[doc = " * @revision: Description revised in in V2.1.1"]
8197 #[doc = " "]
8198 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8199 #[rasn(delegate, value("0..=4398046511103"))]
8200 pub struct TimestampIts(pub u64);
8201 #[doc = "*"]
8202 #[doc = " * This DF represents one or more paths using @ref Path."]
8203 #[doc = " * "]
8204 #[doc = " * @category: GeoReference information"]
8205 #[doc = " * @revision: Description revised in V2.1.1. Is is now based on Path and not on PathHistory"]
8206 #[doc = " "]
8207 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8208 #[rasn(delegate, size("1..=7"))]
8209 pub struct Traces(pub SequenceOf<Path>);
8210 #[doc = "*"]
8211 #[doc = " * This DF represents one or more paths using @ref PathExtended."]
8212 #[doc = " * "]
8213 #[doc = " * @category: GeoReference information"]
8214 #[doc = " * @revision: Created in V2.2.1"]
8215 #[doc = " "]
8216 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8217 #[rasn(delegate, size("1..=7"))]
8218 pub struct TracesExtended(pub SequenceOf<PathExtended>);
8219 #[doc = "*"]
8220 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `trafficCondition`. "]
8221 #[doc = " * "]
8222 #[doc = " * The value shall be set to:"]
8223 #[doc = " * - 0 `unavailable` - in case further detailed information on the traffic condition is unavailable,"]
8224 #[doc = " * - 1 `increasedVolumeOfTraffic` - in case the type of traffic condition is increased traffic volume,"]
8225 #[doc = " * - 2 `trafficJamSlowlyIncreasing` - in case the type of traffic condition is a traffic jam which volume is increasing slowly,"]
8226 #[doc = " * - 3 `trafficJamIncreasing` - in case the type of traffic condition is a traffic jam which volume is increasing,"]
8227 #[doc = " * - 4 `trafficJamStronglyIncreasing` - in case the type of traffic condition is a traffic jam which volume is strongly increasing,"]
8228 #[doc = " * - 5 `trafficJam` ` - in case the type of traffic condition is a traffic jam and no further detailed information about its volume is available,"]
8229 #[doc = " * - 6 `trafficJamSlightlyDecreasing` - in case the type of traffic condition is a traffic jam which volume is decreasing slowly,"]
8230 #[doc = " * - 7 `trafficJamDecreasing` - in case the type of traffic condition is a traffic jam which volume is decreasing,"]
8231 #[doc = " * - 8 `trafficJamStronglyDecreasing` - in case the type of traffic condition is a traffic jam which volume is decreasing rapidly,"]
8232 #[doc = " * - 9 `trafficJamStable` - in case the traffic condition is a traffic jam with stable volume,"]
8233 #[doc = " * - 10-255: reserved for future usage."]
8234 #[doc = " *"]
8235 #[doc = " * @category: Traffic information"]
8236 #[doc = " * @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"]
8237 #[doc = " "]
8238 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8239 #[rasn(delegate, value("0..=255"))]
8240 pub struct TrafficConditionSubCauseCode(pub u8);
8241 #[doc = "*"]
8242 #[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."]
8243 #[doc = " * "]
8244 #[doc = " * The value shall be set to:"]
8245 #[doc = " * - 0 `allTrafficDirections` - for all directions of traffic, "]
8246 #[doc = " * - 1 `sameAsReferenceDirection-upstreamOfReferencePosition` - for the direction of traffic according to the reference direction, and the portion of traffic upstream of the reference position, "]
8247 #[doc = " * - 2 `sameAsReferenceDirection-downstreamOfReferencePosition` - for the direction of traffic according to the reference direction, and the portion of traffic downstream of the reference position, "]
8248 #[doc = " * - 3 `oppositeToReferenceDirection` - for the direction of traffic opposite to the reference direction. "]
8249 #[doc = " *"]
8250 #[doc = " * @note: Upstream traffic corresponds to the incoming traffic towards the event position, and downstream traffic to the departing traffic away from the event position."]
8251 #[doc = " * @category: GeoReference information"]
8252 #[doc = " * @revision: Created in V2.1.1 from RelevanceTrafficDirection, description and naming of values changed in V2.2.1"]
8253 #[doc = " *"]
8254 #[doc = " "]
8255 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8256 #[rasn(enumerated)]
8257 pub enum TrafficDirection {
8258 allTrafficDirections = 0,
8259 #[rasn(identifier = "sameAsReferenceDirection-upstreamOfReferencePosition")]
8260 sameAsReferenceDirection_upstreamOfReferencePosition = 1,
8261 #[rasn(identifier = "sameAsReferenceDirection-downstreamOfReferencePosition")]
8262 sameAsReferenceDirection_downstreamOfReferencePosition = 2,
8263 oppositeToReferenceDirection = 3,
8264 }
8265 #[doc = "*"]
8266 #[doc = " * Ths DF represents the a position on a traffic island between two lanes. "]
8267 #[doc = " *"]
8268 #[doc = " * It shall include the following components: "]
8269 #[doc = " *"]
8270 #[doc = " * @field oneSide: represents one lane."]
8271 #[doc = " * "]
8272 #[doc = " * @field otherSide: represents the other lane."]
8273 #[doc = " * "]
8274 #[doc = " * @category: Road Topology information"]
8275 #[doc = " * @revision: Created in V2.1.1"]
8276 #[doc = " "]
8277 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8278 #[rasn(automatic_tags)]
8279 #[non_exhaustive]
8280 pub struct TrafficIslandPosition {
8281 #[rasn(identifier = "oneSide")]
8282 pub one_side: LanePositionAndType,
8283 #[rasn(identifier = "otherSide")]
8284 pub other_side: LanePositionAndType,
8285 }
8286 impl TrafficIslandPosition {
8287 pub fn new(one_side: LanePositionAndType, other_side: LanePositionAndType) -> Self {
8288 Self {
8289 one_side,
8290 other_side,
8291 }
8292 }
8293 }
8294 #[doc = "*"]
8295 #[doc = " * This DE represents the type of a traffic participant."]
8296 #[doc = " * "]
8297 #[doc = " * The value shall be set to:"]
8298 #[doc = " * - 0 `unknown` - information about traffic participant is not provided,"]
8299 #[doc = " * - 1 `pedestrian` - human being not using a mechanical device for their trip (VRU profile 1),"]
8300 #[doc = " * - 2 `cyclist` - non-motorized unicycles, bicycles , tricycles, quadracycles (VRU profile 2),"]
8301 #[doc = " * - 3 `moped` - light motor vehicles with less than four wheels as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class L1, L2 (VRU Profile 3),"]
8302 #[doc = " * - 4 `motorcycles` - motor vehicles with less than four wheels as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class L3, L4, L5, L6, L7 (VRU Profile 3),"]
8303 #[doc = " * - 5 `passengerCar` - small passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class M1,"]
8304 #[doc = " * - 6 `bus` - large passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class M2, M3,"]
8305 #[doc = " * - 7 `lightTruck` - light Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class N1,"]
8306 #[doc = " * - 8 `heavyTruck` - Heavy Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class N2 and N3,"]
8307 #[doc = " * - 9 `trailer` - unpowered vehicle that is intended to be towed by a powered vehicle as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class O,"]
8308 #[doc = " * - 10 `specialVehicles` - vehicles which have special purposes other than the above (e.g. moving road works vehicle),"]
8309 #[doc = " * - 11 `tram` - vehicle which runs on tracks along public streets,"]
8310 #[doc = " * - 12 `lightVruVehicle` - human being traveling on light vehicle, incl. possible use of roller skates or skateboards (VRU profile 2),"]
8311 #[doc = " * - 13 `animal` - animal presenting a safety risk to other road users e.g. domesticated dog in a city or horse (VRU Profile 4),"]
8312 #[doc = " * - 14 `agricultural` - agricultural and forestry vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class T,"]
8313 #[doc = " * - 15 `infrastructure` - infrastructure typically positioned outside of the drivable roadway (e.g. on a gantry, on a pole, on a stationary road works trailer, "]
8314 #[doc = " or in a traffic control center); the infrastructure is static during the entire operation period of the ITS-S (e.g. no stop and go activity),"]
8315 #[doc = " * - 16-255 - are reserved for future usage."]
8316 #[doc = " * "]
8317 #[doc = " * @category: Communication information."]
8318 #[doc = " * @revision: Created in V2.1.1 based on StationType, Changed name and definition of value 15 in V2.4.1 "]
8319 #[doc = " "]
8320 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8321 #[rasn(delegate, value("0..=255"))]
8322 pub struct TrafficParticipantType(pub u8);
8323 #[doc = "*"]
8324 #[doc = " * This DE indicates traffic rules that apply to vehicles at a certain position."]
8325 #[doc = " *"]
8326 #[doc = " * The value shall be set to:"]
8327 #[doc = " * - `0` - if overtaking is prohibited for all vehicles,"]
8328 #[doc = " * - `1` - if overtaking is prohibited for trucks,"]
8329 #[doc = " * - `2` - if vehicles should pass to the right lane,"]
8330 #[doc = " * - `3` - if vehicles should pass to the left lane."]
8331 #[doc = " * - `4` - if vehicles should pass to the left or right lane."]
8332 #[doc = " *"]
8333 #[doc = " * @category: Infrastructure information, Traffic information"]
8334 #[doc = " * @revision: Editorial update in V2.1.1"]
8335 #[doc = " "]
8336 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8337 #[rasn(enumerated)]
8338 #[non_exhaustive]
8339 pub enum TrafficRule {
8340 noPassing = 0,
8341 noPassingForTrucks = 1,
8342 passToRight = 2,
8343 passToLeft = 3,
8344 #[rasn(extension_addition)]
8345 passToLeftOrRight = 4,
8346 }
8347 #[doc = "* "]
8348 #[doc = " * This DF provides detailed information about an attached trailer."]
8349 #[doc = " *"]
8350 #[doc = " * It shall include the following components: "]
8351 #[doc = " *"]
8352 #[doc = " * @field refPointId: identifier of the reference point of the trailer."]
8353 #[doc = " *"]
8354 #[doc = " * @field hitchPointOffset: optional position of the hitch point in negative x-direction (according to ISO 8855) from the"]
8355 #[doc = " * vehicle Reference Point."]
8356 #[doc = " *"]
8357 #[doc = " * @field frontOverhang: optional length of the trailer overhang in the positive x direction (according to ISO 8855) from the"]
8358 #[doc = " * trailer Reference Point indicated by the refPointID. The value defaults to 0 in case the trailer"]
8359 #[doc = " * is not overhanging to the front with respect to the trailer reference point."]
8360 #[doc = " *"]
8361 #[doc = " * @field rearOverhang: optional length of the trailer overhang in the negative x direction (according to ISO 8855) from the"]
8362 #[doc = " * trailer Reference Point indicated by the refPointID."]
8363 #[doc = " *"]
8364 #[doc = " * @field trailerWidth: optional width of the trailer."]
8365 #[doc = " *"]
8366 #[doc = " * @field hitchAngle: optional Value and confidence value of the angle between the trailer orientation (corresponding to the x"]
8367 #[doc = " * direction of the ISO 8855 [21] coordinate system centered on the trailer) and the direction of"]
8368 #[doc = " * the segment having as end points the reference point of the trailer and the reference point of"]
8369 #[doc = " * the pulling vehicle, which can be another trailer or a vehicle looking on the horizontal plane"]
8370 #[doc = " * xy, described in the local Cartesian coordinate system of the trailer. The"]
8371 #[doc = " * angle is measured with negative values considering the trailer orientation turning clockwise"]
8372 #[doc = " * starting from the segment direction. The angle value accuracy is provided with the"]
8373 #[doc = " * confidence level of 95 %."]
8374 #[doc = " *"]
8375 #[doc = " * @category: Vehicle information"]
8376 #[doc = " * @revision: Created in V2.1.1"]
8377 #[doc = ""]
8378 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8379 #[rasn(automatic_tags)]
8380 #[non_exhaustive]
8381 pub struct TrailerData {
8382 #[rasn(identifier = "refPointId")]
8383 pub ref_point_id: Identifier1B,
8384 #[rasn(identifier = "hitchPointOffset")]
8385 pub hitch_point_offset: StandardLength1B,
8386 #[rasn(identifier = "frontOverhang")]
8387 pub front_overhang: Option<StandardLength1B>,
8388 #[rasn(identifier = "rearOverhang")]
8389 pub rear_overhang: Option<StandardLength1B>,
8390 #[rasn(identifier = "trailerWidth")]
8391 pub trailer_width: Option<VehicleWidth>,
8392 #[rasn(identifier = "hitchAngle")]
8393 pub hitch_angle: CartesianAngle,
8394 }
8395 impl TrailerData {
8396 pub fn new(
8397 ref_point_id: Identifier1B,
8398 hitch_point_offset: StandardLength1B,
8399 front_overhang: Option<StandardLength1B>,
8400 rear_overhang: Option<StandardLength1B>,
8401 trailer_width: Option<VehicleWidth>,
8402 hitch_angle: CartesianAngle,
8403 ) -> Self {
8404 Self {
8405 ref_point_id,
8406 hitch_point_offset,
8407 front_overhang,
8408 rear_overhang,
8409 trailer_width,
8410 hitch_angle,
8411 }
8412 }
8413 }
8414 #[doc = "*"]
8415 #[doc = " * This DE provides information about the presence of a trailer. "]
8416 #[doc = " *"]
8417 #[doc = " * The value shall be set to:"]
8418 #[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."]
8419 #[doc = " * - 1 `trailerPresentWithKnownLength` - to indicate that a trailer has been detected as present and the length is included in the vehicle length value."]
8420 #[doc = " * - 2 `trailerPresentWithUnknownLength` - to indicate that a trailer has been detected as present and the length is not included in the vehicle length value."]
8421 #[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."]
8422 #[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 "]
8423 #[doc = " * nor the detection of trailer presence/absence is possible."]
8424 #[doc = " * "]
8425 #[doc = " * @category: Vehicle information"]
8426 #[doc = " * @revision: Created in V2.1.1 based on VehicleLengthConfidenceIndication"]
8427 #[doc = ""]
8428 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8429 #[rasn(enumerated)]
8430 pub enum TrailerPresenceInformation {
8431 noTrailerPresent = 0,
8432 trailerPresentWithKnownLength = 1,
8433 trailerPresentWithUnknownLength = 2,
8434 trailerPresenceIsUnknown = 3,
8435 unavailable = 4,
8436 }
8437 #[doc = "*"]
8438 #[doc = " * This DE defines the confidence level of the trajectoryInterceptionProbability."]
8439 #[doc = " *"]
8440 #[doc = " * The value shall be set to:"]
8441 #[doc = " * - `0` - to indicate confidence level less than 50 %,"]
8442 #[doc = " * - `1` - to indicate confidence level greater than or equal to 50 % and less than 70 %,"]
8443 #[doc = " * - `2` - to indicate confidence level greater than or equal to 70 % and less than 90 %,"]
8444 #[doc = " * - `3` - to indicate confidence level greater than or equal to 90%."]
8445 #[doc = " * "]
8446 #[doc = " * @category: Kinematic information"]
8447 #[doc = " * @revision: Created in V2.1.1"]
8448 #[doc = " "]
8449 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8450 #[rasn(delegate, value("0..=3"))]
8451 pub struct TrajectoryInterceptionConfidence(pub u8);
8452 #[doc = "*"]
8453 #[doc = " * This DF provides the trajectory interception indication of ego-VRU ITS-S with another ITS-Ss. "]
8454 #[doc = " *"]
8455 #[doc = " * It shall include the following components: "]
8456 #[doc = " * "]
8457 #[doc = " * @field subjectStation: indicates the subject station."]
8458 #[doc = " * "]
8459 #[doc = " * @field trajectoryInterceptionProbability: indicates the propbability of the interception of the subject station trajectory "]
8460 #[doc = " * with the trajectory of the station indicated in the component subjectStation."]
8461 #[doc = " *"]
8462 #[doc = " * @field trajectoryInterceptionConfidence: indicates the confidence of interception of the subject station trajectory "]
8463 #[doc = " * with the trajectory of the station indicated in the component subjectStation."]
8464 #[doc = " * "]
8465 #[doc = " * @category: Vehicle information"]
8466 #[doc = " * @revision: Created in V2.1.1"]
8467 #[doc = " "]
8468 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8469 #[rasn(automatic_tags)]
8470 #[non_exhaustive]
8471 pub struct TrajectoryInterceptionIndication {
8472 #[rasn(identifier = "subjectStation")]
8473 pub subject_station: Option<StationId>,
8474 #[rasn(identifier = "trajectoryInterceptionProbability")]
8475 pub trajectory_interception_probability: TrajectoryInterceptionProbability,
8476 #[rasn(identifier = "trajectoryInterceptionConfidence")]
8477 pub trajectory_interception_confidence: Option<TrajectoryInterceptionConfidence>,
8478 }
8479 impl TrajectoryInterceptionIndication {
8480 pub fn new(
8481 subject_station: Option<StationId>,
8482 trajectory_interception_probability: TrajectoryInterceptionProbability,
8483 trajectory_interception_confidence: Option<TrajectoryInterceptionConfidence>,
8484 ) -> Self {
8485 Self {
8486 subject_station,
8487 trajectory_interception_probability,
8488 trajectory_interception_confidence,
8489 }
8490 }
8491 }
8492 #[doc = "*"]
8493 #[doc = " * This DE defines the probability that the ego trajectory intercepts with any other object's trajectory on the road. "]
8494 #[doc = " * "]
8495 #[doc = " * The value shall be set to:"]
8496 #[doc = " * - `n` (`n >= 0` and `n <= 50`) to indicate the actual probability,"]
8497 #[doc = " * - the values between 51 and 62 are reserved,"]
8498 #[doc = " * - `63`: to indicate that the information is unavailable. "]
8499 #[doc = " *"]
8500 #[doc = " * @unit: 2 %"]
8501 #[doc = " * @category: Kinematic information"]
8502 #[doc = " * @revision: Created in V2.1.1"]
8503 #[doc = " "]
8504 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8505 #[rasn(delegate, value("0..=63"))]
8506 pub struct TrajectoryInterceptionProbability(pub u8);
8507 #[doc = "*"]
8508 #[doc = " * This DE represents the time interval between two consecutive message transmissions."]
8509 #[doc = " * "]
8510 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref DeltaTimeMilliSecondPos instead."]
8511 #[doc = " * @unit: 0,001 s"]
8512 #[doc = " * @category: Basic information"]
8513 #[doc = " * @revision: V1.3.1"]
8514 #[doc = " "]
8515 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8516 #[rasn(delegate, value("1..=10000"))]
8517 pub struct TransmissionInterval(pub u16);
8518 #[doc = "*"]
8519 #[doc = " * This DE provides the turning direction. "]
8520 #[doc = " * "]
8521 #[doc = " * The value shall be set to:"]
8522 #[doc = " * - `left` for turning to te left."]
8523 #[doc = " * - `right` for turing to the right."]
8524 #[doc = " *"]
8525 #[doc = " * @category: Kinematic information"]
8526 #[doc = " * @revision: Created in V2.1.1"]
8527 #[doc = " "]
8528 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8529 #[rasn(enumerated)]
8530 pub enum TurningDirection {
8531 left = 0,
8532 right = 1,
8533 }
8534 #[doc = "*"]
8535 #[doc = " * This DE represents the smallest circular turn (i.e. U-turn) that the vehicle is capable of making."]
8536 #[doc = " *"]
8537 #[doc = " * The value shall be set to:"]
8538 #[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,"]
8539 #[doc = " * - `254` to indicate that the turning radius is greater than 253 x 0,4 metre = 101.2 metres,"]
8540 #[doc = " * - `255` to indicate that the information is unavailable."]
8541 #[doc = " * "]
8542 #[doc = " * For vehicle with tracker, the turning radius applies to the vehicle only."]
8543 #[doc = " *"]
8544 #[doc = " * @category: Vehicle information"]
8545 #[doc = " * @unit 0,4 metre"]
8546 #[doc = " * @revision: Description revised V2.1.1 (the meaning of 254 has changed slightly)"]
8547 #[doc = " "]
8548 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8549 #[rasn(delegate, value("1..=255"))]
8550 pub struct TurningRadius(pub u8);
8551 #[doc = "*"]
8552 #[doc = " * This DE represents an indication of how a certain path or area will be used. "]
8553 #[doc = " * "]
8554 #[doc = " * The value shall be set to:"]
8555 #[doc = " * - 0 - ` noIndication ` - in case it will remain free to be used,"]
8556 #[doc = " * - 1 - ` specialUse ` - in case it will be physically blocked by special use,"]
8557 #[doc = " * - 2 - ` rescueOperation` - in case it is intended to be used for rescue operations,"]
8558 #[doc = " * - 3 - ` railroad ` - in case it is intended to be used for rail traffic,"]
8559 #[doc = " * - 4 - ` fixedRoute ` - in case it is intended to be used for fixed route traffic (e.g. bus line in service, delivery services, garbage truck in service etc.),"]
8560 #[doc = " * - 5 - ` restrictedRoute ` - in case it is intended to be used for driving on restricted routes (e.g dedicated lanes/routes for heavy trucks or buses),"]
8561 #[doc = " * - 6 - ` adasAd ` - in case it is intended to be used for driving with an active ADAS or AD system (see DE AccelerationControl or AutomationControl),"]
8562 #[doc = " * - 7 - ` navigation ` - in case it is intended to be used for driving with an active navigation system."]
8563 #[doc = " *"]
8564 #[doc = " * @category: Basic information"]
8565 #[doc = " * @revision: Created in V2.2.1, extension 3-7 added in V2.3.1"]
8566 #[doc = " "]
8567 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8568 #[rasn(enumerated)]
8569 #[non_exhaustive]
8570 pub enum UsageIndication {
8571 noIndication = 0,
8572 specialUse = 1,
8573 rescueOperation = 2,
8574 #[rasn(extension_addition)]
8575 railroad = 3,
8576 #[rasn(extension_addition)]
8577 fixedRoute = 4,
8578 #[rasn(extension_addition)]
8579 restrictedRoute = 5,
8580 #[rasn(extension_addition)]
8581 adasAd = 6,
8582 #[rasn(extension_addition)]
8583 navigation = 7,
8584 }
8585 #[doc = "*"]
8586 #[doc = " * This DE represents the Vehicle Descriptor Section (VDS). The values are assigned according to ISO 3779 [6]."]
8587 #[doc = " * "]
8588 #[doc = " * @category: Vehicle information"]
8589 #[doc = " * @revision: V1.3.1"]
8590 #[doc = " "]
8591 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8592 #[rasn(delegate, size("6"))]
8593 pub struct VDS(pub Ia5String);
8594 #[doc = "* "]
8595 #[doc = " * This DE represents the duration of a traffic event validity. "]
8596 #[doc = " *"]
8597 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref DeltaTimeSecond instead."]
8598 #[doc = " * @unit: 1 s"]
8599 #[doc = " * @category: Basic information"]
8600 #[doc = " * @revision: V1.3.1"]
8601 #[doc = ""]
8602 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8603 #[rasn(delegate, value("0..=86400"))]
8604 pub struct ValidityDuration(pub u32);
8605 #[doc = "*"]
8606 #[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. "]
8607 #[doc = " *"]
8608 #[doc = " * @category: Basic information"]
8609 #[doc = " * @revision: Created in V2.1.1"]
8610 #[doc = " "]
8611 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8612 #[rasn(choice)]
8613 pub enum VarLengthNumber {
8614 #[rasn(value("0..=127"), tag(context, 0))]
8615 content(u8),
8616 #[rasn(tag(context, 1))]
8617 extension(Ext1),
8618 }
8619 #[doc = "*"]
8620 #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `vehicleBreakdown`. "]
8621 #[doc = " * "]
8622 #[doc = " * The value shall be set to:"]
8623 #[doc = " * - 0 `unavailable` - in case further detailed information on cause of vehicle break down is unavailable,"]
8624 #[doc = " * - 1 `lackOfFuel` - in case vehicle break down is due to lack of fuel,"]
8625 #[doc = " * - 2 `lackOfBatteryPower` - in case vehicle break down is caused by lack of battery power,"]
8626 #[doc = " * - 3 `engineProblem` - in case vehicle break down is caused by an engine problem,"]
8627 #[doc = " * - 4 `transmissionProblem` - in case vehicle break down is caused by transmission problem,"]
8628 #[doc = " * - 5 `engineCoolingProblem` - in case vehicle break down is caused by an engine cooling problem,"]
8629 #[doc = " * - 6 `brakingSystemProblem` - in case vehicle break down is caused by a braking system problem,"]
8630 #[doc = " * - 7 `steeringProblem` - in case vehicle break down is caused by a steering problem,"]
8631 #[doc = " * - 8 `tyrePuncture-deprecated` - deprecated since covered by `tyrePressureProblem`,"]
8632 #[doc = " * - 9 `tyrePressureProblem` - in case low tyre pressure in detected,"]
8633 #[doc = " * - 10 `vehicleOnFire` - in case the vehicle is on fire."]
8634 #[doc = " * - 11-255 - are reserved for future usage."]
8635 #[doc = " *"]
8636 #[doc = " * @category: Traffic information"]
8637 #[doc = " * @revision: V1.3.1, value 10 assigned in V2.1.1, value 8 deprecated in V2.4.1"]
8638 #[doc = " "]
8639 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8640 #[rasn(delegate, value("0..=255"))]
8641 pub struct VehicleBreakdownSubCauseCode(pub u8);
8642 #[doc = "* "]
8643 #[doc = " * This DE represents the height of the vehicle, measured from the ground to the highest point, excluding any antennas."]
8644 #[doc = " * In case vehicles are equipped with adjustable ride heights, camper shells, and any other"]
8645 #[doc = " * equipment which may result in varying height, the largest possible height shall be used."]
8646 #[doc = " *"]
8647 #[doc = " * The value shall be set to:"]
8648 #[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,"]
8649 #[doc = " * - `127` indicates that the vehicle width is greater than 6,3 metres,"]
8650 #[doc = " * - `128` indicates that the information in unavailable."]
8651 #[doc = " *"]
8652 #[doc = " * @unit: 0,05 metre "]
8653 #[doc = " * @category: Vehicle information"]
8654 #[doc = " * @revision: created in V2.1.1"]
8655 #[doc = ""]
8656 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8657 #[rasn(delegate, value("1..=128"))]
8658 pub struct VehicleHeight(pub u8);
8659 #[doc = "* "]
8660 #[doc = " * This DE represents the height of the vehicle, measured from the ground to the highest point, excluding any antennas."]
8661 #[doc = " * In case vehicles are equipped with adjustable ride heights, camper shells, and any other"]
8662 #[doc = " * equipment which may result in varying height, the largest possible height shall be used."]
8663 #[doc = ""]
8664 #[doc = " * The value shall be set to:"]
8665 #[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,"]
8666 #[doc = " * - `61` indicates that the vehicle height is greater than 6,0 metres,"]
8667 #[doc = " * - `62` indicates that the information in unavailable."]
8668 #[doc = " * "]
8669 #[doc = " * @unit: 0,1 metre"]
8670 #[doc = " * @category: Vehicle information "]
8671 #[doc = " * @revision: created in V2.3.1 based on VehicleHeight but better aligned in unit and range with VehicleWidth."]
8672 #[doc = " "]
8673 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8674 #[rasn(delegate, value("1..=62"))]
8675 pub struct VehicleHeight2(pub u8);
8676 #[doc = "*"]
8677 #[doc = " * This DF provides information related to the identification of a vehicle."]
8678 #[doc = " *"]
8679 #[doc = " * It shall include the following components: "]
8680 #[doc = " * "]
8681 #[doc = " * @field wMInumber: World Manufacturer Identifier (WMI) code."]
8682 #[doc = " * "]
8683 #[doc = " * @field vDS: Vehicle Descriptor Section (VDS). "]
8684 #[doc = " * "]
8685 #[doc = " * @category: Vehicle information"]
8686 #[doc = " * @revision: V1.3.1"]
8687 #[doc = " "]
8688 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8689 #[rasn(automatic_tags)]
8690 #[non_exhaustive]
8691 pub struct VehicleIdentification {
8692 #[rasn(identifier = "wMInumber")]
8693 pub w_minumber: Option<WMInumber>,
8694 #[rasn(identifier = "vDS")]
8695 pub v_ds: Option<VDS>,
8696 }
8697 impl VehicleIdentification {
8698 pub fn new(w_minumber: Option<WMInumber>, v_ds: Option<VDS>) -> Self {
8699 Self { w_minumber, v_ds }
8700 }
8701 }
8702 #[doc = "*"]
8703 #[doc = " * This DF represents the length of vehicle and accuracy indication information."]
8704 #[doc = " *"]
8705 #[doc = " * It shall include the following components: "]
8706 #[doc = " * "]
8707 #[doc = " * @field vehicleLengthValue: length of vehicle. "]
8708 #[doc = " * "]
8709 #[doc = " * @field vehicleLengthConfidenceIndication: indication of the length value confidence."]
8710 #[doc = " * "]
8711 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref VehicleLengthV2 instead."]
8712 #[doc = " * @category: Vehicle information"]
8713 #[doc = " * @revision: V1.3.1"]
8714 #[doc = " "]
8715 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8716 #[rasn(automatic_tags)]
8717 pub struct VehicleLength {
8718 #[rasn(identifier = "vehicleLengthValue")]
8719 pub vehicle_length_value: VehicleLengthValue,
8720 #[rasn(identifier = "vehicleLengthConfidenceIndication")]
8721 pub vehicle_length_confidence_indication: VehicleLengthConfidenceIndication,
8722 }
8723 impl VehicleLength {
8724 pub fn new(
8725 vehicle_length_value: VehicleLengthValue,
8726 vehicle_length_confidence_indication: VehicleLengthConfidenceIndication,
8727 ) -> Self {
8728 Self {
8729 vehicle_length_value,
8730 vehicle_length_confidence_indication,
8731 }
8732 }
8733 }
8734 #[doc = "*"]
8735 #[doc = " * This DE provides information about the presence of a trailer. "]
8736 #[doc = " *"]
8737 #[doc = " * The value shall be set to:"]
8738 #[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,"]
8739 #[doc = " * - 1 `trailerPresentWithKnownLength` - to indicate that a trailer has been detected as present and the length is included in the vehicle length value,"]
8740 #[doc = " * - 2 `trailerPresentWithUnknownLength` - to indicate that a trailer has been detected as present and the length is not included in the vehicle length value,"]
8741 #[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,"]
8742 #[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, "]
8743 #[doc = " * nor the detection of trailer presence/absence is possible."]
8744 #[doc = " * "]
8745 #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrailerPresenceInformation instead. "]
8746 #[doc = " * @category: Vehicle information"]
8747 #[doc = " * @revision: Description revised in V2.1.1"]
8748 #[doc = ""]
8749 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8750 #[rasn(enumerated)]
8751 pub enum VehicleLengthConfidenceIndication {
8752 noTrailerPresent = 0,
8753 trailerPresentWithKnownLength = 1,
8754 trailerPresentWithUnknownLength = 2,
8755 trailerPresenceIsUnknown = 3,
8756 unavailable = 4,
8757 }
8758 #[doc = "*"]
8759 #[doc = " * This DF represents the length of vehicle and accuracy indication information."]
8760 #[doc = " *"]
8761 #[doc = " * It shall include the following components: "]
8762 #[doc = " * "]
8763 #[doc = " * @field vehicleLengthValue: length of vehicle. "]
8764 #[doc = " * "]
8765 #[doc = " * @field trailerPresenceInformation: information about the trailer presence."]
8766 #[doc = " * "]
8767 #[doc = " * @category: Vehicle information"]
8768 #[doc = " * @revision: created in V2.1.1 based on @ref VehicleLength but using @ref TrailerPresenceInformation."]
8769 #[doc = " "]
8770 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8771 #[rasn(automatic_tags)]
8772 pub struct VehicleLengthV2 {
8773 #[rasn(identifier = "vehicleLengthValue")]
8774 pub vehicle_length_value: VehicleLengthValue,
8775 #[rasn(identifier = "trailerPresenceInformation")]
8776 pub trailer_presence_information: TrailerPresenceInformation,
8777 }
8778 impl VehicleLengthV2 {
8779 pub fn new(
8780 vehicle_length_value: VehicleLengthValue,
8781 trailer_presence_information: TrailerPresenceInformation,
8782 ) -> Self {
8783 Self {
8784 vehicle_length_value,
8785 trailer_presence_information,
8786 }
8787 }
8788 }
8789 #[doc = "*"]
8790 #[doc = " * This DE represents the length of a vehicle."]
8791 #[doc = " *"]
8792 #[doc = " * The value shall be set to:"]
8793 #[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,"]
8794 #[doc = " * - `1 022` to indicate that the vehicle length is greater than 102.1 metres,"]
8795 #[doc = " * - `1 023` to indicate that the information in unavailable."]
8796 #[doc = " * "]
8797 #[doc = " * "]
8798 #[doc = " * @unit: 0,1 metre"]
8799 #[doc = " * @category: Vehicle information"]
8800 #[doc = " * @revision: Description updated in V2.1.1 (the meaning of 1 022 has changed slightly)."]
8801 #[doc = " "]
8802 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8803 #[rasn(delegate, value("1..=1023"))]
8804 pub struct VehicleLengthValue(pub u16);
8805 #[doc = "*"]
8806 #[doc = " * This DE represents the mass of an empty loaded vehicle."]
8807 #[doc = " *"]
8808 #[doc = " * The value shall be set to: "]
8809 #[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,"]
8810 #[doc = " * - `1 023` indicates that the vehicle mass is greater than 102 200 000 g,"]
8811 #[doc = " * - `1 024` indicates the vehicle mass information is unavailable."]
8812 #[doc = " * "]
8813 #[doc = " * @note:\tThe empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
8814 #[doc = " * "]
8815 #[doc = " * @unit: 10^5 gramm"]
8816 #[doc = " * @category: Vehicle information"]
8817 #[doc = " * @revision: Description updated in V2.1.1 (the meaning of 1 023 has changed slightly)."]
8818 #[doc = ""]
8819 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8820 #[rasn(delegate, value("1..=1024"))]
8821 pub struct VehicleMass(pub u16);
8822 #[doc = "*"]
8823 #[doc = " * This DF provides information about the status of the vehicle´s movement control mechanisms. "]
8824 #[doc = " *"]
8825 #[doc = " * It shall include the following components: "]
8826 #[doc = " *"]
8827 #[doc = " * @field accelerationPedalStatus: information about the status of the acceleration pedal. "]
8828 #[doc = " * "]
8829 #[doc = " * @field brakePedalPostionStatus information about the status of the brake pedal. "]
8830 #[doc = " *"]
8831 #[doc = " * @field saeAutomationLevel: optional information about the level of driving automation. "]
8832 #[doc = " *"]
8833 #[doc = " * @field automationControl: optional information about the controlling mechanism for lateral, or combined lateral and longitudinal movement."]
8834 #[doc = " *"]
8835 #[doc = " * @field accelerationControl: optional information about the controlling mechanism for longitudinal movement. "]
8836 #[doc = " *"]
8837 #[doc = " * @field accelerationControlExtension: optional extended information about the controlling mechanism for longitudinal movement. "]
8838 #[doc = " *"]
8839 #[doc = " * @category: Vehicle information"]
8840 #[doc = " * @revision: created in V2.3.1"]
8841 #[doc = " "]
8842 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8843 #[rasn(automatic_tags)]
8844 #[non_exhaustive]
8845 pub struct VehicleMovementControl {
8846 #[rasn(identifier = "accelerationPedalStatus")]
8847 pub acceleration_pedal_status: PedalStatus,
8848 #[rasn(identifier = "brakePedalStatus")]
8849 pub brake_pedal_status: PedalStatus,
8850 #[rasn(identifier = "saeAutomationLevel")]
8851 pub sae_automation_level: Option<SaeAutomationLevel>,
8852 #[rasn(identifier = "automationControl")]
8853 pub automation_control: Option<AutomationControl>,
8854 #[rasn(identifier = "accelerationControl")]
8855 pub acceleration_control: Option<AccelerationControl>,
8856 #[rasn(identifier = "accelerationControlExtension")]
8857 pub acceleration_control_extension: Option<AccelerationControlExtension>,
8858 }
8859 impl VehicleMovementControl {
8860 pub fn new(
8861 acceleration_pedal_status: PedalStatus,
8862 brake_pedal_status: PedalStatus,
8863 sae_automation_level: Option<SaeAutomationLevel>,
8864 automation_control: Option<AutomationControl>,
8865 acceleration_control: Option<AccelerationControl>,
8866 acceleration_control_extension: Option<AccelerationControlExtension>,
8867 ) -> Self {
8868 Self {
8869 acceleration_pedal_status,
8870 brake_pedal_status,
8871 sae_automation_level,
8872 automation_control,
8873 acceleration_control,
8874 acceleration_control_extension,
8875 }
8876 }
8877 }
8878 #[doc = "*"]
8879 #[doc = " * This DE indicates the role played by a vehicle at a point in time."]
8880 #[doc = " *"]
8881 #[doc = " * The value shall be set to:"]
8882 #[doc = " * - 0 `default` - to indicate the default vehicle role as indicated by the vehicle type,"]
8883 #[doc = " * - 1 `publicTransport` - to indicate that the vehicle is used to operate public transport service,"]
8884 #[doc = " * - 2 `specialTransport` - to indicate that the vehicle is used for special transport purpose, e.g. oversized trucks,"]
8885 #[doc = " * - 3 `dangerousGoods` - to indicate that the vehicle is used for dangerous goods transportation,"]
8886 #[doc = " * - 4 `roadWork` - to indicate that the vehicle is used to realize roadwork or road maintenance mission,"]
8887 #[doc = " * - 5 `rescue` - to indicate that the vehicle is used for rescue purpose in case of an accident, e.g. as a towing service,"]
8888 #[doc = " * - 6 `emergency` - to indicate that the vehicle is used for emergency mission, e.g. ambulance, fire brigade,"]
8889 #[doc = " * - 7 `safetyCar` - to indicate that the vehicle is used for public safety, e.g. patrol,"]
8890 #[doc = " * - 8 `agriculture` - to indicate that the vehicle is used for agriculture, e.g. farm tractor, "]
8891 #[doc = " * - 9 `commercial` - to indicate that the vehicle is used for transportation of commercial goods,"]
8892 #[doc = " * - 10 `military` - to indicate that the vehicle is used for military purpose, "]
8893 #[doc = " * - 11 `roadOperator` - to indicate that the vehicle is used in road operator missions,"]
8894 #[doc = " * - 12 `taxi` - to indicate that the vehicle is used to provide an authorized taxi service,"]
8895 #[doc = " * - 13 `uvar` - to indicate that the vehicle is authorized to enter a zone according to the applicable Urban Vehicle Access Restrictions."]
8896 #[doc = " * - 14 `rfu1` - is reserved for future usage."]
8897 #[doc = " * - 15 `rfu2` - is reserved for future usage."]
8898 #[doc = " * "]
8899 #[doc = " * @category: Vehicle Information"]
8900 #[doc = " * @revision: Description updated in V2.1.1 (removed reference to CEN/TS 16157-3), value 13 assigned in V2.2.1"]
8901 #[doc = " "]
8902 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8903 #[rasn(enumerated)]
8904 pub enum VehicleRole {
8905 default = 0,
8906 publicTransport = 1,
8907 specialTransport = 2,
8908 dangerousGoods = 3,
8909 roadWork = 4,
8910 rescue = 5,
8911 emergency = 6,
8912 safetyCar = 7,
8913 agriculture = 8,
8914 commercial = 9,
8915 military = 10,
8916 roadOperator = 11,
8917 taxi = 12,
8918 uvar = 13,
8919 rfu1 = 14,
8920 rfu2 = 15,
8921 }
8922 #[doc = "*"]
8923 #[doc = " * This DE represents the width of a vehicle, excluding side mirrors and possible similar extensions."]
8924 #[doc = ""]
8925 #[doc = " * The value shall be set to:"]
8926 #[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,"]
8927 #[doc = " * - `61` indicates that the vehicle width is greater than 6,0 metres,"]
8928 #[doc = " * - `62` indicates that the information in unavailable."]
8929 #[doc = " * "]
8930 #[doc = " * @unit: 0,1 metre"]
8931 #[doc = " * @category: Vehicle information "]
8932 #[doc = " * @revision: Description updated in V2.1.1 (the meaning of 61 has changed slightly)."]
8933 #[doc = " "]
8934 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8935 #[rasn(delegate, value("1..=62"))]
8936 pub struct VehicleWidth(pub u8);
8937 #[doc = "*"]
8938 #[doc = " * This DF represents a velocity vector with associated confidence value."]
8939 #[doc = " *"]
8940 #[doc = " * The following options are available:"]
8941 #[doc = " * "]
8942 #[doc = " * @field polarVelocity: the representation of the velocity vector in a polar or cylindrical coordinate system. "]
8943 #[doc = " * "]
8944 #[doc = " * @field cartesianVelocity: the representation of the velocity vector in a cartesian coordinate system."]
8945 #[doc = " * "]
8946 #[doc = " * @category: Kinematic information"]
8947 #[doc = " * @revision: Created in V2.1.1"]
8948 #[doc = " "]
8949 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8950 #[rasn(choice, automatic_tags)]
8951 pub enum Velocity3dWithConfidence {
8952 polarVelocity(VelocityPolarWithZ),
8953 cartesianVelocity(VelocityCartesian),
8954 }
8955 #[doc = "*"]
8956 #[doc = " * This DF represents a velocity vector in a cartesian coordinate system."]
8957 #[doc = " "]
8958 #[doc = " * It shall include the following components: "]
8959 #[doc = " * "]
8960 #[doc = " * @field xVelocity: the x component of the velocity vector with the associated confidence value."]
8961 #[doc = " * "]
8962 #[doc = " * @field yVelocity: the y component of the velocity vector with the associated confidence value."]
8963 #[doc = " *"]
8964 #[doc = " * @field zVelocity: the optional z component of the velocity vector with the associated confidence value."]
8965 #[doc = " * "]
8966 #[doc = " * @category: Kinematic information"]
8967 #[doc = " * @revision: Created in V2.1.1"]
8968 #[doc = " "]
8969 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8970 #[rasn(automatic_tags)]
8971 pub struct VelocityCartesian {
8972 #[rasn(identifier = "xVelocity")]
8973 pub x_velocity: VelocityComponent,
8974 #[rasn(identifier = "yVelocity")]
8975 pub y_velocity: VelocityComponent,
8976 #[rasn(identifier = "zVelocity")]
8977 pub z_velocity: Option<VelocityComponent>,
8978 }
8979 impl VelocityCartesian {
8980 pub fn new(
8981 x_velocity: VelocityComponent,
8982 y_velocity: VelocityComponent,
8983 z_velocity: Option<VelocityComponent>,
8984 ) -> Self {
8985 Self {
8986 x_velocity,
8987 y_velocity,
8988 z_velocity,
8989 }
8990 }
8991 }
8992 #[doc = "*"]
8993 #[doc = " * This DF represents a component of the velocity vector and the associated confidence value."]
8994 #[doc = " *"]
8995 #[doc = " * It shall include the following components: "]
8996 #[doc = " * "]
8997 #[doc = " * @field value: the value of the component."]
8998 #[doc = " * "]
8999 #[doc = " * @field confidence: the confidence value of the value."]
9000 #[doc = " *"]
9001 #[doc = " * @category: Kinematic information"]
9002 #[doc = " * @revision: V2.1.1"]
9003 #[doc = " "]
9004 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9005 #[rasn(automatic_tags)]
9006 pub struct VelocityComponent {
9007 pub value: VelocityComponentValue,
9008 pub confidence: SpeedConfidence,
9009 }
9010 impl VelocityComponent {
9011 pub fn new(value: VelocityComponentValue, confidence: SpeedConfidence) -> Self {
9012 Self { value, confidence }
9013 }
9014 }
9015 #[doc = "* "]
9016 #[doc = " * This DE represents the value of a velocity component in a defined coordinate system."]
9017 #[doc = " *"]
9018 #[doc = " * The value shall be set to:"]
9019 #[doc = " * - `-16 383` if the velocity is equal to or smaller than -163,83 m/s,"]
9020 #[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,"]
9021 #[doc = " * - `16 382` for velocity values equal to or greater than 163,81 m/s,"]
9022 #[doc = " * - `16 383` if the velocity information is not available."]
9023 #[doc = " * "]
9024 #[doc = " * @unit: 0,01 m/s"]
9025 #[doc = " * @category: Kinematic information"]
9026 #[doc = " * @revision: Created in V2.1.1"]
9027 #[doc = ""]
9028 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9029 #[rasn(delegate, value("-16383..=16383"))]
9030 pub struct VelocityComponentValue(pub i16);
9031 #[doc = "*"]
9032 #[doc = " * This DF represents a velocity vector in a polar or cylindrical coordinate system."]
9033 #[doc = " *"]
9034 #[doc = " * It shall include the following components: "]
9035 #[doc = " * "]
9036 #[doc = " * @field velocityMagnitude: magnitude of the velocity vector on the reference plane, with the associated confidence value."]
9037 #[doc = " * "]
9038 #[doc = " * @field velocityDirection: polar angle of the velocity vector on the reference plane, with the associated confidence value."]
9039 #[doc = " *"]
9040 #[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."]
9041 #[doc = " * "]
9042 #[doc = " * @category: Kinematic information"]
9043 #[doc = " * @revision: Created in V2.1.1"]
9044 #[doc = " "]
9045 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9046 #[rasn(automatic_tags)]
9047 pub struct VelocityPolarWithZ {
9048 #[rasn(identifier = "velocityMagnitude")]
9049 pub velocity_magnitude: Speed,
9050 #[rasn(identifier = "velocityDirection")]
9051 pub velocity_direction: CartesianAngle,
9052 #[rasn(identifier = "zVelocity")]
9053 pub z_velocity: Option<VelocityComponent>,
9054 }
9055 impl VelocityPolarWithZ {
9056 pub fn new(
9057 velocity_magnitude: Speed,
9058 velocity_direction: CartesianAngle,
9059 z_velocity: Option<VelocityComponent>,
9060 ) -> Self {
9061 Self {
9062 velocity_magnitude,
9063 velocity_direction,
9064 z_velocity,
9065 }
9066 }
9067 }
9068 #[doc = " four and more octets length"]
9069 #[doc = "*"]
9070 #[doc = " * This DF indicates the vehicle acceleration at vertical direction and the associated confidence value."]
9071 #[doc = " *"]
9072 #[doc = " * It shall include the following components: "]
9073 #[doc = " * "]
9074 #[doc = " * @field verticalAccelerationValue: vertical acceleration value at a point in time."]
9075 #[doc = " * "]
9076 #[doc = " * @field verticalAccelerationConfidence: confidence value of the vertical acceleration value with a predefined confidence level."]
9077 #[doc = " * "]
9078 #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead."]
9079 #[doc = " * @category Vehicle information"]
9080 #[doc = " * @revision: Description revised in V2.1.1"]
9081 #[doc = " "]
9082 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9083 #[rasn(automatic_tags)]
9084 pub struct VerticalAcceleration {
9085 #[rasn(identifier = "verticalAccelerationValue")]
9086 pub vertical_acceleration_value: VerticalAccelerationValue,
9087 #[rasn(identifier = "verticalAccelerationConfidence")]
9088 pub vertical_acceleration_confidence: AccelerationConfidence,
9089 }
9090 impl VerticalAcceleration {
9091 pub fn new(
9092 vertical_acceleration_value: VerticalAccelerationValue,
9093 vertical_acceleration_confidence: AccelerationConfidence,
9094 ) -> Self {
9095 Self {
9096 vertical_acceleration_value,
9097 vertical_acceleration_confidence,
9098 }
9099 }
9100 }
9101 #[doc = "*"]
9102 #[doc = " * This DE represents the vehicle acceleration at vertical direction in the centre of the mass of the empty vehicle."]
9103 #[doc = " * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11."]
9104 #[doc = " *"]
9105 #[doc = " * The value shall be set to:"]
9106 #[doc = " * - `-160` for acceleration values equal to or less than -16 m/s^2,"]
9107 #[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,"]
9108 #[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,"]
9109 #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
9110 #[doc = " * - `161` when the data is unavailable."]
9111 #[doc = " * "]
9112 #[doc = " * @note: The empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
9113 #[doc = " *"]
9114 #[doc = " * @category: Vehicle information"]
9115 #[doc = " * @unit: 0,1 m/s^2"]
9116 #[doc = " * @revision: Desciption updated in V2.1.1 (the meaning of 160 has changed slightly)."]
9117 #[doc = " * "]
9118 #[doc = ""]
9119 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9120 #[rasn(delegate, value("-160..=161"))]
9121 pub struct VerticalAccelerationValue(pub i16);
9122 #[doc = "* "]
9123 #[doc = " * This DF provides information about a VRU cluster."]
9124 #[doc = " *"]
9125 #[doc = " * It shall include the following components: "]
9126 #[doc = " *"]
9127 #[doc = " * @field clusterId: optional identifier of a VRU cluster."]
9128 #[doc = " *"]
9129 #[doc = " * @field clusterBoundingBoxShape: optionally indicates the shape of the cluster bounding box, per default inside an East-North-Up coordinate system "]
9130 #[doc = " * centered around a reference point defined outside of the context of this DF."]
9131 #[doc = " *"]
9132 #[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) ."]
9133 #[doc = " *"]
9134 #[doc = " * @field clusterProfiles: optionally identifies all the VRU profile types that are estimated to be within the cluster."]
9135 #[doc = " * if this component is absent it means that the information is unavailable. "]
9136 #[doc = " *"]
9137 #[doc = " * @category: VRU information"]
9138 #[doc = " * @revision: Created in V2.1.1, description revised in V2.2.1"]
9139 #[doc = ""]
9140 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9141 #[rasn(automatic_tags)]
9142 #[non_exhaustive]
9143 pub struct VruClusterInformation {
9144 #[rasn(identifier = "clusterId")]
9145 pub cluster_id: Option<Identifier1B>,
9146 #[rasn(value("0.."), identifier = "clusterBoundingBoxShape")]
9147 pub cluster_bounding_box_shape: Option<Shape>,
9148 #[rasn(identifier = "clusterCardinalitySize")]
9149 pub cluster_cardinality_size: CardinalNumber1B,
9150 #[rasn(identifier = "clusterProfiles")]
9151 pub cluster_profiles: Option<VruClusterProfiles>,
9152 }
9153 impl VruClusterInformation {
9154 pub fn new(
9155 cluster_id: Option<Identifier1B>,
9156 cluster_bounding_box_shape: Option<Shape>,
9157 cluster_cardinality_size: CardinalNumber1B,
9158 cluster_profiles: Option<VruClusterProfiles>,
9159 ) -> Self {
9160 Self {
9161 cluster_id,
9162 cluster_bounding_box_shape,
9163 cluster_cardinality_size,
9164 cluster_profiles,
9165 }
9166 }
9167 }
9168 #[doc = "* "]
9169 #[doc = " * This DE Identifies all the VRU profile types within a cluster."]
9170 #[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)."]
9171 #[doc = " * "]
9172 #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
9173 #[doc = " * - 0 `pedestrian` - indicates that the VRU cluster contains at least one pedestrian VRU,"]
9174 #[doc = " * - 1 `bicycle` - indicates that the VRU cluster contains at least one bicycle VRU member,"]
9175 #[doc = " * - 2 `motorcyclist`- indicates that the VRU cluster contains at least one motorcycle VRU member,"]
9176 #[doc = " * - 3 `animal` - indicates that the VRU cluster contains at least one animal VRU member."]
9177 #[doc = " * "]
9178 #[doc = " * Otherwise, the corresponding bit shall be set to 0."]
9179 #[doc = " *"]
9180 #[doc = " * @category: VRU information"]
9181 #[doc = " * @revision: Created in V2.1.1"]
9182 #[doc = ""]
9183 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9184 #[rasn(delegate)]
9185 pub struct VruClusterProfiles(pub FixedBitString<4usize>);
9186 #[doc = "*"]
9187 #[doc = " * This DE represents the possible usage conditions of the VRU device."]
9188 #[doc = ""]
9189 #[doc = " * - The value shall be set to:"]
9190 #[doc = " * - 0 `unavailable` - to indicate that the usage conditions are unavailable,"]
9191 #[doc = " * - 1 `other` - to indicate that the VRU device is in a state not defined below,"]
9192 #[doc = " * - 2 `idle` - to indicate that the human is currently not interacting with the device,"]
9193 #[doc = " * - 3 `listeningToAudio` - to indicate that any audio source other than calling is in use,"]
9194 #[doc = " * - 4 `typing` - to indicate that the human is texting or performaing any other manual input activity,"]
9195 #[doc = " * - 5 `calling` - to indicate that the VRU device is currently receiving a call,"]
9196 #[doc = " * - 6 `playingGames` - to indicate that the human is playing games,"]
9197 #[doc = " * - 7 `reading` - to indicate that the human is reading on the VRU device,"]
9198 #[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."]
9199 #[doc = " * - value 9 to 15 - are reserved for future usage. "]
9200 #[doc = " *"]
9201 #[doc = " * @category: VRU information"]
9202 #[doc = " * @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"]
9203 #[doc = " "]
9204 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9205 #[rasn(delegate, value("0..=15"))]
9206 pub struct VruDeviceUsage(pub u8);
9207 #[doc = "*"]
9208 #[doc = " * This DE represents the possible VRU environment conditions."]
9209 #[doc = " *"]
9210 #[doc = " * - The value shall be set to:"]
9211 #[doc = " * - 0 `unavailable` - to indicate that the information on the type of environment is unavailable,"]
9212 #[doc = " * - 1 `intersectionCrossing` - to indicate that the VRU is on an intersection or crossing,"]
9213 #[doc = " * - 2 `zebraCrossing` - to indicate that the VRU is on a zebra crossing (crosswalk),"]
9214 #[doc = " * - 3 `sidewalk` - to indicate that the VRU is on a sidewalk,"]
9215 #[doc = " * - 4 `onVehicleRoad` - to indicate that the VRU is on a traffic lane,"]
9216 #[doc = " * - 5 `protectedGeographicArea`- to indicate that the VRU is in a protected area."]
9217 #[doc = " * - value 6 to 15 - are reserved for future usage. "]
9218 #[doc = " *"]
9219 #[doc = " * @category: VRU information"]
9220 #[doc = " * @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"]
9221 #[doc = " "]
9222 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9223 #[rasn(delegate, value("0..=15"))]
9224 pub struct VruEnvironment(pub u8);
9225 #[doc = "*"]
9226 #[doc = " * This DF represents the status of the exterior light switches of a VRU."]
9227 #[doc = " * This DF is an extension of the vehicular DE @ref ExteriorLights."]
9228 #[doc = " *"]
9229 #[doc = " * It shall include the following components: "]
9230 #[doc = " * "]
9231 #[doc = " * @field vehicular: represents the status of the exterior light switches of a road vehicle."]
9232 #[doc = " * "]
9233 #[doc = " * @field vruSpecific: represents the status of the exterior light switches of a VRU."]
9234 #[doc = " *"]
9235 #[doc = " * @category: VRU information"]
9236 #[doc = " * @revision: created in V2.1.1"]
9237 #[doc = " "]
9238 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9239 #[rasn(automatic_tags)]
9240 #[non_exhaustive]
9241 pub struct VruExteriorLights {
9242 pub vehicular: ExteriorLights,
9243 #[rasn(identifier = "vruSpecific")]
9244 pub vru_specific: VruSpecificExteriorLights,
9245 }
9246 impl VruExteriorLights {
9247 pub fn new(vehicular: ExteriorLights, vru_specific: VruSpecificExteriorLights) -> Self {
9248 Self {
9249 vehicular,
9250 vru_specific,
9251 }
9252 }
9253 }
9254 #[doc = "*"]
9255 #[doc = " * This DE indicates the status of the possible human control over a VRU vehicle."]
9256 #[doc = " *"]
9257 #[doc = " * The value shall be set to:"]
9258 #[doc = " * - 0 `unavailable` - to indicate that the information is unavailable,"]
9259 #[doc = " * - 1 `braking` - to indicate that the VRU is braking,"]
9260 #[doc = " * - 2 `hardBraking` - to indicate that the VRU is braking hard,"]
9261 #[doc = " * - 3 `stopPedaling` - to indicate that the VRU stopped pedaling,"]
9262 #[doc = " * - 4 `brakingAndStopPedaling` - to indicate that the VRU stopped pedaling an is braking,"]
9263 #[doc = " * - 5 `hardBrakingAndStopPedaling` - to indicate that the VRU stopped pedaling an is braking hard,"]
9264 #[doc = " * - 6 `noReaction` - to indicate that the VRU is not changing its behavior."]
9265 #[doc = " * - 7 to 15 - are reserved for future usage. "]
9266 #[doc = " *"]
9267 #[doc = " * @category: VRU information"]
9268 #[doc = " * @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"]
9269 #[doc = " "]
9270 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9271 #[rasn(delegate, value("0..=15"))]
9272 pub struct VruMovementControl(pub u8);
9273 #[doc = "*"]
9274 #[doc = " * This DF indicates the profile of a VRU including sub-profile information"]
9275 #[doc = " * It identifies four options corresponding to the four types of VRU profiles specified in ETSI TS 103 300-2 [18]:"]
9276 #[doc = " *"]
9277 #[doc = " * @field pedestrian: VRU Profile 1 - Pedestrian."]
9278 #[doc = " *"]
9279 #[doc = " * @field bicyclistAndLightVruVehicle: VRU Profile 2 - Bicyclist."]
9280 #[doc = " *"]
9281 #[doc = " * @field motorcyclist: VRU Profile 3 - Motorcyclist."]
9282 #[doc = " *"]
9283 #[doc = " * @field animal: VRU Profile 4 - Animal."]
9284 #[doc = " *"]
9285 #[doc = " * @category: VRU information"]
9286 #[doc = " * @revision: Created in V2.1.1"]
9287 #[doc = " "]
9288 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9289 #[rasn(choice, automatic_tags)]
9290 #[non_exhaustive]
9291 pub enum VruProfileAndSubprofile {
9292 pedestrian(VruSubProfilePedestrian),
9293 bicyclistAndLightVruVehicle(VruSubProfileBicyclist),
9294 motorcyclist(VruSubProfileMotorcyclist),
9295 animal(VruSubProfileAnimal),
9296 }
9297 #[doc = "*"]
9298 #[doc = " * This DE indicates the approximate size of a VRU including the VRU vehicle used."]
9299 #[doc = " * "]
9300 #[doc = " * The value shall be set to:"]
9301 #[doc = " * - 0 `unavailable` - to indicate that there is no matched size class or due to privacy reasons in profile 1, "]
9302 #[doc = " * - 1 `low` - to indicate that the VRU size class is low depending on the VRU profile,"]
9303 #[doc = " * - 2 `medium` - to indicate that the VRU size class is medium depending on the VRU profile,"]
9304 #[doc = " * - 3 `high` - to indicate that the VRU size class is high depending on the VRU profile."]
9305 #[doc = " * - 4 to 15 - are reserved for future usage. "]
9306 #[doc = " *"]
9307 #[doc = " * @category: VRU information"]
9308 #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
9309 #[doc = " "]
9310 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9311 #[rasn(delegate, value("0..=15"))]
9312 pub struct VruSizeClass(pub u8);
9313 #[doc = "*"]
9314 #[doc = " * This DE describes the status of the exterior light switches of a VRU."]
9315 #[doc = " *"]
9316 #[doc = " * The value of each bit indicates the state of the switch, which commands the corresponding light. "]
9317 #[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 "]
9318 #[doc = " * or automatically by a vehicle or VRU system: "]
9319 #[doc = " * - 0 `unavailable` - indicates no information available, "]
9320 #[doc = " * - 1 `backFlashLight ` - indicates the status of the back flash light,"]
9321 #[doc = " * - 2 `helmetLight` - indicates the status of the helmet light,"]
9322 #[doc = " * - 3 `armLight` - indicates the status of the arm light,"]
9323 #[doc = " * - 4 `legLight` - indicates the status of the leg light,"]
9324 #[doc = " * - 5 `wheelLight` - indicates the status of the wheel light. "]
9325 #[doc = " * - Bits 6 to 8 - are reserved for future use. "]
9326 #[doc = " * The bit values do not indicate if the corresponding lamps are alight or not."]
9327 #[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."]
9328 #[doc = " *"]
9329 #[doc = " * @category: VRU information"]
9330 #[doc = " * @revision: Created in V2.1.1"]
9331 #[doc = " "]
9332 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9333 #[rasn(delegate)]
9334 pub struct VruSpecificExteriorLights(pub FixedBitString<8usize>);
9335 #[doc = "*"]
9336 #[doc = " * This DE indicates the profile of an animal"]
9337 #[doc = " * "]
9338 #[doc = " * The value shall be set to:"]
9339 #[doc = " * - 0 `unavailable` - to indicate that the information is unavailable,"]
9340 #[doc = " * - 1 `wild-animal` - to indicate a animal living in the wildness, "]
9341 #[doc = " * - 2 `farm-animal` - to indicate an animal beloning to a farm,"]
9342 #[doc = " * - 3 `service-animal` - to indicate an animal that supports a human being."]
9343 #[doc = " * - 4 to 15 - are reserved for future usage. "]
9344 #[doc = " *"]
9345 #[doc = " * @category: VRU information"]
9346 #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
9347 #[doc = " "]
9348 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9349 #[rasn(delegate, value("0..=15"))]
9350 pub struct VruSubProfileAnimal(pub u8);
9351 #[doc = "*"]
9352 #[doc = " * This DE indicates the profile of a VRU and its light VRU vehicle / mounted animal. "]
9353 #[doc = " *"]
9354 #[doc = " * The value shall be set to:"]
9355 #[doc = " * - 0 `unavailable` - to indicate that the information is unavailable,"]
9356 #[doc = " * - 1 `bicyclist ` - to indicate a cycle and bicyclist to which no more-specific profile applies, "]
9357 #[doc = " * - 2 `wheelchair-user` - to indicate a wheelchair and its user,"]
9358 #[doc = " * - 3 `horse-and-rider` - to indicate a horse and rider,"]
9359 #[doc = " * - 4 `rollerskater` - to indicate a roller-skater and skater,"]
9360 #[doc = " * - 5 `e-scooter` - to indicate an e-scooter and rider,"]
9361 #[doc = " * - 6 `personal-transporter` - to indicate a personal-transporter and rider,"]
9362 #[doc = " * - 7 `pedelec` - to indicate a pedelec and rider to which no more-specific profile applies,"]
9363 #[doc = " * - 8 `speed-pedelec` - to indicate a speed-pedelec and rider."]
9364 #[doc = " * - 9 `roadbike` - to indicate a road bicycle (or road pedelec) and rider,"]
9365 #[doc = " * - 10 `childrensbike` - to indicate a children´s bicycle (or children´s pedelec) and rider,"]
9366 #[doc = " * - 11 `racebike` - to indicate a race bicycle (according to local applicable regulations) and rider. "]
9367 #[doc = " * - 12 to 15 - are reserved for future usage. "]
9368 #[doc = " *"]
9369 #[doc = " * @category: VRU information"]
9370 #[doc = " * @revision: Created in V2.1.1, values 9 and 10 assigned in V2.2.1, value 11 assigned in V2.4.1"]
9371 #[doc = " "]
9372 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9373 #[rasn(delegate, value("0..=15"))]
9374 pub struct VruSubProfileBicyclist(pub u8);
9375 #[doc = "*"]
9376 #[doc = " * This DE indicates the profile of a motorcyclist and corresponding vehicle."]
9377 #[doc = " * "]
9378 #[doc = " * The value shall be set to:"]
9379 #[doc = " * - 0 `unavailable ` - to indicate that the information is unavailable,"]
9380 #[doc = " * - 1 `moped` - to indicate a moped and rider,"]
9381 #[doc = " * - 2 `motorcycle` - to indicate a motorcycle and rider,"]
9382 #[doc = " * - 3 `motorcycle-and-sidecar-right` - to indicate a motorcycle with sidecar on the right and rider,"]
9383 #[doc = " * - 4 `motorcycle-and-sidecar-left` - to indicate a motorcycle with sidecar on the left and rider."]
9384 #[doc = " * - 5 to 15 - are reserved for future usage. "]
9385 #[doc = " *"]
9386 #[doc = " * @category: VRU information"]
9387 #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
9388 #[doc = " "]
9389 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9390 #[rasn(delegate, value("0..=15"))]
9391 pub struct VruSubProfileMotorcyclist(pub u8);
9392 #[doc = "*"]
9393 #[doc = " * This DE indicates the profile of a pedestrian."]
9394 #[doc = " * "]
9395 #[doc = " * The value shall be set to:"]
9396 #[doc = " * - 0 `unavailable` - to indicate that the information on is unavailable,"]
9397 #[doc = " * - 1 `ordinary-pedestrian` - to indicate a pedestrian to which no more-specific profile applies,"]
9398 #[doc = " * - 2 `road-worker` - to indicate a pedestrian with the role of a road worker,"]
9399 #[doc = " * - 3 `first-responder` - to indicate a pedestrian with the role of a first responder."]
9400 #[doc = " * - value 4 to 15 - are reserved for future usage. "]
9401 #[doc = " *"]
9402 #[doc = " * @category: VRU information"]
9403 #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
9404 #[doc = " "]
9405 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9406 #[rasn(delegate, value("0..=15"))]
9407 pub struct VruSubProfilePedestrian(pub u8);
9408 #[doc = "*"]
9409 #[doc = " * This DE represents the World Manufacturer Identifier (WMI). The values are assigned according to ISO 3779 [6]."]
9410 #[doc = " * "]
9411 #[doc = " *"]
9412 #[doc = " * @category: Vehicle information"]
9413 #[doc = " * @revision: V1.3.1"]
9414 #[doc = " "]
9415 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9416 #[rasn(delegate, size("1..=3"))]
9417 pub struct WMInumber(pub Ia5String);
9418 #[doc = "* "]
9419 #[doc = " * This DF represents an angular component along with a confidence value in the WGS84 coordinate system."]
9420 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
9421 #[doc = " *"]
9422 #[doc = " * It shall include the following components: "]
9423 #[doc = " *"]
9424 #[doc = " * @field value: the angle value, which can be estimated as the mean of the current distribution."]
9425 #[doc = " *"]
9426 #[doc = " * @field confidence: the confidence value associated to the angle value."]
9427 #[doc = " *"]
9428 #[doc = " * @category: GeoReference information"]
9429 #[doc = " * @revision: Created in V2.1.1"]
9430 #[doc = ""]
9431 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9432 #[rasn(automatic_tags)]
9433 pub struct Wgs84Angle {
9434 pub value: Wgs84AngleValue,
9435 pub confidence: Wgs84AngleConfidence,
9436 }
9437 impl Wgs84Angle {
9438 pub fn new(value: Wgs84AngleValue, confidence: Wgs84AngleConfidence) -> Self {
9439 Self { value, confidence }
9440 }
9441 }
9442 #[doc = "* "]
9443 #[doc = " * This DE indicates the angle confidence value which represents the estimated accuracy of an angle value with a default confidence level of 95 %."]
9444 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
9445 #[doc = " * "]
9446 #[doc = " * The value shall be set to:"]
9447 #[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,"]
9448 #[doc = " * - `126` if the confidence value is out of range, i.e. greater than 12,5 degrees,"]
9449 #[doc = " * - `127` if the confidence value is not available."]
9450 #[doc = " *"]
9451 #[doc = " *"]
9452 #[doc = " * @unit 0,1 degrees"]
9453 #[doc = " * @category: GeoReference Information"]
9454 #[doc = " * @revision: Created in V2.1.1"]
9455 #[doc = ""]
9456 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9457 #[rasn(delegate, value("1..=127"))]
9458 pub struct Wgs84AngleConfidence(pub u8);
9459 #[doc = "* "]
9460 #[doc = " * This DE represents an angle value in degrees described in the WGS84 reference system with respect to the WGS84 north."]
9461 #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
9462 #[doc = " * When the information is not available, the DE shall be set to 3 601. The value 3600 shall not be used."]
9463 #[doc = " *"]
9464 #[doc = " * @unit 0,1 degrees"]
9465 #[doc = " * @category: GeoReference Information"]
9466 #[doc = " * @revision: Created in V2.1.1"]
9467 #[doc = ""]
9468 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9469 #[rasn(delegate, value("0..=3601"))]
9470 pub struct Wgs84AngleValue(pub u16);
9471 #[doc = "*"]
9472 #[doc = " * This DE indicates the perpendicular distance between front and rear axle of the wheel base of vehicle."]
9473 #[doc = " *"]
9474 #[doc = " * The value shall be set to:"]
9475 #[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,"]
9476 #[doc = " * - `126` indicates that the wheel base distance is equal to or greater than 12,5 metres,"]
9477 #[doc = " * - `127` indicates that the information is unavailable."]
9478 #[doc = " *"]
9479 #[doc = " * @unit 0,1 metre"]
9480 #[doc = " * @category: Vehicle information"]
9481 #[doc = " * @revision: Created in V2.1.1"]
9482 #[doc = " "]
9483 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9484 #[rasn(delegate, value("1..=127"))]
9485 pub struct WheelBaseVehicle(pub u8);
9486 #[doc = "*"]
9487 #[doc = " * This DE indicates the actual status of the front wipers of the vehicle. "]
9488 #[doc = " *"]
9489 #[doc = " * The value shall be set to:"]
9490 #[doc = " * - 0 `unavailable` - to indicate that the information is unavailable,"]
9491 #[doc = " * - 1 `off` - to indicate that the wipers are switched off,"]
9492 #[doc = " * - 2 `intermittent` - to indicate that the wipers are moving intermittently,"]
9493 #[doc = " * - 3 `low` - to indicate that the wipers are moving at low speed,"]
9494 #[doc = " * - 4 `high` - to indicate that the wipers are moving at high speed,"]
9495 #[doc = " * - values 5 to 7 - are reserved for future usage. "]
9496 #[doc = " *"]
9497 #[doc = " * @note: the status can be either set manually by the driver or automatically by e.g. a rain sensor. The way the status is set does not affect the status itself. "]
9498 #[doc = " * @category: Vehicle information "]
9499 #[doc = " * @revision: created in V2.3.1"]
9500 #[doc = " "]
9501 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9502 #[rasn(delegate, value("0..=7"))]
9503 pub struct WiperStatus(pub u8);
9504 #[doc = "*"]
9505 #[doc = " * This DE represents the sub cause codes of the @ref CauseCode `wrongWayDriving` ."]
9506 #[doc = " * "]
9507 #[doc = " * The value shall be set to:"]
9508 #[doc = " * - 0 `unavailable` - in case further detailed information on wrong way driving event is unavailable,"]
9509 #[doc = " * - 1 `wrongLane-deprecated` - deprecated since not pertinent to wrong way driving,"]
9510 #[doc = " * - 2 `wrongDirection` - in case vehicle is driving in a direction that it is not allowed,"]
9511 #[doc = " * - 3-255 - reserved for future usage."]
9512 #[doc = " * "]
9513 #[doc = " * @category: Traffic information"]
9514 #[doc = " * @revision: V1.3.1, value 1 deprecated in V2.4.1"]
9515 #[doc = " "]
9516 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9517 #[rasn(delegate, value("0..=255"))]
9518 pub struct WrongWayDrivingSubCauseCode(pub u8);
9519 #[doc = "*"]
9520 #[doc = " * This DF represents a yaw rate of vehicle at a point in time."]
9521 #[doc = " *"]
9522 #[doc = " * It shall include the following components: "]
9523 #[doc = " * "]
9524 #[doc = " * @field yawRateValue: yaw rate value at a point in time."]
9525 #[doc = " * "]
9526 #[doc = " * @field yawRateConfidence: confidence value associated to the yaw rate value."]
9527 #[doc = " * "]
9528 #[doc = " * @category: Vehicle Information"]
9529 #[doc = " * @revision: V1.3.1"]
9530 #[doc = " "]
9531 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9532 #[rasn(automatic_tags)]
9533 pub struct YawRate {
9534 #[rasn(identifier = "yawRateValue")]
9535 pub yaw_rate_value: YawRateValue,
9536 #[rasn(identifier = "yawRateConfidence")]
9537 pub yaw_rate_confidence: YawRateConfidence,
9538 }
9539 impl YawRate {
9540 pub fn new(yaw_rate_value: YawRateValue, yaw_rate_confidence: YawRateConfidence) -> Self {
9541 Self {
9542 yaw_rate_value,
9543 yaw_rate_confidence,
9544 }
9545 }
9546 }
9547 #[doc = "*"]
9548 #[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 %."]
9549 #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
9550 #[doc = " * "]
9551 #[doc = " * The value shall be set to:"]
9552 #[doc = " * - `0` if the confidence value is equal to or less than 0,01 degree/second,"]
9553 #[doc = " * - `1` if the confidence value is equal to or less than 0,05 degrees/second or greater than 0,01 degree/second,"]
9554 #[doc = " * - `2` if the confidence value is equal to or less than 0,1 degree/second or greater than 0,05 degree/second,"]
9555 #[doc = " * - `3` if the confidence value is equal to or less than 1 degree/second or greater than 0,1 degree/second,"]
9556 #[doc = " * - `4` if the confidence value is equal to or less than 5 degrees/second or greater than 1 degrees/second,"]
9557 #[doc = " * - `5` if the confidence value is equal to or less than 10 degrees/second or greater than 5 degrees/second,"]
9558 #[doc = " * - `6` if the confidence value is equal to or less than 100 degrees/second or greater than 10 degrees/second,"]
9559 #[doc = " * - `7` if the confidence value is out of range, i.e. greater than 100 degrees/second,"]
9560 #[doc = " * - `8` if the confidence value is unavailable."]
9561 #[doc = " * "]
9562 #[doc = " * NOTE: The fact that a yaw rate value is received with confidence value set to `unavailable(8)` can be caused by"]
9563 #[doc = " * several reasons, such as:"]
9564 #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
9565 #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
9566 #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
9567 #[doc = " * In all 3 cases above, the yaw rate value may be valid and used by the application."]
9568 #[doc = " * "]
9569 #[doc = " * If a yaw rate value is received and its confidence value is set to `outOfRange(7)`, it means that the "]
9570 #[doc = " * yaw rate value is not valid and therefore cannot be trusted. Such value is not useful the application."]
9571 #[doc = " * "]
9572 #[doc = " * @category: Vehicle information"]
9573 #[doc = " * @revision: Description revised in V2.1.1"]
9574 #[doc = " "]
9575 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
9576 #[rasn(enumerated)]
9577 pub enum YawRateConfidence {
9578 #[rasn(identifier = "degSec-000-01")]
9579 degSec_000_01 = 0,
9580 #[rasn(identifier = "degSec-000-05")]
9581 degSec_000_05 = 1,
9582 #[rasn(identifier = "degSec-000-10")]
9583 degSec_000_10 = 2,
9584 #[rasn(identifier = "degSec-001-00")]
9585 degSec_001_00 = 3,
9586 #[rasn(identifier = "degSec-005-00")]
9587 degSec_005_00 = 4,
9588 #[rasn(identifier = "degSec-010-00")]
9589 degSec_010_00 = 5,
9590 #[rasn(identifier = "degSec-100-00")]
9591 degSec_100_00 = 6,
9592 outOfRange = 7,
9593 unavailable = 8,
9594 }
9595 #[doc = "*"]
9596 #[doc = " * This DE represents the vehicle rotation around z-axis of the coordinate system centred on the centre of mass of the empty-loaded"]
9597 #[doc = " * vehicle. The leading sign denotes the direction of rotation."]
9598 #[doc = " * "]
9599 #[doc = " * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11."]
9600 #[doc = " *"]
9601 #[doc = " * The value shall be set to:"]
9602 #[doc = " * - `-32 766` to indicate that the yaw rate is equal to or greater than 327,66 degrees/second to the right,"]
9603 #[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, "]
9604 #[doc = " and greater than (n-1) x 0,01 degrees/s,"]
9605 #[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, "]
9606 #[doc = " and greater than (n-1) x 0,01 degrees/s,"]
9607 #[doc = " * - `32 766` to indicate that the yaw rate is greater than 327.65 degrees/second to the left,"]
9608 #[doc = " * - `32 767` to indicate that the information is not available."]
9609 #[doc = " * "]
9610 #[doc = " * The reading instant should be the same as for the vehicle acceleration."]
9611 #[doc = " * "]
9612 #[doc = " * @note: The empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
9613 #[doc = " * "]
9614 #[doc = " * @unit: 0,01 degree per second. "]
9615 #[doc = " * @category: Vehicle Information"]
9616 #[doc = " * @revision: Description revised in V2.1.1 (the meaning of 32766 has changed slightly). Requirement on raw data deleted in V2.4.1"]
9617 #[doc = ""]
9618 #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9619 #[rasn(delegate, value("-32766..=32767"))]
9620 pub struct YawRateValue(pub i16);
9621}