Skip to main content

rustflexstack/facilities/ca_basic_service/
cam_bindings.rs

1// SPDX-License-Identifier: AGPL-3.0-only
2// Copyright (C) 2024 Fundació Privada Internet i Innovació Digital a Catalunya (i2CAT)
3
4#[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 cam_pdu_descriptions {
13    extern crate alloc;
14    use super::etsi_its_cdd::{
15        AccelerationComponent, AccelerationControl, BasicContainer, BasicLaneConfiguration,
16        BrakeControl, CartesianAngle, CauseCodeV2, CenDsrcTollingZone, ClosedLanes,
17        ConfidenceLevels, Curvature, CurvatureCalculationMode, DangerousGoodsBasic, DriveDirection,
18        EmbarkationStatus, EmergencyPriority, ExteriorLights, GeneralizedLanePositions,
19        GenerationDeltaTime, Heading, ItsPduHeader, LanePosition, LightBarSirenInUse,
20        MetaInformation, Path, PathPredictedList, PerformanceClass, PolygonalLine,
21        ProtectedCommunicationZonesRSU, PtActivation, ReferencePosition, RoadworksSubCauseCode,
22        SpecialTransportType, Speed, SpeedLimit, StabilityChangeIndication, StationType,
23        SteeringWheelAngle, TrafficRule, VehicleHeight2, VehicleLength, VehicleMovementControl,
24        VehicleRole, VehicleWidth, VruMovementControl, VruSubProfileBicyclist, Wgs84Angle,
25        WiperStatus, YawRate,
26    };
27    use core::borrow::Borrow;
28    use rasn::prelude::*;
29    use std::sync::LazyLock;
30    #[doc = "*"]
31    #[doc = "* This type contains detaild information of the Basic Vehicle Container High Frequency."]
32    #[doc = "*"]
33    #[doc = "* It shall include the following components:"]
34    #[doc = "*"]
35    #[doc = "* @field heading: It represent the heading and heading accuracy of the vehicle movement of the originating ITS-S with regards to the true north. "]
36    #[doc = "* The heading accuracy provided in the heading Confidence value shall provide the accuracy of the measured vehicle heading with a confidence level "]
37    #[doc = "* of 95 %. Otherwise, the value of the headingConfidence shall be set to unavailable."]
38    #[doc = "*"]
39    #[doc = "* @field speed: It represent driving speed and speed accuracy of the originating ITS-S. The speed accuracy provided in the speedConfidence shall "]
40    #[doc = "* provide the accuracy of the speed value with a confidence level of 95 %. Otherwise, the speedConfidence shall be set to unavailable."]
41    #[doc = "*"]
42    #[doc = "* @field driveDirection: This component represent the vehicle drive direction (forward or backward) of the originating ITS-S."]
43    #[doc = "*"]
44    #[doc = "* @field vehicleLength: This component represent the vehicle length value and vehicle length confidence indication of the vehicle ITS-S that "]
45    #[doc = "* originate the CAM. "]
46    #[doc = "*"]
47    #[doc = "* @field vehicleWidth: This component represents the Vehicle Width of the vehicle ITS-S that originates the CAM excluding side mirrors and possible"]
48    #[doc = "* similar extensions."]
49    #[doc = "*"]
50    #[doc = "* @field longitudinalAcceleration: It represent the vehicle Longitudinal Acceleration of the originating ITS-S in the centre of the mass of the "]
51    #[doc = "* empty vehicle. It shall include the measured vehicle longitudinal acceleration and its accuracy value with the confidence level of 95 %. "]
52    #[doc = "* Otherwise, the longitudinalAccelerationConfidence shall be set to unavailable. "]
53    #[doc = "*"]
54    #[doc = "* @field curvature: this component reppresent the actual trajectory of the vehicle. "]
55    #[doc = "*"]
56    #[doc = "* @field curvatureCalculationMode: It indicates whether vehicle yaw-rate is used in the calculation of the curvature of the vehicle ITS-S that"]
57    #[doc = "* originates the CAM."]
58    #[doc = "*"]
59    #[doc = "* @field yawRate: It denotes the vehicle rotation around the centre of mass of the empty vehicle. The leading sign denotes the direction of "]
60    #[doc = "* rotation. The value is negative if the motion is clockwise when viewing from the top."]
61    #[doc = "* yawRateConfidence denotes the accuracy for the 95 % confidence level for the measured yawRateValue. Otherwise, the value of yawRateConfidence"]
62    #[doc = "* shall be set to unavailable."]
63    #[doc = "*"]
64    #[doc = "* @field accelerationControl: an optional component which represents the current status of the vehcile mechnanisms controlling the longitudinal movement of the vehcile ITS-S"]
65    #[doc = "* (e.g. brake pedal,  gas pedal, etc. engaged) that originate the CAM."]
66    #[doc = "*"]
67    #[doc = "* @field lanePosition: an optional component which represents the lanePosition of the referencePosition of a vehicle. This component shall be present if the data is "]
68    #[doc = "* available at the originating ITS-S."]
69    #[doc = "*"]
70    #[doc = "* @field steeringWheelAngle: an optional component which indicates the steering wheel angle and accuracy as measured at the vehicle ITS-S that originates the CAM."]
71    #[doc = "*"]
72    #[doc = "* @field lateralAcceleration: an optional component which represents the vehicle lateral acceleration of the originating ITS-S in the centre of the mass of the empty vehicle. "]
73    #[doc = "* It shall include the measured vehicle lateral acceleration and its accuracy value with the confidence level of 95%."]
74    #[doc = "*"]
75    #[doc = "* @field verticalAcceleration: an optional component which indicates the originating ITS-S in the centre of the mass of the empty vehicle."]
76    #[doc = "* "]
77    #[doc = "* @field performanceClass: an optional component characterizes the maximum age of the CAM data elements with regard to the generation delta time."]
78    #[doc = "*"]
79    #[doc = "* @field cenDsrcTollingZone: an optional component which represents the information about the position of a CEN DSRC Tolling Station operating in the 5,8 GHz frequency band."]
80    #[doc = ""]
81    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
82    #[rasn(automatic_tags)]
83    pub struct BasicVehicleContainerHighFrequency {
84        pub heading: Heading,
85        pub speed: Speed,
86        #[rasn(identifier = "driveDirection")]
87        pub drive_direction: DriveDirection,
88        #[rasn(identifier = "vehicleLength")]
89        pub vehicle_length: VehicleLength,
90        #[rasn(identifier = "vehicleWidth")]
91        pub vehicle_width: VehicleWidth,
92        #[rasn(identifier = "longitudinalAcceleration")]
93        pub longitudinal_acceleration: AccelerationComponent,
94        pub curvature: Curvature,
95        #[rasn(identifier = "curvatureCalculationMode")]
96        pub curvature_calculation_mode: CurvatureCalculationMode,
97        #[rasn(identifier = "yawRate")]
98        pub yaw_rate: YawRate,
99        #[rasn(identifier = "accelerationControl")]
100        pub acceleration_control: Option<AccelerationControl>,
101        #[rasn(identifier = "lanePosition")]
102        pub lane_position: Option<LanePosition>,
103        #[rasn(identifier = "steeringWheelAngle")]
104        pub steering_wheel_angle: Option<SteeringWheelAngle>,
105        #[rasn(identifier = "lateralAcceleration")]
106        pub lateral_acceleration: Option<AccelerationComponent>,
107        #[rasn(identifier = "verticalAcceleration")]
108        pub vertical_acceleration: Option<AccelerationComponent>,
109        #[rasn(identifier = "performanceClass")]
110        pub performance_class: Option<PerformanceClass>,
111        #[rasn(identifier = "cenDsrcTollingZone")]
112        pub cen_dsrc_tolling_zone: Option<CenDsrcTollingZone>,
113    }
114    impl BasicVehicleContainerHighFrequency {
115        pub fn new(
116            heading: Heading,
117            speed: Speed,
118            drive_direction: DriveDirection,
119            vehicle_length: VehicleLength,
120            vehicle_width: VehicleWidth,
121            longitudinal_acceleration: AccelerationComponent,
122            curvature: Curvature,
123            curvature_calculation_mode: CurvatureCalculationMode,
124            yaw_rate: YawRate,
125            acceleration_control: Option<AccelerationControl>,
126            lane_position: Option<LanePosition>,
127            steering_wheel_angle: Option<SteeringWheelAngle>,
128            lateral_acceleration: Option<AccelerationComponent>,
129            vertical_acceleration: Option<AccelerationComponent>,
130            performance_class: Option<PerformanceClass>,
131            cen_dsrc_tolling_zone: Option<CenDsrcTollingZone>,
132        ) -> Self {
133            Self {
134                heading,
135                speed,
136                drive_direction,
137                vehicle_length,
138                vehicle_width,
139                longitudinal_acceleration,
140                curvature,
141                curvature_calculation_mode,
142                yaw_rate,
143                acceleration_control,
144                lane_position,
145                steering_wheel_angle,
146                lateral_acceleration,
147                vertical_acceleration,
148                performance_class,
149                cen_dsrc_tolling_zone,
150            }
151        }
152    }
153    #[doc = "*"]
154    #[doc = "* This type contains detaild information of the Basic Vehicle Container Low Frequency."]
155    #[doc = "*"]
156    #[doc = "* It shall include the following components:"]
157    #[doc = "*"]
158    #[doc = "* @field vehicleRole: represent the role of the vehicle ITS-S that originates the CAM. Only values 0 to 7 shall be used."]
159    #[doc = "*"]
160    #[doc = "* @field exteriorLights: represent the status of the most important exterior lights switches of the vehicle ITS-S that originates the CAM."]
161    #[doc = "*"]
162    #[doc = "* @field pathHistory: which represents the vehicle's recent movement over some past time and/or distance. It consists of a list of path points,"]
163    #[doc = "* each represented as DF PathPoint. The list of path points may consist of up to 23 elements. "]
164    #[doc = ""]
165    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
166    #[rasn(automatic_tags)]
167    pub struct BasicVehicleContainerLowFrequency {
168        #[rasn(identifier = "vehicleRole")]
169        pub vehicle_role: VehicleRole,
170        #[rasn(identifier = "exteriorLights")]
171        pub exterior_lights: ExteriorLights,
172        #[rasn(identifier = "pathHistory")]
173        pub path_history: Path,
174    }
175    impl BasicVehicleContainerLowFrequency {
176        pub fn new(
177            vehicle_role: VehicleRole,
178            exterior_lights: ExteriorLights,
179            path_history: Path,
180        ) -> Self {
181            Self {
182                vehicle_role,
183                exterior_lights,
184                path_history,
185            }
186        }
187    }
188    #[doc = "\tThe root data frame for cooperative awareness messages"]
189    #[doc = "* "]
190    #[doc = "* This type represents the CAM PDU."]
191    #[doc = "*"]
192    #[doc = "* It shall include the following componenets:"]
193    #[doc = "*"]
194    #[doc = "* @field header: the header of the CAM PDU."]
195    #[doc = "*"]
196    #[doc = "* @field cam: the payload of the CAM PDU."]
197    #[doc = ""]
198    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
199    #[rasn(automatic_tags)]
200    pub struct CAM {
201        #[rasn(value("0.."))]
202        pub header: ItsPduHeader,
203        pub cam: CamPayload,
204    }
205    impl CAM {
206        pub fn new(header: ItsPduHeader, cam: CamPayload) -> Self {
207            Self { header, cam }
208        }
209    }
210    #[doc = "*"]
211    #[doc = "* @field basicContainer: the mandatory basic container of the CAM."]
212    #[doc = "*"]
213    #[doc = "* @field highFrequencyContainer: the mandatory container represents the high frequency of the CAM."]
214    #[doc = "* "]
215    #[doc = "* @field lowFrequencyContainer: the optional conatainer represents the low frequency of the CAM."]
216    #[doc = "*"]
217    #[doc = "* @field specialVehicleContainer: The special container of the CAM shall be present as defined in clause 6.1.2. "]
218    #[doc = "* The content of the container shall be set according to the value of the vehicleRole component as specified in Table 5. "]
219    #[doc = "*"]
220    #[doc = "* @field extensionContainers: the list of CAM extension containers, including its container type identifier and the container itself."]
221    #[doc = ""]
222    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
223    #[rasn(automatic_tags)]
224    #[non_exhaustive]
225    pub struct CamParameters {
226        #[rasn(identifier = "basicContainer")]
227        pub basic_container: BasicContainer,
228        #[rasn(identifier = "highFrequencyContainer")]
229        pub high_frequency_container: HighFrequencyContainer,
230        #[rasn(identifier = "lowFrequencyContainer")]
231        pub low_frequency_container: Option<LowFrequencyContainer>,
232        #[rasn(identifier = "specialVehicleContainer")]
233        pub special_vehicle_container: Option<SpecialVehicleContainer>,
234        // The SIZE constraint is repeated on the field: rasn (0.26 to 0.30)
235        // drops the constraints of a delegate type encoded as an extension
236        // addition, and wrote the SEQUENCE OF count as an unconstrained length
237        // (X.691 open type of the wrong value; FlexStack Python and asn1c
238        // could not decode it).
239        #[rasn(
240            extension_addition,
241            size("1..=8", extensible),
242            identifier = "extensionContainers"
243        )]
244        pub extension_containers: Option<WrappedExtensionContainers>,
245    }
246    impl CamParameters {
247        pub fn new(
248            basic_container: BasicContainer,
249            high_frequency_container: HighFrequencyContainer,
250            low_frequency_container: Option<LowFrequencyContainer>,
251            special_vehicle_container: Option<SpecialVehicleContainer>,
252            extension_containers: Option<WrappedExtensionContainers>,
253        ) -> Self {
254            Self {
255                basic_container,
256                high_frequency_container,
257                low_frequency_container,
258                special_vehicle_container,
259                extension_containers,
260            }
261        }
262    }
263    #[doc = "*"]
264    #[doc = "* This type represents the CAM payload. "]
265    #[doc = "*"]
266    #[doc = "* It shall include the following components: "]
267    #[doc = "*"]
268    #[doc = "* @field generationDeltaTime: Time corresponding to the time of the reference position in the CAM, considered as time of the CAM generation."]
269    #[doc = "*"]
270    #[doc = "* @field camParameters: The sequence of CAM mandatory and optional container."]
271    #[doc = "*"]
272    #[doc = ""]
273    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
274    #[rasn(automatic_tags)]
275    pub struct CamPayload {
276        #[rasn(identifier = "generationDeltaTime")]
277        pub generation_delta_time: GenerationDeltaTime,
278        #[rasn(identifier = "camParameters")]
279        pub cam_parameters: CamParameters,
280    }
281    impl CamPayload {
282        pub fn new(
283            generation_delta_time: GenerationDeltaTime,
284            cam_parameters: CamParameters,
285        ) -> Self {
286            Self {
287                generation_delta_time,
288                cam_parameters,
289            }
290        }
291    }
292    #[doc = "*"]
293    #[doc = "* This type contains type-specific information about cyclists."]
294    #[doc = "*"]
295    #[doc = "* It shall include the following components:"]
296    #[doc = "*"]
297    #[doc = "* @field vruSubProfileBicyclist: it indicates the detailed type of the cyclist."]
298    #[doc = "*"]
299    #[doc = "* @field vruMovementControl: it includes information about the movement control of the bicycle."]
300    #[doc = "*"]
301    #[doc = ""]
302    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
303    #[rasn(automatic_tags)]
304    #[non_exhaustive]
305    pub struct CyclistTypeSpecificInformation {
306        #[rasn(value("0..=10"), identifier = "vruSubProfileBicyclist")]
307        pub vru_sub_profile_bicyclist: Option<VruSubProfileBicyclist>,
308        #[rasn(identifier = "vruMovementControl")]
309        pub vru_movement_control: Option<VruMovementControl>,
310    }
311    impl CyclistTypeSpecificInformation {
312        pub fn new(
313            vru_sub_profile_bicyclist: Option<VruSubProfileBicyclist>,
314            vru_movement_control: Option<VruMovementControl>,
315        ) -> Self {
316            Self {
317                vru_sub_profile_bicyclist,
318                vru_movement_control,
319            }
320        }
321    }
322    #[doc = "*"]
323    #[doc = "* This type contains detaild information of the Dangerous Goods Container."]
324    #[doc = "*"]
325    #[doc = "* It shall include the following components:"]
326    #[doc = "*"]
327    #[doc = "* @field dangerousGoodsBasic: identifies the type of the dangerous goods transported by the vehicle that originates the CAM. It shall be present if"]
328    #[doc = "* the data is available in the originating ITS S."]
329    #[doc = ""]
330    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
331    #[rasn(automatic_tags)]
332    pub struct DangerousGoodsContainer {
333        #[rasn(identifier = "dangerousGoodsBasic")]
334        pub dangerous_goods_basic: DangerousGoodsBasic,
335    }
336    impl DangerousGoodsContainer {
337        pub fn new(dangerous_goods_basic: DangerousGoodsBasic) -> Self {
338            Self {
339                dangerous_goods_basic,
340            }
341        }
342    }
343    #[doc = "*"]
344    #[doc = "* This type contains contextual, map-based location information."]
345    #[doc = "* eHorizon is defined as a tool to convey the part of the road network and its characteristics derived from map data located in front of and behind the vehicle along the road."]
346    #[doc = "*"]
347    #[doc = "* It shall include the following components:"]
348    #[doc = "*"]
349    #[doc = "* @field segmentAhead: the road segment that the vehicle is predicted to reach, starting from the reference position."]
350    #[doc = "* At least one node must be filled in so that the current map position can be calculated on the receiver side."]
351    #[doc = "*"]
352    #[doc = "* @field nodeProbabilities: confidence values for each node in segmentAhead, indicating how confident we are that the ITS station will reach that point."]
353    #[doc = "*"]
354    #[doc = "* @field segmentBehind: the road segment that the vehicle has passed, based on the collected data, starting from the reference position."]
355    #[doc = "* At least one node must be filled in so that the current map position can be calculated on the receiver side."]
356    #[doc = "*"]
357    #[doc = "* @field laneLevelDetails: provides information about the configuration of the road at the position indicated by the component referencePosition of the Basic Container and for a given reference direction."]
358    #[doc = "*"]
359    #[doc = "* @field segmentSource: it represents the origin of the map-specific data."]
360    #[doc = "*"]
361    #[doc = ""]
362    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
363    #[rasn(automatic_tags)]
364    #[non_exhaustive]
365    pub struct EHorizonLocationSharingContainer {
366        #[rasn(identifier = "segmentAhead")]
367        pub segment_ahead: PolygonalLine,
368        #[rasn(identifier = "nodeProbabilities")]
369        pub node_probabilities: Option<ConfidenceLevels>,
370        #[rasn(identifier = "segmentBehind")]
371        pub segment_behind: PolygonalLine,
372        #[rasn(identifier = "laneLevelDetails")]
373        pub lane_level_details: Option<BasicLaneConfiguration>,
374        #[rasn(value("0.."), identifier = "segmentSource")]
375        pub segment_source: Option<MetaInformation>,
376    }
377    impl EHorizonLocationSharingContainer {
378        pub fn new(
379            segment_ahead: PolygonalLine,
380            node_probabilities: Option<ConfidenceLevels>,
381            segment_behind: PolygonalLine,
382            lane_level_details: Option<BasicLaneConfiguration>,
383            segment_source: Option<MetaInformation>,
384        ) -> Self {
385            Self {
386                segment_ahead,
387                node_probabilities,
388                segment_behind,
389                lane_level_details,
390                segment_source,
391            }
392        }
393    }
394    #[doc = "*"]
395    #[doc = "* This type contains detaild information of the Emergency Container."]
396    #[doc = "*"]
397    #[doc = "* It shall include the following components:"]
398    #[doc = "*"]
399    #[doc = "* @field lightBarSirenInUse: it indicates whether light-bar or a siren is in use by the vehicle originating the CAM."]
400    #[doc = "*"]
401    #[doc = "* @field incidentIndication: the optional incident related to the roadworks to provide additional information of the roadworks zone."]
402    #[doc = "*"]
403    #[doc = "* @field emergencyPriority: the optional component represent right of way indicator of the vehicle ITS-S that originates the CAM PDU."]
404    #[doc = ""]
405    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
406    #[rasn(automatic_tags)]
407    pub struct EmergencyContainer {
408        #[rasn(identifier = "lightBarSirenInUse")]
409        pub light_bar_siren_in_use: LightBarSirenInUse,
410        #[rasn(identifier = "incidentIndication")]
411        pub incident_indication: Option<CauseCodeV2>,
412        #[rasn(identifier = "emergencyPriority")]
413        pub emergency_priority: Option<EmergencyPriority>,
414    }
415    impl EmergencyContainer {
416        pub fn new(
417            light_bar_siren_in_use: LightBarSirenInUse,
418            incident_indication: Option<CauseCodeV2>,
419            emergency_priority: Option<EmergencyPriority>,
420        ) -> Self {
421            Self {
422                light_bar_siren_in_use,
423                incident_indication,
424                emergency_priority,
425            }
426        }
427    }
428    #[doc = "*"]
429    #[doc = "* This DE represents the identifier of the container type."]
430    #[doc = ""]
431    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
432    #[rasn(delegate, value("1..=16", extensible))]
433    pub struct ExtensionContainerId(pub Integer);
434    #[doc = "*"]
435    #[doc = "* This type represents the road lane positions container (CAM v2.3; named GeneralizedLanePositionsContainer up to v2.2)."]
436    #[doc = "*"]
437    #[doc = "* Contains detailed information about the transversal position of the ITS station with respect to the road and potentially about the lane type."]
438    #[doc = ""]
439    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
440    #[rasn(automatic_tags)]
441    #[non_exhaustive]
442    pub struct RoadLanePositionsContainer {
443        #[rasn(identifier = "generalizedLanePositions")]
444        pub generalized_lane_positions: GeneralizedLanePositions,
445    }
446    impl RoadLanePositionsContainer {
447        pub fn new(generalized_lane_positions: GeneralizedLanePositions) -> Self {
448            Self {
449                generalized_lane_positions,
450            }
451        }
452    }
453    #[doc = "*"]
454    #[doc = "* This type represents the high frequency container."]
455    #[doc = "* "]
456    #[doc = "* It shall include the following components: "]
457    #[doc = "*"]
458    #[doc = "* @field basicVehicleContainerHighFrequency: The mandatory high frequency container of the CAM when the originating ITS-S is of the type vehicle ITS-S."]
459    #[doc = "*"]
460    #[doc = "* @field rsuContainerHighFrequency: The mandatory high frequency container of CAM when the type of the originating ITS-S is RSU ITS-S."]
461    #[doc = ""]
462    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
463    #[rasn(choice, automatic_tags)]
464    #[non_exhaustive]
465    pub enum HighFrequencyContainer {
466        basicVehicleContainerHighFrequency(BasicVehicleContainerHighFrequency),
467        rsuContainerHighFrequency(RSUContainerHighFrequency),
468    }
469    #[doc = "*"]
470    #[doc = "* This type represents the low frequency container."]
471    #[doc = "* "]
472    #[doc = "* It shall include the following components: "]
473    #[doc = "*"]
474    #[doc = "* The low frequency container of the CAM when the originating ITS-S is of the type vehicle ITS-S. It shall be present as defined in clause 6.1.2."]
475    #[doc = ""]
476    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
477    #[rasn(choice, automatic_tags)]
478    #[non_exhaustive]
479    pub enum LowFrequencyContainer {
480        #[rasn(value("0.."))]
481        basicVehicleContainerLowFrequency(BasicVehicleContainerLowFrequency),
482    }
483    #[doc = "*"]
484    #[doc = "* This type represents the path prediction container."]
485    #[doc = "*"]
486    #[doc = "* Contains information about the possible future paths of ITS station."]
487    #[doc = ""]
488    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
489    #[rasn(automatic_tags)]
490    #[non_exhaustive]
491    pub struct PathPredictionContainer {
492        #[rasn(identifier = "pathPredictedList")]
493        pub path_predicted_list: PathPredictedList,
494    }
495    impl PathPredictionContainer {
496        pub fn new(path_predicted_list: PathPredictedList) -> Self {
497            Self {
498                path_predicted_list,
499            }
500        }
501    }
502    #[doc = "*"]
503    #[doc = "* This type contains detaild information of the Public Transport Container."]
504    #[doc = "*"]
505    #[doc = "* It shall include the following components:"]
506    #[doc = "*"]
507    #[doc = "* @field embarkationStatus: It indicates whether the passenger embarkation is currently ongoing. "]
508    #[doc = "*"]
509    #[doc = "* @field ptActivation: an optional component used for controlling traffic lights, barriers, bollards, etc."]
510    #[doc = ""]
511    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
512    #[rasn(automatic_tags)]
513    pub struct PublicTransportContainer {
514        #[rasn(identifier = "embarkationStatus")]
515        pub embarkation_status: EmbarkationStatus,
516        #[rasn(identifier = "ptActivation")]
517        pub pt_activation: Option<PtActivation>,
518    }
519    impl PublicTransportContainer {
520        pub fn new(
521            embarkation_status: EmbarkationStatus,
522            pt_activation: Option<PtActivation>,
523        ) -> Self {
524            Self {
525                embarkation_status,
526                pt_activation,
527            }
528        }
529    }
530    #[doc = "*"]
531    #[doc = "* This type contains detaild information of the RSU Container High Frequency."]
532    #[doc = "*"]
533    #[doc = "* It shall include the following components:"]
534    #[doc = "*"]
535    #[doc = "* @field protectedCommunicationZonesRSU: an optional Information about position of a CEN DSRC Tolling Station operating in the 5,8 GHz frequency "]
536    #[doc = "* band. If this information is provided by RSUs a receiving vehicle ITS-S is prepared to adopt mitigation techniques when being in the vicinity of"]
537    #[doc = "* CEN DSRC tolling stations. "]
538    #[doc = ""]
539    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
540    #[rasn(automatic_tags)]
541    #[non_exhaustive]
542    pub struct RSUContainerHighFrequency {
543        #[rasn(identifier = "protectedCommunicationZonesRSU")]
544        pub protected_communication_zones_rsu: Option<ProtectedCommunicationZonesRSU>,
545    }
546    impl RSUContainerHighFrequency {
547        pub fn new(
548            protected_communication_zones_rsu: Option<ProtectedCommunicationZonesRSU>,
549        ) -> Self {
550            Self {
551                protected_communication_zones_rsu,
552            }
553        }
554    }
555    #[doc = "*"]
556    #[doc = "* This type contains detaild information of the Rescue Container."]
557    #[doc = "*"]
558    #[doc = "* It shall include the following components:"]
559    #[doc = "*"]
560    #[doc = "* @field lightBarSirenInUse: it indicates whether light-bar or a siren is in use by the vehicle originating the CAM."]
561    #[doc = ""]
562    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
563    #[rasn(automatic_tags)]
564    pub struct RescueContainer {
565        #[rasn(identifier = "lightBarSirenInUse")]
566        pub light_bar_siren_in_use: LightBarSirenInUse,
567    }
568    impl RescueContainer {
569        pub fn new(light_bar_siren_in_use: LightBarSirenInUse) -> Self {
570            Self {
571                light_bar_siren_in_use,
572            }
573        }
574    }
575    #[doc = "*"]
576    #[doc = "* This type contains detaild information of the Road Works Container Basic."]
577    #[doc = "*"]
578    #[doc = "* It shall include the following components:"]
579    #[doc = "*"]
580    #[doc = "* @field roadworksSubCauseCode: The optional component, in case the originating ITS-S is mounted to a vehicle ITS-S participating to roadwork. It "]
581    #[doc = "* provides information on the type of roadwork that it is currently undertaking. This component shall be present if the data is available in "]
582    #[doc = "* originating ITS S."]
583    #[doc = "*"]
584    #[doc = "* @field lightBarSirenInUse: it indicates whether light-bar or a siren is in use by the vehicle originating the CAM."]
585    #[doc = "*"]
586    #[doc = "* @field closedLanes: an optional component which provides information about the opening/closure status of the lanes ahead. Lanes are counted from"]
587    #[doc = "* the inside boarder of the road. If a lane is closed to traffic, the corresponding bit shall be set to 1."]
588    #[doc = ""]
589    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
590    #[rasn(automatic_tags)]
591    pub struct RoadWorksContainerBasic {
592        #[rasn(identifier = "roadworksSubCauseCode")]
593        pub roadworks_sub_cause_code: Option<RoadworksSubCauseCode>,
594        #[rasn(identifier = "lightBarSirenInUse")]
595        pub light_bar_siren_in_use: LightBarSirenInUse,
596        #[rasn(identifier = "closedLanes")]
597        pub closed_lanes: Option<ClosedLanes>,
598    }
599    impl RoadWorksContainerBasic {
600        pub fn new(
601            roadworks_sub_cause_code: Option<RoadworksSubCauseCode>,
602            light_bar_siren_in_use: LightBarSirenInUse,
603            closed_lanes: Option<ClosedLanes>,
604        ) -> Self {
605            Self {
606                roadworks_sub_cause_code,
607                light_bar_siren_in_use,
608                closed_lanes,
609            }
610        }
611    }
612    #[doc = "*"]
613    #[doc = "* This type contains detaild information of the Safety Car Container."]
614    #[doc = "*"]
615    #[doc = "* It shall include the following components:"]
616    #[doc = "*"]
617    #[doc = "* @field lightBarSirenInUse: it indicates whether light-bar or a siren is in use by the vehicle originating the CAM."]
618    #[doc = "*"]
619    #[doc = "* @field incidentIndication: the optional incident related to the roadworks to provide additional information of the roadworks zone."]
620    #[doc = "*"]
621    #[doc = "* @field trafficRule: an optional rule indicates whether vehicles are allowed to overtake a safety car that is originating this CAM."]
622    #[doc = "*"]
623    #[doc = "* @field speedLimit: an optional speed indicates whether a speed limit is applied to vehicles following the safety car. "]
624    #[doc = ""]
625    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
626    #[rasn(automatic_tags)]
627    pub struct SafetyCarContainer {
628        #[rasn(identifier = "lightBarSirenInUse")]
629        pub light_bar_siren_in_use: LightBarSirenInUse,
630        #[rasn(identifier = "incidentIndication")]
631        pub incident_indication: Option<CauseCodeV2>,
632        #[rasn(identifier = "trafficRule")]
633        pub traffic_rule: Option<TrafficRule>,
634        #[rasn(identifier = "speedLimit")]
635        pub speed_limit: Option<SpeedLimit>,
636    }
637    impl SafetyCarContainer {
638        pub fn new(
639            light_bar_siren_in_use: LightBarSirenInUse,
640            incident_indication: Option<CauseCodeV2>,
641            traffic_rule: Option<TrafficRule>,
642            speed_limit: Option<SpeedLimit>,
643        ) -> Self {
644            Self {
645                light_bar_siren_in_use,
646                incident_indication,
647                traffic_rule,
648                speed_limit,
649            }
650        }
651    }
652    #[doc = "*"]
653    #[doc = "* This type contains detaild information of the Special Transport Container."]
654    #[doc = "*"]
655    #[doc = "* It shall include the following components:"]
656    #[doc = "*"]
657    #[doc = "* @field specialTransportType: which indicates whether the originating ITS-S is mounted on a special transport vehicle with heavy or oversized load"]
658    #[doc = "* or both. It shall be present if the data is available in originating ITS-S."]
659    #[doc = "*"]
660    #[doc = "* @field lightBarSirenInUse: indicates whether light-bar or a siren is in use by the vehicle originating the CAM."]
661    #[doc = ""]
662    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
663    #[rasn(automatic_tags)]
664    pub struct SpecialTransportContainer {
665        #[rasn(identifier = "specialTransportType")]
666        pub special_transport_type: SpecialTransportType,
667        #[rasn(identifier = "lightBarSirenInUse")]
668        pub light_bar_siren_in_use: LightBarSirenInUse,
669    }
670    impl SpecialTransportContainer {
671        pub fn new(
672            special_transport_type: SpecialTransportType,
673            light_bar_siren_in_use: LightBarSirenInUse,
674        ) -> Self {
675            Self {
676                special_transport_type,
677                light_bar_siren_in_use,
678            }
679        }
680    }
681    #[doc = "*"]
682    #[doc = "* This type represent the Special Vehicle Container."]
683    #[doc = "*"]
684    #[doc = "* It shall include the following components:"]
685    #[doc = "*"]
686    #[doc = "* @field publicTransportContainer: If the vehicleRole component is set to publicTransport(1) this container shall be present."]
687    #[doc = "*"]
688    #[doc = "* @field specialTransportContainer: If the vehicleRole component is set to specialTransport(2) this container shall be present."]
689    #[doc = "*"]
690    #[doc = "* @field dangerousGoodsContainer: If the vehicleRole component is set to dangerousGoods(3) this container shall be present."]
691    #[doc = "*"]
692    #[doc = "* @field roadWorksContainerBasic: If the vehicleRole component is set to roadWork(4) this container shall be present. "]
693    #[doc = "*"]
694    #[doc = "* @field rescueContainer: If the vehicleRole component is set to rescue(5) this container shall be present. "]
695    #[doc = "*"]
696    #[doc = "* @field emergencyContainer: If the vehicleRole component is set to emergency(6) this container shall be present."]
697    #[doc = "*"]
698    #[doc = "* @field safetyCarContainer: If the vehicleRole component is set to safetyCar(7) this container shall be present. "]
699    #[doc = ""]
700    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
701    #[rasn(choice, automatic_tags)]
702    #[non_exhaustive]
703    pub enum SpecialVehicleContainer {
704        publicTransportContainer(PublicTransportContainer),
705        specialTransportContainer(SpecialTransportContainer),
706        dangerousGoodsContainer(DangerousGoodsContainer),
707        roadWorksContainerBasic(RoadWorksContainerBasic),
708        rescueContainer(RescueContainer),
709        emergencyContainer(EmergencyContainer),
710        safetyCarContainer(SafetyCarContainer),
711    }
712    #[doc = "*"]
713    #[doc = "* This type contains detailed information about two wheelers. It is meant to use for StationType"]
714    #[doc = "* cyclist, moped and motorcycle."]
715    #[doc = "*"]
716    #[doc = "* It shall include the following components:"]
717    #[doc = "*"]
718    #[doc = "* @field typeSpecificInformation: this data field contains type specific information about two wheelers."]
719    #[doc = "*"]
720    #[doc = "* @field rollAngle: this data field describes the roll angle of the two wheeler."]
721    #[doc = "*"]
722    #[doc = "* @field orientation: this data field describes the orientation of the two wheeler."]
723    #[doc = "*"]
724    #[doc = "* @field stabilityChangeIndication: this data field describes if the two wheeler is about to lose control."]
725    #[doc = "*"]
726    #[doc = ""]
727    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
728    #[rasn(automatic_tags)]
729    #[non_exhaustive]
730    pub struct TwoWheelerContainer {
731        #[rasn(identifier = "typeSpecificInformation")]
732        pub type_specific_information: Option<TwoWheelerTypeSpecificInformation>,
733        #[rasn(identifier = "rollAngle")]
734        pub roll_angle: Option<CartesianAngle>,
735        pub orientation: Option<Wgs84Angle>,
736        #[rasn(identifier = "stabilityChangeIndication")]
737        pub stability_change_indication: Option<StabilityChangeIndication>,
738    }
739    impl TwoWheelerContainer {
740        pub fn new(
741            type_specific_information: Option<TwoWheelerTypeSpecificInformation>,
742            roll_angle: Option<CartesianAngle>,
743            orientation: Option<Wgs84Angle>,
744            stability_change_indication: Option<StabilityChangeIndication>,
745        ) -> Self {
746            Self {
747                type_specific_information,
748                roll_angle,
749                orientation,
750                stability_change_indication,
751            }
752        }
753    }
754    #[doc = "*"]
755    #[doc = "* This type contains type specific information about a two wheeler."]
756    #[doc = "*"]
757    #[doc = "* It includes one of the following components:"]
758    #[doc = "*"]
759    #[doc = "* @field cyclist: it contains cyclist-specific information."]
760    #[doc = "*"]
761    #[doc = ""]
762    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
763    #[rasn(choice, automatic_tags)]
764    #[non_exhaustive]
765    pub enum TwoWheelerTypeSpecificInformation {
766        cyclist(CyclistTypeSpecificInformation),
767    }
768    #[doc = "*"]
769    #[doc = "* This type represents the vehicle movement control container."]
770    #[doc = "*"]
771    #[doc = "* Contains information about the current vehicle movement control status "]
772    #[doc = "* of ITS station."]
773    #[doc = "*  This contains: "]
774    #[doc = "*\t- brake and acceleration pedal position status information"]
775    #[doc = "* \t- mechanism for lateral, longitudinal movements dimensions "]
776    #[doc = "*\t  of the vehicle "]
777    #[doc = ""]
778    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
779    #[rasn(automatic_tags)]
780    #[non_exhaustive]
781    pub struct VehicleMovementControlContainer {
782        #[rasn(identifier = "vehicleMovementControl")]
783        pub vehicle_movement_control: VehicleMovementControl,
784    }
785    impl VehicleMovementControlContainer {
786        pub fn new(vehicle_movement_control: VehicleMovementControl) -> Self {
787            Self {
788                vehicle_movement_control,
789            }
790        }
791    }
792    #[doc = "*"]
793    #[doc = "* This type represents the very low frequency container."]
794    #[doc = "*"]
795    #[doc = "* It shall include the following components:"]
796    #[doc = "*"]
797    #[doc = "* @field vehicleHeight: this component represents the height of the vehicle that originates the CAM."]
798    #[doc = "*"]
799    #[doc = "* @field wiperStatus: this component represents the status of the wipers of the vehicle that originates the CAM, at the time indicated by generationDeltaTime."]
800    #[doc = "*"]
801    #[doc = "* @field brakeControl: this component represents the status of the brake control system of the vehicle that originates the CAM, "]
802    #[doc = "* at the time indicated by generationDeltaTime and during the period 10 seconds before that time."]
803    #[doc = ""]
804    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
805    #[rasn(automatic_tags)]
806    #[non_exhaustive]
807    pub struct VeryLowFrequencyContainer {
808        #[rasn(identifier = "vehicleHeight")]
809        pub vehicle_height: Option<VehicleHeight2>,
810        #[rasn(identifier = "wiperStatus")]
811        pub wiper_status: Option<WiperStatus>,
812        #[rasn(identifier = "brakeControl")]
813        pub brake_control: Option<BrakeControl>,
814    }
815    impl VeryLowFrequencyContainer {
816        pub fn new(
817            vehicle_height: Option<VehicleHeight2>,
818            wiper_status: Option<WiperStatus>,
819            brake_control: Option<BrakeControl>,
820        ) -> Self {
821            Self {
822                vehicle_height,
823                wiper_status,
824                brake_control,
825            }
826        }
827    }
828    #[doc = "*"]
829    #[doc = "* This DF represents a CAM container preceded by its type identifier and a length indicator."]
830    #[doc = "*"]
831    #[doc = "* It shall include the following components:"]
832    #[doc = "*"]
833    #[doc = "* @field containerId: the identifier of the container type."]
834    #[doc = "*"]
835    #[doc = "* @field containerData: the container content consistent with the container type."]
836    #[doc = "*"]
837    #[doc = ""]
838    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
839    #[rasn(automatic_tags)]
840    pub struct WrappedExtensionContainer {
841        #[rasn(identifier = "containerId")]
842        pub container_id: ExtensionContainerId,
843        #[rasn(identifier = "containerData")]
844        pub container_data: Any,
845    }
846    impl WrappedExtensionContainer {
847        pub fn new(container_id: ExtensionContainerId, container_data: Any) -> Self {
848            Self {
849                container_id,
850                container_data,
851            }
852        }
853    }
854    #[doc = "*"]
855    #[doc = "* This DF represents a list of CAM containers, each with their type identifier."]
856    #[doc = ""]
857    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
858    #[rasn(delegate, size("1..=8", extensible))]
859    pub struct WrappedExtensionContainers(pub SequenceOf<WrappedExtensionContainer>);
860    pub static E_HORIZON_LOCATION_SHARING_CONTAINER: LazyLock<ExtensionContainerId> =
861        LazyLock::new(|| ExtensionContainerId(Integer::from(2i128)));
862    pub static GENERALIZED_LANE_POSITIONS_CONTAINER: LazyLock<ExtensionContainerId> =
863        LazyLock::new(|| ExtensionContainerId(Integer::from(5i128)));
864    pub static PATH_PREDICTION_CONTAINER: LazyLock<ExtensionContainerId> =
865        LazyLock::new(|| ExtensionContainerId(Integer::from(4i128)));
866    #[doc = "*"]
867    #[doc = "* These value assignments represent specific values of the container type identifier. "]
868    #[doc = ""]
869    pub static TWO_WHEELER_CONTAINER: LazyLock<ExtensionContainerId> =
870        LazyLock::new(|| ExtensionContainerId(Integer::from(1i128)));
871    pub static VEHICLE_MOVEMENT_CONTROL_CONTAINER: LazyLock<ExtensionContainerId> =
872        LazyLock::new(|| ExtensionContainerId(Integer::from(6i128)));
873    pub static VERY_LOW_FREQUENCY_CONTAINER: LazyLock<ExtensionContainerId> =
874        LazyLock::new(|| ExtensionContainerId(Integer::from(3i128)));
875}
876#[allow(
877    non_camel_case_types,
878    non_snake_case,
879    non_upper_case_globals,
880    unused,
881    clippy::too_many_arguments,
882    clippy::doc_overindented_list_items
883)]
884pub mod etsi_its_cdd {
885    extern crate alloc;
886    use core::borrow::Borrow;
887    use rasn::prelude::*;
888    use std::sync::LazyLock;
889    #[doc = ""]
890    #[doc = ""]
891    #[doc = ""]
892    #[doc = ""]
893    #[doc = ""]
894    #[doc = ""]
895    #[doc = ""]
896    #[doc = ""]
897    #[doc = ""]
898    #[doc = ""]
899    #[doc = " Specification of CDD Data Frames:"]
900    #[doc = ""]
901    #[doc = ""]
902    #[doc = ""]
903    #[doc = ""]
904    #[doc = ""]
905    #[doc = ""]
906    #[doc = ""]
907    #[doc = ""]
908    #[doc = ""]
909    #[doc = ""]
910    #[doc = "*"]
911    #[doc = " * This DF represents an acceleration vector with associated confidence value."]
912    #[doc = " *"]
913    #[doc = " * It shall include the following components: "]
914    #[doc = " * "]
915    #[doc = " * @field polarAcceleration: the representation of the acceleration vector in a polar or cylindrical coordinate system. "]
916    #[doc = " * "]
917    #[doc = " * @field cartesianAcceleration: the representation of the acceleration vector in a cartesian coordinate system."]
918    #[doc = " * "]
919    #[doc = " * @category: Kinematic information"]
920    #[doc = " * @revision: Created in V2.1.1"]
921    #[doc = " "]
922    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
923    #[rasn(choice, automatic_tags)]
924    pub enum Acceleration3dWithConfidence {
925        polarAcceleration(AccelerationPolarWithZ),
926        cartesianAcceleration(AccelerationCartesian),
927    }
928    #[doc = "*"]
929    #[doc = " * This DF represents a acceleration vector in a cartesian coordinate system."]
930    #[doc = " "]
931    #[doc = " * It shall include the following components: "]
932    #[doc = " * "]
933    #[doc = " * @field xAcceleration: the x component of the acceleration vector with the associated confidence value."]
934    #[doc = " * "]
935    #[doc = " * @field yAcceleration: the y component of the acceleration vector with the associated confidence value."]
936    #[doc = " *"]
937    #[doc = " * @field zAcceleration: the optional z component of the acceleration vector with the associated confidence value."]
938    #[doc = " * "]
939    #[doc = " * @category: Kinematic information"]
940    #[doc = " * @revision: Created in V2.1.1"]
941    #[doc = " "]
942    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
943    #[rasn(automatic_tags)]
944    pub struct AccelerationCartesian {
945        #[rasn(identifier = "xAcceleration")]
946        pub x_acceleration: AccelerationComponent,
947        #[rasn(identifier = "yAcceleration")]
948        pub y_acceleration: AccelerationComponent,
949        #[rasn(identifier = "zAcceleration")]
950        pub z_acceleration: Option<AccelerationComponent>,
951    }
952    impl AccelerationCartesian {
953        pub fn new(
954            x_acceleration: AccelerationComponent,
955            y_acceleration: AccelerationComponent,
956            z_acceleration: Option<AccelerationComponent>,
957        ) -> Self {
958            Self {
959                x_acceleration,
960                y_acceleration,
961                z_acceleration,
962            }
963        }
964    }
965    #[doc = ""]
966    #[doc = ""]
967    #[doc = ""]
968    #[doc = ""]
969    #[doc = ""]
970    #[doc = ""]
971    #[doc = ""]
972    #[doc = ""]
973    #[doc = ""]
974    #[doc = ""]
975    #[doc = ""]
976    #[doc = " Specification of CDD Data Elements: "]
977    #[doc = ""]
978    #[doc = ""]
979    #[doc = ""]
980    #[doc = ""]
981    #[doc = ""]
982    #[doc = ""]
983    #[doc = ""]
984    #[doc = ""]
985    #[doc = ""]
986    #[doc = ""]
987    #[doc = ""]
988    #[doc = "* "]
989    #[doc = " * This DE indicates a change of acceleration."]
990    #[doc = " *"]
991    #[doc = " * The value shall be set to:"]
992    #[doc = " * - 0 - `accelerate` - if the magnitude of the horizontal velocity vector increases."]
993    #[doc = " * - 1 - `decelerate` - if the magnitude of the horizontal velocity vector decreases."]
994    #[doc = " *"]
995    #[doc = " * @category: Kinematic information"]
996    #[doc = " * @revision: Created in V2.1.1"]
997    #[doc = ""]
998    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
999    #[rasn(enumerated)]
1000    pub enum AccelerationChange {
1001        accelerate = 0,
1002        decelerate = 1,
1003    }
1004    #[doc = "* "]
1005    #[doc = " * This DF represents information associated to changes in acceleration. "]
1006    #[doc = " *"]
1007    #[doc = " * It shall include the following components: "]
1008    #[doc = " *"]
1009    #[doc = " * @field accelOrDecel: the indication of an acceleration change."]
1010    #[doc = " *"]
1011    #[doc = " * @field actionDeltaTime: the period over which the acceleration change action is performed."]
1012    #[doc = " *"]
1013    #[doc = " * @category: Kinematic Information"]
1014    #[doc = " * @revision: Created in V2.1.1"]
1015    #[doc = " "]
1016    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1017    #[rasn(automatic_tags)]
1018    #[non_exhaustive]
1019    pub struct AccelerationChangeIndication {
1020        #[rasn(identifier = "accelOrDecel")]
1021        pub accel_or_decel: AccelerationChange,
1022        #[rasn(identifier = "actionDeltaTime")]
1023        pub action_delta_time: DeltaTimeTenthOfSecond,
1024    }
1025    impl AccelerationChangeIndication {
1026        pub fn new(
1027            accel_or_decel: AccelerationChange,
1028            action_delta_time: DeltaTimeTenthOfSecond,
1029        ) -> Self {
1030            Self {
1031                accel_or_decel,
1032                action_delta_time,
1033            }
1034        }
1035    }
1036    #[doc = "* "]
1037    #[doc = " * This DF represents an acceleration component along with a confidence value."]
1038    #[doc = " *"]
1039    #[doc = " * It shall include the following components: "]
1040    #[doc = " *"]
1041    #[doc = " * @field value: the value of the acceleration component which can be estimated as the mean of the current distribution."]
1042    #[doc = " *"]
1043    #[doc = " * @field confidence: the confidence value associated to the provided value."]
1044    #[doc = " *"]
1045    #[doc = " * @category: Kinematic Information"]
1046    #[doc = " * @revision: Created in V2.1.1"]
1047    #[doc = " "]
1048    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1049    #[rasn(automatic_tags)]
1050    pub struct AccelerationComponent {
1051        pub value: AccelerationValue,
1052        pub confidence: AccelerationConfidence,
1053    }
1054    impl AccelerationComponent {
1055        pub fn new(value: AccelerationValue, confidence: AccelerationConfidence) -> Self {
1056            Self { value, confidence }
1057        }
1058    }
1059    #[doc = "*"]
1060    #[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 %. "]
1061    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
1062    #[doc = " *"]
1063    #[doc = " * The value shall be set to:"]
1064    #[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,"]
1065    #[doc = " * - `101` if the confidence value is out of range i.e. greater than 10 m/s^2,"]
1066    #[doc = " * - `102` if the confidence value is unavailable."]
1067    #[doc = " *"]
1068    #[doc = " * The value 0 shall not be used."]
1069    #[doc = " *"]
1070    #[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:"]
1071    #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
1072    #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
1073    #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
1074    #[doc = " * In all 3 cases above, the acceleration value may be valid and used by the application."]
1075    #[doc = " * "]
1076    #[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."]
1077    #[doc = " *"]
1078    #[doc = " * @unit 0,1 m/s^2"]
1079    #[doc = " * @category: Kinematic information"]
1080    #[doc = " * @revision: Description revised in V2.1.1"]
1081    #[doc = " "]
1082    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1083    #[rasn(delegate, value("0..=102"))]
1084    pub struct AccelerationConfidence(pub u8);
1085    #[doc = "*"]
1086    #[doc = " * This DE indicates the status of the controlling mechanisms for longitudinal movement of the vehicle."]
1087    #[doc = " * The data may be provided via the in-vehicle network. It indicates whether a specific in-vehicle"]
1088    #[doc = " * acceleration control system is engaged or not. "]
1089    #[doc = " *"]
1090    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
1091    #[doc = " * - 0 - `brakePedalEngaged`      - Driver is stepping on the brake pedal,"]
1092    #[doc = " * - 1 - `gasPedalEngaged`        - Driver is stepping on the gas pedal,"]
1093    #[doc = " * - 2 - `emergencyBrakeEngaged`  - emergency brake system is engaged,"]
1094    #[doc = " * - 3 - `collisionWarningEngaged`- collision warning system is engaged,"]
1095    #[doc = " * - 4 - `accEngaged`             - ACC is engaged,"]
1096    #[doc = " * - 5 - `cruiseControlEngaged`   - cruise control is engaged,"]
1097    #[doc = " * - 6 - `speedLimiterEngaged`    - speed limiter is engaged."]
1098    #[doc = " *"]
1099    #[doc = " * Otherwise (for example when the corresponding system is not available due to non equipped system"]
1100    #[doc = " * or information is unavailable), the corresponding bit shall be set to 0."]
1101    #[doc = " *"]
1102    #[doc = " * @note: The system engagement condition is OEM specific and therefore out of scope of the present document."]
1103    #[doc = " * @category: Vehicle information"]
1104    #[doc = " * @revision: V1.3.1, description revised in V2.3.1"]
1105    #[doc = " "]
1106    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1107    #[rasn(delegate)]
1108    pub struct AccelerationControl(pub FixedBitString<7usize>);
1109    #[doc = "*"]
1110    #[doc = " * This DE represents the extension of DE AccelerationControl and should only be used together with DE AccelerationControl."]
1111    #[doc = " *"]
1112    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
1113    #[doc = " * - 0  - `rearCrossTrafficAlertEngaged`       - rear cross traffic alert system is engaged"]
1114    #[doc = " * - 1  - `emergencyBrakeRearEngaged`          - emergency brake system for rear driving is engaged"]
1115    #[doc = " * - 2  - `assistedParkingLongitudinalEngaged` - assisted parking system (longitudinal control) is engaged"]
1116    #[doc = " *"]
1117    #[doc = " * Otherwise (for example when the corresponding system is not available due to non-equipped system "]
1118    #[doc = " * or information is unavailable), the corresponding bit shall be set to 0. "]
1119    #[doc = " *"]
1120    #[doc = " * @category: Vehicle information"]
1121    #[doc = " * @revision: Created in V2.3.1"]
1122    #[doc = " "]
1123    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1124    #[rasn(delegate, size("3", extensible))]
1125    pub struct AccelerationControlExtension(pub BitString);
1126    #[doc = "*"]
1127    #[doc = " * This DF represents the magnitude of the acceleration vector and associated confidence value."]
1128    #[doc = " *"]
1129    #[doc = " * It shall include the following components: "]
1130    #[doc = " * "]
1131    #[doc = " * @field accelerationMagnitudeValue: the magnitude of the acceleration vector."]
1132    #[doc = " * "]
1133    #[doc = " * @field accelerationConfidence: the confidence value of the magnitude value."]
1134    #[doc = " *"]
1135    #[doc = " * @category: Kinematic information"]
1136    #[doc = " * @revision: Created in V2.1.1"]
1137    #[doc = " "]
1138    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1139    #[rasn(automatic_tags)]
1140    pub struct AccelerationMagnitude {
1141        #[rasn(identifier = "accelerationMagnitudeValue")]
1142        pub acceleration_magnitude_value: AccelerationMagnitudeValue,
1143        #[rasn(identifier = "accelerationConfidence")]
1144        pub acceleration_confidence: AccelerationConfidence,
1145    }
1146    impl AccelerationMagnitude {
1147        pub fn new(
1148            acceleration_magnitude_value: AccelerationMagnitudeValue,
1149            acceleration_confidence: AccelerationConfidence,
1150        ) -> Self {
1151            Self {
1152                acceleration_magnitude_value,
1153                acceleration_confidence,
1154            }
1155        }
1156    }
1157    #[doc = "* "]
1158    #[doc = " * This DE represents the magnitude of the acceleration vector in a defined coordinate system."]
1159    #[doc = " *"]
1160    #[doc = " * The value shall be set to:"]
1161    #[doc = " * - `0` to indicate no acceleration,"]
1162    #[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,"]
1163    #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
1164    #[doc = " * - `161` when the data is unavailable."]
1165    #[doc = " *"]
1166    #[doc = " * @unit 0,1 m/s^2"]
1167    #[doc = " * @category: Kinematic information"]
1168    #[doc = " * @revision: Created in V2.1.1"]
1169    #[doc = ""]
1170    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1171    #[rasn(delegate, value("0..=161"))]
1172    pub struct AccelerationMagnitudeValue(pub u8);
1173    #[doc = "*"]
1174    #[doc = " * This DF represents an acceleration vector in a polar or cylindrical coordinate system."]
1175    #[doc = " "]
1176    #[doc = " * It shall include the following components: "]
1177    #[doc = " * "]
1178    #[doc = " * @field accelerationMagnitude: magnitude of the acceleration vector projected onto the reference plane, with the associated confidence value."]
1179    #[doc = " * "]
1180    #[doc = " * @field accelerationDirection: polar angle of the acceleration vector projected onto the reference plane, with the associated confidence value."]
1181    #[doc = " *"]
1182    #[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."]
1183    #[doc = " * "]
1184    #[doc = " * @category: Kinematic information"]
1185    #[doc = " * @revision: Created in V2.1.1"]
1186    #[doc = " "]
1187    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1188    #[rasn(automatic_tags)]
1189    pub struct AccelerationPolarWithZ {
1190        #[rasn(identifier = "accelerationMagnitude")]
1191        pub acceleration_magnitude: AccelerationMagnitude,
1192        #[rasn(identifier = "accelerationDirection")]
1193        pub acceleration_direction: CartesianAngle,
1194        #[rasn(identifier = "zAcceleration")]
1195        pub z_acceleration: Option<AccelerationComponent>,
1196    }
1197    impl AccelerationPolarWithZ {
1198        pub fn new(
1199            acceleration_magnitude: AccelerationMagnitude,
1200            acceleration_direction: CartesianAngle,
1201            z_acceleration: Option<AccelerationComponent>,
1202        ) -> Self {
1203            Self {
1204                acceleration_magnitude,
1205                acceleration_direction,
1206                z_acceleration,
1207            }
1208        }
1209    }
1210    #[doc = "* "]
1211    #[doc = " * This DE represents the value of an acceleration component in a defined coordinate system."]
1212    #[doc = " *"]
1213    #[doc = " * The value shall be set to:"]
1214    #[doc = " * - `-160` for acceleration values equal to or less than -16 m/s^2,"]
1215    #[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,"]
1216    #[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,"]
1217    #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
1218    #[doc = " * - `161` when the data is unavailable."]
1219    #[doc = " *"]
1220    #[doc = " * @note: the formula for values > -160 and <160 results in rounding up to the next value. Zero acceleration is indicated using n=0."]
1221    #[doc = " * @unit 0,1 m/s^2"]
1222    #[doc = " * @category: Kinematic information"]
1223    #[doc = " * @revision: Created in V2.1.1"]
1224    #[doc = ""]
1225    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1226    #[rasn(delegate, value("-160..=161"))]
1227    pub struct AccelerationValue(pub i16);
1228    #[doc = "*"]
1229    #[doc = " * This DE indicates an access technology."]
1230    #[doc = " *"]
1231    #[doc = " * The value shall be set to:"]
1232    #[doc = " * - `0`: in case of any access technology class,"]
1233    #[doc = " * - `1`: in case of ITS-G5 access technology class,"]
1234    #[doc = " * - `2`: in case of LTE-V2X access technology class,"]
1235    #[doc = " * - `3`: in case of NR-V2X access technology class."]
1236    #[doc = " * "]
1237    #[doc = " * @category: Communication information"]
1238    #[doc = " * @revision: Created in V2.1.1"]
1239    #[doc = " "]
1240    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1241    #[rasn(enumerated)]
1242    #[non_exhaustive]
1243    pub enum AccessTechnologyClass {
1244        any = 0,
1245        itsg5Class = 1,
1246        ltev2xClass = 2,
1247        nrv2xClass = 3,
1248    }
1249    #[doc = "*"]
1250    #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `accident`."]
1251    #[doc = " *"]
1252    #[doc = " * The value shall be set to:"]
1253    #[doc = " * - 0 - `unavailable`                        - in case the information on the sub cause of the accident is unavailable,"]
1254    #[doc = " * - 1 - `multiVehicleAccident`               - in case more than two vehicles are involved in accident,"]
1255    #[doc = " * - 2 - `heavyAccident`                      - in case the airbag of the vehicle involved in the accident is triggered, "]
1256    #[doc = " *                                              the accident requires important rescue and/or recovery work,"]
1257    #[doc = " * - 3 - `accidentInvolvingLorry`             - in case the accident involves a lorry,"]
1258    #[doc = " * - 4 - `accidentInvolvingBus`               - in case the accident involves a bus,"]
1259    #[doc = " * - 5 - `accidentInvolvingHazardousMaterials`- in case the accident involves hazardous material,"]
1260    #[doc = " * - 6 - `accidentOnOppositeLane-deprecated`  - deprecated,"]
1261    #[doc = " * - 7 - `unsecuredAccident`                  - in case the accident is not secured,"]
1262    #[doc = " * - 8 - `assistanceRequested`                - in case rescue and assistance are requested,"]
1263    #[doc = " * - 9-255                                    - reserved for future usage. "]
1264    #[doc = " *"]
1265    #[doc = " * @category: Traffic information"]
1266    #[doc = " * @revision: V1.3.1, value 6 deprecated in V2.4.1"]
1267    #[doc = " "]
1268    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1269    #[rasn(delegate, value("0..=255"))]
1270    pub struct AccidentSubCauseCode(pub u8);
1271    #[doc = "*"]
1272    #[doc = " * This DF represents an identifier used to describe a protocol action taken by an ITS-S."]
1273    #[doc = " * "]
1274    #[doc = " * It shall include the following components: "]
1275    #[doc = " *"]
1276    #[doc = " * @field originatingStationId: Id of the ITS-S that takes the action. "]
1277    #[doc = " * "]
1278    #[doc = " * @field sequenceNumber: a sequence number. "]
1279    #[doc = " * "]
1280    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref ActionId instead. "]
1281    #[doc = " * @category: Communication information"]
1282    #[doc = " * @revision: V1.3.1"]
1283    #[doc = " "]
1284    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1285    #[rasn(automatic_tags)]
1286    pub struct ActionID {
1287        #[rasn(identifier = "originatingStationId")]
1288        pub originating_station_id: StationID,
1289        #[rasn(identifier = "sequenceNumber")]
1290        pub sequence_number: SequenceNumber,
1291    }
1292    impl ActionID {
1293        pub fn new(originating_station_id: StationID, sequence_number: SequenceNumber) -> Self {
1294            Self {
1295                originating_station_id,
1296                sequence_number,
1297            }
1298        }
1299    }
1300    #[doc = "*"]
1301    #[doc = " * This DF represents an identifier used to describe a protocol action taken by an ITS-S."]
1302    #[doc = " * "]
1303    #[doc = " * It shall include the following components: "]
1304    #[doc = " *"]
1305    #[doc = " * @field originatingStationId: Id of the ITS-S that takes the action. "]
1306    #[doc = " * "]
1307    #[doc = " * @field sequenceNumber: a sequence number. "]
1308    #[doc = " * "]
1309    #[doc = " * @category: Communication information"]
1310    #[doc = " * @revision: Created in V2.1.1 based on @ref ActionID."]
1311    #[doc = " "]
1312    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1313    #[rasn(automatic_tags)]
1314    pub struct ActionId {
1315        #[rasn(identifier = "originatingStationId")]
1316        pub originating_station_id: StationId,
1317        #[rasn(identifier = "sequenceNumber")]
1318        pub sequence_number: SequenceNumber,
1319    }
1320    impl ActionId {
1321        pub fn new(originating_station_id: StationId, sequence_number: SequenceNumber) -> Self {
1322            Self {
1323                originating_station_id,
1324                sequence_number,
1325            }
1326        }
1327    }
1328    #[doc = "*"]
1329    #[doc = " * This DF shall contain a list of @ref ActionId. "]
1330    #[doc = ""]
1331    #[doc = " * @category: Communication Information"]
1332    #[doc = " * @revision: Created in V2.1.1 based on ReferenceDenms from DENM Release 1"]
1333    #[doc = ""]
1334    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1335    #[rasn(delegate, size("1..=8", extensible))]
1336    pub struct ActionIdList(pub SequenceOf<ActionId>);
1337    #[doc = "*"]
1338    #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `adhesion`. "]
1339    #[doc = " * "]
1340    #[doc = " * The value shall be set to:"]
1341    #[doc = " * - 0 - `unavailable`     - in case information on the cause of the low road adhesion is unavailable,"]
1342    #[doc = " * - 1 - `heavyFrostOnRoad`- in case the low road adhesion is due to heavy frost on the road,"]
1343    #[doc = " * - 2 - `fuelOnRoad`      - in case the low road adhesion is due to fuel on the road,"]
1344    #[doc = " * - 3 - `mudOnRoad`       - in case the low road adhesion is due to mud on the road,"]
1345    #[doc = " * - 4 - `snowOnRoad`      - in case the low road adhesion is due to snow on the road,"]
1346    #[doc = " * - 5 - `iceOnRoad`       - in case the low road adhesion is due to ice on the road,"]
1347    #[doc = " * - 6 - `blackIceOnRoad`  - in case the low road adhesion is due to black ice on the road,"]
1348    #[doc = " * - 7 - `oilOnRoad`       - in case the low road adhesion is due to oil on the road,"]
1349    #[doc = " * - 8 - `looseChippings`  - in case the low road adhesion is due to loose gravel or stone fragments on the road,"]
1350    #[doc = " * - 9 - `instantBlackIce` - in case the low road adhesion is due to instant black ice on the road surface,"]
1351    #[doc = " * - 10 - `roadsSalted`    - when the low road adhesion is due to salted road,"]
1352    #[doc = " * - 11 - `flooding`       - in case low road adhesion is due to flooding of the road,"]
1353    #[doc = " * - 12 - `waterOnRoad`    - in case low road adhesion is due to a shallow layer of standing water on the road (not flooding). "]
1354    #[doc = " * - 12-255                - are reserved for future usage."]
1355    #[doc = " *"]
1356    #[doc = " * @category: Traffic information"]
1357    #[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 "]
1358    #[doc = " "]
1359    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1360    #[rasn(delegate, value("0..=255"))]
1361    pub struct AdhesionSubCauseCode(pub u8);
1362    #[doc = "*"]
1363    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-Precipitation`. "]
1364    #[doc = " *"]
1365    #[doc = " * The value shall be set to:"]
1366    #[doc = " * - 0 - `unavailable`   - in case information on the type of precipitation is unavailable,"]
1367    #[doc = " * - 1 - `rain`          - in case the type of precipitation is rain,"]
1368    #[doc = " * - 2 - `snowfall`      - in case the type of precipitation is snowfall,"]
1369    #[doc = " * - 3 - `hail`          - in case the type of precipitation is hail."]
1370    #[doc = " * - 4-255               - are reserved for future usage"]
1371    #[doc = " *"]
1372    #[doc = " * @category: Traffic information"]
1373    #[doc = " * @revision: V1.3.1, values 1,2,3 renamed in V2.4.1"]
1374    #[doc = " "]
1375    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1376    #[rasn(
1377        delegate,
1378        identifier = "AdverseWeatherCondition-PrecipitationSubCauseCode",
1379        value("0..=255")
1380    )]
1381    pub struct AdverseWeatherConditionPrecipitationSubCauseCode(pub u8);
1382    #[doc = "*"]
1383    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-Visibility`."]
1384    #[doc = " *"]
1385    #[doc = " * The value shall be set to:"]
1386    #[doc = " * - 0 - `unavailable`    - in case information on the cause of low visibility is unavailable,"]
1387    #[doc = " * - 1 - `fog`            - in case the cause of low visibility is fog,"]
1388    #[doc = " * - 2 - `smoke`          - in case the cause of low visibility is smoke,"]
1389    #[doc = " * - 3 - `snowfall`       - in case the cause of low visibility is snow fall,"]
1390    #[doc = " * - 4 - `rain`           - in case the cause of low visibility is rain,"]
1391    #[doc = " * - 5 - `hail`           - in case the cause of low visibility is hail,"]
1392    #[doc = " * - 6 - `lowSunGlare`    - in case the cause of low visibility is sun glare,"]
1393    #[doc = " * - 7 - `sandstorms`     - in case the cause of low visibility is sand storm,"]
1394    #[doc = " * - 8 - `swarmsOfInsects`- in case the cause of low visibility is swarm of insects."]
1395    #[doc = " * - 9-255                - are reserved for future usage"]
1396    #[doc = " *"]
1397    #[doc = " * @category: Traffic information"]
1398    #[doc = " * @revision: V1.3.1, values 3, 4, 5 renamed in V2.4.1"]
1399    #[doc = " "]
1400    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1401    #[rasn(
1402        delegate,
1403        identifier = "AdverseWeatherCondition-VisibilitySubCauseCode",
1404        value("0..=255")
1405    )]
1406    pub struct AdverseWeatherConditionVisibilitySubCauseCode(pub u8);
1407    #[doc = "*"]
1408    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-Wind`."]
1409    #[doc = " *"]
1410    #[doc = " * The value shall be set to:"]
1411    #[doc = " * - 0 - `unavailable`             - in case information on the type of wind is unavailable,"]
1412    #[doc = " * - 1 - `strongWinds`             - in case the type of wind is strong wind such as gale or storm (e.g. Beaufort scale number 9-11),"]
1413    #[doc = " * - 2 - `damagingHail-deprecated` - deprecated since not representing a wind related event,"]
1414    #[doc = " * - 3 - `hurricane`               - in case the type of storm is hurricane (e.g. Beaufort scale number 12),"]
1415    #[doc = " * - 4 - `thunderstorm`            - in case the type of storm is thunderstorm,"]
1416    #[doc = " * - 5 - `tornado`                 - in case the type of storm is tornado,"]
1417    #[doc = " * - 6 - `blizzard`                - in case the type of storm is blizzard."]
1418    #[doc = " * - 7-255                         - are reserved for future usage."]
1419    #[doc = " *"]
1420    #[doc = " * @category: Traffic information"]
1421    #[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"]
1422    #[doc = " "]
1423    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1424    #[rasn(
1425        delegate,
1426        identifier = "AdverseWeatherCondition-WindSubCauseCode",
1427        value("0..=255")
1428    )]
1429    pub struct AdverseWeatherConditionWindSubCauseCode(pub u8);
1430    #[doc = "*"]
1431    #[doc = " * This DE represents the air humidity in tenths of percent."]
1432    #[doc = " *"]
1433    #[doc = " * The value shall be set to:"]
1434    #[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."]
1435    #[doc = " * - `1001` indicates that the air humidity is unavailable."]
1436    #[doc = " *"]
1437    #[doc = " * @category: Basic information"]
1438    #[doc = " * @unit: 0,1 % "]
1439    #[doc = " * @revision: created in V2.1.1"]
1440    #[doc = " "]
1441    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1442    #[rasn(delegate, value("1..=1001"))]
1443    pub struct AirHumidity(pub u16);
1444    #[doc = "*"]
1445    #[doc = " * This DF provides the altitude and confidence level of an altitude information in a WGS84 coordinate system."]
1446    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
1447    #[doc = " *"]
1448    #[doc = " * It shall include the following components: "]
1449    #[doc = " *"]
1450    #[doc = " * @field altitudeValue: altitude of a geographical point."]
1451    #[doc = " *"]
1452    #[doc = " * @field altitudeConfidence: confidence level of the altitudeValue."]
1453    #[doc = " *"]
1454    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref AltitudeWithConfidence instead. "]
1455    #[doc = " * @category: GeoReference information"]
1456    #[doc = " * @revision: Description revised in V2.1.1"]
1457    #[doc = " "]
1458    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1459    #[rasn(automatic_tags)]
1460    pub struct Altitude {
1461        #[rasn(identifier = "altitudeValue")]
1462        pub altitude_value: AltitudeValue,
1463        #[rasn(identifier = "altitudeConfidence")]
1464        pub altitude_confidence: AltitudeConfidence,
1465    }
1466    impl Altitude {
1467        pub fn new(altitude_value: AltitudeValue, altitude_confidence: AltitudeConfidence) -> Self {
1468            Self {
1469                altitude_value,
1470                altitude_confidence,
1471            }
1472        }
1473    }
1474    #[doc = "*"]
1475    #[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 %."]
1476    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
1477    #[doc = " *"]
1478    #[doc = " * The value shall be set to: "]
1479    #[doc = " *   - 0  - `alt-000-01`   - if the confidence value is equal to or less than 0,01 metre,"]
1480    #[doc = " *   - 1  - `alt-000-02`   - if the confidence value is equal to or less than 0,02 metre and greater than 0,01 metre,"]
1481    #[doc = " *   - 2  - `alt-000-05`   - if the confidence value is equal to or less than 0,05 metre and greater than 0,02 metre,            "]
1482    #[doc = " *   - 3  - `alt-000-10`   - if the confidence value is equal to or less than 0,1 metre and greater than 0,05 metre,            "]
1483    #[doc = " *   - 4  - `alt-000-20`   - if the confidence value is equal to or less than 0,2 metre and greater than 0,1 metre,            "]
1484    #[doc = " *   - 5  - `alt-000-50`   - if the confidence value is equal to or less than 0,5 metre and greater than 0,2 metre,             "]
1485    #[doc = " *   - 6  - `alt-001-00`   - if the confidence value is equal to or less than 1 metre and greater than 0,5 metre,             "]
1486    #[doc = " *   - 7  - `alt-002-00`   - if the confidence value is equal to or less than 2 metres and greater than 1 metre,             "]
1487    #[doc = " *   - 8  - `alt-005-00`   - if the confidence value is equal to or less than 5 metres and greater than 2 metres,              "]
1488    #[doc = " *   - 9  - `alt-010-00`   - if the confidence value is equal to or less than 10 metres and greater than 5 metres,             "]
1489    #[doc = " *   - 10 - `alt-020-00`   - if the confidence value is equal to or less than 20 metres and greater than 10 metres,            "]
1490    #[doc = " *   - 11 - `alt-050-00`   - if the confidence value is equal to or less than 50 metres and greater than 20 metres,            "]
1491    #[doc = " *   - 12 - `alt-100-00`   - if the confidence value is equal to or less than 100 metres and greater than 50 metres,           "]
1492    #[doc = " *   - 13 - `alt-200-00`   - if the confidence value is equal to or less than 200 metres and greater than 100 metres,           "]
1493    #[doc = " *   - 14 - `outOfRange`   - if the confidence value is out of range, i.e. greater than 200 metres,"]
1494    #[doc = " *   - 15 - `unavailable`  - if the confidence value is unavailable.       "]
1495    #[doc = " *"]
1496    #[doc = " * @note: The fact that an altitude value is received with confidence value set to `unavailable(15)` can be caused"]
1497    #[doc = " * by several reasons, such as:"]
1498    #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
1499    #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
1500    #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
1501    #[doc = " * In all 3 cases above, the altitude value may be valid and used by the application."]
1502    #[doc = " * "]
1503    #[doc = " * @note: If an altitude value is received and its confidence value is set to `outOfRange(14)`, it means that the  "]
1504    #[doc = " * altitude value is not valid and therefore cannot be trusted. Such value is not useful for the application.             "]
1505    #[doc = " *"]
1506    #[doc = " * @category: GeoReference information"]
1507    #[doc = " * @revision: Description revised in V2.1.1"]
1508    #[doc = " "]
1509    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1510    #[rasn(enumerated)]
1511    pub enum AltitudeConfidence {
1512        #[rasn(identifier = "alt-000-01")]
1513        alt_000_01 = 0,
1514        #[rasn(identifier = "alt-000-02")]
1515        alt_000_02 = 1,
1516        #[rasn(identifier = "alt-000-05")]
1517        alt_000_05 = 2,
1518        #[rasn(identifier = "alt-000-10")]
1519        alt_000_10 = 3,
1520        #[rasn(identifier = "alt-000-20")]
1521        alt_000_20 = 4,
1522        #[rasn(identifier = "alt-000-50")]
1523        alt_000_50 = 5,
1524        #[rasn(identifier = "alt-001-00")]
1525        alt_001_00 = 6,
1526        #[rasn(identifier = "alt-002-00")]
1527        alt_002_00 = 7,
1528        #[rasn(identifier = "alt-005-00")]
1529        alt_005_00 = 8,
1530        #[rasn(identifier = "alt-010-00")]
1531        alt_010_00 = 9,
1532        #[rasn(identifier = "alt-020-00")]
1533        alt_020_00 = 10,
1534        #[rasn(identifier = "alt-050-00")]
1535        alt_050_00 = 11,
1536        #[rasn(identifier = "alt-100-00")]
1537        alt_100_00 = 12,
1538        #[rasn(identifier = "alt-200-00")]
1539        alt_200_00 = 13,
1540        outOfRange = 14,
1541        unavailable = 15,
1542    }
1543    #[doc = "*"]
1544    #[doc = " * This DE represents the altitude value in a WGS84 coordinate system."]
1545    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
1546    #[doc = " *"]
1547    #[doc = " * The value shall be set to: "]
1548    #[doc = " * - `-100 000` if the altitude is equal to or less than -1 000 m,"]
1549    #[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,"]
1550    #[doc = " * - `800 000` if the altitude  greater than 7 999,99 m,"]
1551    #[doc = " * - `800 001` if the information is not available."]
1552    #[doc = " *"]
1553    #[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."]
1554    #[doc = " * @unit: 0,01 metre"]
1555    #[doc = " * @category: GeoReference information"]
1556    #[doc = " * @revision: Description revised in V2.1.1 (definition of 800 000 has slightly changed) "]
1557    #[doc = " "]
1558    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1559    #[rasn(delegate, value("-100000..=800001"))]
1560    pub struct AltitudeValue(pub i32);
1561    #[doc = "* "]
1562    #[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 %."]
1563    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
1564    #[doc = " *"]
1565    #[doc = " * The value shall be set to: "]
1566    #[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,"]
1567    #[doc = " * - `126` if the  accuracy is out of range, i.e. greater than 12,5 degrees,"]
1568    #[doc = " * - `127` if the accuracy information is not available."]
1569    #[doc = " *"]
1570    #[doc = " * @unit: 0,1 degrees"]
1571    #[doc = " * @category: Basic information"]
1572    #[doc = " * @revision: Created in V2.1.1"]
1573    #[doc = ""]
1574    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1575    #[rasn(delegate, value("1..=127"))]
1576    pub struct AngleConfidence(pub u8);
1577    #[doc = "* "]
1578    #[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 %."]
1579    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
1580    #[doc = " * For correlation computation, maximum interval levels shall be assumed."]
1581    #[doc = " *"]
1582    #[doc = " * The value shall be set to:"]
1583    #[doc = " * - 0 - `degSecSquared-01` - if the accuracy is equal to or less than 1 degree/second^2,"]
1584    #[doc = " * - 1 - `degSecSquared-02` - if the accuracy is equal to or less than 2 degrees/second^2 and greater than 1 degree/second^2,"]
1585    #[doc = " * - 2 - `degSecSquared-05` - if the accuracy is equal to or less than 5 degrees/second^2 and greater than 1 degree/second^2,"]
1586    #[doc = " * - 3 - `degSecSquared-10` - if the accuracy is equal to or less than 10 degrees/second^2 and greater than 5 degrees/second^2,"]
1587    #[doc = " * - 4 - `degSecSquared-20` - if the accuracy is equal to or less than 20 degrees/second^2 and greater than 10 degrees/second^2,"]
1588    #[doc = " * - 5 - `degSecSquared-50` - if the accuracy is equal to or less than 50 degrees/second^2 and greater than 20 degrees/second^2,"]
1589    #[doc = " * - 6 - `outOfRange`       - if the accuracy is out of range, i.e. greater than 50 degrees/second^2,"]
1590    #[doc = " * - 7 - `unavailable`      - if the accuracy information is unavailable."]
1591    #[doc = " *"]
1592    #[doc = " * @category: Kinematic information"]
1593    #[doc = " * @revision: Created in V2.1.1"]
1594    #[doc = ""]
1595    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1596    #[rasn(enumerated)]
1597    pub enum AngularAccelerationConfidence {
1598        #[rasn(identifier = "degSecSquared-01")]
1599        degSecSquared_01 = 0,
1600        #[rasn(identifier = "degSecSquared-02")]
1601        degSecSquared_02 = 1,
1602        #[rasn(identifier = "degSecSquared-05")]
1603        degSecSquared_05 = 2,
1604        #[rasn(identifier = "degSecSquared-10")]
1605        degSecSquared_10 = 3,
1606        #[rasn(identifier = "degSecSquared-20")]
1607        degSecSquared_20 = 4,
1608        #[rasn(identifier = "degSecSquared-50")]
1609        degSecSquared_50 = 5,
1610        outOfRange = 6,
1611        unavailable = 7,
1612    }
1613    #[doc = "* "]
1614    #[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 %."]
1615    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
1616    #[doc = " * For correlation computation, maximum interval levels can be assumed."]
1617    #[doc = " *"]
1618    #[doc = " * The value shall be set to:"]
1619    #[doc = " * - 0 - `degSec-01`   - if the accuracy is equal to or less than 1 degree/second,"]
1620    #[doc = " * - 1 - `degSec-02`   - if the accuracy is equal to or less than 2 degrees/second and greater than 1 degree/second,"]
1621    #[doc = " * - 2 - `degSec-05`   - if the accuracy is equal to or less than 5 degrees/second and greater than 2 degrees/second,"]
1622    #[doc = " * - 3 - `degSec-10`   - if the accuracy is equal to or less than 10 degrees/second and greater than 5 degrees/second,"]
1623    #[doc = " * - 4 - `degSec-20`   - if the accuracy is equal to or less than 20 degrees/second and greater than 10 degrees/second,"]
1624    #[doc = " * - 5 - `degSec-50`   - if the accuracy is equal to or less than 50 degrees/second and greater than 20 degrees/second,"]
1625    #[doc = " * - 6 - `outOfRange`  - if the accuracy is out of range, i.e. greater than 50 degrees/second,"]
1626    #[doc = " * - 7 - `unavailable` - if the accuracy information is unavailable."]
1627    #[doc = " * "]
1628    #[doc = " * @category: Kinematic information"]
1629    #[doc = " * @revision: Created in V2.1.1"]
1630    #[doc = ""]
1631    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1632    #[rasn(enumerated)]
1633    pub enum AngularSpeedConfidence {
1634        #[rasn(identifier = "degSec-01")]
1635        degSec_01 = 0,
1636        #[rasn(identifier = "degSec-02")]
1637        degSec_02 = 1,
1638        #[rasn(identifier = "degSec-05")]
1639        degSec_05 = 2,
1640        #[rasn(identifier = "degSec-10")]
1641        degSec_10 = 3,
1642        #[rasn(identifier = "degSec-20")]
1643        degSec_20 = 4,
1644        #[rasn(identifier = "degSec-50")]
1645        degSec_50 = 5,
1646        outOfRange = 6,
1647        unavailable = 7,
1648    }
1649    #[doc = "*"]
1650    #[doc = " * This DE indicates the status of the controlling mechanisms for the lateral and combined lateral and longitudinal movements of the vehicle."]
1651    #[doc = " * The data may be provided via the in-vehicle network. It indicates whether a specific in-vehicle"]
1652    #[doc = " * acceleration control system combined with steering of the direction of the vehicle is engaged or not. "]
1653    #[doc = " *"]
1654    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
1655    #[doc = " * - 0  - `emergencySteeringSystemEngaged`       - emergency steering system is engaged,"]
1656    #[doc = " * - 1  - `autonomousEmergencySteeringEngaged`   - autonomous emergency steering system is engaged,"]
1657    #[doc = " * - 2  - `automaticLaneChangeEngaged`           - automatic lane change system is engaged,"]
1658    #[doc = " * - 3  - `laneKeepingAssistEngaged`             - lane keeping assist is engaged,"]
1659    #[doc = " * - 4  - `assistedParkingLateralEngaged`        - assisted parking system (lateral  control) is engaged,"]
1660    #[doc = " * - 5  - `emergencyAssistEngaged`               - emergency assist (lateral and longitudinal control) is engaged."]
1661    #[doc = " *"]
1662    #[doc = " * Otherwise (for example when the corresponding system is not available due to non-equipped system or information is unavailable), "]
1663    #[doc = " * the corresponding bit shall be set to 0. "]
1664    #[doc = " *"]
1665    #[doc = " * @category: Vehicle information"]
1666    #[doc = " * @revision: Created in V2.3.1"]
1667    #[doc = ""]
1668    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1669    #[rasn(delegate, size("6", extensible))]
1670    pub struct AutomationControl(pub BitString);
1671    #[doc = "*"]
1672    #[doc = " * This DE indicates the number of axles of a passing train."]
1673    #[doc = " *"]
1674    #[doc = " * The value shall be set to:"]
1675    #[doc = " * - `n` (`n > 2` and `n < 1001`) indicates that the train has n x axles,"]
1676    #[doc = " * - `1001`indicates that the number of axles is out of range,"]
1677    #[doc = " * - `1002` the information is unavailable."]
1678    #[doc = " *"]
1679    #[doc = " * "]
1680    #[doc = " * @unit: Number of axles"]
1681    #[doc = " * @category: Vehicle information"]
1682    #[doc = " * @revision: Created in V2.1.1"]
1683    #[doc = ""]
1684    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1685    #[rasn(delegate, value("2..=1002"))]
1686    pub struct AxlesCount(pub u16);
1687    #[doc = "*"]
1688    #[doc = " * This DE represents the measured uncompensated atmospheric pressure."]
1689    #[doc = " * "]
1690    #[doc = " * The value shall be set to:"]
1691    #[doc = " * - `2999` indicates that the applicable value is less than 29990 Pa,"]
1692    #[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, "]
1693    #[doc = " * - `12001` indicates that the values is greater than 120000 Pa,"]
1694    #[doc = " * - `12002` indicates that the information is not available."]
1695    #[doc = " *"]
1696    #[doc = " * @category: Basic information"]
1697    #[doc = " * @unit: 10 Pascal"]
1698    #[doc = " * @revision: Created in V2.1.1"]
1699    #[doc = ""]
1700    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1701    #[rasn(delegate, value("2999..=12002"))]
1702    pub struct BarometricPressure(pub u16);
1703    #[doc = "* "]
1704    #[doc = " * This DE represents a general container for usage in various types of messages."]
1705    #[doc = " *"]
1706    #[doc = " * It shall include the following components: "]
1707    #[doc = " *"]
1708    #[doc = " * @field stationType: the type of technical context in which the ITS-S that has generated the message is integrated in."]
1709    #[doc = " *"]
1710    #[doc = " * @field referencePosition: the reference position of the station that has generated the message that contains the basic container."]
1711    #[doc = " *"]
1712    #[doc = " * @category: Basic information"]
1713    #[doc = " * @revision: Created in V2.1.1"]
1714    #[doc = ""]
1715    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1716    #[rasn(automatic_tags)]
1717    #[non_exhaustive]
1718    pub struct BasicContainer {
1719        #[rasn(identifier = "stationType")]
1720        pub station_type: TrafficParticipantType,
1721        #[rasn(identifier = "referencePosition")]
1722        pub reference_position: ReferencePositionWithConfidence,
1723    }
1724    impl BasicContainer {
1725        pub fn new(
1726            station_type: TrafficParticipantType,
1727            reference_position: ReferencePositionWithConfidence,
1728        ) -> Self {
1729            Self {
1730                station_type,
1731                reference_position,
1732            }
1733        }
1734    }
1735    #[doc = "* "]
1736    #[doc = " * This DF provides information about the configuration of a road section in terms of lanes using a list of @ref LanePositionAndType ."]
1737    #[doc = " *"]
1738    #[doc = " * @category: Road topology information"]
1739    #[doc = " * @revision: Created in V2.2.1"]
1740    #[doc = ""]
1741    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1742    #[rasn(delegate, size("1..=16", extensible))]
1743    pub struct BasicLaneConfiguration(pub SequenceOf<BasicLaneInformation>);
1744    #[doc = "* "]
1745    #[doc = " * This DF provides basic information about a single lane of a road segment."]
1746    #[doc = " * It includes the following components: "]
1747    #[doc = " * "]
1748    #[doc = " * @field laneNumber: the number associated to the lane that provides a transversal identification. "]
1749    #[doc = " * "]
1750    #[doc = " * @field direction: the direction of traffic flow allowed on the lane. "]
1751    #[doc = " * "]
1752    #[doc = " * @field laneWidth: the optional width of the lane."]
1753    #[doc = " *"]
1754    #[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,"]
1755    #[doc = " * if it does not actively change lanes. If this component is absent, the lane name number remains the same in the next section."]
1756    #[doc = " *"]
1757    #[doc = " * @field connectingRoadSection: the identifier of the next road section in direction of traffic, that is connecting to the current road section. "]
1758    #[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."]
1759    #[doc = " *"]
1760    #[doc = " * @category: Road topology information"]
1761    #[doc = " * @revision: Created in V2.2.1"]
1762    #[doc = ""]
1763    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1764    #[rasn(automatic_tags)]
1765    #[non_exhaustive]
1766    pub struct BasicLaneInformation {
1767        #[rasn(identifier = "laneNumber")]
1768        pub lane_number: LanePosition,
1769        pub direction: Direction,
1770        #[rasn(identifier = "laneWidth")]
1771        pub lane_width: Option<LaneWidth>,
1772        #[rasn(identifier = "connectingLane")]
1773        pub connecting_lane: Option<LanePosition>,
1774        #[rasn(identifier = "connectingRoadSection")]
1775        pub connecting_road_section: Option<RoadSectionId>,
1776    }
1777    impl BasicLaneInformation {
1778        pub fn new(
1779            lane_number: LanePosition,
1780            direction: Direction,
1781            lane_width: Option<LaneWidth>,
1782            connecting_lane: Option<LanePosition>,
1783            connecting_road_section: Option<RoadSectionId>,
1784        ) -> Self {
1785            Self {
1786                lane_number,
1787                direction,
1788                lane_width,
1789                connecting_lane,
1790                connecting_road_section,
1791            }
1792        }
1793    }
1794    #[doc = "*"]
1795    #[doc = " * This DE indicates the cardinal number of bogies of a train."]
1796    #[doc = " *"]
1797    #[doc = " * The value shall be set to: "]
1798    #[doc = " * - `n` (`n > 1` and `n < 100`) indicates that the train has n x bogies,"]
1799    #[doc = " * - `100`indicates that the number of bogies is out of range, "]
1800    #[doc = " * - `101` the information is unavailable."]
1801    #[doc = " *"]
1802    #[doc = " * @unit: Number of bogies"]
1803    #[doc = " * @category: Vehicle information"]
1804    #[doc = " * @revision: Created in V2.1.1"]
1805    #[doc = ""]
1806    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1807    #[rasn(delegate, value("2..=101"))]
1808    pub struct BogiesCount(pub u8);
1809    #[doc = "*"]
1810    #[doc = " * This DE indicates the status of the vehicle´s brake control system during an externally defined period of time. "]
1811    #[doc = " *"]
1812    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
1813    #[doc = " * - 0 `abs`        - the anti-lock braking system is engaged or has been engaged,"]
1814    #[doc = " * - 1 `tcs`        - the traction control system is engaged or has been engaged,"]
1815    #[doc = " * - 2 `esc`        - the electronic stability control system is engaged or has been engaged."]
1816    #[doc = " *"]
1817    #[doc = " * Otherwise (for example when the corresponding system is not available due to non equipped system"]
1818    #[doc = " * or information is unavailable), the corresponding bit shall be set to 0."]
1819    #[doc = " *"]
1820    #[doc = " * @category: Vehicle information "]
1821    #[doc = " * @revision: created in V2.3.1"]
1822    #[doc = " "]
1823    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1824    #[rasn(delegate, size("3", extensible))]
1825    pub struct BrakeControl(pub BitString);
1826    #[doc = "*"]
1827    #[doc = " * The DE represents a cardinal number that counts the size of a set. "]
1828    #[doc = " * "]
1829    #[doc = " * @category: Basic information"]
1830    #[doc = " * @revision: Created in V2.1.1"]
1831    #[doc = ""]
1832    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1833    #[rasn(delegate, value("0..=255"))]
1834    pub struct CardinalNumber1B(pub u8);
1835    #[doc = "*"]
1836    #[doc = " * The DE represents a cardinal number that counts the size of a set. "]
1837    #[doc = " * "]
1838    #[doc = " * @category: Basic information"]
1839    #[doc = " * @revision: Created in V2.1.1"]
1840    #[doc = ""]
1841    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1842    #[rasn(delegate, value("1..=8"))]
1843    pub struct CardinalNumber3b(pub u8);
1844    #[doc = "* "]
1845    #[doc = " * This DF represents a general Data Frame to describe an angle component along with a confidence value in a cartesian coordinate system."]
1846    #[doc = " *"]
1847    #[doc = " * It shall include the following components: "]
1848    #[doc = " *"]
1849    #[doc = " * @field value: The angle value which can be estimated as the mean of the current distribution."]
1850    #[doc = " *"]
1851    #[doc = " * @field confidence: The confidence value associated to the provided value."]
1852    #[doc = " *"]
1853    #[doc = " * @category: Basic information"]
1854    #[doc = " * @revision: Created in V2.1.1"]
1855    #[doc = " "]
1856    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1857    #[rasn(automatic_tags)]
1858    pub struct CartesianAngle {
1859        pub value: CartesianAngleValue,
1860        pub confidence: AngleConfidence,
1861    }
1862    impl CartesianAngle {
1863        pub fn new(value: CartesianAngleValue, confidence: AngleConfidence) -> Self {
1864            Self { value, confidence }
1865        }
1866    }
1867    #[doc = "* "]
1868    #[doc = " * This DE represents an angle value described in a local Cartesian coordinate system, per default counted positive in"]
1869    #[doc = " * a right-hand local coordinate system from the abscissa."]
1870    #[doc = " *"]
1871    #[doc = " * The value shall be set to: "]
1872    #[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,"]
1873    #[doc = " * - `3601` if the information is not available."]
1874    #[doc = " *"]
1875    #[doc = " * The value 3600 shall not be used. "]
1876    #[doc = " * "]
1877    #[doc = " * @unit 0,1 degrees"]
1878    #[doc = " * @category: Basic information"]
1879    #[doc = " * @revision: Created in V2.1.1, description and value for 3601 corrected in V2.2.1"]
1880    #[doc = ""]
1881    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1882    #[rasn(delegate, value("0..=3601"))]
1883    pub struct CartesianAngleValue(pub u16);
1884    #[doc = "* "]
1885    #[doc = " * This DF represents a general Data Frame to describe an angular acceleration component along with a confidence value in a cartesian coordinate system."]
1886    #[doc = " *"]
1887    #[doc = " * It shall include the following components: "]
1888    #[doc = " *"]
1889    #[doc = " * @field value: The angular acceleration component value."]
1890    #[doc = " *"]
1891    #[doc = " * @field confidence: The confidence value associated to the provided value."]
1892    #[doc = " * "]
1893    #[doc = " * @category: Kinematic information"]
1894    #[doc = " * @revision: Created in V2.1.1 "]
1895    #[doc = " "]
1896    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1897    #[rasn(automatic_tags)]
1898    pub struct CartesianAngularAccelerationComponent {
1899        pub value: CartesianAngularAccelerationComponentValue,
1900        pub confidence: AngularAccelerationConfidence,
1901    }
1902    impl CartesianAngularAccelerationComponent {
1903        pub fn new(
1904            value: CartesianAngularAccelerationComponentValue,
1905            confidence: AngularAccelerationConfidence,
1906        ) -> Self {
1907            Self { value, confidence }
1908        }
1909    }
1910    #[doc = "*"]
1911    #[doc = " * This DE represents an angular acceleration value described in a local Cartesian coordinate system, per default counted positive in"]
1912    #[doc = " * a right-hand local coordinate system from the abscissa."]
1913    #[doc = " *"]
1914    #[doc = "  * The value shall be set to: "]
1915    #[doc = " * - `-255` if the acceleration is equal to or less than -255 degrees/s^2,"]
1916    #[doc = " * - `n` (`n > -255` and `n < 255`) if the acceleration is equal to or less than n x 1 degree/s^2,"]
1917    #[doc = "      and greater than `(n-1)` x 0,01 degree/s^2,"]
1918    #[doc = " * - `255` if the acceleration is greater than 254 degrees/s^2,"]
1919    #[doc = " * - `256` if the information is unavailable."]
1920    #[doc = " *"]
1921    #[doc = " * @unit:  degree/s^2 (degrees per second squared)"]
1922    #[doc = " * @category: Kinematic information"]
1923    #[doc = " * @revision: Created in V2.1.1"]
1924    #[doc = ""]
1925    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1926    #[rasn(delegate, value("-255..=256"))]
1927    pub struct CartesianAngularAccelerationComponentValue(pub i16);
1928    #[doc = "* "]
1929    #[doc = " * This DF represents an angular velocity component along with a confidence value in a cartesian coordinate system."]
1930    #[doc = " *"]
1931    #[doc = " * It shall include the following components: "]
1932    #[doc = " *"]
1933    #[doc = " * @field value: The angular velocity component."]
1934    #[doc = " *"]
1935    #[doc = " * @field confidence: The confidence value associated to the provided value."]
1936    #[doc = " *"]
1937    #[doc = " * @category: Kinematic information"]
1938    #[doc = " * @revision: Created in V2.1.1"]
1939    #[doc = " "]
1940    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1941    #[rasn(automatic_tags)]
1942    pub struct CartesianAngularVelocityComponent {
1943        pub value: CartesianAngularVelocityComponentValue,
1944        pub confidence: AngularSpeedConfidence,
1945    }
1946    impl CartesianAngularVelocityComponent {
1947        pub fn new(
1948            value: CartesianAngularVelocityComponentValue,
1949            confidence: AngularSpeedConfidence,
1950        ) -> Self {
1951            Self { value, confidence }
1952        }
1953    }
1954    #[doc = "*"]
1955    #[doc = " * This DE represents an angular velocity component described in a local Cartesian coordinate system, per default counted positive in"]
1956    #[doc = " * a right-hand local coordinate system from the abscissa."]
1957    #[doc = " *"]
1958    #[doc = " * The value shall be set to: "]
1959    #[doc = " * - `-255` if the velocity is equal to or less than -255 degrees/s,"]
1960    #[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,"]
1961    #[doc = " * - `255` if the velocity is greater than 254 degrees/s,"]
1962    #[doc = " * - `256` if the information is unavailable."]
1963    #[doc = " *"]
1964    #[doc = " * @unit: degree/s"]
1965    #[doc = " * @category: Kinematic information"]
1966    #[doc = " * @revision: Created in V2.1.1"]
1967    #[doc = ""]
1968    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1969    #[rasn(delegate, value("-255..=256"))]
1970    pub struct CartesianAngularVelocityComponentValue(pub i16);
1971    #[doc = "*"]
1972    #[doc = " * This DF represents the value of a cartesian coordinate with a range of -327,68 metres to +327,66 metres."]
1973    #[doc = " *"]
1974    #[doc = " * The value shall be set to:"]
1975    #[doc = " * - `-32 768` if the longitudinal offset is out of range, i.e. less than or equal to -327,68 metres,"]
1976    #[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,"]
1977    #[doc = " * - `32 767` if the longitudinal offset is out of range, i.e. greater than + 327,66 metres."]
1978    #[doc = " *"]
1979    #[doc = " * @unit 0,01 m"]
1980    #[doc = " * @category: Basic information"]
1981    #[doc = " * @revision: Created in V2.1.1"]
1982    #[doc = ""]
1983    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1984    #[rasn(delegate, value("-32768..=32767"))]
1985    pub struct CartesianCoordinate(pub i16);
1986    #[doc = "*"]
1987    #[doc = " * This DF represents the value of a cartesian coordinate with a range of -1 310,72 metres to +1 310,70 metres."]
1988    #[doc = " *"]
1989    #[doc = " * The value shall be set to:"]
1990    #[doc = " * - `-131072` if the longitudinal offset is out of range, i.e. less than or equal to -1 310,72 metres,"]
1991    #[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,"]
1992    #[doc = " * - `131 071` if the longitudinal offset is out of range, i.e. greater than + 1 310,70 metres."]
1993    #[doc = " *  "]
1994    #[doc = " * @unit 0,01 m"]
1995    #[doc = " * @category: Basic information"]
1996    #[doc = " * @revision: Created in V2.1.1"]
1997    #[doc = ""]
1998    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1999    #[rasn(delegate, value("-131072..=131071"))]
2000    pub struct CartesianCoordinateLarge(pub i32);
2001    #[doc = "*"]
2002    #[doc = " * This DF represents the value of a cartesian coordinate with a range of -30,94 metres to +10,00 metres."]
2003    #[doc = " *"]
2004    #[doc = " * The value shall be set to:"]
2005    #[doc = " * - `3094` if the longitudinal offset is out of range, i.e. less than or equal to -30,94 metres,"]
2006    #[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,"]
2007    #[doc = " * - `1001` if the longitudinal offset is out of range, i.e. greater than 10 metres."]
2008    #[doc = " *"]
2009    #[doc = " * @unit 0,01 m"]
2010    #[doc = " * @category: Basic information"]
2011    #[doc = " * @revision: Created in V2.1.1"]
2012    #[doc = ""]
2013    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2014    #[rasn(delegate, value("-3094..=1001"))]
2015    pub struct CartesianCoordinateSmall(pub i16);
2016    #[doc = "*"]
2017    #[doc = " * This DF represents a coordinate along with a confidence value in a cartesian reference system."]
2018    #[doc = " *"]
2019    #[doc = " * It shall include the following components: "]
2020    #[doc = " * "]
2021    #[doc = " * @field value: the coordinate value, which can be estimated as the mean of the current distribution."]
2022    #[doc = " * "]
2023    #[doc = " * @field confidence: the coordinate confidence value associated to the provided value."]
2024    #[doc = " *"]
2025    #[doc = " * @category: GeoReference information"]
2026    #[doc = " * @revision: Created in V2.1.1"]
2027    #[doc = ""]
2028    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2029    #[rasn(automatic_tags)]
2030    pub struct CartesianCoordinateWithConfidence {
2031        pub value: CartesianCoordinateLarge,
2032        pub confidence: CoordinateConfidence,
2033    }
2034    impl CartesianCoordinateWithConfidence {
2035        pub fn new(value: CartesianCoordinateLarge, confidence: CoordinateConfidence) -> Self {
2036            Self { value, confidence }
2037        }
2038    }
2039    #[doc = "* "]
2040    #[doc = " * This DF represents a  position in a two- or three-dimensional cartesian coordinate system."]
2041    #[doc = " *"]
2042    #[doc = " * It shall include the following components: "]
2043    #[doc = " *"]
2044    #[doc = " * @field xCoordinate: the X coordinate value."]
2045    #[doc = " *"]
2046    #[doc = " * @field yCoordinate: the Y coordinate value."]
2047    #[doc = " *"]
2048    #[doc = " * @field zCoordinate: the optional Z coordinate value."]
2049    #[doc = " * "]
2050    #[doc = " * @category: GeoReference information"]
2051    #[doc = " * @revision: Created in V2.1.1"]
2052    #[doc = ""]
2053    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2054    #[rasn(automatic_tags)]
2055    pub struct CartesianPosition3d {
2056        #[rasn(identifier = "xCoordinate")]
2057        pub x_coordinate: CartesianCoordinate,
2058        #[rasn(identifier = "yCoordinate")]
2059        pub y_coordinate: CartesianCoordinate,
2060        #[rasn(identifier = "zCoordinate")]
2061        pub z_coordinate: Option<CartesianCoordinate>,
2062    }
2063    impl CartesianPosition3d {
2064        pub fn new(
2065            x_coordinate: CartesianCoordinate,
2066            y_coordinate: CartesianCoordinate,
2067            z_coordinate: Option<CartesianCoordinate>,
2068        ) -> Self {
2069            Self {
2070                x_coordinate,
2071                y_coordinate,
2072                z_coordinate,
2073            }
2074        }
2075    }
2076    #[doc = "* "]
2077    #[doc = " * This DF represents a  position in a two- or three-dimensional cartesian coordinate system with an associated confidence level for each coordinate."]
2078    #[doc = " *"]
2079    #[doc = " * It shall include the following components: "]
2080    #[doc = " *"]
2081    #[doc = " * @field xCoordinate: the X coordinate value with the associated confidence level."]
2082    #[doc = " *"]
2083    #[doc = " * @field yCoordinate: the Y coordinate value with the associated confidence level."]
2084    #[doc = " *"]
2085    #[doc = " * @field zCoordinate: the optional Z coordinate value with the associated confidence level."]
2086    #[doc = " * "]
2087    #[doc = " * @category: GeoReference information"]
2088    #[doc = " * @revision: Created in V2.1.1"]
2089    #[doc = ""]
2090    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2091    #[rasn(automatic_tags)]
2092    pub struct CartesianPosition3dWithConfidence {
2093        #[rasn(identifier = "xCoordinate")]
2094        pub x_coordinate: CartesianCoordinateWithConfidence,
2095        #[rasn(identifier = "yCoordinate")]
2096        pub y_coordinate: CartesianCoordinateWithConfidence,
2097        #[rasn(identifier = "zCoordinate")]
2098        pub z_coordinate: Option<CartesianCoordinateWithConfidence>,
2099    }
2100    impl CartesianPosition3dWithConfidence {
2101        pub fn new(
2102            x_coordinate: CartesianCoordinateWithConfidence,
2103            y_coordinate: CartesianCoordinateWithConfidence,
2104            z_coordinate: Option<CartesianCoordinateWithConfidence>,
2105        ) -> Self {
2106            Self {
2107                x_coordinate,
2108                y_coordinate,
2109                z_coordinate,
2110            }
2111        }
2112    }
2113    #[doc = "*"]
2114    #[doc = " * This DF is a representation of the cause code value of a traffic event. "]
2115    #[doc = " *"]
2116    #[doc = " * It shall include the following components: "]
2117    #[doc = " *"]
2118    #[doc = " * @field causeCode: the main cause of a detected event. "]
2119    #[doc = " *"]
2120    #[doc = " * @field subCauseCode: the subordinate cause of a detected event. "]
2121    #[doc = " *"]
2122    #[doc = " * The semantics of the entire DF are completely defined by the component causeCode. The interpretation of the subCauseCode may "]
2123    #[doc = " * provide additional information that is not strictly necessary to understand the causeCode itself, and is therefore optional."]
2124    #[doc = " *"]
2125    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref CauseCodeV2 instead. "]
2126    #[doc = " *"]
2127    #[doc = " * @category: Traffic information"]
2128    #[doc = " * @revision: Editorial update in V2.1.1"]
2129    #[doc = " "]
2130    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2131    #[rasn(automatic_tags)]
2132    #[non_exhaustive]
2133    pub struct CauseCode {
2134        #[rasn(identifier = "causeCode")]
2135        pub cause_code: CauseCodeType,
2136        #[rasn(identifier = "subCauseCode")]
2137        pub sub_cause_code: SubCauseCodeType,
2138    }
2139    impl CauseCode {
2140        pub fn new(cause_code: CauseCodeType, sub_cause_code: SubCauseCodeType) -> Self {
2141            Self {
2142                cause_code,
2143                sub_cause_code,
2144            }
2145        }
2146    }
2147    #[doc = "*"]
2148    #[doc = " * This DF is a representation of the cause code value and associated sub cause code value of a traffic event. "]
2149    #[doc = " *"]
2150    #[doc = " * The following options are available:"]
2151    #[doc = " * - 0                                                        - reserved for future use,"]
2152    #[doc = " * - 1  - `trafficCondition1`                                 - in case the type of event is an abnormal traffic condition,"]
2153    #[doc = " * - 2  - `accident2`                                         - in case the type of event is a road accident, "]
2154    #[doc = " * - 3  - `roadworks3`                                        - in case the type of event is roadwork, based on authoritative information,"]
2155    #[doc = " * - 4  - `detectedRoadworks4`                                - in case the type of event is roadworks, based on non-authoritative information such as factual detections,"]
2156    #[doc = " * - 5  - `impassability5`                                    - in case the  type of event is unmanaged road blocking, referring to any"]
2157    #[doc = " *                                                              blocking of a road, partial or total, which has not been adequately secured and signposted,"]
2158    #[doc = " * - 6  - `adhesion6`                                         - in case the  type of event is low adhesion of the road surface,"]
2159    #[doc = " * - 7  - `aquaplaning7`                                      - danger of aquaplaning on the road,"]
2160    #[doc = " * - 8                                                        - reserved for future usage,"]
2161    #[doc = " * - 9  - `hazardousLocation-SurfaceCondition9`               - in case the type of event is abnormal road surface condition not covered by `adhesion6`, "]
2162    #[doc = " * - 10 - `hazardousLocation-ObstacleOnTheRoad10`             - in case the type of event is obstacle on the road,"]
2163    #[doc = " * - 11 - `hazardousLocation-AnimalOnTheRoad11`               - in case the type of event is animal on the road,"]
2164    #[doc = " * - 12 - `humanPresenceOnTheRoad`                            - in case the type of event is presence of human vulnerable road user on the road,"]
2165    #[doc = " * - 13                                                       - reserved for future usage,"]
2166    #[doc = " * - 14 - `wrongWayDriving14`                                 - in case the type of the event is vehicle driving in wrong way,"]
2167    #[doc = " * - 15 - `rescueRecoveryAndMaintenanceWorkInProgress15`      - in case the type of event is rescue, recovery and maintenance work for accident or for a road hazard in progress,"]
2168    #[doc = " * - 16                                                       - reserved for future usage,"]
2169    #[doc = " * - 17 - `adverseWeatherCondition-Wind17`                    - in case the type of event is wind,"]
2170    #[doc = " * - 18 - `adverseWeatherCondition-Visibility18`              - in case the type of event is low visibility,"]
2171    #[doc = " * - 19 - `adverseWeatherCondition-Precipitation19`           - in case the type of event is precipitation,"]
2172    #[doc = " * - 20 - `violence20`                                        - in case the the type of event is human violence on or near the road,"]
2173    #[doc = " * - 21-25                                                    - reserved for future usage,"]
2174    #[doc = " * - 26 - `slowVehicle26`                                     - in case the type of event is slow vehicle driving on the road,"]
2175    #[doc = " * - 27 - `dangerousEndOfQueue27`                             - in case the type of event is dangerous end of vehicle queue,"]
2176    #[doc = " * - 28 - `publicTransportVehicleApproaching                  - in case the type of event is a public transport vehicle approaching, with a priority defined by applicable traffic regulations,"]
2177    #[doc = " * - 29-90                                                    - are reserved for future usage,"]
2178    #[doc = " * - 91 - `vehicleBreakdown91`                                - in case the type of event is break down vehicle on the road,"]
2179    #[doc = " * - 92 - `postCrash92`                                       - in case the type of event is a detected crash,"]
2180    #[doc = " * - 93 - `humanProblem93`                                    - in case the type of event is human health problem in vehicles involved in traffic,"]
2181    #[doc = " * - 94 - `stationaryVehicle94`                               - in case the type of event is stationary vehicle,"]
2182    #[doc = " * - 95 - `emergencyVehicleApproaching95`                     - in case the type of event is an approaching vehicle operating on a mission for which the "]
2183    #[doc = "                                                                applicable traffic regulations provide it with defined priority rights in traffic. "]
2184    #[doc = " * - 96 - `hazardousLocation-DangerousCurve96`                - in case the type of event is dangerous curve,"]
2185    #[doc = " * - 97 - `collisionRisk97`                                   - in case the type of event is a collision risk,"]
2186    #[doc = " * - 98 - `signalViolation98`                                 - in case the type of event is signal violation,"]
2187    #[doc = " * - 99 - `dangerousSituation99`                              - in case the type of event is dangerous situation in which autonomous safety system in vehicle "]
2188    #[doc = " *                                                              is activated,"]
2189    #[doc = " * - 100 - `railwayLevelCrossing100`                          - in case the type of event is a railway level crossing. "]
2190    #[doc = " * - 101-255                                                  - are reserved for future usage."]
2191    #[doc = " *"]
2192    #[doc = " * @note: this DF is defined for use as part of CauseCodeV2. It is recommended to use CauseCodeV2."]
2193    #[doc = " * @category: Traffic information"]
2194    #[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"]
2195    #[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"]
2196    #[doc = " "]
2197    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2198    #[rasn(choice, automatic_tags)]
2199    pub enum CauseCodeChoice {
2200        reserved0(SubCauseCodeType),
2201        trafficCondition1(TrafficConditionSubCauseCode),
2202        accident2(AccidentSubCauseCode),
2203        roadworks3(RoadworksSubCauseCode),
2204        detectedRoadworks4(SubCauseCodeType),
2205        impassability5(ImpassabilitySubCauseCode),
2206        adhesion6(AdhesionSubCauseCode),
2207        aquaplaning7(SubCauseCodeType),
2208        reserved8(SubCauseCodeType),
2209        #[rasn(identifier = "hazardousLocation-SurfaceCondition9")]
2210        hazardousLocation_SurfaceCondition9(HazardousLocationSurfaceConditionSubCauseCode),
2211        #[rasn(identifier = "hazardousLocation-ObstacleOnTheRoad10")]
2212        hazardousLocation_ObstacleOnTheRoad10(HazardousLocationObstacleOnTheRoadSubCauseCode),
2213        #[rasn(identifier = "hazardousLocation-AnimalOnTheRoad11")]
2214        hazardousLocation_AnimalOnTheRoad11(HazardousLocationAnimalOnTheRoadSubCauseCode),
2215        humanPresenceOnTheRoad12(HumanPresenceOnTheRoadSubCauseCode),
2216        reserved13(SubCauseCodeType),
2217        wrongWayDriving14(WrongWayDrivingSubCauseCode),
2218        rescueRecoveryAndMaintenanceWorkInProgress15(
2219            RescueRecoveryAndMaintenanceWorkInProgressSubCauseCode,
2220        ),
2221        reserved16(SubCauseCodeType),
2222        #[rasn(identifier = "adverseWeatherCondition-Wind17")]
2223        adverseWeatherCondition_Wind17(AdverseWeatherConditionWindSubCauseCode),
2224        #[rasn(identifier = "adverseWeatherCondition-Visibility18")]
2225        adverseWeatherCondition_Visibility18(AdverseWeatherConditionVisibilitySubCauseCode),
2226        #[rasn(identifier = "adverseWeatherCondition-Precipitation19")]
2227        adverseWeatherCondition_Precipitation19(AdverseWeatherConditionPrecipitationSubCauseCode),
2228        violence20(SubCauseCodeType),
2229        reserved21(SubCauseCodeType),
2230        reserved22(SubCauseCodeType),
2231        reserved23(SubCauseCodeType),
2232        reserved24(SubCauseCodeType),
2233        reserved25(SubCauseCodeType),
2234        slowVehicle26(SlowVehicleSubCauseCode),
2235        dangerousEndOfQueue27(DangerousEndOfQueueSubCauseCode),
2236        publicTransportVehicleApproaching28(SubCauseCodeType),
2237        reserved29(SubCauseCodeType),
2238        reserved30(SubCauseCodeType),
2239        reserved31(SubCauseCodeType),
2240        reserved32(SubCauseCodeType),
2241        reserved33(SubCauseCodeType),
2242        reserved34(SubCauseCodeType),
2243        reserved35(SubCauseCodeType),
2244        reserved36(SubCauseCodeType),
2245        reserved37(SubCauseCodeType),
2246        reserved38(SubCauseCodeType),
2247        reserved39(SubCauseCodeType),
2248        reserved40(SubCauseCodeType),
2249        reserved41(SubCauseCodeType),
2250        dontPanic42(SubCauseCodeType),
2251        reserved43(SubCauseCodeType),
2252        reserved44(SubCauseCodeType),
2253        reserved45(SubCauseCodeType),
2254        reserved46(SubCauseCodeType),
2255        reserved47(SubCauseCodeType),
2256        reserved48(SubCauseCodeType),
2257        reserved49(SubCauseCodeType),
2258        reserved50(SubCauseCodeType),
2259        reserved51(SubCauseCodeType),
2260        reserved52(SubCauseCodeType),
2261        reserved53(SubCauseCodeType),
2262        reserved54(SubCauseCodeType),
2263        reserved55(SubCauseCodeType),
2264        reserved56(SubCauseCodeType),
2265        reserved57(SubCauseCodeType),
2266        reserved58(SubCauseCodeType),
2267        reserved59(SubCauseCodeType),
2268        reserved60(SubCauseCodeType),
2269        reserved61(SubCauseCodeType),
2270        reserved62(SubCauseCodeType),
2271        reserved63(SubCauseCodeType),
2272        reserved64(SubCauseCodeType),
2273        reserved65(SubCauseCodeType),
2274        reserved66(SubCauseCodeType),
2275        reserved67(SubCauseCodeType),
2276        reserved68(SubCauseCodeType),
2277        reserved69(SubCauseCodeType),
2278        reserved70(SubCauseCodeType),
2279        reserved71(SubCauseCodeType),
2280        reserved72(SubCauseCodeType),
2281        reserved73(SubCauseCodeType),
2282        reserved74(SubCauseCodeType),
2283        reserved75(SubCauseCodeType),
2284        reserved76(SubCauseCodeType),
2285        reserved77(SubCauseCodeType),
2286        reserved78(SubCauseCodeType),
2287        reserved79(SubCauseCodeType),
2288        reserved80(SubCauseCodeType),
2289        reserved81(SubCauseCodeType),
2290        reserved82(SubCauseCodeType),
2291        reserved83(SubCauseCodeType),
2292        reserved84(SubCauseCodeType),
2293        reserved85(SubCauseCodeType),
2294        reserved86(SubCauseCodeType),
2295        reserved87(SubCauseCodeType),
2296        reserved88(SubCauseCodeType),
2297        reserved89(SubCauseCodeType),
2298        reserved90(SubCauseCodeType),
2299        vehicleBreakdown91(VehicleBreakdownSubCauseCode),
2300        postCrash92(PostCrashSubCauseCode),
2301        humanProblem93(HumanProblemSubCauseCode),
2302        stationaryVehicle94(StationaryVehicleSubCauseCode),
2303        emergencyVehicleApproaching95(EmergencyVehicleApproachingSubCauseCode),
2304        #[rasn(identifier = "hazardousLocation-DangerousCurve96")]
2305        hazardousLocation_DangerousCurve96(HazardousLocationDangerousCurveSubCauseCode),
2306        collisionRisk97(CollisionRiskSubCauseCode),
2307        signalViolation98(SignalViolationSubCauseCode),
2308        dangerousSituation99(DangerousSituationSubCauseCode),
2309        railwayLevelCrossing100(RailwayLevelCrossingSubCauseCode),
2310        reserved101(SubCauseCodeType),
2311        reserved102(SubCauseCodeType),
2312        reserved103(SubCauseCodeType),
2313        reserved104(SubCauseCodeType),
2314        reserved105(SubCauseCodeType),
2315        reserved106(SubCauseCodeType),
2316        reserved107(SubCauseCodeType),
2317        reserved108(SubCauseCodeType),
2318        reserved109(SubCauseCodeType),
2319        reserved110(SubCauseCodeType),
2320        reserved111(SubCauseCodeType),
2321        reserved112(SubCauseCodeType),
2322        reserved113(SubCauseCodeType),
2323        reserved114(SubCauseCodeType),
2324        reserved115(SubCauseCodeType),
2325        reserved116(SubCauseCodeType),
2326        reserved117(SubCauseCodeType),
2327        reserved118(SubCauseCodeType),
2328        reserved119(SubCauseCodeType),
2329        reserved120(SubCauseCodeType),
2330        reserved121(SubCauseCodeType),
2331        reserved122(SubCauseCodeType),
2332        reserved123(SubCauseCodeType),
2333        reserved124(SubCauseCodeType),
2334        reserved125(SubCauseCodeType),
2335        reserved126(SubCauseCodeType),
2336        reserved127(SubCauseCodeType),
2337        reserved128(SubCauseCodeType),
2338    }
2339    #[doc = "*"]
2340    #[doc = " *The DE represents the value of the cause code of an event. "]
2341    #[doc = " * "]
2342    #[doc = " * The value shall be set to:"]
2343    #[doc = " * - 0                                                     - reserved for future use,"]
2344    #[doc = " * - 1  - `trafficCondition`                               - in case the type of event is an abnormal traffic condition,"]
2345    #[doc = " * - 2  - `accident`                                       - in case the type of event is a road accident,"]
2346    #[doc = " * - 3  - `roadworks`                                      - in case the type of event is roadworks, based on authoritative information,"]
2347    #[doc = " * - 4  - `detectedRoadworks`                              - in case the type of event is roadworks, based on non-authoritative information such as factual detections, "]
2348    #[doc = " * - 5  - `impassability`                                  - in case the  type of event is unmanaged road blocking, referring to any"]
2349    #[doc = " *                                                           blocking of a road, partial or total, which has not been adequately"]
2350    #[doc = " *                                                           secured and signposted,"]
2351    #[doc = " * - 6  - `adhesion`                                       - in case the  type of event is low adhesion of the road surface,"]
2352    #[doc = " * - 7  - `aquaplaning`                                    - danger of aquaplaning on the road,"]
2353    #[doc = " * - 8                                                     - reserved for future usage,"]
2354    #[doc = " * - 9  - `hazardousLocation-SurfaceCondition`             - in case the type of event is abnormal road surface condition not covered by `adhesion`"]
2355    #[doc = " * - 10 - `hazardousLocation-ObstacleOnTheRoad`            - in case the type of event is obstacle on the road,"]
2356    #[doc = " * - 11 - `hazardousLocation-AnimalOnTheRoad`              - in case the type of event is animal on the road,"]
2357    #[doc = " * - 12 - `humanPresenceOnTheRoad`                         - in case the type of event is presence of human vulnerable road user on the road,"]
2358    #[doc = " * - 13                                                    - reserved for future usage,"]
2359    #[doc = " * - 14 - `wrongWayDriving`                                - in case the type of the event is vehicle driving in wrong way,"]
2360    #[doc = " * - 15 - `rescueRecoveryAndMaintenanceWorkInProgress`     - in case the type of event is rescue, recovery and maintenance work for accident or for a road hazard in progress,"]
2361    #[doc = " * - 16                                                    - reserved for future usage,"]
2362    #[doc = " * - 17 - `adverseWeatherCondition-Wind                   `- in case the type of event is wind,"]
2363    #[doc = " * - 18 - `adverseWeatherCondition-Visibility`             - in case the type of event is low visibility,"]
2364    #[doc = " * - 19 - `adverseWeatherCondition-Precipitation`          - in case the type of event is precipitation,"]
2365    #[doc = " * - 20 - `violence`                                       - in case the the type of event is human violence on or near the road,"]
2366    #[doc = " * - 21-25                                                 - reserved for future usage,"]
2367    #[doc = " * - 26 - `slowVehicle`                                    - in case the type of event is slow vehicle driving on the road,"]
2368    #[doc = " * - 27 - `dangerousEndOfQueue`                            - in case the type of event is dangerous end of vehicle queue,"]
2369    #[doc = " * - 28 - `publicTransportVehicleApproaching               - in case the type of event is a public transport vehicle approaching, with a priority defined by applicable traffic regulations,"]
2370    #[doc = " * - 29-90                                                 - are reserved for future usage,"]
2371    #[doc = " * - 91 - `vehicleBreakdown`                               - in case the type of event is break down vehicle on the road,"]
2372    #[doc = " * - 92 - `postCrash`                                      - in case the type of event is a detected crash,"]
2373    #[doc = " * - 93 - `humanProblem`                                   - in case the type of event is human health problem in vehicles involved in traffic,"]
2374    #[doc = " * - 94 - `stationaryVehicle`                              - in case the type of event is stationary vehicle,"]
2375    #[doc = " * - 95 - `emergencyVehicleApproaching`                    - in case the type of event is an approaching vehicle operating on a mission for which the applicable "]
2376    #[doc = "                                                             traffic regulations provide it with defined priority rights in traffic. "]
2377    #[doc = " * - 96 - `hazardousLocation-DangerousCurve`               - in case the type of event is dangerous curve,"]
2378    #[doc = " * - 97 - `collisionRisk`                                  - in case the type of event is a collision risk,"]
2379    #[doc = " * - 98 - `signalViolation`                                - in case the type of event is signal violation,"]
2380    #[doc = " * - 99 - `dangerousSituation`                             - in case the type of event is dangerous situation in which autonomous safety system in vehicle "]
2381    #[doc = " *                                                             is activated,"]
2382    #[doc = " * - 100 - `railwayLevelCrossing`                          - in case the type of event is a railway level crossing. "]
2383    #[doc = " * - 101-255                                               - are reserved for future usage."]
2384    #[doc = " *"]
2385    #[doc = " * @category: Traffic information"]
2386    #[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,"]
2387    #[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"]
2388    #[doc = " "]
2389    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2390    #[rasn(delegate, value("0..=255"))]
2391    pub struct CauseCodeType(pub u8);
2392    #[doc = "*"]
2393    #[doc = " * This DF is an alternative representation of the cause code value of a traffic event. "]
2394    #[doc = " *"]
2395    #[doc = " * It shall include the following components: "]
2396    #[doc = " *"]
2397    #[doc = " * @field ccAndScc: the main cause of a detected event. Each entry is of a different type and represents the sub cause code."]
2398    #[doc = ""]
2399    #[doc = " * The semantics of the entire DF are completely defined by the choice value which represents the cause code value. "]
2400    #[doc = " * The interpretation of the sub cause code value may provide additional information that is not strictly necessary to understand "]
2401    #[doc = " * the cause code itself, and is therefore optional."]
2402    #[doc = " *"]
2403    #[doc = " * @category: Traffic information"]
2404    #[doc = " * @revision: Created in V2.1.1, description amended in V2.2.1"]
2405    #[doc = " "]
2406    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2407    #[rasn(automatic_tags)]
2408    #[non_exhaustive]
2409    pub struct CauseCodeV2 {
2410        #[rasn(identifier = "ccAndScc")]
2411        pub cc_and_scc: CauseCodeChoice,
2412    }
2413    impl CauseCodeV2 {
2414        pub fn new(cc_and_scc: CauseCodeChoice) -> Self {
2415            Self { cc_and_scc }
2416        }
2417    }
2418    #[doc = "*"]
2419    #[doc = " * The DF describes the position of a CEN DSRC road side equipment."]
2420    #[doc = " *"]
2421    #[doc = " * It shall include the following components: "]
2422    #[doc = " * "]
2423    #[doc = " * @field protectedZoneLatitude: the latitude of the CEN DSRC road side equipment."]
2424    #[doc = " * "]
2425    #[doc = " * @field protectedZoneLongitude: the latitude of the CEN DSRC road side equipment. "]
2426    #[doc = " * "]
2427    #[doc = " * @field cenDsrcTollingZoneID: the optional ID of the CEN DSRC road side equipment."]
2428    #[doc = " * "]
2429    #[doc = " * @category: Infrastructure information, Communication information"]
2430    #[doc = " * @revision: revised in V2.1.1 (cenDsrcTollingZoneId is directly of type ProtectedZoneId)"]
2431    #[doc = " "]
2432    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2433    #[rasn(automatic_tags)]
2434    #[non_exhaustive]
2435    pub struct CenDsrcTollingZone {
2436        #[rasn(identifier = "protectedZoneLatitude")]
2437        pub protected_zone_latitude: Latitude,
2438        #[rasn(identifier = "protectedZoneLongitude")]
2439        pub protected_zone_longitude: Longitude,
2440        #[rasn(identifier = "cenDsrcTollingZoneId")]
2441        pub cen_dsrc_tolling_zone_id: Option<ProtectedZoneId>,
2442    }
2443    impl CenDsrcTollingZone {
2444        pub fn new(
2445            protected_zone_latitude: Latitude,
2446            protected_zone_longitude: Longitude,
2447            cen_dsrc_tolling_zone_id: Option<ProtectedZoneId>,
2448        ) -> Self {
2449            Self {
2450                protected_zone_latitude,
2451                protected_zone_longitude,
2452                cen_dsrc_tolling_zone_id,
2453            }
2454        }
2455    }
2456    #[doc = "*"]
2457    #[doc = " * This DE represents the ID of a CEN DSRC tolling zone. "]
2458    #[doc = " * "]
2459    #[doc = " * @category: Communication information"]
2460    #[doc = " * @revision: V1.3.1"]
2461    #[doc = " * @note: this DE is deprecated and shall not be used anymore.  "]
2462    #[doc = " "]
2463    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2464    #[rasn(delegate)]
2465    pub struct CenDsrcTollingZoneID(pub ProtectedZoneId);
2466    #[doc = "* "]
2467    #[doc = " * "]
2468    #[doc = " * This DF represents the shape of a circular area or a right cylinder that is centred on the shape's reference point. "]
2469    #[doc = " *"]
2470    #[doc = " * It shall include the following components: "]
2471    #[doc = " * "]
2472    #[doc = " * @field shapeReferencePoint: optional reference point that represents the centre of the circle, relative to an externally specified reference position. "]
2473    #[doc = " * If this component is absent, the externally specified reference position represents the shape's reference point. "]
2474    #[doc = " *"]
2475    #[doc = " * @field radius: the radius of the circular area."]
2476    #[doc = " *"]
2477    #[doc = " * @field height: the optional height, present if the shape is a right cylinder extending in the positive z-axis. "]
2478    #[doc = " *"]
2479    #[doc = " * "]
2480    #[doc = " * @category: GeoReference information"]
2481    #[doc = " * @revision: Created in V2.1.1"]
2482    #[doc = " "]
2483    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2484    #[rasn(automatic_tags)]
2485    pub struct CircularShape {
2486        #[rasn(identifier = "shapeReferencePoint")]
2487        pub shape_reference_point: Option<CartesianPosition3d>,
2488        pub radius: StandardLength12b,
2489        pub height: Option<StandardLength12b>,
2490    }
2491    impl CircularShape {
2492        pub fn new(
2493            shape_reference_point: Option<CartesianPosition3d>,
2494            radius: StandardLength12b,
2495            height: Option<StandardLength12b>,
2496        ) -> Self {
2497            Self {
2498                shape_reference_point,
2499                radius,
2500                height,
2501            }
2502        }
2503    }
2504    #[doc = "*"]
2505    #[doc = " * This DF indicates the opening/closure status of the lanes of a carriageway."]
2506    #[doc = " *"]
2507    #[doc = " * It shall include the following components: "]
2508    #[doc = " * "]
2509    #[doc = " * @field innerhardShoulderStatus: this information is optional and shall be included if an inner hard shoulder is present and the information is known."]
2510    #[doc = " * It indicates the open/closing status of inner hard shoulder lanes. "]
2511    #[doc = " * "]
2512    #[doc = " * @field outerhardShoulderStatus: this information is optional and shall be included if an outer hard shoulder is present and the information is known."]
2513    #[doc = " * It indicates the open/closing status of outer hard shoulder lanes. "]
2514    #[doc = " * "]
2515    #[doc = " * @field drivingLaneStatus: this information is optional and shall be included if the information is known."]
2516    #[doc = " * It indicates the open/closing status of driving lanes. "]
2517    #[doc = " * For carriageways with more than 13 driving lanes, the drivingLaneStatus component shall not be present."]
2518    #[doc = " * "]
2519    #[doc = " * @category: Infrastructure information, Road topology information"]
2520    #[doc = " * @revision: Description revised in V2.1.1"]
2521    #[doc = " "]
2522    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2523    #[rasn(automatic_tags)]
2524    #[non_exhaustive]
2525    pub struct ClosedLanes {
2526        #[rasn(identifier = "innerhardShoulderStatus")]
2527        pub innerhard_shoulder_status: Option<HardShoulderStatus>,
2528        #[rasn(identifier = "outerhardShoulderStatus")]
2529        pub outerhard_shoulder_status: Option<HardShoulderStatus>,
2530        #[rasn(identifier = "drivingLaneStatus")]
2531        pub driving_lane_status: Option<DrivingLaneStatus>,
2532    }
2533    impl ClosedLanes {
2534        pub fn new(
2535            innerhard_shoulder_status: Option<HardShoulderStatus>,
2536            outerhard_shoulder_status: Option<HardShoulderStatus>,
2537            driving_lane_status: Option<DrivingLaneStatus>,
2538        ) -> Self {
2539            Self {
2540                innerhard_shoulder_status,
2541                outerhard_shoulder_status,
2542                driving_lane_status,
2543            }
2544        }
2545    }
2546    #[doc = "*"]
2547    #[doc = " * This DF provides information about the breakup of a cluster."]
2548    #[doc = " *"]
2549    #[doc = " * It shall include the following components: "]
2550    #[doc = " * "]
2551    #[doc = " * @field clusterBreakupReason: indicates the reason for breakup."]
2552    #[doc = " * "]
2553    #[doc = " * @field breakupTime: indicates the time of breakup. "]
2554    #[doc = " *"]
2555    #[doc = " * @category: Cluster Information"]
2556    #[doc = " * @revision: Created in V2.1.1"]
2557    #[doc = " "]
2558    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2559    #[rasn(automatic_tags)]
2560    #[non_exhaustive]
2561    pub struct ClusterBreakupInfo {
2562        #[rasn(identifier = "clusterBreakupReason")]
2563        pub cluster_breakup_reason: ClusterBreakupReason,
2564        #[rasn(identifier = "breakupTime")]
2565        pub breakup_time: DeltaTimeQuarterSecond,
2566    }
2567    impl ClusterBreakupInfo {
2568        pub fn new(
2569            cluster_breakup_reason: ClusterBreakupReason,
2570            breakup_time: DeltaTimeQuarterSecond,
2571        ) -> Self {
2572            Self {
2573                cluster_breakup_reason,
2574                breakup_time,
2575            }
2576        }
2577    }
2578    #[doc = "*"]
2579    #[doc = " * This DE indicates the reason why a cluster leader intends to break up the cluster."]
2580    #[doc = " * "]
2581    #[doc = " * The value shall be set to:"]
2582    #[doc = " * - 0 - `notProvided`                          - if the information is not provided,"]
2583    #[doc = " * - 1 - `clusteringPurposeCompleted`           - if the cluster purpose has been completed,"]
2584    #[doc = " * - 2 - `leaderMovedOutOfClusterBoundingBox`   - if the leader moved out of the cluster's bounding box,"]
2585    #[doc = " * - 3 - `joiningAnotherCluster`                - if the cluster leader is about to join another cluster,"]
2586    #[doc = " * - 4 - `enteringLowRiskAreaBasedOnMaps`       - if the cluster is entering an area idenrified as low risk based on the use of maps,"]
2587    #[doc = " * - 5 - `receptionOfCpmContainingCluster`      - if the leader received a Collective Perception Message containing information about the same cluster. "]
2588    #[doc = " * - 6 to 15                                    - are reserved for future use.                                    "]
2589    #[doc = " *"]
2590    #[doc = " * @category: Cluster information"]
2591    #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
2592    #[doc = ""]
2593    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2594    #[rasn(delegate, value("0..=15"))]
2595    pub struct ClusterBreakupReason(pub u8);
2596    #[doc = "*"]
2597    #[doc = " * This DF provides information about the joining of a cluster."]
2598    #[doc = " *"]
2599    #[doc = " * It shall include the following components: "]
2600    #[doc = " * "]
2601    #[doc = " * @field clusterId: indicates the identifier of the cluster."]
2602    #[doc = " * "]
2603    #[doc = " * @field joinTime: indicates the time of joining. "]
2604    #[doc = " *"]
2605    #[doc = " * @category: Cluster Information"]
2606    #[doc = " * @revision: Created in V2.1.1"]
2607    #[doc = " "]
2608    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2609    #[rasn(automatic_tags)]
2610    #[non_exhaustive]
2611    pub struct ClusterJoinInfo {
2612        #[rasn(identifier = "clusterId")]
2613        pub cluster_id: Identifier1B,
2614        #[rasn(identifier = "joinTime")]
2615        pub join_time: DeltaTimeQuarterSecond,
2616    }
2617    impl ClusterJoinInfo {
2618        pub fn new(cluster_id: Identifier1B, join_time: DeltaTimeQuarterSecond) -> Self {
2619            Self {
2620                cluster_id,
2621                join_time,
2622            }
2623        }
2624    }
2625    #[doc = "*"]
2626    #[doc = " * The DF provides information about the leaving of a cluster."]
2627    #[doc = " *"]
2628    #[doc = " * It shall include the following components: "]
2629    #[doc = " * "]
2630    #[doc = " * @field clusterId: indicates the cluster."]
2631    #[doc = " * "]
2632    #[doc = " * @field clusterLeaveReason: indicates the reason for leaving. "]
2633    #[doc = " *"]
2634    #[doc = " * @category: Cluster Information"]
2635    #[doc = " * @revision: Created in V2.1.1"]
2636    #[doc = " "]
2637    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2638    #[rasn(automatic_tags)]
2639    #[non_exhaustive]
2640    pub struct ClusterLeaveInfo {
2641        #[rasn(identifier = "clusterId")]
2642        pub cluster_id: Identifier1B,
2643        #[rasn(identifier = "clusterLeaveReason")]
2644        pub cluster_leave_reason: ClusterLeaveReason,
2645    }
2646    impl ClusterLeaveInfo {
2647        pub fn new(cluster_id: Identifier1B, cluster_leave_reason: ClusterLeaveReason) -> Self {
2648            Self {
2649                cluster_id,
2650                cluster_leave_reason,
2651            }
2652        }
2653    }
2654    #[doc = "*"]
2655    #[doc = " * This DE indicates the reason why a cluster participant is leaving the cluster."]
2656    #[doc = " * "]
2657    #[doc = " * The value shall be set to:"]
2658    #[doc = " * - 0 - `notProvided `                 - if the information is not provided,"]
2659    #[doc = " * - 1 - `clusterLeaderLost`            - if the cluster leader cannot be found anymore,   "]
2660    #[doc = " * - 2 - `clusterDisbandedByLeader`     - if the cluster has been disbanded by the leader,"]
2661    #[doc = " * - 3 - `outOfClusterBoundingBox`      - if the participants moved out of the cluster's bounding box,"]
2662    #[doc = " * - 4 - `outOfClusterSpeedRange`       - if the cluster speed moved out of a defined range, "]
2663    #[doc = " * - 5 - `joiningAnotherCluster`        - if the participant is joining another cluster,"]
2664    #[doc = " * - 6 - `cancelledJoin`                - if the participant is cancelling a joining procedure,"]
2665    #[doc = " * - 7 - `failedJoin`                   - if the participant failed to join the cluster,"]
2666    #[doc = " * - 8 - `safetyCondition`              - if a safety condition applies."]
2667    #[doc = " * - 9 to 15                            - are reserved for future use                             "]
2668    #[doc = " *"]
2669    #[doc = " * @category: Cluster information"]
2670    #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
2671    #[doc = " "]
2672    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2673    #[rasn(delegate, value("0..=15"))]
2674    pub struct ClusterLeaveReason(pub u8);
2675    #[doc = "*"]
2676    #[doc = " * This DE represents the sub cause codes of the @ref CauseCode `collisionRisk`."]
2677    #[doc = " * "]
2678    #[doc = " * The value shall be set to:"]
2679    #[doc = " * - 0 - `unavailable`                    - in case information on the type of collision risk is unavailable,"]
2680    #[doc = " * - 1 - `longitudinalCollisionRisk`      - in case the type of detected collision risk is longitudinal collision risk, "]
2681    #[doc = " *                                          e.g. forward collision or face to face collision,"]
2682    #[doc = " * - 2 - `crossingCollisionRisk`          - in case the type of detected collision risk is crossing collision risk,"]
2683    #[doc = " * - 3 - `lateralCollisionRisk`           - in case the type of detected collision risk is lateral collision risk,"]
2684    #[doc = " * - 4 - `vulnerableRoadUser`             - in case the type of detected collision risk involves vulnerable road users"]
2685    #[doc = " *                                          e.g. pedestrians or bicycles."]
2686    #[doc = " * - 5 - `collisionRiskWithPedestrian`    - in case the type of detected collision risk involves at least one pedestrian, "]
2687    #[doc = " * - 6 - `collisionRiskWithCyclist`       - in case the type of detected collision risk involves at least one cyclist (and no pedestrians),"]
2688    #[doc = " * - 7 - `collisionRiskWithMotorVehicle`  - in case the type of detected collision risk involves at least one motor vehicle (and no pedestrians or cyclists),"]
2689    #[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."]
2690    #[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. "]
2691    #[doc = " * - 10-255                               - are reserved for future usage."]
2692    #[doc = " *"]
2693    #[doc = " * @category: Traffic information"]
2694    #[doc = " * @revision: V1.3.1, values 5-7 assigned in V2.2.1, values 8-9 added in V2.4.1"]
2695    #[doc = " "]
2696    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2697    #[rasn(delegate, value("0..=255"))]
2698    pub struct CollisionRiskSubCauseCode(pub u8);
2699    #[doc = "* "]
2700    #[doc = " * This DE represents a confidence level in percentage."]
2701    #[doc = " * "]
2702    #[doc = " * The value shall be set to:"]
2703    #[doc = " * - `n` (`n > 0` and `n < 101`) : for the confidence level in %,"]
2704    #[doc = " * - `101`                   : in case the confidence level is not available."]
2705    #[doc = " *"]
2706    #[doc = " * @unit Percent "]
2707    #[doc = " * @category: Basic information "]
2708    #[doc = " * @revision: Created in V2.1.1 "]
2709    #[doc = ""]
2710    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2711    #[rasn(delegate, value("1..=101"))]
2712    pub struct ConfidenceLevel(pub u8);
2713    #[doc = "*"]
2714    #[doc = "* This DF shall contain a list of @ref ConfidenceLevel."]
2715    #[doc = "*"]
2716    #[doc = "* @category: Basic information"]
2717    #[doc = "* @revision: created in V2.3.1 "]
2718    #[doc = ""]
2719    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2720    #[rasn(delegate, size("1..=32", extensible))]
2721    pub struct ConfidenceLevels(pub SequenceOf<ConfidenceLevel>);
2722    #[doc = "* "]
2723    #[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 %."]
2724    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
2725    #[doc = " *"]
2726    #[doc = " * The value shall be set to: "]
2727    #[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,"]
2728    #[doc = " * - `4095` if the confidence value is greater than 40,94 metres,"]
2729    #[doc = " * - `4096` if the confidence value is not available."]
2730    #[doc = " *"]
2731    #[doc = " * @unit 0,01 m"]
2732    #[doc = " * @category: Basic information"]
2733    #[doc = " * @revision: Created in V2.1.1"]
2734    #[doc = ""]
2735    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2736    #[rasn(delegate, value("1..=4096"))]
2737    pub struct CoordinateConfidence(pub u16);
2738    #[doc = "* "]
2739    #[doc = " * This DE represents the Bravais-Pearson correlation value for each cell of a lower triangular correlation matrix."]
2740    #[doc = " *"]
2741    #[doc = " * The value shall be set to: "]
2742    #[doc = " * - `-100` in case of full negative correlation,"]
2743    #[doc = " * - `n` (`n > -100` and `n < 0`) if the correlation is negative and equal to n/100,"]
2744    #[doc = " * - `0` in case of no correlation,"]
2745    #[doc = " * - `n` (`n > 0` and `n < 100`) if the correlation is positive and equal to n/100,"]
2746    #[doc = " * - `100` in case of full positive correlation,"]
2747    #[doc = " * - `101` in case the correlation information is unavailable. "]
2748    #[doc = " *"]
2749    #[doc = " * @unit: the value is scaled by 100"]
2750    #[doc = " * @category: Basic information"]
2751    #[doc = " * @revision: Created in V2.1.1, corrected the value to n/100 on V2.4.1"]
2752    #[doc = ""]
2753    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2754    #[rasn(delegate, value("-100..=101"))]
2755    pub struct CorrelationCellValue(pub i8);
2756    #[doc = "*"]
2757    #[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."]
2758    #[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."]
2759    #[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"]
2760    #[doc = " * starting at 1 from the left."]
2761    #[doc = " *"]
2762    #[doc = " * @category: Sensing Information"]
2763    #[doc = " * @revision: Created in V2.1.1"]
2764    #[doc = ""]
2765    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2766    #[rasn(delegate, size("1..=13", extensible))]
2767    pub struct CorrelationColumn(pub SequenceOf<CorrelationCellValue>);
2768    #[doc = "* "]
2769    #[doc = " * This DE represents an ISO 3166-1 [25] country code encoded using ITA-2 encoding."]
2770    #[doc = " *"]
2771    #[doc = " * @category: Basic information"]
2772    #[doc = " * @revision: Created in V2.2.1 based on ISO 14816 [23]"]
2773    #[doc = ""]
2774    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2775    #[rasn(delegate)]
2776    pub struct CountryCode(pub FixedBitString<10usize>);
2777    #[doc = "*"]
2778    #[doc = " * This DF represents the curvature of the vehicle trajectory and the associated confidence value."]
2779    #[doc = " * The curvature detected by a vehicle represents the curvature of actual vehicle trajectory."]
2780    #[doc = " *"]
2781    #[doc = " * It shall include the following components: "]
2782    #[doc = " * "]
2783    #[doc = " * @field curvatureValue: Detected curvature of the vehicle trajectory."]
2784    #[doc = " * "]
2785    #[doc = " * @field curvatureConfidence: along with a confidence value of the curvature value with a predefined confidence level. "]
2786    #[doc = " * "]
2787    #[doc = " * @category: Vehicle information"]
2788    #[doc = " * @revision: Description revised in V2.1.1"]
2789    #[doc = " "]
2790    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2791    #[rasn(automatic_tags)]
2792    pub struct Curvature {
2793        #[rasn(identifier = "curvatureValue")]
2794        pub curvature_value: CurvatureValue,
2795        #[rasn(identifier = "curvatureConfidence")]
2796        pub curvature_confidence: CurvatureConfidence,
2797    }
2798    impl Curvature {
2799        pub fn new(
2800            curvature_value: CurvatureValue,
2801            curvature_confidence: CurvatureConfidence,
2802        ) -> Self {
2803            Self {
2804                curvature_value,
2805                curvature_confidence,
2806            }
2807        }
2808    }
2809    #[doc = "*"]
2810    #[doc = " * The DE describes whether the yaw rate is used to calculate the curvature for a curvature value."]
2811    #[doc = " * "]
2812    #[doc = " * The value shall be set to:"]
2813    #[doc = " * - 0 - `yawRateUsed`    - if the yaw rate is used,"]
2814    #[doc = " * - 1 - `yawRateNotUsed` - if the yaw rate is not used,"]
2815    #[doc = " * - 2 - `unavailable`    - if the information of curvature calculation mode is unknown."]
2816    #[doc = " *"]
2817    #[doc = " * @category: Vehicle information"]
2818    #[doc = " * @revision: V1.3.1"]
2819    #[doc = " "]
2820    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2821    #[rasn(enumerated)]
2822    #[non_exhaustive]
2823    pub enum CurvatureCalculationMode {
2824        yawRateUsed = 0,
2825        yawRateNotUsed = 1,
2826        unavailable = 2,
2827    }
2828    #[doc = "*"]
2829    #[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 %."]
2830    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
2831    #[doc = " * "]
2832    #[doc = " * The value shall be set to:"]
2833    #[doc = " * - 0 - `onePerMeter-0-00002` - if the confidence value is less than or equal to 0,00002 m-1,"]
2834    #[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,"]
2835    #[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,"]
2836    #[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,"]
2837    #[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,"]
2838    #[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,"]
2839    #[doc = " * - 6 - `outOfRange`          - if the confidence value is out of range, i.e. greater than 0,1 m-1,"]
2840    #[doc = " * - 7 - `unavailable`         - if the confidence value is not available."]
2841    #[doc = " * "]
2842    #[doc = " * @note:\tThe fact that a curvature value is received with confidence value set to `unavailable(7)` can be caused by"]
2843    #[doc = " * several reasons, such as:"]
2844    #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
2845    #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
2846    #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
2847    #[doc = " * In all 3 cases above, the curvature value may be valid and used by the application."]
2848    #[doc = " * "]
2849    #[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 "]
2850    #[doc = " * and therefore cannot be trusted. Such value is not useful for the application."]
2851    #[doc = " * "]
2852    #[doc = " * @category: Vehicle information"]
2853    #[doc = " * @revision: Description revised in V2.1.1"]
2854    #[doc = ""]
2855    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2856    #[rasn(enumerated)]
2857    pub enum CurvatureConfidence {
2858        #[rasn(identifier = "onePerMeter-0-00002")]
2859        onePerMeter_0_00002 = 0,
2860        #[rasn(identifier = "onePerMeter-0-0001")]
2861        onePerMeter_0_0001 = 1,
2862        #[rasn(identifier = "onePerMeter-0-0005")]
2863        onePerMeter_0_0005 = 2,
2864        #[rasn(identifier = "onePerMeter-0-002")]
2865        onePerMeter_0_002 = 3,
2866        #[rasn(identifier = "onePerMeter-0-01")]
2867        onePerMeter_0_01 = 4,
2868        #[rasn(identifier = "onePerMeter-0-1")]
2869        onePerMeter_0_1 = 5,
2870        outOfRange = 6,
2871        unavailable = 7,
2872    }
2873    #[doc = "*"]
2874    #[doc = " * This DE describes vehicle turning curve with the following information:"]
2875    #[doc = " * ```"]
2876    #[doc = " *     Value = 1 / Radius * 10000"]
2877    #[doc = " * ```"]
2878    #[doc = " * wherein radius is the vehicle turning curve radius in metres. "]
2879    #[doc = " * "]
2880    #[doc = " * Positive values indicate a turning curve to the left hand side of the driver."]
2881    #[doc = " * It corresponds to the vehicle coordinate system as defined in ISO 8855 [21]."]
2882    #[doc = " *"]
2883    #[doc = " * The value shall be set to:"]
2884    #[doc = " * - `-1023` for  values smaller than -1023,"]
2885    #[doc = " * - `n` (`n > -1023` and `n < 0`) for negative values equal to or less than `n`, and greater than `(n-1)`,"]
2886    #[doc = " * - `0` when the vehicle is moving straight,"]
2887    #[doc = " * - `n` (`n > 0` and `n < 1022`) for positive values equal to or less than `n`, and greater than `(n-1)`,"]
2888    #[doc = " * - `1022`, for values  greater than 1021,"]
2889    #[doc = " * - `1023`, if the information is not available."]
2890    #[doc = " * "]
2891    #[doc = " * @note: The present DE is limited to vehicle types as defined in ISO 8855 [21]."]
2892    #[doc = " * "]
2893    #[doc = " * @unit: 1 over 10 000 metres"]
2894    #[doc = " * @category: Vehicle information"]
2895    #[doc = " * @revision: description revised in V2.1.1 (the definition of value 1022 has changed slightly)"]
2896    #[doc = " "]
2897    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2898    #[rasn(delegate, value("-1023..=1023"))]
2899    pub struct CurvatureValue(pub i16);
2900    #[doc = "*"]
2901    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `dangerousEndOfQueue`. "]
2902    #[doc = " * "]
2903    #[doc = " * The value shall be set to:"]
2904    #[doc = " * - 0 - `unavailable`     - in case information on the type of dangerous queue is unavailable,"]
2905    #[doc = " * - 1 - `suddenEndOfQueue`- in case a sudden end of queue is detected, e.g. due to accident or obstacle,"]
2906    #[doc = " * - 2 - `queueOverHill`   - in case the dangerous end of queue is detected on the road hill,"]
2907    #[doc = " * - 3 - `queueAroundBend` - in case the dangerous end of queue is detected around the road bend,"]
2908    #[doc = " * - 4 - `queueInTunnel`   - in case queue is detected in tunnel,"]
2909    #[doc = " * - 5-255                 - reserved for future usage."]
2910    #[doc = " *"]
2911    #[doc = " * @category: Traffic information"]
2912    #[doc = " * @revision: V1.3.1"]
2913    #[doc = " "]
2914    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2915    #[rasn(delegate, value("0..=255"))]
2916    pub struct DangerousEndOfQueueSubCauseCode(pub u8);
2917    #[doc = "*"]
2918    #[doc = " * This DE indicates the type of the dangerous goods being carried by a heavy vehicle."]
2919    #[doc = " * The value is assigned according to `class` and `division` definitions of dangerous goods as specified in part II,"]
2920    #[doc = " * chapter 2.1.1.1 of European Agreement concerning the International Carriage of Dangerous Goods by Road [3]."]
2921    #[doc = " * "]
2922    #[doc = " * "]
2923    #[doc = " * @category Vehicle information"]
2924    #[doc = " * @revision: V1.3.1"]
2925    #[doc = " "]
2926    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2927    #[rasn(enumerated)]
2928    pub enum DangerousGoodsBasic {
2929        explosives1 = 0,
2930        explosives2 = 1,
2931        explosives3 = 2,
2932        explosives4 = 3,
2933        explosives5 = 4,
2934        explosives6 = 5,
2935        flammableGases = 6,
2936        nonFlammableGases = 7,
2937        toxicGases = 8,
2938        flammableLiquids = 9,
2939        flammableSolids = 10,
2940        substancesLiableToSpontaneousCombustion = 11,
2941        substancesEmittingFlammableGasesUponContactWithWater = 12,
2942        oxidizingSubstances = 13,
2943        organicPeroxides = 14,
2944        toxicSubstances = 15,
2945        infectiousSubstances = 16,
2946        radioactiveMaterial = 17,
2947        corrosiveSubstances = 18,
2948        miscellaneousDangerousSubstances = 19,
2949    }
2950    #[doc = "*"]
2951    #[doc = " * This DF provides a description of dangerous goods being carried by a heavy vehicle."]
2952    #[doc = " *"]
2953    #[doc = " * It shall include the following components: "]
2954    #[doc = " * "]
2955    #[doc = " * @field dangerousGoodsType: Type of dangerous goods."]
2956    #[doc = " * "]
2957    #[doc = " * @field unNumber: a 4-digit number that identifies the substance of the dangerous goods as specified in"]
2958    #[doc = " * United Nations Recommendations on the Transport of Dangerous Goods - Model Regulations [4],"]
2959    #[doc = " * "]
2960    #[doc = " * @field elevatedTemperature: whether the carried dangerous goods are transported at high temperature."]
2961    #[doc = " * If yes, the value shall be set to TRUE,"]
2962    #[doc = " * "]
2963    #[doc = " * @field tunnelsRestricted: whether the heavy vehicle carrying dangerous goods is restricted to enter tunnels."]
2964    #[doc = " * If yes, the value shall be set to TRUE,"]
2965    #[doc = " * "]
2966    #[doc = " * @field limitedQuantity: whether the carried dangerous goods are packed with limited quantity."]
2967    #[doc = " * If yes, the value shall be set to TRUE,"]
2968    #[doc = " * "]
2969    #[doc = " * @field emergencyActionCode: physical signage placard at the vehicle that carries information on how an emergency"]
2970    #[doc = " * service should deal with an incident. This component is optional; it shall be present if the information is available."]
2971    #[doc = " * "]
2972    #[doc = " * @field phoneNumber: contact phone number of assistance service in case of incident or accident."]
2973    #[doc = " * This component is optional, it shall be present if the information is available."]
2974    #[doc = " * "]
2975    #[doc = " * @field companyName: name of company that manages the transportation of the dangerous goods."]
2976    #[doc = " * This component is optional; it shall be present if the information is available."]
2977    #[doc = " * "]
2978    #[doc = " * @category Vehicle information"]
2979    #[doc = " * @revision: V1.3.1"]
2980    #[doc = " "]
2981    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2982    #[rasn(automatic_tags)]
2983    #[non_exhaustive]
2984    pub struct DangerousGoodsExtended {
2985        #[rasn(identifier = "dangerousGoodsType")]
2986        pub dangerous_goods_type: DangerousGoodsBasic,
2987        #[rasn(value("0..=9999"), identifier = "unNumber")]
2988        pub un_number: u16,
2989        #[rasn(identifier = "elevatedTemperature")]
2990        pub elevated_temperature: bool,
2991        #[rasn(identifier = "tunnelsRestricted")]
2992        pub tunnels_restricted: bool,
2993        #[rasn(identifier = "limitedQuantity")]
2994        pub limited_quantity: bool,
2995        #[rasn(size("1..=24"), identifier = "emergencyActionCode")]
2996        pub emergency_action_code: Option<Ia5String>,
2997        #[rasn(identifier = "phoneNumber")]
2998        pub phone_number: Option<PhoneNumber>,
2999        #[rasn(identifier = "companyName")]
3000        pub company_name: Option<Utf8String>,
3001    }
3002    impl DangerousGoodsExtended {
3003        pub fn new(
3004            dangerous_goods_type: DangerousGoodsBasic,
3005            un_number: u16,
3006            elevated_temperature: bool,
3007            tunnels_restricted: bool,
3008            limited_quantity: bool,
3009            emergency_action_code: Option<Ia5String>,
3010            phone_number: Option<PhoneNumber>,
3011            company_name: Option<Utf8String>,
3012        ) -> Self {
3013            Self {
3014                dangerous_goods_type,
3015                un_number,
3016                elevated_temperature,
3017                tunnels_restricted,
3018                limited_quantity,
3019                emergency_action_code,
3020                phone_number,
3021                company_name,
3022            }
3023        }
3024    }
3025    #[doc = "*"]
3026    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `dangerousSituation` "]
3027    #[doc = " * "]
3028    #[doc = " * The value shall be set to:"]
3029    #[doc = " * - 0 - `unavailable`                      - in case information on the type of dangerous situation is unavailable,"]
3030    #[doc = " * - 1 - `emergencyElectronicBrakeEngaged`  - in case emergency electronic brake is engaged,"]
3031    #[doc = " * - 2 - `preCrashSystemEngaged`            - in case pre-crash system is engaged,"]
3032    #[doc = " * - 3 - `espEngaged`                       - in case Electronic Stability Program (ESP) system is engaged,"]
3033    #[doc = " * - 4 - `absEngaged`                       - in case Anti-lock Braking System (ABS) is engaged,"]
3034    #[doc = " * - 5 - `aebEngaged`                       - in case Autonomous Emergency Braking (AEB) system is engaged,"]
3035    #[doc = " * - 6 - `brakeWarningEngaged`              - in case brake warning is engaged,"]
3036    #[doc = " * - 7 - `collisionRiskWarningEngaged`      - in case collision risk warning is engaged,"]
3037    #[doc = " * - 8 - `riskMitigationFunctionEngaged`    - in case the Risk Mitigation Function according to UNECE Regulation 79 is engaged,"]
3038    #[doc = " * - 9-255                                  - reserved for future usage."]
3039    #[doc = " *"]
3040    #[doc = " * @category: Traffic information"]
3041    #[doc = " * @revision: V1.3.1, value 8 assigned in V2.4.1"]
3042    #[doc = " "]
3043    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3044    #[rasn(delegate, value("0..=255"))]
3045    pub struct DangerousSituationSubCauseCode(pub u8);
3046    #[doc = "*"]
3047    #[doc = " * This DE represents an offset altitude with regards to a defined altitude value."]
3048    #[doc = " * It may be used to describe a geographical point with regards to a specific reference geographical position."]
3049    #[doc = " *"]
3050    #[doc = " * The value shall be set to:"]
3051    #[doc = " * - `-12 700` for values equal to or lower than -127 metres,"]
3052    #[doc = " * - `n` (`n > -12 700` and `n <= 0`) for altitude offset n x 0,01 metre below the reference position,"]
3053    #[doc = " * - `0` for no altitudinal offset,"]
3054    #[doc = " * - `n` (`n > 0` and `n < 12799`) for altitude offset n x 0,01 metre above the reference position,"]
3055    #[doc = " * - `12 799` for values equal to or greater than 127,99 metres,"]
3056    #[doc = " * - `12 800` when the information is unavailable."]
3057    #[doc = " *"]
3058    #[doc = " * @unit: 0,01 metre"]
3059    #[doc = " * @category: GeoReference information"]
3060    #[doc = " * @revision: editorial update in V2.1.1"]
3061    #[doc = " "]
3062    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3063    #[rasn(delegate, value("-12700..=12800"))]
3064    pub struct DeltaAltitude(pub i16);
3065    #[doc = "*"]
3066    #[doc = " * This DE represents an offset latitude with regards to a defined latitude value."]
3067    #[doc = " * It may be used to describe a geographical point with regards to a specific reference geographical position."]
3068    #[doc = " *"]
3069    #[doc = " * The value shall be set to:"]
3070    #[doc = " * - `n` (`n >= -131 071` and `n < 0`) for offset n x 10^-7 degree towards the south from the reference position,"]
3071    #[doc = " * - `0` for no latitudinal offset,"]
3072    #[doc = " * - `n` (`n > 0` and `n < 131 072`) for offset n x 10^-7 degree towards the north from the reference position,"]
3073    #[doc = " * - `131 072` when the information is unavailable."]
3074    #[doc = " *"]
3075    #[doc = " * @unit: 10^-7 degree"]
3076    #[doc = " * @category: GeoReference information"]
3077    #[doc = " * @revision: editorial update in V2.1.1"]
3078    #[doc = " "]
3079    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3080    #[rasn(delegate, value("-131071..=131072"))]
3081    pub struct DeltaLatitude(pub i32);
3082    #[doc = "*"]
3083    #[doc = " * This DE represents an offset longitude with regards to a defined longitude value."]
3084    #[doc = " * It may be used to describe a geographical point with regards to a specific reference geographical position."]
3085    #[doc = " *"]
3086    #[doc = " * The value shall be set to:"]
3087    #[doc = " * - `n` (`n >= -131 071` and `n < 0`) for offset n x 10^-7 degree towards the west from the reference position,"]
3088    #[doc = " * - `0` for no longitudinal offset,"]
3089    #[doc = " * - `n` (`n > 0` and `n < 131 072`) for offset n x 10^-7 degree towards the east from the reference position, "]
3090    #[doc = " * - `131 072` when the information is unavailable."]
3091    #[doc = " *"]
3092    #[doc = " * @unit: 10^-7 degree"]
3093    #[doc = " * @category: GeoReference information"]
3094    #[doc = " * @revision: editorial update in V2.1.1"]
3095    #[doc = " "]
3096    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3097    #[rasn(delegate, value("-131071..=131072"))]
3098    pub struct DeltaLongitude(pub i32);
3099    #[doc = "*"]
3100    #[doc = "* This DF defines a geographical point position as a 2 dimensional offset position to a geographical reference point."]
3101    #[doc = "*"]
3102    #[doc = "* It shall include the following components: "]
3103    #[doc = "*"]
3104    #[doc = "* @field deltaLatitude: A delta latitude offset with regards to the latitude value of the reference position."]
3105    #[doc = "*"]
3106    #[doc = "* @field deltaLongitude: A delta longitude offset with regards to the longitude value of the reference position."]
3107    #[doc = "*"]
3108    #[doc = "* @category: GeoReference information"]
3109    #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321"]
3110    #[doc = ""]
3111    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3112    #[rasn(automatic_tags)]
3113    pub struct DeltaPosition {
3114        #[rasn(identifier = "deltaLatitude")]
3115        pub delta_latitude: DeltaLatitude,
3116        #[rasn(identifier = "deltaLongitude")]
3117        pub delta_longitude: DeltaLongitude,
3118    }
3119    impl DeltaPosition {
3120        pub fn new(delta_latitude: DeltaLatitude, delta_longitude: DeltaLongitude) -> Self {
3121            Self {
3122                delta_latitude,
3123                delta_longitude,
3124            }
3125        }
3126    }
3127    #[doc = "*"]
3128    #[doc = "* This DF shall contain a list of @ref DeltaPosition."]
3129    #[doc = "*"]
3130    #[doc = "* @category: GeoReference information"]
3131    #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (DF DeltaPosition)"]
3132    #[doc = ""]
3133    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3134    #[rasn(delegate, size("1..=32", extensible))]
3135    pub struct DeltaPositions(pub SequenceOf<DeltaPosition>);
3136    #[doc = "*"]
3137    #[doc = " * This DF defines a geographical point position as a 3 dimensional offset position to a geographical reference point."]
3138    #[doc = " *"]
3139    #[doc = " * It shall include the following components: "]
3140    #[doc = " *"]
3141    #[doc = " * @field deltaLatitude: A delta latitude offset with regards to the latitude value of the reference position."]
3142    #[doc = " *"]
3143    #[doc = " * @field deltaLongitude: A delta longitude offset with regards to the longitude value of the reference position."]
3144    #[doc = " *"]
3145    #[doc = " * @field deltaAltitude: A delta altitude offset with regards to the altitude value of the reference position."]
3146    #[doc = " *"]
3147    #[doc = " * @category: GeoReference information"]
3148    #[doc = " * @revision:  V1.3.1"]
3149    #[doc = " "]
3150    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3151    #[rasn(automatic_tags)]
3152    pub struct DeltaReferencePosition {
3153        #[rasn(identifier = "deltaLatitude")]
3154        pub delta_latitude: DeltaLatitude,
3155        #[rasn(identifier = "deltaLongitude")]
3156        pub delta_longitude: DeltaLongitude,
3157        #[rasn(identifier = "deltaAltitude")]
3158        pub delta_altitude: DeltaAltitude,
3159    }
3160    impl DeltaReferencePosition {
3161        pub fn new(
3162            delta_latitude: DeltaLatitude,
3163            delta_longitude: DeltaLongitude,
3164            delta_altitude: DeltaAltitude,
3165        ) -> Self {
3166            Self {
3167                delta_latitude,
3168                delta_longitude,
3169                delta_altitude,
3170            }
3171        }
3172    }
3173    #[doc = "*"]
3174    #[doc = "* This DF shall contain a list of @ref DeltaReferencePosition."]
3175    #[doc = "*"]
3176    #[doc = "* @category: GeoReference information"]
3177    #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (DF DeltaReferencePositions)"]
3178    #[doc = ""]
3179    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3180    #[rasn(delegate, size("1..=32", extensible))]
3181    pub struct DeltaReferencePositions(pub SequenceOf<DeltaReferencePosition>);
3182    #[doc = "*"]
3183    #[doc = " * This DE represents a difference in time with respect to a reference time."]
3184    #[doc = " *"]
3185    #[doc = " * The value shall be set to:"]
3186    #[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,"]
3187    #[doc = " *"]
3188    #[doc = " * Example: a time interval between two consecutive message transmissions."]
3189    #[doc = " * "]
3190    #[doc = " * @unit: 0,001 s"]
3191    #[doc = " * @category: Basic information"]
3192    #[doc = " * @revision: Created in V2.1.1 from the DE TransmissionInterval in [2]"]
3193    #[doc = " "]
3194    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3195    #[rasn(delegate, value("1..=10000"))]
3196    pub struct DeltaTimeMilliSecondPositive(pub u16);
3197    #[doc = "* "]
3198    #[doc = " * This DE represents a signed difference in time with respect to a reference time."]
3199    #[doc = " *"]
3200    #[doc = " * The value shall be set to:"]
3201    #[doc = " * - `-2048` for time values equal to or less than -2,048 s,"]
3202    #[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,"]
3203    #[doc = " * - `2047` for time values greater than 2,046 s"]
3204    #[doc = " *"]
3205    #[doc = " * @unit: 0,001 s"]
3206    #[doc = " * @category: Basic information"]
3207    #[doc = " * @revision: Created in V2.1.1"]
3208    #[doc = ""]
3209    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3210    #[rasn(delegate, value("-2048..=2047"))]
3211    pub struct DeltaTimeMilliSecondSigned(pub i16);
3212    #[doc = "* "]
3213    #[doc = " * This DE represents a difference in time with respect to a reference time."]
3214    #[doc = " * It can be interpreted as the first 8 bits of a GenerationDeltaTime. To convert it to a @ref GenerationDeltaTime, "]
3215    #[doc = " * multiply by 256 (i.e. append a `00` byte)"]
3216    #[doc = " *"]
3217    #[doc = " * @unit: 256 * 0,001 s "]
3218    #[doc = " * @category: Basic information"]
3219    #[doc = " * @revision: Created in V2.1.1"]
3220    #[doc = " "]
3221    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3222    #[rasn(delegate, value("1..=255"))]
3223    pub struct DeltaTimeQuarterSecond(pub u8);
3224    #[doc = "* "]
3225    #[doc = " * This DE represents a  difference in time with respect to a reference time."]
3226    #[doc = " *"]
3227    #[doc = " * The value shall be set to:"]
3228    #[doc = " * - `-0` for a difference in time of 0 seconds. "]
3229    #[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,"]
3230    #[doc = " *"]
3231    #[doc = " * @unit: 1 s"]
3232    #[doc = " * @category: Basic information"]
3233    #[doc = " * @revision: Created in V2.1.1 from ValidityDuration"]
3234    #[doc = ""]
3235    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3236    #[rasn(delegate, value("0..=86400"))]
3237    pub struct DeltaTimeSecond(pub u32);
3238    #[doc = "*"]
3239    #[doc = " * This DE represents a difference in time with respect to a reference time."]
3240    #[doc = " *"]
3241    #[doc = " * The value shall be set to:"]
3242    #[doc = " * - `-0` for a difference in time of 0 seconds. "]
3243    #[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,"]
3244    #[doc = " *"]
3245    #[doc = " * @unit: 10 s"]
3246    #[doc = " * @category: Basic information"]
3247    #[doc = " * @revision: Created in V2.2.1"]
3248    #[doc = ""]
3249    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3250    #[rasn(delegate, value("0..=127"))]
3251    pub struct DeltaTimeTenSeconds(pub u8);
3252    #[doc = "* "]
3253    #[doc = " * This DE represents a difference in time with respect to a reference time."]
3254    #[doc = " *"]
3255    #[doc = " * The value shall be set to:"]
3256    #[doc = " * - `0` for a difference in time of 0 seconds. "]
3257    #[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,"]
3258    #[doc = " *"]
3259    #[doc = " * @unit: 0,1 s"]
3260    #[doc = " * @category: Basic information"]
3261    #[doc = " * @revision: Created in V2.1.1"]
3262    #[doc = ""]
3263    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3264    #[rasn(delegate, value("0..=127"))]
3265    pub struct DeltaTimeTenthOfSecond(pub u8);
3266    #[doc = "*"]
3267    #[doc = " * This DF represents a portion of digital map. It shall contain a list of waypoints @ref ReferencePosition."]
3268    #[doc = " * "]
3269    #[doc = " * @category: GeoReference information"]
3270    #[doc = " * @revision:  V1.3.1"]
3271    #[doc = " "]
3272    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3273    #[rasn(delegate, size("1..=256"))]
3274    pub struct DigitalMap(pub SequenceOf<ReferencePosition>);
3275    #[doc = "*"]
3276    #[doc = " * This DE indicates a direction with respect to a defined reference direction."]
3277    #[doc = " * Example: a reference direction may be implicitly defined by the definition of a geographical zone."]
3278    #[doc = " *"]
3279    #[doc = " * The value shall be set to:"]
3280    #[doc = " * - 0 - `sameDirection`     - to indicate the same direction as the reference direction,"]
3281    #[doc = " * - 1 - `oppositeDirection` - to indicate opposite direction as the reference direction,"]
3282    #[doc = " * - 2 - `bothDirections`    - to indicate both directions, i.e. the same and the opposite direction,"]
3283    #[doc = " * - 3 - `unavailable`       - to indicate that the information is unavailable."]
3284    #[doc = " *"]
3285    #[doc = " * @category: GeoReference information"]
3286    #[doc = " * @revision: Created in V2.1.1"]
3287    #[doc = " "]
3288    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3289    #[rasn(delegate, value("0..=3"))]
3290    pub struct Direction(pub u8);
3291    #[doc = "*"]
3292    #[doc = " * This DE indicates in which direction something is moving."]
3293    #[doc = " *"]
3294    #[doc = " * The value shall be set to:"]
3295    #[doc = " * - 0 - `forward`     - to indicate it is moving forward,"]
3296    #[doc = " * - 1 - `backwards`   - to indicate it is moving backwards,"]
3297    #[doc = " * - 2 - `unavailable` - to indicate that the information is unavailable."]
3298    #[doc = " *"]
3299    #[doc = " * @category: Kinematic information"]
3300    #[doc = " * @revision: editorial update in V2.1.1"]
3301    #[doc = " "]
3302    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3303    #[rasn(enumerated)]
3304    pub enum DriveDirection {
3305        forward = 0,
3306        backward = 1,
3307        unavailable = 2,
3308    }
3309    #[doc = "*"]
3310    #[doc = " * This DE indicates whether a driving lane is open to traffic."]
3311    #[doc = " * "]
3312    #[doc = " * A lane is counted from inside border of the road excluding the hard shoulder. The size of the bit string shall"]
3313    #[doc = " * correspond to the total number of the driving lanes in the carriageway."]
3314    #[doc = " * "]
3315    #[doc = " * The numbering is matched to @ref LanePosition."]
3316    #[doc = " * The bit `0` is used to indicate the innermost lane, bit `1` is used to indicate the second lane from inside border."]
3317    #[doc = " * "]
3318    #[doc = " * If a lane is closed to traffic, the corresponding bit shall be set to `1`. Otherwise, it shall be set to `0`."]
3319    #[doc = " * "]
3320    #[doc = " * @note: hard shoulder status is not provided by this DE but in @ref HardShoulderStatus."]
3321    #[doc = " * "]
3322    #[doc = " * @category: Traffic information"]
3323    #[doc = " * @revision: V1.3.1"]
3324    #[doc = " "]
3325    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3326    #[rasn(delegate, size("1..=13"))]
3327    pub struct DrivingLaneStatus(pub BitString);
3328    #[doc = "* "]
3329    #[doc = " * "]
3330    #[doc = " * This DF represents the shape of an elliptical area or right elliptical cylinder that is centred "]
3331    #[doc = " * on the shape's reference point defined outside of the context of this DF and oriented w.r.t. a  "]
3332    #[doc = " * cartesian coordinate system defined outside of the context of this DF. "]
3333    #[doc = " *"]
3334    #[doc = " * It shall include the following components: "]
3335    #[doc = " * "]
3336    #[doc = " * @field shapeReferencePoint: optional reference point which represents the centre of the ellipse, "]
3337    #[doc = " * relative to an externally specified reference position. If this component is absent, the "]
3338    #[doc = " * externally specified reference position represents the shape's reference point. "]
3339    #[doc = " *"]
3340    #[doc = " * @field semiMajorAxisLength: half length of the major axis of the ellipse located in the X-Y Plane."]
3341    #[doc = " * "]
3342    #[doc = " * @field semiMinorAxisLength: half length of the minor axis of the ellipse located in the X-Y Plane."]
3343    #[doc = " *"]
3344    #[doc = " * @field orientation: the optional orientation of the major axis of the ellipse, measured with "]
3345    #[doc = " * positive values turning around the z-axis using the right-hand rule, starting from the X-axis."]
3346    #[doc = " * If absent, the orientation is equal to the value zero. "]
3347    #[doc = " * "]
3348    #[doc = " * @field height: the optional height, present if the shape is a right elliptical cylinder extending "]
3349    #[doc = " * in the positive Z-axis."]
3350    #[doc = " *"]
3351    #[doc = " * @category: GeoReference information"]
3352    #[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"]
3353    #[doc = ""]
3354    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3355    #[rasn(automatic_tags)]
3356    pub struct EllipticalShape {
3357        #[rasn(identifier = "shapeReferencePoint")]
3358        pub shape_reference_point: Option<CartesianPosition3d>,
3359        #[rasn(identifier = "semiMajorAxisLength")]
3360        pub semi_major_axis_length: StandardLength12b,
3361        #[rasn(identifier = "semiMinorAxisLength")]
3362        pub semi_minor_axis_length: StandardLength12b,
3363        pub orientation: Option<CartesianAngleValue>,
3364        pub height: Option<StandardLength12b>,
3365    }
3366    impl EllipticalShape {
3367        pub fn new(
3368            shape_reference_point: Option<CartesianPosition3d>,
3369            semi_major_axis_length: StandardLength12b,
3370            semi_minor_axis_length: StandardLength12b,
3371            orientation: Option<CartesianAngleValue>,
3372            height: Option<StandardLength12b>,
3373        ) -> Self {
3374            Self {
3375                shape_reference_point,
3376                semi_major_axis_length,
3377                semi_minor_axis_length,
3378                orientation,
3379                height,
3380            }
3381        }
3382    }
3383    #[doc = "*"]
3384    #[doc = " * This DE indicates whether a vehicle (e.g. public transport vehicle, truck) is under the embarkation process."]
3385    #[doc = " * If that is the case, the value is *TRUE*, otherwise *FALSE*."]
3386    #[doc = " *"]
3387    #[doc = " * @category: Vehicle information"]
3388    #[doc = " * @revision: editorial update in V2.1.1"]
3389    #[doc = " "]
3390    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3391    #[rasn(delegate)]
3392    pub struct EmbarkationStatus(pub bool);
3393    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3394    #[rasn(delegate)]
3395    pub struct EmergencyPriority(pub FixedBitString<2usize>);
3396    #[doc = "*"]
3397    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode \"emergencyVehicleApproaching\". "]
3398    #[doc = " * "]
3399    #[doc = " * The value shall be set to:"]
3400    #[doc = " * - 0 - `unavailable`                   - in case further detailed information on the emergency vehicle approaching event "]
3401    #[doc = " *                                         is unavailable,"]
3402    #[doc = " * - 1 - `emergencyVehicleApproaching`   - in case an operating emergency vehicle is approaching,"]
3403    #[doc = " * - 2 - `prioritizedVehicleApproaching` - in case a prioritized vehicle is approaching,"]
3404    #[doc = " * - 3-255                               - reserved for future usage."]
3405    #[doc = " *"]
3406    #[doc = " * @category: Traffic information"]
3407    #[doc = " * @revision: V1.3.1"]
3408    #[doc = " "]
3409    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3410    #[rasn(delegate, value("0..=255"))]
3411    pub struct EmergencyVehicleApproachingSubCauseCode(pub u8);
3412    #[doc = "*"]
3413    #[doc = " * This DE indicated the type of energy being used and stored in vehicle."]
3414    #[doc = " *"]
3415    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
3416    #[doc = " * - 0 - `hydrogenStorage`       - when hydrogen is being used and stored in vehicle,"]
3417    #[doc = " * - 1 - `electricEnergyStorage` - when electric energy is being used and stored in vehicle,"]
3418    #[doc = " * - 2 - `liquidPropaneGas`      - when liquid Propane Gas (LPG) is being used and stored in vehicle,   "]
3419    #[doc = " * - 3 - `compressedNaturalGas ` - when compressedNaturalGas (CNG) is being used and stored in vehicle,"]
3420    #[doc = " * - 4 - `diesel`                - when diesel is being used and stored in vehicle,"]
3421    #[doc = " * - 5 - `gasoline`              - when gasoline is being used and stored in vehicle,"]
3422    #[doc = " * - 6 - `ammonia`               - when ammonia is being used and stored in vehicle."]
3423    #[doc = " *"]
3424    #[doc = " * - Otherwise, the corresponding bit shall be set to `0`."]
3425    #[doc = " *"]
3426    #[doc = " * @category: Vehicle information"]
3427    #[doc = " * @revision: editorial revision in V2.1.1 "]
3428    #[doc = " "]
3429    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3430    #[rasn(delegate)]
3431    pub struct EnergyStorageType(pub FixedBitString<7usize>);
3432    #[doc = "* "]
3433    #[doc = " * "]
3434    #[doc = " * This DF represents a vehicle category according to the UNECE/TRANS/WP.29/78/Rev.4 [16]."]
3435    #[doc = " * The following options are available:"]
3436    #[doc = " * "]
3437    #[doc = " * @field euVehicleCategoryL: indicates a vehicle in the L category."]
3438    #[doc = " *"]
3439    #[doc = " * @field euVehicleCategoryM: indicates a vehicle in the M category."]
3440    #[doc = " *"]
3441    #[doc = " * @field euVehicleCategoryN: indicates a vehicle in the N category."]
3442    #[doc = " *"]
3443    #[doc = " * @field euVehicleCategoryO: indicates a vehicle in the O category."]
3444    #[doc = " *"]
3445    #[doc = " * @field euVehicleCategoryT: indicates a vehicle in the T category."]
3446    #[doc = " *"]
3447    #[doc = " * @field euVehicleCategoryG: indicates a vehicle in the G category."]
3448    #[doc = " * "]
3449    #[doc = " * @category: Vehicle information"]
3450    #[doc = " * @revision: Created in V2.1.1"]
3451    #[doc = ""]
3452    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3453    #[rasn(choice, automatic_tags)]
3454    pub enum EuVehicleCategoryCode {
3455        euVehicleCategoryL(EuVehicleCategoryL),
3456        euVehicleCategoryM(EuVehicleCategoryM),
3457        euVehicleCategoryN(EuVehicleCategoryN),
3458        euVehicleCategoryO(EuVehicleCategoryO),
3459        euVehicleCategoryT(()),
3460        euVehicleCategoryG(()),
3461    }
3462    #[doc = "*"]
3463    #[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]."]
3464    #[doc = " *"]
3465    #[doc = " *"]
3466    #[doc = " * @category: Vehicle information"]
3467    #[doc = " * @revision: V2.1.1"]
3468    #[doc = " "]
3469    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3470    #[rasn(enumerated)]
3471    pub enum EuVehicleCategoryL {
3472        l1 = 0,
3473        l2 = 1,
3474        l3 = 2,
3475        l4 = 3,
3476        l5 = 4,
3477        l6 = 5,
3478        l7 = 6,
3479    }
3480    #[doc = "*"]
3481    #[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]."]
3482    #[doc = " *"]
3483    #[doc = " *"]
3484    #[doc = " * @category: Vehicle information"]
3485    #[doc = " * @revision: V2.1.1"]
3486    #[doc = " "]
3487    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3488    #[rasn(enumerated)]
3489    pub enum EuVehicleCategoryM {
3490        m1 = 0,
3491        m2 = 1,
3492        m3 = 2,
3493    }
3494    #[doc = "*"]
3495    #[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]."]
3496    #[doc = " *"]
3497    #[doc = " *"]
3498    #[doc = " * @category: Vehicle information"]
3499    #[doc = " * @revision: V2.1.1"]
3500    #[doc = " "]
3501    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3502    #[rasn(enumerated)]
3503    pub enum EuVehicleCategoryN {
3504        n1 = 0,
3505        n2 = 1,
3506        n3 = 2,
3507    }
3508    #[doc = "*"]
3509    #[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]."]
3510    #[doc = " *"]
3511    #[doc = " *"]
3512    #[doc = " * @category: Vehicle information"]
3513    #[doc = " * @revision: V2.1.1"]
3514    #[doc = " "]
3515    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3516    #[rasn(enumerated)]
3517    pub enum EuVehicleCategoryO {
3518        o1 = 0,
3519        o2 = 1,
3520        o3 = 2,
3521        o4 = 3,
3522    }
3523    #[doc = "* "]
3524    #[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."]
3525    #[doc = " *"]
3526    #[doc = " * It shall include the following components: "]
3527    #[doc = " *"]
3528    #[doc = " * @field zAngle: z-angle of object bounding box at the time of measurement, with the associated confidence."]
3529    #[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. "]
3530    #[doc = " * This extrinsic rotation shall be applied around the centre point of the object bounding box before all other rotations."]
3531    #[doc = " *"]
3532    #[doc = " * @field yAngle: optional y-angle of object bounding box at the time of measurement, with the associated confidence."]
3533    #[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. "]
3534    #[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."]
3535    #[doc = " *"]
3536    #[doc = " * @field xAngle: optional x-angle of object bounding box at the time of measurement, with the associated confidence."]
3537    #[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. "]
3538    #[doc = " * This extrinsic rotation shall be applied around the centre point of the object bounding box after all other rotations."]
3539    #[doc = " * "]
3540    #[doc = " * @category: Basic information"]
3541    #[doc = " * @revision: Created in V2.1.1"]
3542    #[doc = ""]
3543    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3544    #[rasn(automatic_tags)]
3545    pub struct EulerAnglesWithConfidence {
3546        #[rasn(identifier = "zAngle")]
3547        pub z_angle: CartesianAngle,
3548        #[rasn(identifier = "yAngle")]
3549        pub y_angle: Option<CartesianAngle>,
3550        #[rasn(identifier = "xAngle")]
3551        pub x_angle: Option<CartesianAngle>,
3552    }
3553    impl EulerAnglesWithConfidence {
3554        pub fn new(
3555            z_angle: CartesianAngle,
3556            y_angle: Option<CartesianAngle>,
3557            x_angle: Option<CartesianAngle>,
3558        ) -> Self {
3559            Self {
3560                z_angle,
3561                y_angle,
3562                x_angle,
3563            }
3564        }
3565    }
3566    #[doc = "*"]
3567    #[doc = " * The DF shall contain a list of @ref EventPoint.  "]
3568    #[doc = " *"]
3569    #[doc = " * The eventPosition of each @ref EventPoint is defined with respect to the previous @ref EventPoint in the list. "]
3570    #[doc = " * Except for the first @ref EventPoint which is defined with respect to a position outside of the context of this DF."]
3571    #[doc = " *"]
3572    #[doc = " * @category: GeoReference information, Traffic information"]
3573    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref EventZone instead. "]
3574    #[doc = " * @revision: Generalized the semantics in V2.1.1"]
3575    #[doc = " "]
3576    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3577    #[rasn(delegate, size("1..=23"))]
3578    pub struct EventHistory(pub SequenceOf<EventPoint>);
3579    #[doc = "*"]
3580    #[doc = " * This DF provides information related to an event at a defined position."]
3581    #[doc = " *"]
3582    #[doc = " * It shall include the following components: "]
3583    #[doc = " * "]
3584    #[doc = " * @field eventPosition: offset position of a detected event point to a defined position. "]
3585    #[doc = " * "]
3586    #[doc = " * @field eventDeltaTime: optional time travelled by the detecting ITS-S since the previous detected event point."]
3587    #[doc = " * "]
3588    #[doc = " * @field informationQuality: Information quality of the detection for this event point."]
3589    #[doc = " * "]
3590    #[doc = " * @category: GeoReference information, Traffic information"]
3591    #[doc = " * @revision: generalized the semantics in V2.1.1"]
3592    #[doc = " "]
3593    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3594    #[rasn(automatic_tags)]
3595    pub struct EventPoint {
3596        #[rasn(identifier = "eventPosition")]
3597        pub event_position: DeltaReferencePosition,
3598        #[rasn(identifier = "eventDeltaTime")]
3599        pub event_delta_time: Option<PathDeltaTime>,
3600        #[rasn(identifier = "informationQuality")]
3601        pub information_quality: InformationQuality,
3602    }
3603    impl EventPoint {
3604        pub fn new(
3605            event_position: DeltaReferencePosition,
3606            event_delta_time: Option<PathDeltaTime>,
3607            information_quality: InformationQuality,
3608        ) -> Self {
3609            Self {
3610                event_position,
3611                event_delta_time,
3612                information_quality,
3613            }
3614        }
3615    }
3616    #[doc = "*"]
3617    #[doc = " * The DF shall contain a list of @ref EventPoint, where all @ref EventPoint either contain the COMPONENT eventDeltaTime "]
3618    #[doc = " * or do not contain the COMPONENT eventDeltaTime.  "]
3619    #[doc = " *"]
3620    #[doc = " * The eventPosition of each @ref EventPoint is defined with respect to the previous @ref EventPoint in the list. "]
3621    #[doc = " * Except for the first @ref EventPoint which is defined with respect to a position outside of the context of this DF."]
3622    #[doc = " *"]
3623    #[doc = " * @category: GeoReference information, Traffic information"]
3624    #[doc = " * @revision: created in V2.1.1 based on EventHistory"]
3625    #[doc = " "]
3626    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3627    #[rasn(delegate)]
3628    pub struct EventZone(pub EventHistory);
3629    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3630    #[rasn(choice)]
3631    pub enum Ext1 {
3632        #[rasn(value("128..=16511"), tag(context, 0))]
3633        content(u16),
3634        #[rasn(tag(context, 1))]
3635        extension(Ext2),
3636    }
3637    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3638    #[rasn(choice)]
3639    pub enum Ext2 {
3640        #[rasn(value("16512..=2113663"), tag(context, 0))]
3641        content(u32),
3642        #[rasn(tag(context, 1))]
3643        extension(Ext3),
3644    }
3645    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3646    #[rasn(delegate, value("2113664..=270549119", extensible))]
3647    pub struct Ext3(pub Integer);
3648    #[doc = "*"]
3649    #[doc = " * This DE describes the status of the exterior light switches of a vehicle incl. VRU vehicles."]
3650    #[doc = " *"]
3651    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
3652    #[doc = " * - 0 - `lowBeamHeadlightsOn`    - when the low beam head light switch is on,"]
3653    #[doc = " * - 1 - `highBeamHeadlightsOn`   - when the high beam head light switch is on,"]
3654    #[doc = " * - 2 - `leftTurnSignalOn`       - when the left turnSignal switch is on,"]
3655    #[doc = " * - 3 - `rightTurnSignalOn`      - when the right turn signal switch is on,"]
3656    #[doc = " * - 4 - `daytimeRunningLightsOn` - when the daytime running light switch is on,"]
3657    #[doc = " * - 5 - `reverseLightOn`         - when the reverse light switch is on,"]
3658    #[doc = " * - 6 - `fogLightOn`             - when the tail fog light switch is on,"]
3659    #[doc = " * - 7 - `parkingLightsOn`        - when the parking light switch is on."]
3660    #[doc = " * "]
3661    #[doc = " * @note: The value of each bit indicates the state of the switch, which commands the corresponding light."]
3662    #[doc = " * The bit corresponding to a specific light is set to `1`, when the corresponding switch is turned on,"]
3663    #[doc = " * either manually by the driver or automatically by a vehicle system. The bit value does not indicate"]
3664    #[doc = " * if the corresponding lamps are alight or not."]
3665    #[doc = " * "]
3666    #[doc = " * If a vehicle is not equipped with a certain light or if the light switch status information is not available,"]
3667    #[doc = " * the corresponding bit shall be set to `0`."]
3668    #[doc = " * "]
3669    #[doc = " * As the bit value indicates only the state of the switch, the turn signal and hazard signal bit values shall not"]
3670    #[doc = " * alternate with the blinking interval."]
3671    #[doc = " * "]
3672    #[doc = " * For hazard indicator, the `leftTurnSignalOn (2)` and `rightTurnSignalOn (3)` shall be both set to `1`."]
3673    #[doc = " * "]
3674    #[doc = " * @category Vehicle information"]
3675    #[doc = " * @revision: Description revised in V2.1.1"]
3676    #[doc = " "]
3677    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3678    #[rasn(delegate)]
3679    pub struct ExteriorLights(pub FixedBitString<8usize>);
3680    #[doc = "*"]
3681    #[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."]
3682    #[doc = " *"]
3683    #[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 "]
3684    #[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 "]
3685    #[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, "]
3686    #[doc = " * where the dimensions of an object or the extension of an area is considered."]
3687    #[doc = " *"]
3688    #[doc = " * It shall include the following components: "]
3689    #[doc = " *"]
3690    #[doc = " * @field lanePositionBased: lane position information for a defined reference position."]
3691    #[doc = " * "]
3692    #[doc = " * @field mapBased: optional lane position information described in the context of a MAPEM as specified in ETSI TS 103 301 [15]. "]
3693    #[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 "]
3694    #[doc = " * (e.g. on an intersection): In this case it is used as a synonym to the mandatory component lanePositionBased. "]
3695    #[doc = " * "]
3696    #[doc = " * @field confidence: confidence information for expressing the probability that the object is located at the indicated lane.  "]
3697    #[doc = " * If the value of the component lanePositionBased is generated directly from the absolute reference position and reference topology information, "]
3698    #[doc = " * no sensor shall be indicated in the component usedDetectionInformation of the @ref MetaInformation."]
3699    #[doc = " *"]
3700    #[doc = " * @category: Road Topology information"]
3701    #[doc = " * @revision: newly created in V2.2.1. The previous DF GeneralizedLanePosition is now renamed to @ref LanePositionOptions. "]
3702    #[doc = " "]
3703    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3704    #[rasn(automatic_tags)]
3705    #[non_exhaustive]
3706    pub struct GeneralizedLanePosition {
3707        #[rasn(identifier = "lanePositionBased")]
3708        pub lane_position_based: LanePositionOptions,
3709        #[rasn(identifier = "mapBased")]
3710        pub map_based: Option<MapPosition>,
3711        pub confidence: MetaInformation,
3712    }
3713    impl GeneralizedLanePosition {
3714        pub fn new(
3715            lane_position_based: LanePositionOptions,
3716            map_based: Option<MapPosition>,
3717            confidence: MetaInformation,
3718        ) -> Self {
3719            Self {
3720                lane_position_based,
3721                map_based,
3722                confidence,
3723            }
3724        }
3725    }
3726    #[doc = "*"]
3727    #[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."]
3728    #[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."]
3729    #[doc = " *"]
3730    #[doc = " * @category: Road Topology information"]
3731    #[doc = " * @revision: Created in V2.2.1"]
3732    #[doc = " "]
3733    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3734    #[rasn(delegate, size("1..=4"))]
3735    pub struct GeneralizedLanePositions(pub SequenceOf<GeneralizedLanePosition>);
3736    #[doc = "*"]
3737    #[doc = " * This DE represents a timestamp based on TimestampIts modulo 65 536."]
3738    #[doc = " * This means that generationDeltaTime = TimestampIts mod 65 536."]
3739    #[doc = " *"]
3740    #[doc = " * @category: Basic information"]
3741    #[doc = " * @revision: Created in V2.1.1 based on ETSI TS 103 900 [1]"]
3742    #[doc = ""]
3743    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3744    #[rasn(delegate, value("0..=65535"))]
3745    pub struct GenerationDeltaTime(pub u16);
3746    #[doc = "* "]
3747    #[doc = " * This DF indicates a geographical position."]
3748    #[doc = " *"]
3749    #[doc = " * It shall include the following components: "]
3750    #[doc = " *"]
3751    #[doc = " * @field latitude: the latitude of the geographical position."]
3752    #[doc = " *"]
3753    #[doc = " * @field longitude: the longitude of the geographical position."]
3754    #[doc = " *"]
3755    #[doc = " * @field altitude: the altitude of the geographical position with default value unavailable."]
3756    #[doc = " *"]
3757    #[doc = ""]
3758    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3759    #[rasn(automatic_tags)]
3760    pub struct GeoPosition {
3761        pub latitude: Latitude,
3762        pub longitude: Longitude,
3763        #[rasn(default = "geo_position_altitude_default")]
3764        pub altitude: AltitudeValue,
3765    }
3766    impl GeoPosition {
3767        pub fn new(latitude: Latitude, longitude: Longitude, altitude: AltitudeValue) -> Self {
3768            Self {
3769                latitude,
3770                longitude,
3771                altitude,
3772            }
3773        }
3774    }
3775    fn geo_position_altitude_default() -> AltitudeValue {
3776        AltitudeValue(800001)
3777    }
3778    #[doc = "*"]
3779    #[doc = "* This DE indicates a geographical position with altitude."]
3780    #[doc = "*"]
3781    #[doc = "* It shall include the following components: "]
3782    #[doc = "*"]
3783    #[doc = "* @field latitude: the latitude of the geographical position."]
3784    #[doc = "*"]
3785    #[doc = "* @field longitude: the longitude of the geographical position."]
3786    #[doc = "*"]
3787    #[doc = "* @field altitude: the altitude of the geographical position."]
3788    #[doc = "*"]
3789    #[doc = "* @category: GeoReference information"]
3790    #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (DF AbsolutePositionWAltitude)"]
3791    #[doc = ""]
3792    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3793    #[rasn(automatic_tags)]
3794    pub struct GeoPositionWAltitude {
3795        pub latitude: Latitude,
3796        pub longitude: Longitude,
3797        pub altitude: Altitude,
3798    }
3799    impl GeoPositionWAltitude {
3800        pub fn new(latitude: Latitude, longitude: Longitude, altitude: Altitude) -> Self {
3801            Self {
3802                latitude,
3803                longitude,
3804                altitude,
3805            }
3806        }
3807    }
3808    #[doc = "*"]
3809    #[doc = "* This DF indicates a geographical position without altitude."]
3810    #[doc = "*"]
3811    #[doc = "* It shall include the following components: "]
3812    #[doc = "*"]
3813    #[doc = "* @field latitude: the latitude of the geographical position."]
3814    #[doc = "*"]
3815    #[doc = "* @field longitude: the longitude of the geographical position."]
3816    #[doc = "*"]
3817    #[doc = "* @category: GeoReference information"]
3818    #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (DF AbsolutePosition)"]
3819    #[doc = ""]
3820    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3821    #[rasn(automatic_tags)]
3822    pub struct GeoPositionWoAltitude {
3823        pub latitude: Latitude,
3824        pub longitude: Longitude,
3825    }
3826    impl GeoPositionWoAltitude {
3827        pub fn new(latitude: Latitude, longitude: Longitude) -> Self {
3828            Self {
3829                latitude,
3830                longitude,
3831            }
3832        }
3833    }
3834    #[doc = "*"]
3835    #[doc = "* This DF shall contain a list of @ref AbsolutePositionWAltitude."]
3836    #[doc = "*"]
3837    #[doc = "* @category: GeoReference information"]
3838    #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (DF AbsolutePositionsWAltitude)"]
3839    #[doc = ""]
3840    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3841    #[rasn(delegate, size("1..=8", extensible))]
3842    pub struct GeoPositionsWAltitude(pub SequenceOf<GeoPositionWAltitude>);
3843    #[doc = "*"]
3844    #[doc = "* This DF shall contain a list of @ref GeoPositionWoAltitude."]
3845    #[doc = "*"]
3846    #[doc = "* @category: GeoReference information"]
3847    #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (AbsolutePositions)"]
3848    #[doc = ""]
3849    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3850    #[rasn(delegate, size("1..=8", extensible))]
3851    pub struct GeoPositionsWoAltitude(pub SequenceOf<GeoPositionWoAltitude>);
3852    #[doc = "*"]
3853    #[doc = " * This DE indicates the current status of a hard shoulder: whether it is available for special usage"]
3854    #[doc = " * (e.g. for stopping or for driving) or closed for all vehicles."]
3855    #[doc = " * "]
3856    #[doc = " * The value shall be set to:"]
3857    #[doc = " * - 0 - `availableForStopping` - if the hard shoulder is available for stopping in e.g. emergency situations,"]
3858    #[doc = " * - 1 - `closed`               - if the hard shoulder is closed and cannot be occupied in any case,"]
3859    #[doc = " * - 2 - `availableForDriving`  - if the hard shoulder is available for regular driving."]
3860    #[doc = " *"]
3861    #[doc = " * @category: Traffic information"]
3862    #[doc = " * @revision: Description revised in V2.1.1"]
3863    #[doc = " "]
3864    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3865    #[rasn(enumerated)]
3866    pub enum HardShoulderStatus {
3867        availableForStopping = 0,
3868        closed = 1,
3869        availableForDriving = 2,
3870    }
3871    #[doc = "*"]
3872    #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-AnimalOnTheRoad`."]
3873    #[doc = " * "]
3874    #[doc = " * The value shall be set to:"]
3875    #[doc = " * - 0 - `unavailable`          - in case further detailed information on the animal(s) on the road is unavailable,"]
3876    #[doc = " * - 1 - `wildAnimals`          - in case wild animals of unknown size are present on the road,"]
3877    #[doc = " * - 2 - `herdOfAnimals`        - in case a herd of animals is present on the road,"]
3878    #[doc = " * - 3 - `smallAnimals`         - in case small size animals of unknown type are present on the road,"]
3879    #[doc = " * - 4 - `largeAnimals`         - in case large size animals of unknown type are present on the road,"]
3880    #[doc = " * - 5 - `wildAnimalsSmall`     - in case small size wild animal(s) are present on the road,"]
3881    #[doc = " * - 6 - `wildAnimalsLarge`     - in case large size wild animal(s) are present on the road,"]
3882    #[doc = " * - 7 - `domesticAnimals`      - in case domestic animal(s) of unknown size are detected on the road,"]
3883    #[doc = " * - 8 - `domesticAnimalsSmall` - in case small size domestic animal(s) are present on the road,"]
3884    #[doc = " * - 9 - `domesticAnimalsLarge` - in case large size domestic animal(s) are present on the road."]
3885    #[doc = " * - 10-255                     - are reserved for future usage."]
3886    #[doc = " *"]
3887    #[doc = " * @category: Traffic information"]
3888    #[doc = " * @revision: V1.3.1, named values 5 to 9 added in V2.2.1 "]
3889    #[doc = " "]
3890    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3891    #[rasn(
3892        delegate,
3893        identifier = "HazardousLocation-AnimalOnTheRoadSubCauseCode",
3894        value("0..=255")
3895    )]
3896    pub struct HazardousLocationAnimalOnTheRoadSubCauseCode(pub u8);
3897    #[doc = "*"]
3898    #[doc = " * This DE represents the sub cause code of the @ref CauseCode  `hazardousLocation-DangerousCurve`."]
3899    #[doc = " * "]
3900    #[doc = " * The value shall be set to:"]
3901    #[doc = " * - 0 - `unavailable`                                        - in case further detailed information on the dangerous curve is unavailable,"]
3902    #[doc = " * - 1 - `dangerousLeftTurnCurve`                             - in case the dangerous curve is a left turn curve,"]
3903    #[doc = " * - 2 - `dangerousRightTurnCurve`                            - in case the dangerous curve is a right turn curve,"]
3904    #[doc = " * - 3 - `multipleCurvesStartingWithUnknownTurningDirection`  - in case of multiple curves for which the starting curve turning direction is not known,"]
3905    #[doc = " * - 4 - `multipleCurvesStartingWithLeftTurn`                 - in case of multiple curves starting with a left turn curve,"]
3906    #[doc = " * - 5 - `multipleCurvesStartingWithRightTurn`                - in case of multiple curves starting with a right turn curve."]
3907    #[doc = " * - 6-255                                                    - are reserved for future usage."]
3908    #[doc = " * "]
3909    #[doc = " * The definition of whether a curve is dangerous may vary according to region and according to vehicle types/mass"]
3910    #[doc = " * and vehicle speed driving on the curve. This definition is out of scope of the present document."]
3911    #[doc = " *"]
3912    #[doc = " * @category: Traffic information"]
3913    #[doc = " * @revision: V1.3.1"]
3914    #[doc = " "]
3915    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3916    #[rasn(
3917        delegate,
3918        identifier = "HazardousLocation-DangerousCurveSubCauseCode",
3919        value("0..=255")
3920    )]
3921    pub struct HazardousLocationDangerousCurveSubCauseCode(pub u8);
3922    #[doc = "*"]
3923    #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-ObstacleOnTheRoad`. "]
3924    #[doc = " * "]
3925    #[doc = " * The value shall be set to:"]
3926    #[doc = " * - 0 - `unavailable`                - in case further detailed information on the detected obstacle is unavailable,"]
3927    #[doc = " * - 1 - `shedLoad`                   - in case detected obstacle is large amount of obstacles (shedload),"]
3928    #[doc = " * - 2 - `partsOfVehicles`            - in case detected obstacles are parts of vehicles,"]
3929    #[doc = " * - 3 - `partsOfTyres`               - in case the detected obstacles are parts of tyres,"]
3930    #[doc = " * - 4 - `bigObjects`                 - in case the detected obstacles are big objects,"]
3931    #[doc = " * - 5 - `fallenTrees`                - in case the detected obstacles are fallen trees,"]
3932    #[doc = " * - 6 - `hubCaps`                    - in case the detected obstacles are hub caps,"]
3933    #[doc = " * - 7 - `waitingVehicles-deprecated` - deprecated since not representing an obstacle and already covered by StationaryVehicleSubCauseCode."]
3934    #[doc = " * - 8-255                - are reserved for future usage."]
3935    #[doc = " *"]
3936    #[doc = " * @category: Traffic information"]
3937    #[doc = " * @revision: V1.3.1, value 7 deprecated in V2.4.1"]
3938    #[doc = " "]
3939    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3940    #[rasn(
3941        delegate,
3942        identifier = "HazardousLocation-ObstacleOnTheRoadSubCauseCode",
3943        value("0..=255")
3944    )]
3945    pub struct HazardousLocationObstacleOnTheRoadSubCauseCode(pub u8);
3946    #[doc = "*"]
3947    #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-SurfaceCondition`. "]
3948    #[doc = " * "]
3949    #[doc = "The value shall be set to:"]
3950    #[doc = " * - 0  - `unavailable`                  - in case further detailed information on the road surface condition is unavailable,"]
3951    #[doc = " * - 1  - `rockfalls`                    - in case rock falls have fallen on the road surface,"]
3952    #[doc = " * - 2  - `earthquakeDamage-deprecated`  - deprecated since it is covered by 1 rockfalls and 4 subsidence,"]
3953    #[doc = " * - 3  - `sinkhole`                     - in case of a partial collapse of the road surface that creates a depression (hole) in the pavement,"]
3954    #[doc = " * - 4  - `subsidence`                   - in case road surface is damaged by subsidence,"]
3955    #[doc = " * - 5  - `snowDrifts-deprecated`        - deprecated since not representing a road damage,"]
3956    #[doc = " * - 6  - `stormDamage-deprecated`       - deprecated since not representing a road damage,"]
3957    #[doc = " * - 7  - `burstPipe-deprecated`         - deprecated since not representing a road damage,"]
3958    #[doc = " * - 8  - `lava           `              - in case road surface is damaged due to  lava on the road,"]
3959    #[doc = " * - 9  - `fallingIce-deprecated`        - deprecated since not representing a road damage,"]
3960    #[doc = " * - 10 - `fire`                         - in case there is fire on or near to the road surface,"]
3961    #[doc = " * - 11 - `flooding-deprecated`          - deprecated since not representing a road damage."]
3962    #[doc = " * - 12 - `wearAndTear`                  - in case the road surface is damaged by wear and tear."]
3963    #[doc = " * - 13-255                              - are reserved for future usage."]
3964    #[doc = " *"]
3965    #[doc = " * @category: Traffic information"]
3966    #[doc = " * @revision: V1.3.1, value 10 added in V2.1.1, value 11 added in V2.3.1, "]
3967    #[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"]
3968    #[doc = " "]
3969    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3970    #[rasn(
3971        delegate,
3972        identifier = "HazardousLocation-SurfaceConditionSubCauseCode",
3973        value("0..=255")
3974    )]
3975    pub struct HazardousLocationSurfaceConditionSubCauseCode(pub u8);
3976    #[doc = "*"]
3977    #[doc = " * This DF represents the Heading in a WGS84 co-ordinates system."]
3978    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
3979    #[doc = " *"]
3980    #[doc = " * It shall include the following components: "]
3981    #[doc = " * "]
3982    #[doc = " * @field headingValue: the heading value."]
3983    #[doc = " * "]
3984    #[doc = " * @field headingConfidence: the confidence value of the heading value with a predefined confidence level."]
3985    #[doc = " * "]
3986    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84Angle instead. "]
3987    #[doc = " * @category: Kinematic Information"]
3988    #[doc = " * @revision: Description revised in V2.1.1"]
3989    #[doc = " "]
3990    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3991    #[rasn(automatic_tags)]
3992    pub struct Heading {
3993        #[rasn(identifier = "headingValue")]
3994        pub heading_value: HeadingValue,
3995        #[rasn(identifier = "headingConfidence")]
3996        pub heading_confidence: HeadingConfidence,
3997    }
3998    impl Heading {
3999        pub fn new(heading_value: HeadingValue, heading_confidence: HeadingConfidence) -> Self {
4000            Self {
4001                heading_value,
4002                heading_confidence,
4003            }
4004        }
4005    }
4006    #[doc = "*"]
4007    #[doc = " * This DF  provides  information  associated to heading  change indicators  such as  a  change  of  direction."]
4008    #[doc = " *"]
4009    #[doc = " * It shall include the following components: "]
4010    #[doc = " * "]
4011    #[doc = " * @field direction: the direction of heading change value."]
4012    #[doc = " * "]
4013    #[doc = " * @field actionDeltaTime: the period over which a direction change action is performed. "]
4014    #[doc = " * "]
4015    #[doc = " * @category: Kinematic Information"]
4016    #[doc = " * @revision: created in V2.1.1"]
4017    #[doc = " "]
4018    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4019    #[rasn(automatic_tags)]
4020    #[non_exhaustive]
4021    pub struct HeadingChangeIndication {
4022        pub direction: TurningDirection,
4023        #[rasn(identifier = "actionDeltaTime")]
4024        pub action_delta_time: DeltaTimeTenthOfSecond,
4025    }
4026    impl HeadingChangeIndication {
4027        pub fn new(direction: TurningDirection, action_delta_time: DeltaTimeTenthOfSecond) -> Self {
4028            Self {
4029                direction,
4030                action_delta_time,
4031            }
4032        }
4033    }
4034    #[doc = "*"]
4035    #[doc = " * This DE indicates the heading confidence value which represents the estimated absolute accuracy of a heading value with a confidence level of 95 %."]
4036    #[doc = " * "]
4037    #[doc = " * The value shall be set to:"]
4038    #[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,"]
4039    #[doc = " * - `126` if the confidence value is out of range, i.e. greater than 12,5 degrees,"]
4040    #[doc = " * - `127` if the confidence value information is not available."]
4041    #[doc = " * "]
4042    #[doc = " * @note:\tThe fact that a value is received with confidence value set to `unavailable(127)` can be caused by several reasons,"]
4043    #[doc = " * such as:"]
4044    #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
4045    #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
4046    #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
4047    #[doc = " * In all 3 cases above, the heading value may be valid and used by the application."]
4048    #[doc = " *"]
4049    #[doc = " * @note: If a heading value is received and its confidence value is set to `outOfRange(126)`, it means that the "]
4050    #[doc = " * heading value is not valid and therefore cannot be trusted. Such value is not useful for the application."]
4051    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84AngleConfidence instead. "]
4052    #[doc = " * "]
4053    #[doc = " * @unit: 0,1 degree"]
4054    #[doc = " * @category: GeoReference information"]
4055    #[doc = " * @revision: Description revised in V2.1.1"]
4056    #[doc = " "]
4057    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4058    #[rasn(delegate, value("1..=127"))]
4059    pub struct HeadingConfidence(pub u8);
4060    #[doc = "*"]
4061    #[doc = " * This DE represents the orientation of the horizontal velocity vector with regards to the WGS84 north."]
4062    #[doc = " * When the information is not available, the DE shall be set to 3 601. The value 3600 shall not be used."]
4063    #[doc = " *"]
4064    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84AngleValue instead. "]
4065    #[doc = " *"]
4066    #[doc = " * Unit: 0,1 degree"]
4067    #[doc = " * Categories: GeoReference information"]
4068    #[doc = " * @revision: Description revised in V2.1.1 (usage of value 3600 specified) "]
4069    #[doc = ""]
4070    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4071    #[rasn(delegate, value("0..=3601"))]
4072    pub struct HeadingValue(pub u16);
4073    #[doc = "*"]
4074    #[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"]
4075    #[doc = " * rear to front). "]
4076    #[doc = " *"]
4077    #[doc = " * The value shall be set to:"]
4078    #[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,"]
4079    #[doc = " * - `99` if the height is out of range, i.e. equal to or greater than 0,98 m,"]
4080    #[doc = " * - `100` if the height information is not available."]
4081    #[doc = " *"]
4082    #[doc = " * @unit 0,01 metre"]
4083    #[doc = " * @category Vehicle information"]
4084    #[doc = " * @revision: Description revised in V2.1.1 (the definition of 99 has changed slightly) "]
4085    #[doc = " "]
4086    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4087    #[rasn(delegate, value("1..=100"))]
4088    pub struct HeightLonCarr(pub u8);
4089    #[doc = "*"]
4090    #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `humanPresenceOnTheRoad`."]
4091    #[doc = " * "]
4092    #[doc = " * The value shall be set to:"]
4093    #[doc = " * - 0 - `unavailable`                    - in case further detailed information abou the human presence on the road is unavailable,"]
4094    #[doc = " * - 1 - `childrenOnRoadway`              - in case children are present on the road,"]
4095    #[doc = " * - 2 - `cyclistOnRoadway`               - in case cyclist(s) are present on the road,"]
4096    #[doc = " * - 3 - `motorcyclistOnRoadway`          - in case motorcyclist(s) are present on the road,"]
4097    #[doc = " * - 4 - `pedestrian`                     - in case pedestrian(s) of any type are present on the road,"]
4098    #[doc = " * - 5 - `ordinary-pedestrian`            - in case pedestrian(s) to which no more-specific profile applies are present on the road,"]
4099    #[doc = " * - 6 - `road-worker`                    - in case pedestrian(s) with the role of a road worker applies are present on the road,"]
4100    #[doc = " * - 7 - `first-responder`                - in case pedestrian(s) with the role of a first responder applies are present on the road,  "]
4101    #[doc = " * - 8 - `lightVruVehicle                 - in case light vru vehicle(s) of any type are present on the road,"]
4102    #[doc = " * - 9 - `bicyclist `                     - in case cycle(s) and their bicyclist(s) are present on the road,"]
4103    #[doc = " * - 10 - `wheelchair-user`               - in case wheelchair(s) and their user(s) are present on the road,"]
4104    #[doc = " * - 11 - `horse-and-rider`               - in case horse(s) and rider(s) are present on the road,"]
4105    #[doc = " * - 12 - `rollerskater`                  - in case rolleskater(s) and skater(s) are present on the road,"]
4106    #[doc = " * - 13 - `e-scooter`                     - in case e-scooter(s) and rider(s) are present on the road,"]
4107    #[doc = " * - 14 - `personal-transporter`          - in case personal-transporter(s) and rider(s) are present on the road,"]
4108    #[doc = " * - 15 - `pedelec`                       - in case pedelec(s) and rider(s) are present on the road,"]
4109    #[doc = " * - 16 - `speed-pedelec`                 - in case speed-pedelec(s) and rider(s) are present on the road,"]
4110    #[doc = " * - 17 - `ptw`                           - in case powered-two-wheeler(s) of any type are present on the road,"]
4111    #[doc = " * - 18 - `moped`                         - in case moped(s) and rider(s) are present on the road,"]
4112    #[doc = " * - 19 - `motorcycle`                    - in case motorcycle(s) and rider(s) are present on the road,"]
4113    #[doc = " * - 20 - `motorcycle-and-sidecar-right`  - in case motorcycle(s) with sidecar(s) on the right and rider are present on the road,"]
4114    #[doc = " * - 21 - `motorcycle-and-sidecar-left`   - in case motorcycle(s) with sidecar(s) on the left and rider are present on the road."]
4115    #[doc = " * - 22-255                               - are reserved for future usage."]
4116    #[doc = " *"]
4117    #[doc = " * @category: Traffic information"]
4118    #[doc = " * @revision: editorial revision in V2.1.1, named values 4-21 added in V2.2.1"]
4119    #[doc = " "]
4120    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4121    #[rasn(delegate, value("0..=255"))]
4122    pub struct HumanPresenceOnTheRoadSubCauseCode(pub u8);
4123    #[doc = "*"]
4124    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode \"humanProblem\"."]
4125    #[doc = " * "]
4126    #[doc = " * The value shall be set to:"]
4127    #[doc = " * - 0 - `unavailable`        - in case further detailed information on human health problem is unavailable,"]
4128    #[doc = " * - 1 - `glycemiaProblem`    - in case human problem is due to glycaemia problem,"]
4129    #[doc = " * - 2 - `heartProblem`       - in case human problem is due to heart problem,"]
4130    #[doc = " * - 3 - `unresponsiveDriver` - in case an unresponsive driver is detected."]
4131    #[doc = " * - 3-255                    - reserved for future usage."]
4132    #[doc = " *"]
4133    #[doc = " * @category: Traffic information"]
4134    #[doc = " * @revision: V1.3.1, value 3 assigned in V2.4.1"]
4135    #[doc = " "]
4136    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4137    #[rasn(delegate, value("0..=255"))]
4138    pub struct HumanProblemSubCauseCode(pub u8);
4139    #[doc = "* "]
4140    #[doc = " * This DE is a general identifier."]
4141    #[doc = " * "]
4142    #[doc = " * @category: Basic information"]
4143    #[doc = " * @revision: Created in V2.1.1"]
4144    #[doc = ""]
4145    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4146    #[rasn(delegate, value("0..=255"))]
4147    pub struct Identifier1B(pub u8);
4148    #[doc = "* "]
4149    #[doc = " * This DE is a general identifier."]
4150    #[doc = " * "]
4151    #[doc = " * @category: Basic information"]
4152    #[doc = " * @revision: Created in V2.1.1"]
4153    #[doc = ""]
4154    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4155    #[rasn(delegate, value("0..=65535"))]
4156    pub struct Identifier2B(pub u16);
4157    #[doc = "*"]
4158    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `impassability`"]
4159    #[doc = " * "]
4160    #[doc = " * The value shall be set to:"]
4161    #[doc = " * - 0 `unavailable`              - in case further detailed information about the unmanaged road blockage is unavailable,"]
4162    #[doc = " * - 1 `flooding          `       - in case the road is affected by flooding,"]
4163    #[doc = " * - 2 `dangerOfAvalanches`       - in case the road is at risk of being affected or blocked by avalanches,"]
4164    #[doc = " * - 3 `blastingOfAvalanches`     - in case there is an active blasting of avalanches on or near the road,"]
4165    #[doc = " * - 4 `landslips`                - in case the road is affected by landslips,"]
4166    #[doc = " * - 5 `chemicalSpillage`         - in case the road is affected by chemical spillage,"]
4167    #[doc = " * - 6 `winterClosure`            - in case the road is impassable due to a winter closure."]
4168    #[doc = " * - 7 `sinkhole`                 - in case the road is impassable due to large holes in the road surface."]
4169    #[doc = " * - 8 `earthquakeDamage`         - in case the road is obstructed or partially obstructed because of damage caused by an earthquake."]
4170    #[doc = " * - 9 `fallenTrees`              - in case the road is obstructed or partially obstructed by one or more fallen trees. "]
4171    #[doc = " * - 10 `rockfalls`               - in case the road is obstructed or partially obstructed due to fallen rocks."]
4172    #[doc = " * - 11 `sewerOverflow`           - in case the road is obstructed or partially obstructed by overflows from one or more sewers. "]
4173    #[doc = " * - 12 `stormDamage`             - in case the road is obstructed or partially obstructed by debris caused by strong winds."]
4174    #[doc = " * - 13 `subsidence`              - in case the road surface has sunken or collapsed in places."]
4175    #[doc = " * - 14 `burstPipe`               - in case the road surface has sunken or collapsed in places due to burst pipes."]
4176    #[doc = " * - 15 `burstWaterMain`          - in case the road is obstructed due to local flooding and/or subsidence. "]
4177    #[doc = " * - 16 `fallenPowerCables`       - in case the road is obstructed or partly obstructed by one or more fallen power cables."]
4178    #[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."]
4179    #[doc = " * - 15-255                       - are reserved for future usage."]
4180    #[doc = " *"]
4181    #[doc = " * @category: Traffic information"]
4182    #[doc = " * @revision: Created in V2.2.1"]
4183    #[doc = ""]
4184    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4185    #[rasn(delegate, value("0..=255"))]
4186    pub struct ImpassabilitySubCauseCode(pub u8);
4187    #[doc = "*"]
4188    #[doc = " * This DE represents the quality level of provided information."]
4189    #[doc = " * "]
4190    #[doc = " * The value shall be set to:"]
4191    #[doc = " * - `0` if the information is unavailable,"]
4192    #[doc = " * - `1` if the quality level is lowest,"]
4193    #[doc = " * - `n` (`n > 1` and `n < 7`) if the quality level is n, "]
4194    #[doc = " * - `7` if the quality level is highest."]
4195    #[doc = " *"]
4196    #[doc = " * @note: Definition of quality level is out of scope of the present document."]
4197    #[doc = " * @category: Basic information"]
4198    #[doc = " * @revision: Editorial update in V2.1.1"]
4199    #[doc = " "]
4200    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4201    #[rasn(delegate, value("0..=7"))]
4202    pub struct InformationQuality(pub u8);
4203    #[doc = "*"]
4204    #[doc = " * This DF represents a frequency channel "]
4205    #[doc = " *"]
4206    #[doc = " * It shall include the following components: "]
4207    #[doc = " *"]
4208    #[doc = " * @field centreFrequency: the centre frequency of the channel in 10^(exp+2) Hz (where exp is exponent)"]
4209    #[doc = " * "]
4210    #[doc = " * @field channelWidth: width of the channel in 10^exp Hz (where exp is exponent)"]
4211    #[doc = " *"]
4212    #[doc = " * @field exponent: exponent of the power of 10 used in the calculation of the components above."]
4213    #[doc = " *"]
4214    #[doc = " * @category: Communication information"]
4215    #[doc = " * @revision: created in V2.1.1"]
4216    #[doc = ""]
4217    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4218    #[rasn(automatic_tags)]
4219    pub struct InterferenceManagementChannel {
4220        #[rasn(value("1..=99999"), identifier = "centreFrequency")]
4221        pub centre_frequency: u32,
4222        #[rasn(value("0..=9999"), identifier = "channelWidth")]
4223        pub channel_width: u16,
4224        #[rasn(value("0..=15"))]
4225        pub exponent: u8,
4226    }
4227    impl InterferenceManagementChannel {
4228        pub fn new(centre_frequency: u32, channel_width: u16, exponent: u8) -> Self {
4229            Self {
4230                centre_frequency,
4231                channel_width,
4232                exponent,
4233            }
4234        }
4235    }
4236    #[doc = "*"]
4237    #[doc = " * This DF shall contain a list of up to 16 definitions containing interference management information, per affected frequency channels."]
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(delegate, size("1..=16", extensible))]
4244    pub struct InterferenceManagementInfo(pub SequenceOf<InterferenceManagementInfoPerChannel>);
4245    #[doc = "*"]
4246    #[doc = " * This DF contains interference management information for one affected frequency channel."]
4247    #[doc = " *"]
4248    #[doc = " * It shall include the following components: "]
4249    #[doc = " *"]
4250    #[doc = " * @field interferenceManagementChannel: frequency channel for which the zone should be applied interference management "]
4251    #[doc = " *"]
4252    #[doc = " * @field interferenceManagementZoneType: type of the interference management zone. "]
4253    #[doc = " *"]
4254    #[doc = " * @field interferenceManagementMitigationType: optional type of the mitigation to be used in the interference management zone. "]
4255    #[doc = " * In the case where no mitigation should be applied by the ITS-S, this is indicated by the field interferenceManagementMitigationType being absent."]
4256    #[doc = " *"]
4257    #[doc = " * @field expiryTime: optional time at which the validity of the interference management communication zone will expire. "]
4258    #[doc = " * This component is present when the interference management is temporarily valid"]
4259    #[doc = " *"]
4260    #[doc = " * @category: Communication information"]
4261    #[doc = " * @revision: created in V2.1.1"]
4262    #[doc = " "]
4263    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4264    #[rasn(automatic_tags)]
4265    #[non_exhaustive]
4266    pub struct InterferenceManagementInfoPerChannel {
4267        #[rasn(identifier = "interferenceManagementChannel")]
4268        pub interference_management_channel: InterferenceManagementChannel,
4269        #[rasn(identifier = "interferenceManagementZoneType")]
4270        pub interference_management_zone_type: InterferenceManagementZoneType,
4271        #[rasn(identifier = "interferenceManagementMitigationType")]
4272        pub interference_management_mitigation_type: Option<MitigationForTechnologies>,
4273        #[rasn(identifier = "expiryTime")]
4274        pub expiry_time: Option<TimestampIts>,
4275    }
4276    impl InterferenceManagementInfoPerChannel {
4277        pub fn new(
4278            interference_management_channel: InterferenceManagementChannel,
4279            interference_management_zone_type: InterferenceManagementZoneType,
4280            interference_management_mitigation_type: Option<MitigationForTechnologies>,
4281            expiry_time: Option<TimestampIts>,
4282        ) -> Self {
4283            Self {
4284                interference_management_channel,
4285                interference_management_zone_type,
4286                interference_management_mitigation_type,
4287                expiry_time,
4288            }
4289        }
4290    }
4291    #[doc = "*"]
4292    #[doc = " * "]
4293    #[doc = " * This DF represents a zone  inside which the ITS communication should be restricted in order to manage interference."]
4294    #[doc = " *"]
4295    #[doc = " * It shall include the following components: "]
4296    #[doc = " *"]
4297    #[doc = " * @field zoneDefinition: contains the geographical definition of the zone."]
4298    #[doc = " *"]
4299    #[doc = " * @field managementInfo: contains interference management information applicable in the zone defined in the component zoneDefinition."]
4300    #[doc = " *"]
4301    #[doc = " * @category: Communication information"]
4302    #[doc = " * @revision: created in V2.1.1"]
4303    #[doc = " "]
4304    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4305    #[rasn(automatic_tags)]
4306    pub struct InterferenceManagementZone {
4307        #[rasn(identifier = "zoneDefinition")]
4308        pub zone_definition: InterferenceManagementZoneDefinition,
4309        #[rasn(identifier = "managementInfo")]
4310        pub management_info: InterferenceManagementInfo,
4311    }
4312    impl InterferenceManagementZone {
4313        pub fn new(
4314            zone_definition: InterferenceManagementZoneDefinition,
4315            management_info: InterferenceManagementInfo,
4316        ) -> Self {
4317            Self {
4318                zone_definition,
4319                management_info,
4320            }
4321        }
4322    }
4323    #[doc = "*"]
4324    #[doc = " * This DF represents the geographical definition of the zone where band sharing occurs. "]
4325    #[doc = " *"]
4326    #[doc = " * It shall include the following components: "]
4327    #[doc = " *"]
4328    #[doc = " * @field interferenceManagementZoneLatitude: Latitude of the centre point of the interference management zone."]
4329    #[doc = " *"]
4330    #[doc = " * @field interferenceManagementZoneLongitude: Longitude of the centre point of the interference management zone."]
4331    #[doc = " *"]
4332    #[doc = " * @field interferenceManagementZoneId: optional identification of the interference management zone. "]
4333    #[doc = " *"]
4334    #[doc = " * @field interferenceManagementZoneShape: shape of the interference management zone placed at the centre point. "]
4335    #[doc = " *"]
4336    #[doc = " * @category: Communication information"]
4337    #[doc = " * @revision: created in V2.1.1"]
4338    #[doc = " "]
4339    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4340    #[rasn(automatic_tags)]
4341    #[non_exhaustive]
4342    pub struct InterferenceManagementZoneDefinition {
4343        #[rasn(identifier = "interferenceManagementZoneLatitude")]
4344        pub interference_management_zone_latitude: Latitude,
4345        #[rasn(identifier = "interferenceManagementZoneLongitude")]
4346        pub interference_management_zone_longitude: Longitude,
4347        #[rasn(identifier = "interferenceManagementZoneId")]
4348        pub interference_management_zone_id: Option<ProtectedZoneId>,
4349        #[rasn(value("0.."), identifier = "interferenceManagementZoneShape")]
4350        pub interference_management_zone_shape: Option<Shape>,
4351    }
4352    impl InterferenceManagementZoneDefinition {
4353        pub fn new(
4354            interference_management_zone_latitude: Latitude,
4355            interference_management_zone_longitude: Longitude,
4356            interference_management_zone_id: Option<ProtectedZoneId>,
4357            interference_management_zone_shape: Option<Shape>,
4358        ) -> Self {
4359            Self {
4360                interference_management_zone_latitude,
4361                interference_management_zone_longitude,
4362                interference_management_zone_id,
4363                interference_management_zone_shape,
4364            }
4365        }
4366    }
4367    #[doc = "* "]
4368    #[doc = " * This DE defines the type of an interference management zone, so that an ITS-S can "]
4369    #[doc = " * assert the actions to do while passing by such zone (e.g. reduce the transmit power in case of a DSRC tolling station)."]
4370    #[doc = " * It is an extension of the type @ref ProtectedZoneType."]
4371    #[doc = " *"]
4372    #[doc = " * The value shall be set to:"]
4373    #[doc = " * - 0 - `permanentCenDsrcTolling` - as specified in ETSI TS 102 792 [14],"]
4374    #[doc = " * - 1 - `temporaryCenDsrcTolling` - as specified in ETSI TS 102 792 [14],"]
4375    #[doc = " * - 2 - `unavailable`             - default value. Set to 2 for backwards compatibility with DSRC tolling,"]
4376    #[doc = " * - 3 - `urbanRail`               - as specified in ETSI TS 103 724 [13], clause 7,"]
4377    #[doc = " * - 4 - `satelliteStation`        - as specified in ETSI TS 103 724 [13], clause 7,"]
4378    #[doc = " * - 5 - `fixedLinks`              - as specified in ETSI TS 103 724 [13], clause 7."]
4379    #[doc = " *"]
4380    #[doc = " * @category: Communication information"]
4381    #[doc = " * @revision: Created in V2.1.1"]
4382    #[doc = " "]
4383    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
4384    #[rasn(enumerated)]
4385    #[non_exhaustive]
4386    pub enum InterferenceManagementZoneType {
4387        permanentCenDsrcTolling = 0,
4388        temporaryCenDsrcTolling = 1,
4389        unavailable = 2,
4390        urbanRail = 3,
4391        satelliteStation = 4,
4392        fixedLinks = 5,
4393    }
4394    #[doc = "*"]
4395    #[doc = " * This DF shall contain a list of up to 16 interference  management zones.  "]
4396    #[doc = " *"]
4397    #[doc = " * **EXAMPLE**: An interference management communication zone may be defined around a CEN DSRC road side equipment or an urban rail operational area."]
4398    #[doc = " * "]
4399    #[doc = " * @category: Communication information"]
4400    #[doc = " * @revision: created in V2.1.1"]
4401    #[doc = " "]
4402    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4403    #[rasn(delegate, size("1..=16", extensible))]
4404    pub struct InterferenceManagementZones(pub SequenceOf<InterferenceManagementZone>);
4405    #[doc = "*"]
4406    #[doc = " * This DF represents a unique id for an intersection, in accordance with ETSI TS 103 301 [15]."]
4407    #[doc = " *"]
4408    #[doc = " * It shall include the following components: "]
4409    #[doc = " *"]
4410    #[doc = " * @field region: the optional identifier of the entity that is responsible for the region in which the intersection is placed."]
4411    #[doc = " * It is the duty of that entity to guarantee that the @ref Id is unique within the region."]
4412    #[doc = " *"]
4413    #[doc = " * @field id: the identifier of the intersection"]
4414    #[doc = " *"]
4415    #[doc = " * @note: when the component region is present, the IntersectionReferenceId is guaranteed to be globally unique."]
4416    #[doc = " * @category: Road topology information"]
4417    #[doc = " * @revision: created in V2.1.1"]
4418    #[doc = " "]
4419    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4420    #[rasn(automatic_tags)]
4421    pub struct IntersectionReferenceId {
4422        pub region: Option<Identifier2B>,
4423        pub id: Identifier2B,
4424    }
4425    impl IntersectionReferenceId {
4426        pub fn new(region: Option<Identifier2B>, id: Identifier2B) -> Self {
4427            Self { region, id }
4428        }
4429    }
4430    #[doc = "*"]
4431    #[doc = " * This DE represents the vehicle type according to ISO 3833 [22]."]
4432    #[doc = " * A \"term No\" refers to the number of the corresponding term and its definition in ISO 3833."]
4433    #[doc = " *"]
4434    #[doc = " * The value shall be set to:"]
4435    #[doc = " * - 0\t- `passengerCar`              - term No 3.1.1"]
4436    #[doc = " * - 1\t- `saloon`                    - term No 3.1.1.1 (sedan)"]
4437    #[doc = " * - 2\t- `convertibleSaloon`         - term No 3.1.1.2"]
4438    #[doc = " * - 3\t- `pullmanSaloon`             - term No 3.1.1.3"]
4439    #[doc = " * - 4\t- `stationWagon`              - term No 3.1.1.4"]
4440    #[doc = " * - 5\t- `truckStationWagon`         - term No 3.1.1.4.1"]
4441    #[doc = " * - 6\t- `coupe`                     - term No 3.1.1.5 (coupe)"]
4442    #[doc = " * - 7\t- `convertible`               - term No 3.1.1.6 (open tourer, roadstar, spider)"]
4443    #[doc = " * - 8\t- `multipurposePassengerCar`  - term No 3.1.1.7"]
4444    #[doc = " * - 9\t- `forwardControlPassengerCar`- term No 3.1.1.8"]
4445    #[doc = " * - 10\t- `specialPassengerCar`       - term No 3.1.1.9"]
4446    #[doc = " * - 11\t- `bus`                       - term No 3.1.2"]
4447    #[doc = " * - 12\t- `minibus`                   - term No 3.1.2.1"]
4448    #[doc = " * - 13\t- `urbanBus`                  - term No 3.1.2.2"]
4449    #[doc = " * - 14\t- `interurbanCoach`           - term No 3.1.2.3"]
4450    #[doc = " * - 15\t- `longDistanceCoach`         - term No 3.1.2.4"]
4451    #[doc = " * - 16\t- `articulatedBus`            - term No 3.1.2.5"]
4452    #[doc = " * - 17\t- `trolleyBus\t`             - term No 3.1.2.6"]
4453    #[doc = " * - 18\t- `specialBus`                - term No 3.1.2.7"]
4454    #[doc = " * - 19\t- `commercialVehicle`         - term No 3.1.3"]
4455    #[doc = " * - 20\t- `specialCommercialVehicle`  - term No 3.1.3.1"]
4456    #[doc = " * - 21\t- `specialVehicle`            - term No 3.1.4"]
4457    #[doc = " * - 22\t- `trailingTowingVehicle`     - term No 3.1.5 (draw-bar tractor)"]
4458    #[doc = " * - 23\t- `semiTrailerTowingVehicle`  - term No 3.1.6 (fifth wheel tractor)"]
4459    #[doc = " * - 24\t- `trailer`                   - term No 3.2.1"]
4460    #[doc = " * - 25\t- `busTrailer`                - term No 3.2.1.1"]
4461    #[doc = " * - 26\t- `generalPurposeTrailer`     - term No 3.2.1.2"]
4462    #[doc = " * - 27\t- `caravan`                   - term No 3.2.1.3"]
4463    #[doc = " * - 28\t- `specialTrailer`            - term No 3.2.1.4"]
4464    #[doc = " * - 29\t- `semiTrailer`               - term No 3.2.2"]
4465    #[doc = " * - 30\t- `busSemiTrailer`            - term No 3.2.2.1"]
4466    #[doc = " * - 31\t- `generalPurposeSemiTrailer` - term No 3.2.2.2"]
4467    #[doc = " * - 32\t- `specialSemiTrailer`        - term No 3.2.2.3"]
4468    #[doc = " * - 33\t- `roadTrain`                 - term No 3.3.1"]
4469    #[doc = " * - 34\t- `passengerRoadTrain`        - term No 3.3.2"]
4470    #[doc = " * - 35\t- `articulatedRoadTrain`      - term No 3.3.3"]
4471    #[doc = " * - 36\t- `doubleRoadTrain`           - term No 3.3.4"]
4472    #[doc = " * - 37\t- `compositeRoadTrain`        - term No 3.3.5"]
4473    #[doc = " * - 38\t- `specialRoadTrain`          - term No 3.3.6"]
4474    #[doc = " * - 39\t- `moped`                     - term No 3.4"]
4475    #[doc = " * - 40\t- `motorCycle`                - term No 3.5"]
4476    #[doc = " * - 41-255                           - reserved for future use"]
4477    #[doc = " * "]
4478    #[doc = " * @category: Vehicle information"]
4479    #[doc = " * @revision: Created in V2.1.1"]
4480    #[doc = " "]
4481    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4482    #[rasn(delegate, value("0..=255"))]
4483    pub struct Iso3833VehicleType(pub u8);
4484    #[doc = "* "]
4485    #[doc = " * This DE represent the identifier of an organization according to the applicable registry."]
4486    #[doc = " *"]
4487    #[doc = " * @category: Basic information"]
4488    #[doc = " * @revision: Created in V2.2.1 based on ISO 14816 [23]"]
4489    #[doc = ""]
4490    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4491    #[rasn(delegate, value("0..=16383"))]
4492    pub struct IssuerIdentifier(pub u16);
4493    #[doc = "*"]
4494    #[doc = " * This DF shall contain  a list of waypoints @ref ReferencePosition."]
4495    #[doc = " *"]
4496    #[doc = " * @category: GeoReference information"]
4497    #[doc = " * @revision: Editorial update in V2.1.1"]
4498    #[doc = " "]
4499    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4500    #[rasn(delegate, size("1..=40"))]
4501    pub struct ItineraryPath(pub SequenceOf<ReferencePosition>);
4502    #[doc = "*"]
4503    #[doc = " * This DF represents a common message header for application and facilities layer messages."]
4504    #[doc = " * It is included at the beginning of an ITS message as the message header."]
4505    #[doc = " *"]
4506    #[doc = " * It shall include the following components: "]
4507    #[doc = " *"]
4508    #[doc = " * @field protocolVersion: version of the ITS message."]
4509    #[doc = " *"]
4510    #[doc = " * @field messageId: type of the ITS message."]
4511    #[doc = " *"]
4512    #[doc = " * @field stationId: the identifier of the ITS-S that generated the ITS message."]
4513    #[doc = " *"]
4514    #[doc = " * @category: Communication information"]
4515    #[doc = " * @revision:  update in V2.1.1: messageID and stationID changed to messageId and stationId; messageId is of type MessageId."]
4516    #[doc = " "]
4517    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4518    #[rasn(automatic_tags)]
4519    pub struct ItsPduHeader {
4520        #[rasn(identifier = "protocolVersion")]
4521        pub protocol_version: OrdinalNumber1B,
4522        #[rasn(identifier = "messageId")]
4523        pub message_id: MessageId,
4524        #[rasn(identifier = "stationId")]
4525        pub station_id: StationId,
4526    }
4527    impl ItsPduHeader {
4528        pub fn new(
4529            protocol_version: OrdinalNumber1B,
4530            message_id: MessageId,
4531            station_id: StationId,
4532        ) -> Self {
4533            Self {
4534                protocol_version,
4535                message_id,
4536                station_id,
4537            }
4538        }
4539    }
4540    #[doc = "* "]
4541    #[doc = " * This DE represents the identifier of the IVIM."]
4542    #[doc = " *"]
4543    #[doc = " * @category: Basic information"]
4544    #[doc = " * @revision: Created in V2.2.1 based on ETSI TS 103 301 [15]"]
4545    #[doc = ""]
4546    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4547    #[rasn(delegate, value("1..=32767", extensible))]
4548    pub struct IviIdentificationNumber(pub Integer);
4549    #[doc = "*"]
4550    #[doc = " * This DF provides the reference to the information contained in a IVIM according to ETSI TS 103 301 [15]. "]
4551    #[doc = " *"]
4552    #[doc = " * It shall include the following components: "]
4553    #[doc = " * "]
4554    #[doc = " * @field serviceProviderId: identifier of the organization that provided the IVIM."]
4555    #[doc = " *"]
4556    #[doc = " * @field iviIdentificationNumber: identifier of the IVIM, as assigned by the organization identified in serviceProviderId."]
4557    #[doc = " *"]
4558    #[doc = " * @category: Communication information"]
4559    #[doc = " * @revision: Created in V2.2.1"]
4560    #[doc = " "]
4561    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4562    #[rasn(automatic_tags)]
4563    pub struct IvimReference {
4564        #[rasn(identifier = "serviceProviderId")]
4565        pub service_provider_id: Provider,
4566        #[rasn(identifier = "iviIdentificationNumber")]
4567        pub ivi_identification_number: IviIdentificationNumber,
4568    }
4569    impl IvimReference {
4570        pub fn new(
4571            service_provider_id: Provider,
4572            ivi_identification_number: IviIdentificationNumber,
4573        ) -> Self {
4574            Self {
4575                service_provider_id,
4576                ivi_identification_number,
4577            }
4578        }
4579    }
4580    #[doc = "*"]
4581    #[doc = " * This DF shall contain a list of @ref IvimReference."]
4582    #[doc = " *"]
4583    #[doc = " * @category: Communication information"]
4584    #[doc = " * @revision: Created in V2.2.1"]
4585    #[doc = ""]
4586    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4587    #[rasn(delegate, size("1..=8", extensible))]
4588    pub struct IvimReferences(pub SequenceOf<IvimReference>);
4589    #[doc = "*"]
4590    #[doc = " * This DE indicates a transversal position on the carriageway at a specific longitudinal position, in resolution of lanes of the carriageway. "]
4591    #[doc = " *"]
4592    #[doc = " * For right-hand traffic roads, the value shall be set to:"]
4593    #[doc = " * - `-1` if the position is off, i.e. besides the road,"]
4594    #[doc = " * - `0` if the position is on the inner hard shoulder, i.e. the hard should adjacent to the leftmost lane,"]
4595    #[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,"]
4596    #[doc = " * - `14` if the position is on the outer hard shoulder, i.e. the hard should adjacent to rightmost lane (if present)."]
4597    #[doc = " *"]
4598    #[doc = " * For left-hand traffic roads, the value shall be set to:"]
4599    #[doc = " * - `-1` if the position is off, i.e. besides the road,"]
4600    #[doc = " * - `0` if the position is on the inner hard shoulder, i.e. the hard should adjacent to the rightmost lane,"]
4601    #[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,"]
4602    #[doc = " * - `14` if the position is on the outer hard shoulder, i.e. the hard should adjacent to leftmost lane (if present)."]
4603    #[doc = " *"]
4604    #[doc = " *  @note: in practice this means that the position is counted from \"inside\" to \"outside\" no matter which traffic practice is used."]
4605    #[doc = " *"]
4606    #[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. "]
4607    #[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), "]
4608    #[doc = " * the position is counted from the legal (i.e. optical) separation between traffic directions (horizontal marking). "]
4609    #[doc = " *"]
4610    #[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:"]
4611    #[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 "]
4612    #[doc = " *   imaginary separation between traffic directions is on the border between the even number of lanes N/2."]
4613    #[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. "]
4614    #[doc = " *   The remaining middle lane is assigned to both traffic directions as innermost lane."]
4615    #[doc = " *"]
4616    #[doc = " * @category: Road topology information"]
4617    #[doc = " * @revision: Description of the legal separation of carriageways added in V2.2.1"]
4618    #[doc = ""]
4619    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4620    #[rasn(delegate, value("-1..=14"))]
4621    pub struct LanePosition(pub i8);
4622    #[doc = "*"]
4623    #[doc = " * This DF indicates a transversal position in resolution of lanes and other associated details."]
4624    #[doc = " *"]
4625    #[doc = " * It shall include the following components: "]
4626    #[doc = " * "]
4627    #[doc = " * @field transversalPosition: the transversal position."]
4628    #[doc = " * "]
4629    #[doc = " * @field laneType: the type of the lane identified in the component transversalPosition. By default set to `traffic`."]
4630    #[doc = " *"]
4631    #[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."]
4632    #[doc = " *"]
4633    #[doc = " * @category Road topology information"]
4634    #[doc = " * @revision: direction added in V2.2.1"]
4635    #[doc = " "]
4636    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4637    #[rasn(automatic_tags)]
4638    #[non_exhaustive]
4639    pub struct LanePositionAndType {
4640        #[rasn(identifier = "transversalPosition")]
4641        pub transversal_position: LanePosition,
4642        #[rasn(
4643            default = "lane_position_and_type_lane_type_default",
4644            identifier = "laneType"
4645        )]
4646        pub lane_type: LaneType,
4647        #[rasn(default = "lane_position_and_type_direction_default")]
4648        pub direction: Direction,
4649    }
4650    impl LanePositionAndType {
4651        pub fn new(
4652            transversal_position: LanePosition,
4653            lane_type: LaneType,
4654            direction: Direction,
4655        ) -> Self {
4656            Self {
4657                transversal_position,
4658                lane_type,
4659                direction,
4660            }
4661        }
4662    }
4663    fn lane_position_and_type_lane_type_default() -> LaneType {
4664        LaneType(0)
4665    }
4666    fn lane_position_and_type_direction_default() -> Direction {
4667        Direction(0)
4668    }
4669    #[doc = "*"]
4670    #[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. "]
4671    #[doc = " * A lane position is a transversal position on the carriageway at a specific longitudinal position, in resolution of lanes of the carriageway."]
4672    #[doc = " *"]
4673    #[doc = " * The following options are available:"]
4674    #[doc = " *"]
4675    #[doc = " * @field simplelanePosition: a single lane position without any additional context information."]
4676    #[doc = " *"]
4677    #[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 "]
4678    #[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)."]
4679    #[doc = " * "]
4680    #[doc = " * @field detailedlanePosition: a single lane position with additional lane details."]
4681    #[doc = " * "]
4682    #[doc = " * @field lanePositionWithLateralDetails: a single lane position with additional details and the lateral position within the lane."]
4683    #[doc = " *"]
4684    #[doc = " * @field trafficIslandPosition: a position on a traffic island, i.e. between two lanes. "]
4685    #[doc = " *"]
4686    #[doc = " * @category: Road Topology information"]
4687    #[doc = " * @revision: Created in V2.2.1 from the DF GeneralizedLanePosition of V2.1.1. "]
4688    #[doc = " "]
4689    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4690    #[rasn(choice, automatic_tags)]
4691    #[non_exhaustive]
4692    pub enum LanePositionOptions {
4693        simplelanePosition(LanePosition),
4694        simpleLaneType(LaneType),
4695        detailedlanePosition(LanePositionAndType),
4696        lanePositionWithLateralDetails(LanePositionWithLateralDetails),
4697        trafficIslandPosition(TrafficIslandPosition),
4698    }
4699    #[doc = "*"]
4700    #[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."]
4701    #[doc = " *"]
4702    #[doc = " * It shall additionally include the following components: "]
4703    #[doc = " *"]
4704    #[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."]
4705    #[doc = " *"]
4706    #[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."]
4707    #[doc = " * "]
4708    #[doc = " * @category: Road Topology information"]
4709    #[doc = " * @revision: Created in V2.2.1"]
4710    #[doc = " "]
4711    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4712    #[rasn(automatic_tags)]
4713    #[non_exhaustive]
4714    pub struct LanePositionWithLateralDetails {
4715        #[rasn(identifier = "distanceToLeftBorder")]
4716        pub distance_to_left_border: StandardLength9b,
4717        #[rasn(identifier = "distanceToRightBorder")]
4718        pub distance_to_right_border: StandardLength9b,
4719        #[rasn(identifier = "transversalPosition")]
4720        pub transversal_position: LanePosition,
4721        #[rasn(
4722            default = "lane_position_with_lateral_details_lane_type_default",
4723            identifier = "laneType"
4724        )]
4725        pub lane_type: LaneType,
4726        #[rasn(default = "lane_position_with_lateral_details_direction_default")]
4727        pub direction: Direction,
4728    }
4729    impl LanePositionWithLateralDetails {
4730        pub fn new(
4731            distance_to_left_border: StandardLength9b,
4732            distance_to_right_border: StandardLength9b,
4733            transversal_position: LanePosition,
4734            lane_type: LaneType,
4735            direction: Direction,
4736        ) -> Self {
4737            Self {
4738                distance_to_left_border,
4739                distance_to_right_border,
4740                transversal_position,
4741                lane_type,
4742                direction,
4743            }
4744        }
4745    }
4746    fn lane_position_with_lateral_details_lane_type_default() -> LaneType {
4747        LaneType(0)
4748    }
4749    fn lane_position_with_lateral_details_direction_default() -> Direction {
4750        Direction(0)
4751    }
4752    #[doc = "*"]
4753    #[doc = " * This DE represents the type of a lane. "]
4754    #[doc = " * "]
4755    #[doc = " * The value shall be set to:"]
4756    #[doc = " * - 0\t- `traffic`            - Lane dedicated to the movement of vehicles,"]
4757    #[doc = " * - 1\t- `through`            - Lane dedicated to the movement of vehicles travelling ahead and not turning,"]
4758    #[doc = " * - 2\t- `reversible`         - Lane where the direction of traffic can be changed to match the peak flow,"]
4759    #[doc = " * - 3\t- `acceleration`\t   - Lane that allows vehicles entering a road to accelerate to the speed of through traffic before merging with it,"]
4760    #[doc = " * - 4\t- `deceleration`       - Lane that allows vehicles exiting a road to decelerate before leaving it,"]
4761    #[doc = " * - 5\t- `leftHandTurning`    - Lane reserved for slowing down and making a left turn, so as not to disrupt traffic,"]
4762    #[doc = " * - 6\t- `rightHandTurning`   - Lane reserved for slowing down and making a right turn so as not to disrupt traffic,"]
4763    #[doc = " * - 7\t- `dedicatedVehicle`   - Lane dedicated to movement of motor vehicles with specific characteristics, such as heavy goods vehicles, etc., "]
4764    #[doc = " * - 8\t- `bus`                - Lane dedicated to movement of buses providing public transport,"]
4765    #[doc = " * - 9\t- `taxi`               - Lane dedicated to movement of taxis,"]
4766    #[doc = " * - 10\t- `hov`                - Carpooling lane or high occupancy vehicle lane,"]
4767    #[doc = " * - 11\t- `hot`                - High occupancy vehicle lanes that is allowed to be used without meeting the occupancy criteria by paying a toll,"]
4768    #[doc = " * - 12\t- `pedestrian`         - Lanes dedicated to pedestrians such as pedestrian sidewalk paths,"]
4769    #[doc = " * - 13\t- `cycleLane`\t       - Lane dedicated to exclusive or preferred use by bicycles,"]
4770    #[doc = " * - 14\t- `median`             - Lane not dedicated to movement of vehicles but representing a median / central reservation  such as the central median, "]
4771    #[doc = "                                 separating the two directional carriageways of the highway,"]
4772    #[doc = " * - 15\t- `striping`\t       - Lane not dedicated to movement of vehicles but covered with roadway markings,"]
4773    #[doc = " * - 16\t- `trackedVehicle`     - Lane dedicated to movement of trains, trams and trolleys,"]
4774    #[doc = " * - 17\t- `parking`            - Lanes dedicated to vehicles parking, stopping and loading lanes,"]
4775    #[doc = " * - 18\t- `emergency`          - Lane dedicated to vehicles in breakdown or to emergency vehicles also called hard shoulder,"]
4776    #[doc = " * - 19\t- `verge`              - Lane representing the verge, i.e. a narrow strip of grass or plants and sometimes also trees located between "]
4777    #[doc = "                                 the road surface edge and the boundary of a road,"]
4778    #[doc = " * - 20\t`minimumRiskManoeuvre` - Lane dedicated to automated vehicles making a minimum risk manoeuvre,"]
4779    #[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."]
4780    #[doc = " * - values 22 to 30             reserved for future use. "]
4781    #[doc = " *"]
4782    #[doc = " * @category: Road topology information"]
4783    #[doc = " * @revision: Created in V2.1.1, named value 21 added in V2.2.1"]
4784    #[doc = ""]
4785    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4786    #[rasn(delegate, value("0..=31"))]
4787    pub struct LaneType(pub u8);
4788    #[doc = "*"]
4789    #[doc = " * This DE represents the width of a lane measured at a defined position."]
4790    #[doc = " *"]
4791    #[doc = " * The value shall be set to:"]
4792    #[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,"]
4793    #[doc = " * - `1022` if the lane width is out of range, i.e. greater than 10,21 m,"]
4794    #[doc = " * - `1023` if the lane width information is not available."]
4795    #[doc = " *"]
4796    #[doc = " * The value 0 shall not be used."]
4797    #[doc = " *"]
4798    #[doc = " * @unit: 0,01 metre"]
4799    #[doc = " * @category: Road topology information"]
4800    #[doc = " * @revision: Created in V2.1.1"]
4801    #[doc = " "]
4802    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4803    #[rasn(delegate, value("0..=1023"))]
4804    pub struct LaneWidth(pub u16);
4805    #[doc = "*"]
4806    #[doc = " * This DF indicates the vehicle acceleration at lateral direction and the confidence value of the lateral acceleration."]
4807    #[doc = " *"]
4808    #[doc = " * It shall include the following components: "]
4809    #[doc = " * "]
4810    #[doc = " * @field lateralAccelerationValue: lateral acceleration value at a point in time."]
4811    #[doc = " * "]
4812    #[doc = " * @field lateralAccelerationConfidence: confidence value of the lateral acceleration value."]
4813    #[doc = " *"]
4814    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead."]
4815    #[doc = " * @category Vehicle information"]
4816    #[doc = " * @revision: Description revised in V2.1.1"]
4817    #[doc = " "]
4818    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4819    #[rasn(automatic_tags)]
4820    pub struct LateralAcceleration {
4821        #[rasn(identifier = "lateralAccelerationValue")]
4822        pub lateral_acceleration_value: LateralAccelerationValue,
4823        #[rasn(identifier = "lateralAccelerationConfidence")]
4824        pub lateral_acceleration_confidence: AccelerationConfidence,
4825    }
4826    impl LateralAcceleration {
4827        pub fn new(
4828            lateral_acceleration_value: LateralAccelerationValue,
4829            lateral_acceleration_confidence: AccelerationConfidence,
4830        ) -> Self {
4831            Self {
4832                lateral_acceleration_value,
4833                lateral_acceleration_confidence,
4834            }
4835        }
4836    }
4837    #[doc = "*"]
4838    #[doc = " * This DE represents the vehicle acceleration at lateral direction in the centre of the mass of the empty vehicle."]
4839    #[doc = " * It corresponds to the vehicle coordinate system as specified in ISO 8855 [21]."]
4840    #[doc = " *"]
4841    #[doc = " * The value shall be set to:"]
4842    #[doc = " * - `-160` for acceleration values equal to or less than -16 m/s^2,"]
4843    #[doc = " * - `n` (`n > -160` and `n <= 0`) to indicate that the vehicle is accelerating towards the right side with regards to the vehicle orientation "]
4844    #[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,"]
4845    #[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 "]
4846    #[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,"]
4847    #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
4848    #[doc = " * - `161` when the data is unavailable."]
4849    #[doc = " *"]
4850    #[doc = " * @note: the empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
4851    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationValue instead."]
4852    #[doc = " *  "]
4853    #[doc = " * @unit: 0,1 m/s^2"]
4854    #[doc = " * @category: Vehicle information"]
4855    #[doc = " * @revision: Description updated in V2.1.1 (the meaning of 160 has changed slightly). "]
4856    #[doc = " "]
4857    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4858    #[rasn(delegate, value("-160..=161"))]
4859    pub struct LateralAccelerationValue(pub i16);
4860    #[doc = "*"]
4861    #[doc = " * This DE represents the absolute geographical latitude in a WGS84 coordinate system, providing a range of 90 degrees in north or"]
4862    #[doc = " * in south hemisphere."]
4863    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
4864    #[doc = " *"]
4865    #[doc = " * The value shall be set to:"]
4866    #[doc = " * - `n` (`n >= -900 000 000` and `n < 0`) x 10^-7 degree, i.e. negative values for latitudes south of the Equator,"]
4867    #[doc = " * - `0` is used for the latitude of the equator,"]
4868    #[doc = " * - `n` (`n > 0` and `n < 900 000 001`) x 10^-7 degree, i.e. positive values for latitudes north of the Equator,"]
4869    #[doc = " * - `900 000 001` when the information is unavailable."]
4870    #[doc = " *"]
4871    #[doc = " * @unit: 10^-7 degree"]
4872    #[doc = " * @category: GeoReference information"]
4873    #[doc = " * @revision: Editorial update in V2.1.1"]
4874    #[doc = " "]
4875    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4876    #[rasn(delegate, value("-900000000..=900000001"))]
4877    pub struct Latitude(pub i32);
4878    #[doc = "*"]
4879    #[doc = " * This DE indicates the status of light bar and any sort of audible alarm system besides the horn."]
4880    #[doc = " * This includes various common sirens as well as backup up beepers and other slow speed manoeuvring alerts."]
4881    #[doc = " *"]
4882    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
4883    #[doc = " * - 0 - `lightBarActivated`      - when the light bar is activated,"]
4884    #[doc = " * - 1 - `sirenActivated`         - when the siren is activated."]
4885    #[doc = " *"]
4886    #[doc = " * Otherwise, it shall be set to 0."]
4887    #[doc = " *"]
4888    #[doc = " * @category Vehicle information"]
4889    #[doc = " * @revision: Editorial update in V2.1.1"]
4890    #[doc = " "]
4891    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4892    #[rasn(delegate)]
4893    pub struct LightBarSirenInUse(pub FixedBitString<2usize>);
4894    #[doc = "*"]
4895    #[doc = " * This DE represents the absolute geographical longitude in a WGS84 coordinate system, providing a range of 180 degrees"]
4896    #[doc = " * to the east or to the west of the prime meridian."]
4897    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
4898    #[doc = " *"]
4899    #[doc = " * The value shall be set to:"]
4900    #[doc = " * - `n` (`n > -1 800 000 000` and `n < 0`) x 10^-7 degree, i.e. negative values for longitudes to the west,"]
4901    #[doc = " * - `0` to indicate the prime meridian,"]
4902    #[doc = " * - `n` (`n > 0` and `n < 1 800 000 001`) x 10^-7 degree, i.e. positive values for longitudes to the east,"]
4903    #[doc = " * - `1 800 000 001` when the information is unavailable."]
4904    #[doc = " *"]
4905    #[doc = " * The value -1 800 000 000 shall not be used. "]
4906    #[doc = " * "]
4907    #[doc = " * @unit: 10^-7 degree"]
4908    #[doc = " * @category: GeoReference information"]
4909    #[doc = " * @revision: Description revised in V2.1.1"]
4910    #[doc = " "]
4911    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4912    #[rasn(delegate, value("-1800000000..=1800000001"))]
4913    pub struct Longitude(pub i32);
4914    #[doc = "*"]
4915    #[doc = " * This DF indicates the vehicle acceleration at longitudinal direction and the confidence value of the longitudinal acceleration."]
4916    #[doc = " *"]
4917    #[doc = " * It shall include the following components: "]
4918    #[doc = " *"]
4919    #[doc = " * @field longitudinalAccelerationValue: longitudinal acceleration value at a point in time."]
4920    #[doc = ""]
4921    #[doc = " * @field longitudinalAccelerationConfidence: confidence value of the longitudinal acceleration value."]
4922    #[doc = " *"]
4923    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead. "]
4924    #[doc = " * @category: Vehicle information"]
4925    #[doc = " * @revision: V1.3.1"]
4926    #[doc = " "]
4927    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4928    #[rasn(automatic_tags)]
4929    pub struct LongitudinalAcceleration {
4930        #[rasn(identifier = "longitudinalAccelerationValue")]
4931        pub longitudinal_acceleration_value: LongitudinalAccelerationValue,
4932        #[rasn(identifier = "longitudinalAccelerationConfidence")]
4933        pub longitudinal_acceleration_confidence: AccelerationConfidence,
4934    }
4935    impl LongitudinalAcceleration {
4936        pub fn new(
4937            longitudinal_acceleration_value: LongitudinalAccelerationValue,
4938            longitudinal_acceleration_confidence: AccelerationConfidence,
4939        ) -> Self {
4940            Self {
4941                longitudinal_acceleration_value,
4942                longitudinal_acceleration_confidence,
4943            }
4944        }
4945    }
4946    #[doc = "*"]
4947    #[doc = " * This DE represents the vehicle acceleration at longitudinal direction in the centre of the mass of the empty vehicle."]
4948    #[doc = " * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11."]
4949    #[doc = " *"]
4950    #[doc = " * The value shall be set to:"]
4951    #[doc = " * - `-160` for acceleration values equal to or less than -16 m/s^2,"]
4952    #[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"]
4953    #[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,"]
4954    #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
4955    #[doc = " * - `161` when the data is unavailable. "]
4956    #[doc = " * "]
4957    #[doc = " * This acceleration is along the tangent plane of the road surface and does not include gravity components."]
4958    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationValue instead."]
4959    #[doc = " * "]
4960    #[doc = " * @note: The empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
4961    #[doc = " * @unit: 0,1 m/s^2"]
4962    #[doc = " * @category: Vehicle information"]
4963    #[doc = " * @revision: description revised in V2.1.1 (the meaning of 160 has changed slightly). T"]
4964    #[doc = " "]
4965    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4966    #[rasn(delegate, value("-160..=161"))]
4967    pub struct LongitudinalAccelerationValue(pub i16);
4968    #[doc = "* "]
4969    #[doc = " * This DF represents the estimated position along the longitudinal extension of a carriageway or lane. "]
4970    #[doc = " *"]
4971    #[doc = " * It shall include the following components: "]
4972    #[doc = " *"]
4973    #[doc = " * @field  longitudinalLanePositionValue: the mean value of the longitudinal position along the carriageway or lane w.r.t. an externally defined start position."]
4974    #[doc = " *"]
4975    #[doc = " * @field  longitudinalLanePositionConfidence: The confidence value associated to the value."]
4976    #[doc = " *"]
4977    #[doc = " * @category: Road topology information"]
4978    #[doc = " * @revision: created in V2.1.1, description revised in V2.2.1"]
4979    #[doc = " "]
4980    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4981    #[rasn(automatic_tags)]
4982    pub struct LongitudinalLanePosition {
4983        #[rasn(identifier = "longitudinalLanePositionValue")]
4984        pub longitudinal_lane_position_value: LongitudinalLanePositionValue,
4985        #[rasn(identifier = "longitudinalLanePositionConfidence")]
4986        pub longitudinal_lane_position_confidence: LongitudinalLanePositionConfidence,
4987    }
4988    impl LongitudinalLanePosition {
4989        pub fn new(
4990            longitudinal_lane_position_value: LongitudinalLanePositionValue,
4991            longitudinal_lane_position_confidence: LongitudinalLanePositionConfidence,
4992        ) -> Self {
4993            Self {
4994                longitudinal_lane_position_value,
4995                longitudinal_lane_position_confidence,
4996            }
4997        }
4998    }
4999    #[doc = "* "]
5000    #[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 %."]
5001    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
5002    #[doc = " *"]
5003    #[doc = " * The value shall be set to:"]
5004    #[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,"]
5005    #[doc = " * - `1 022` if the confidence value is out of range i.e. greater than 102,1 m,"]
5006    #[doc = " * - `1 023` if the confidence value is unavailable."]
5007    #[doc = " *"]
5008    #[doc = " * @unit 0,1 metre"]
5009    #[doc = " * @category: GeoReference information"]
5010    #[doc = " * @revision: Created in V2.1.1"]
5011    #[doc = ""]
5012    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5013    #[rasn(delegate, value("0..=1023"))]
5014    pub struct LongitudinalLanePositionConfidence(pub u16);
5015    #[doc = "* "]
5016    #[doc = " * This DE represents the longitudinal offset of a map-matched position along a matched lane, beginning from the lane's starting point."]
5017    #[doc = " * "]
5018    #[doc = " * The value shall be set to:"]
5019    #[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,"]
5020    #[doc = " * - `32 766` if the longitudinal offset is out of range, i.e. greater than 3276,5 m,"]
5021    #[doc = " * - `32 767` if the longitudinal offset information is not available. "]
5022    #[doc = " *"]
5023    #[doc = " * @unit 0,1 metre"]
5024    #[doc = " * @category: GeoReference information"]
5025    #[doc = " * @revision: Created in V2.1.1"]
5026    #[doc = ""]
5027    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5028    #[rasn(delegate, value("0..=32767"))]
5029    pub struct LongitudinalLanePositionValue(pub u16);
5030    #[doc = "* "]
5031    #[doc = " * This DF shall contain a list of a lower triangular positive semi-definite matrices."]
5032    #[doc = " *"]
5033    #[doc = " * @category: Sensing information"]
5034    #[doc = " * @revision: Created in V2.1.1"]
5035    #[doc = ""]
5036    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5037    #[rasn(delegate, size("1..=4"))]
5038    pub struct LowerTriangularPositiveSemidefiniteMatrices(
5039        pub SequenceOf<LowerTriangularPositiveSemidefiniteMatrix>,
5040    );
5041    #[doc = "* "]
5042    #[doc = " * This DF represents a lower triangular positive semi-definite matrix. "]
5043    #[doc = " *"]
5044    #[doc = " * It shall include the following components: "]
5045    #[doc = " *"]
5046    #[doc = " * @field componentsIncludedIntheMatrix: the indication of which components of a @ref PerceivedObject are included in the matrix. "]
5047    #[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\"."]
5048    #[doc = " *"]
5049    #[doc = " * @field matrix: the list of cells of the lower triangular positive semi-definite matrix ordered by columns and by rows. "]
5050    #[doc = " *"]
5051    #[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."]
5052    #[doc = " * These components shall be included in the order or their appearance in componentsIncludedIntheMatrix."]
5053    #[doc = " * Each column \"i\" of the lowerTriangularCorrelationMatrixColumns contains k-(i-1) values."]
5054    #[doc = " *"]
5055    #[doc = " * @category: Sensing information"]
5056    #[doc = " * @revision: Created in V2.1.1"]
5057    #[doc = ""]
5058    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5059    #[rasn(automatic_tags)]
5060    pub struct LowerTriangularPositiveSemidefiniteMatrix {
5061        #[rasn(identifier = "componentsIncludedIntheMatrix")]
5062        pub components_included_inthe_matrix: MatrixIncludedComponents,
5063        pub matrix: LowerTriangularPositiveSemidefiniteMatrixColumns,
5064    }
5065    impl LowerTriangularPositiveSemidefiniteMatrix {
5066        pub fn new(
5067            components_included_inthe_matrix: MatrixIncludedComponents,
5068            matrix: LowerTriangularPositiveSemidefiniteMatrixColumns,
5069        ) -> Self {
5070            Self {
5071                components_included_inthe_matrix,
5072                matrix,
5073            }
5074        }
5075    }
5076    #[doc = "* "]
5077    #[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."]
5078    #[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."]
5079    #[doc = " *"]
5080    #[doc = " * @category: Sensing information"]
5081    #[doc = " * @revision: Created in V2.1.1, extension indicator added in V2.2.1"]
5082    #[doc = ""]
5083    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5084    #[rasn(delegate, size("1..=13", extensible))]
5085    pub struct LowerTriangularPositiveSemidefiniteMatrixColumns(pub SequenceOf<CorrelationColumn>);
5086    #[doc = "*"]
5087    #[doc = " * This DF indicates a position on a topology description transmitted in a MAPEM according to ETSI TS 103 301 [15]."]
5088    #[doc = " *"]
5089    #[doc = " * It shall include the following components: "]
5090    #[doc = " * "]
5091    #[doc = " * @field mapReference: optionally identifies the MAPEM containing the topology information."]
5092    #[doc = " * It is absent if the MAPEM topology is known from the context."]
5093    #[doc = " * "]
5094    #[doc = " * @field laneId: optionally identifies the lane in the road segment or intersection topology on which the position is located."]
5095    #[doc = " *"]
5096    #[doc = " * @field connectionId: optionally identifies the connection inside the conflict area of an intersection, i.e. it identifies a trajectory for travelling through the"]
5097    #[doc = " * conflict area of an intersection which connects e.g an ingress with an egress lane."]
5098    #[doc = " *"]
5099    #[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."]
5100    #[doc = " * "]
5101    #[doc = " * @category: Road topology information"]
5102    #[doc = " * @revision: Created in V2.1.1, definition of longitudinalLanePosition amended in V2.2.1"]
5103    #[doc = " "]
5104    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5105    #[rasn(automatic_tags)]
5106    #[non_exhaustive]
5107    pub struct MapPosition {
5108        #[rasn(identifier = "mapReference")]
5109        pub map_reference: Option<MapReference>,
5110        #[rasn(identifier = "laneId")]
5111        pub lane_id: Option<Identifier1B>,
5112        #[rasn(identifier = "connectionId")]
5113        pub connection_id: Option<Identifier1B>,
5114        #[rasn(identifier = "longitudinalLanePosition")]
5115        pub longitudinal_lane_position: Option<LongitudinalLanePosition>,
5116    }
5117    impl MapPosition {
5118        pub fn new(
5119            map_reference: Option<MapReference>,
5120            lane_id: Option<Identifier1B>,
5121            connection_id: Option<Identifier1B>,
5122            longitudinal_lane_position: Option<LongitudinalLanePosition>,
5123        ) -> Self {
5124            Self {
5125                map_reference,
5126                lane_id,
5127                connection_id,
5128                longitudinal_lane_position,
5129            }
5130        }
5131    }
5132    #[doc = "*"]
5133    #[doc = " * This DF provides the reference to the information contained in a MAPEM according to ETSI TS 103 301 [15]. "]
5134    #[doc = " *"]
5135    #[doc = " * The following options are provided:"]
5136    #[doc = " * "]
5137    #[doc = " * @field roadsegment: option that identifies the description of a road segment contained in a MAPEM."]
5138    #[doc = " * "]
5139    #[doc = " * @field intersection: option that identifies the description of an intersection contained in a MAPEM."]
5140    #[doc = " *"]
5141    #[doc = " * @category: Road topology information"]
5142    #[doc = " * @revision: Created in V2.1.1"]
5143    #[doc = " "]
5144    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5145    #[rasn(choice, automatic_tags)]
5146    pub enum MapReference {
5147        roadsegment(RoadSegmentReferenceId),
5148        intersection(IntersectionReferenceId),
5149    }
5150    #[doc = "*"]
5151    #[doc = " * This DF shall contain a list of @ref MapReference."]
5152    #[doc = " *"]
5153    #[doc = " * @category: Road topology information"]
5154    #[doc = " * @revision: Created in V2.2.1"]
5155    #[doc = ""]
5156    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5157    #[rasn(delegate, size("1..=8", extensible))]
5158    pub struct MapReferences(pub SequenceOf<MapReference>);
5159    #[doc = "* "]
5160    #[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. "]
5161    #[doc = ""]
5162    #[doc = " * @category: Road topology information"]
5163    #[doc = " * @revision: Created in V2.2.1"]
5164    #[doc = ""]
5165    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5166    #[rasn(delegate, size("1..=16", extensible))]
5167    pub struct MapemConfiguration(pub SequenceOf<MapemElementReference>);
5168    #[doc = "* "]
5169    #[doc = " * This DF provides references to MAPEM connections using a list of @ref Identifier1B."]
5170    #[doc = " * Note: connections are  allowed �maneuvers� (e.g. an ingress / egress relation) on an intersection."]
5171    #[doc = " *"]
5172    #[doc = " * @category: Road topology information"]
5173    #[doc = " * @revision: Created in V2.2.1"]
5174    #[doc = ""]
5175    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5176    #[rasn(delegate, size("1..=8", extensible))]
5177    pub struct MapemConnectionList(pub SequenceOf<Identifier1B>);
5178    #[doc = "* "]
5179    #[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. "]
5180    #[doc = " * "]
5181    #[doc = " * It shall include the following components: "]
5182    #[doc = " * "]
5183    #[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."]
5184    #[doc = " * "]
5185    #[doc = " * @field laneIds: the optional list of the identifiers of the lanes to be referenced. "]
5186    #[doc = " * "]
5187    #[doc = " * @field connectionIds: the optional list of the identifiers of the connections to be referenced. "]
5188    #[doc = " *"]
5189    #[doc = " * @category: Road topology information"]
5190    #[doc = " * @revision: Created in V2.2.1"]
5191    #[doc = ""]
5192    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5193    #[rasn(automatic_tags)]
5194    #[non_exhaustive]
5195    pub struct MapemElementReference {
5196        #[rasn(identifier = "mapReference")]
5197        pub map_reference: Option<MapReference>,
5198        #[rasn(identifier = "laneIds")]
5199        pub lane_ids: Option<MapemLaneList>,
5200        #[rasn(identifier = "connectionIds")]
5201        pub connection_ids: Option<MapemConnectionList>,
5202    }
5203    impl MapemElementReference {
5204        pub fn new(
5205            map_reference: Option<MapReference>,
5206            lane_ids: Option<MapemLaneList>,
5207            connection_ids: Option<MapemConnectionList>,
5208        ) -> Self {
5209            Self {
5210                map_reference,
5211                lane_ids,
5212                connection_ids,
5213            }
5214        }
5215    }
5216    #[doc = "* "]
5217    #[doc = " * This DF provides references to MAPEM lanes using a list of @ref Identifier1B."]
5218    #[doc = " *"]
5219    #[doc = " * @category: Road topology information"]
5220    #[doc = " * @revision: Created in 2.2.1"]
5221    #[doc = ""]
5222    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5223    #[rasn(delegate, size("1..=8", extensible))]
5224    pub struct MapemLaneList(pub SequenceOf<Identifier1B>);
5225    #[doc = "*"]
5226    #[doc = " * This DE indicates the components of an @ref PerceivedObject that are included in the @ref LowerTriangularPositiveSemidefiniteMatrix."]
5227    #[doc = " *"]
5228    #[doc = " * The corresponding bit shall be set to 1 if the component is included:"]
5229    #[doc = " * - 0 - `xCoordinate`                   - when the component xCoordinate of the component @ref CartesianPosition3dWithConfidence is included,"]
5230    #[doc = " * - 1 - `yCoordinate`                   - when the component yCoordinate of the component @ref CartesianPosition3dWithConfidence is included,   "]
5231    #[doc = " * - 2 - `zCoordinate`                   - when the component zCoordinate of the component @ref CartesianPosition3dWithConfidence is included, "]
5232    #[doc = " * - 3 - `xVelocityOrVelocityMagnitude`  - when the component xVelocity of the component @ref VelocityCartesian or the component VelocityMagnitude of the component @ref VelocityPolarWithZ is included,   "]
5233    #[doc = " * - 4 - `yVelocityOrVelocityDirection`  - when the component yVelocity of the component @ref VelocityCartesian or the component VelocityDirection of the component @ref VelocityPolarWithZ is included,   "]
5234    #[doc = " * - 5 - `zVelocity`                     - when the component zVelocity of the component @ref VelocityCartesian or of the component @ref VelocityPolarWithZ is included,"]
5235    #[doc = " * - 6 - `xAccelOrAccelMagnitude`        - when the component xAcceleration of the component @ref AccelerationCartesian or the component AccelerationMagnitude of the component @ref AccelerationPolarWithZ is included,  "]
5236    #[doc = " * - 7 - `yAccelOrAccelDirection`        - when the component yAcceleration of the component @ref AccelerationCartesian or the component AccelerationDirection of the component @ref AccelerationPolarWithZ is included,   "]
5237    #[doc = " * - 8 - `zAcceleration`                 - when the component zAcceleration of the component @ref AccelerationCartesian or of the component @ref AccelerationPolarWithZ is included,"]
5238    #[doc = " * - 9 - `zAngle`                        - when the component zAngle is included,"]
5239    #[doc = " * - 10 - `yAngle`                       - when the component yAngle is included,   "]
5240    #[doc = " * - 11 - `xAngle`                       - when the component xAngle is included,   "]
5241    #[doc = " * - 12 - `zAngularVelocity`             - when the component zAngularVelocity is included.   "]
5242    #[doc = " *"]
5243    #[doc = " * Otherwise, it shall be set to 0."]
5244    #[doc = " *"]
5245    #[doc = " * @category: Sensing information"]
5246    #[doc = " * @revision: Created in V2.1.1"]
5247    #[doc = " "]
5248    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5249    #[rasn(delegate, size("13", extensible))]
5250    pub struct MatrixIncludedComponents(pub BitString);
5251    #[doc = "* "]
5252    #[doc = " * This DE represents the type of facility layer message."]
5253    #[doc = " *"]
5254    #[doc = " *  The value shall be set to:"]
5255    #[doc = " *\t- 1  - `denm`              - for Decentralized Environmental Notification Message (DENM) as specified in ETSI EN 302 637-3 [2],"]
5256    #[doc = " *  - 2  - `cam`               - for Cooperative Awareness Message (CAM) as specified in ETSI EN 302 637-2 [1],"]
5257    #[doc = " *  - 3  - `poim`              - for Point of Interest Message as specified in ETSI TS 103 916 [9],"]
5258    #[doc = " *  - 4  - `spatem`            - for Signal Phase And Timing Extended Message (SPATEM) as specified in ETSI TS 103 301 [15],"]
5259    #[doc = " *  - 5  - `mapem`             - for MAP Extended Message (MAPEM) as specified in ETSI TS 103 301 [15],"]
5260    #[doc = " *  - 6  - `ivim`              - for in Vehicle Information Message (IVIM) as specified in ETSI TS 103 301 [15],"]
5261    #[doc = " *  - 7  - `rfu1`              - reserved for future usage,"]
5262    #[doc = " *  - 8  - `rfu2`              - reserved for future usage,"]
5263    #[doc = " *  - 9  - `srem`              - for Signal Request Extended Message as specified in ETSI TS 103 301 [15],"]
5264    #[doc = " *  - 10 - `ssem`              - for Signal request Status Extended Message as specified in ETSI TS 103 301 [15],"]
5265    #[doc = " *  - 11 - `evcsn`             - for Electrical Vehicle Charging Spot Notification message as specified in ETSI TS 101 556-1 [9],"]
5266    #[doc = " *  - 12 - `saem`              - for Services Announcement Extended Message as specified in ETSI EN 302 890-1 [17],"]
5267    #[doc = " *  - 13 - `rtcmem`            - for Radio Technical Commission for Maritime Services Extended Message (RTCMEM) as specified in ETSI TS 103 301 [15],"]
5268    #[doc = " *  - 14 - `cpm`               - for Collective Perception Message (CPM) as specified in ETSI TS 103 324 [10], "]
5269    #[doc = " *  - 15 - `imzm`              - for Interference Management Zone Message (IMZM) as specified in ETSI TS 103 724 [13],"]
5270    #[doc = " *  - 16 - `vam`               - for Vulnerable Road User Awareness Message as specified in ETSI TS 130 300-3 [12], "]
5271    #[doc = " *  - 17 - `dsm`               - reserved for Diagnosis, logging and Status Message,"]
5272    #[doc = " *  - 18 - `mim`               - for Marshalling Infrastructure Message as specified in ETSI TS TS 103 882 [11],"]
5273    #[doc = " *  - 19 - `mvm`               - for Marshalling Vehicle Message as specified in ETSI TS TS 103 882 [11],"]
5274    #[doc = " *  - 20 - `mcm`               - reserved for Manoeuvre Coordination Message,"]
5275    #[doc = " *  - 21 - `pim`               - reserved for Parking Information Message, "]
5276    #[doc = " *  - 22-255                   - reserved for future usage."]
5277    #[doc = " *"]
5278    #[doc = " * @category: Communication information"]
5279    #[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, "]
5280    #[doc = "              value 21 assigned in V2.4.1"]
5281    #[doc = " "]
5282    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5283    #[rasn(delegate, value("0..=255"))]
5284    pub struct MessageId(pub u8);
5285    #[doc = "*"]
5286    #[doc = " * This DF indicates a message rate."]
5287    #[doc = " *"]
5288    #[doc = " * @field mantissa: indicates the mantissa."]
5289    #[doc = " *"]
5290    #[doc = " * @field exponent: indicates the exponent."]
5291    #[doc = " *"]
5292    #[doc = " * The specified message rate is: mantissa*(10^exponent) "]
5293    #[doc = " *"]
5294    #[doc = " * @unit: Hz"]
5295    #[doc = " * @category: Communication information"]
5296    #[doc = " * @revision: Created in V2.1.1"]
5297    #[doc = " "]
5298    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5299    #[rasn(automatic_tags)]
5300    pub struct MessageRateHz {
5301        #[rasn(value("1..=100"))]
5302        pub mantissa: u8,
5303        #[rasn(value("-5..=2"))]
5304        pub exponent: i8,
5305    }
5306    impl MessageRateHz {
5307        pub fn new(mantissa: u8, exponent: i8) -> Self {
5308            Self { mantissa, exponent }
5309        }
5310    }
5311    #[doc = "*"]
5312    #[doc = " * This DF provides information about a message with respect to the segmentation process on facility layer at the sender."]
5313    #[doc = " *"]
5314    #[doc = " * It shall include the following components: "]
5315    #[doc = " * "]
5316    #[doc = " * @field totalMsgNo: indicates the total number of messages that have been assembled on the transmitter side to encode the information "]
5317    #[doc = " * during the same messsage generation process."]
5318    #[doc = " *"]
5319    #[doc = " * @field thisMsgNo: indicates the position of the message within of the total set of messages generated during the same message generation process."]
5320    #[doc = " *"]
5321    #[doc = " * @category: Communication information"]
5322    #[doc = " * @revision: Created in V2.1.1, description revised in V2.2.1"]
5323    #[doc = " "]
5324    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5325    #[rasn(automatic_tags)]
5326    pub struct MessageSegmentationInfo {
5327        #[rasn(identifier = "totalMsgNo")]
5328        pub total_msg_no: CardinalNumber3b,
5329        #[rasn(identifier = "thisMsgNo")]
5330        pub this_msg_no: OrdinalNumber3b,
5331    }
5332    impl MessageSegmentationInfo {
5333        pub fn new(total_msg_no: CardinalNumber3b, this_msg_no: OrdinalNumber3b) -> Self {
5334            Self {
5335                total_msg_no,
5336                this_msg_no,
5337            }
5338        }
5339    }
5340    #[doc = "* "]
5341    #[doc = " * This DF provides information about the source of and confidence in information."]
5342    #[doc = " *"]
5343    #[doc = " * It shall include the following components: "]
5344    #[doc = " * "]
5345    #[doc = " * @field usedDetectionInformation: the type of sensor(s) that is used to provide the detection information."]
5346    #[doc = " * "]
5347    #[doc = " * @field usedStoredInformation: the type of source of the stored information. "]
5348    #[doc = " *"]
5349    #[doc = " * @field confidenceValue: an optional confidence value associated to the information. "]
5350    #[doc = " * "]
5351    #[doc = " * @category: Basic information"]
5352    #[doc = " * @revision: Created in V2.2.1"]
5353    #[doc = ""]
5354    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5355    #[rasn(automatic_tags)]
5356    #[non_exhaustive]
5357    pub struct MetaInformation {
5358        #[rasn(identifier = "usedDetectionInformation")]
5359        pub used_detection_information: SensorTypes,
5360        #[rasn(identifier = "usedStoredInformation")]
5361        pub used_stored_information: StoredInformationType,
5362        #[rasn(identifier = "confidenceValue")]
5363        pub confidence_value: Option<ConfidenceLevel>,
5364    }
5365    impl MetaInformation {
5366        pub fn new(
5367            used_detection_information: SensorTypes,
5368            used_stored_information: StoredInformationType,
5369            confidence_value: Option<ConfidenceLevel>,
5370        ) -> Self {
5371            Self {
5372                used_detection_information,
5373                used_stored_information,
5374                confidence_value,
5375            }
5376        }
5377    }
5378    #[doc = "*"]
5379    #[doc = " * This DF shall contain a list of @ref MitigationPerTechnologyClass."]
5380    #[doc = " *"]
5381    #[doc = " * @category: Communication information"]
5382    #[doc = " * @revision: Created in V2.1.1"]
5383    #[doc = ""]
5384    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5385    #[rasn(delegate, size("1..=8"))]
5386    pub struct MitigationForTechnologies(pub SequenceOf<MitigationPerTechnologyClass>);
5387    #[doc = "*"]
5388    #[doc = " * This DF represents a set of mitigation parameters for a specific technology, as specified in ETSI TS 103 724 [24], clause 7."]
5389    #[doc = " *"]
5390    #[doc = " * It shall include the following components: "]
5391    #[doc = " *"]
5392    #[doc = " * @field accessTechnologyClass:  channel access technology to which this mitigation is intended to be applied."]
5393    #[doc = " *"]
5394    #[doc = " * @field lowDutyCycle: duty cycle limit."]
5395    #[doc = " * @unit: 0,01 % steps"]
5396    #[doc = " *"]
5397    #[doc = " * @field powerReduction: the delta value of power to be reduced."]
5398    #[doc = " * @unit: dB"]
5399    #[doc = " *"]
5400    #[doc = " * @field dmcToffLimit: idle time limit as defined in ETSI TS 103 175 [19]."]
5401    #[doc = " * @unit: ms"]
5402    #[doc = " *"]
5403    #[doc = " * @field dmcTonLimit: Transmission duration limit, as defined in ETSI EN 302 571 [20]."]
5404    #[doc = " * @unit: ms"]
5405    #[doc = " *"]
5406    #[doc = " * @note: All parameters are optional, as they may not apply to some of the technologies or"]
5407    #[doc = " * interference management zone types. Specification details are in ETSI TS 103 724 [24], clause 7. "]
5408    #[doc = " *"]
5409    #[doc = " * @category: Communication information"]
5410    #[doc = " * @revision: Created in V2.1.1"]
5411    #[doc = " "]
5412    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5413    #[rasn(automatic_tags)]
5414    #[non_exhaustive]
5415    pub struct MitigationPerTechnologyClass {
5416        #[rasn(identifier = "accessTechnologyClass")]
5417        pub access_technology_class: AccessTechnologyClass,
5418        #[rasn(value("0..=10000"), identifier = "lowDutyCycle")]
5419        pub low_duty_cycle: Option<u16>,
5420        #[rasn(value("0..=30"), identifier = "powerReduction")]
5421        pub power_reduction: Option<u8>,
5422        #[rasn(value("0..=1200"), identifier = "dmcToffLimit")]
5423        pub dmc_toff_limit: Option<u16>,
5424        #[rasn(value("0..=20"), identifier = "dmcTonLimit")]
5425        pub dmc_ton_limit: Option<u8>,
5426    }
5427    impl MitigationPerTechnologyClass {
5428        pub fn new(
5429            access_technology_class: AccessTechnologyClass,
5430            low_duty_cycle: Option<u16>,
5431            power_reduction: Option<u8>,
5432            dmc_toff_limit: Option<u16>,
5433            dmc_ton_limit: Option<u8>,
5434        ) -> Self {
5435            Self {
5436                access_technology_class,
5437                low_duty_cycle,
5438                power_reduction,
5439                dmc_toff_limit,
5440                dmc_ton_limit,
5441            }
5442        }
5443    }
5444    #[doc = "*"]
5445    #[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. "]
5446    #[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."]
5447    #[doc = " *"]
5448    #[doc = " * The value shall be set to:"]
5449    #[doc = " * - `tenth`      - to indicate a factor of 0,1,        "]
5450    #[doc = " * - `half`       - to indicate a factor of 0,5,        "]
5451    #[doc = " * - `two`        - to indicate a factor of 2,        "]
5452    #[doc = " * - `three`      - to indicate a factor of 3,        "]
5453    #[doc = " * - `five`       - to indicate a factor of 5,        "]
5454    #[doc = " * - `tenth`      - to indicate a factor of 10,        "]
5455    #[doc = " * - `fifthy`     - to indicate a factor of 50,        "]
5456    #[doc = " * - `hundred`    - to indicate a factor of 100,        "]
5457    #[doc = " *"]
5458    #[doc = " * @category: Basic information"]
5459    #[doc = " * @revision: Created in V2.4.1"]
5460    #[doc = " "]
5461    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5462    #[rasn(enumerated)]
5463    #[non_exhaustive]
5464    pub enum MultiplicativeFactor {
5465        tenth = 0,
5466        half = 1,
5467        two = 2,
5468        three = 3,
5469        five = 4,
5470        ten = 5,
5471        fifty = 6,
5472        hundred = 7,
5473    }
5474    #[doc = "*"]
5475    #[doc = " * This DE represents the number of occupants in a vehicle."]
5476    #[doc = " *"]
5477    #[doc = " * The value shall be set to:"]
5478    #[doc = " * - `n` (`n >= 0` and `n < 126`) for the number n of occupants,"]
5479    #[doc = " * - `126` for values equal to or higher than 125,"]
5480    #[doc = " * - `127` if information is not available."]
5481    #[doc = " *"]
5482    #[doc = " * @unit: 1 person"]
5483    #[doc = " * @category: Vehicle information"]
5484    #[doc = " * @revision: Editorial update in V2.1.1"]
5485    #[doc = " "]
5486    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5487    #[rasn(delegate, value("0..=127"))]
5488    pub struct NumberOfOccupants(pub u8);
5489    #[doc = "* "]
5490    #[doc = " * This DF indicates both the class and associated subclass that best describes an object."]
5491    #[doc = " *"]
5492    #[doc = " * The following options are available:"]
5493    #[doc = " *"]
5494    #[doc = " * @field vehicleSubClass: the object is a road vehicle and the specific subclass is specified."]
5495    #[doc = " *"]
5496    #[doc = " * @field vruSubClass: the object is a VRU and the specific subclass is specified."]
5497    #[doc = " *"]
5498    #[doc = " * @field groupSubClass: the object is a VRU group or cluster and the cluster information is specified."]
5499    #[doc = " *"]
5500    #[doc = " * @field otherSubClass: the object is of a different type than the above and the specific subclass is specified."]
5501    #[doc = " *"]
5502    #[doc = " * @category: Sensing information"]
5503    #[doc = " * @revision: Created in V2.1.1"]
5504    #[doc = " "]
5505    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5506    #[rasn(choice, automatic_tags)]
5507    #[non_exhaustive]
5508    pub enum ObjectClass {
5509        #[rasn(value("0..=14"))]
5510        vehicleSubClass(TrafficParticipantType),
5511        vruSubClass(VruProfileAndSubprofile),
5512        #[rasn(value("0.."))]
5513        groupSubClass(VruClusterInformation),
5514        otherSubClass(OtherSubClass),
5515    }
5516    #[doc = "* "]
5517    #[doc = " * This DF shall contain a list of object classes."]
5518    #[doc = " *"]
5519    #[doc = " * @category: Sensing information"]
5520    #[doc = " * @revision: Created in V2.1.1"]
5521    #[doc = ""]
5522    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5523    #[rasn(delegate, size("1..=8"))]
5524    pub struct ObjectClassDescription(pub SequenceOf<ObjectClassWithConfidence>);
5525    #[doc = "* "]
5526    #[doc = " * This DF represents the classification of a detected object together with a confidence level."]
5527    #[doc = " *"]
5528    #[doc = " * It shall include the following components: "]
5529    #[doc = " *"]
5530    #[doc = " * @field objectClass: the class of the object."]
5531    #[doc = " *"]
5532    #[doc = " * @field Confidence: the associated confidence level."]
5533    #[doc = " *"]
5534    #[doc = " * @category: Sensing information"]
5535    #[doc = " * @revision: Created in V2.1.1"]
5536    #[doc = ""]
5537    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5538    #[rasn(automatic_tags)]
5539    pub struct ObjectClassWithConfidence {
5540        #[rasn(identifier = "objectClass")]
5541        pub object_class: ObjectClass,
5542        pub confidence: ConfidenceLevel,
5543    }
5544    impl ObjectClassWithConfidence {
5545        pub fn new(object_class: ObjectClass, confidence: ConfidenceLevel) -> Self {
5546            Self {
5547                object_class,
5548                confidence,
5549            }
5550        }
5551    }
5552    #[doc = "* "]
5553    #[doc = " * This DF represents a dimension of an object together with a confidence value."]
5554    #[doc = " *"]
5555    #[doc = " * It shall include the following components: "]
5556    #[doc = " * "]
5557    #[doc = " * @field value: the object dimension value which can be estimated as the mean of the current distribution."]
5558    #[doc = " *"]
5559    #[doc = " * @field confidence: the associated confidence value."]
5560    #[doc = " *"]
5561    #[doc = " * @category: Sensing information"]
5562    #[doc = " * @revision: Created in V2.1.1"]
5563    #[doc = ""]
5564    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5565    #[rasn(automatic_tags)]
5566    pub struct ObjectDimension {
5567        pub value: ObjectDimensionValue,
5568        pub confidence: ObjectDimensionConfidence,
5569    }
5570    impl ObjectDimension {
5571        pub fn new(value: ObjectDimensionValue, confidence: ObjectDimensionConfidence) -> Self {
5572            Self { value, confidence }
5573        }
5574    }
5575    #[doc = "* "]
5576    #[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 %."]
5577    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
5578    #[doc = " *"]
5579    #[doc = " * The value shall be set to:"]
5580    #[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,"]
5581    #[doc = " * - `31` if the confidence value is out of range i.e. greater than 3,0 m,"]
5582    #[doc = " * - `32` if the confidence value is unavailable."]
5583    #[doc = " *"]
5584    #[doc = " * @unit 0,1 m"]
5585    #[doc = " * @category: Sensing information"]
5586    #[doc = " * @revision: Created in V2.1.1 "]
5587    #[doc = ""]
5588    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5589    #[rasn(delegate, value("1..=32"))]
5590    pub struct ObjectDimensionConfidence(pub u8);
5591    #[doc = "* "]
5592    #[doc = " * This DE represents a single dimension of an object."]
5593    #[doc = " *"]
5594    #[doc = " * The value shall be set to:"]
5595    #[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,"]
5596    #[doc = " * - `255` if the dimension is out of range i.e. greater than 25,4 m,"]
5597    #[doc = " * - `256` if the dimension is unavailable."]
5598    #[doc = " *"]
5599    #[doc = " * @unit 0,1 m"]
5600    #[doc = " * @category: Basic information"]
5601    #[doc = " * @revision: Created in V2.1.1, corrected the wording in V2.4.1 "]
5602    #[doc = ""]
5603    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5604    #[rasn(delegate, value("1..=256"))]
5605    pub struct ObjectDimensionValue(pub u16);
5606    #[doc = "*"]
5607    #[doc = " * This DE indicates the face or part of a face of a solid object."]
5608    #[doc = " *"]
5609    #[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:"]
5610    #[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,"]
5611    #[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,"]
5612    #[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. "]
5613    #[doc = " *"]
5614    #[doc = " * Note: It is permissible to derive the required object dimensions and orientation from models to provide a best guess."]
5615    #[doc = " * "]
5616    #[doc = " * @category: Basic information"]
5617    #[doc = " * @revision: V2.1.1"]
5618    #[doc = ""]
5619    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5620    #[rasn(enumerated)]
5621    pub enum ObjectFace {
5622        front = 0,
5623        sideLeftFront = 1,
5624        sideLeftBack = 2,
5625        sideRightFront = 3,
5626        sideRightBack = 4,
5627        back = 5,
5628    }
5629    #[doc = "* "]
5630    #[doc = " * This DE represents a single-value indication about the overall information quality of a perceived object."]
5631    #[doc = " * "]
5632    #[doc = " * The value shall be set to:  "]
5633    #[doc = " * - `0`                        : if there is no confidence in detected object, e.g. for \"ghost\"-objects or if confidence could not be computed,"]
5634    #[doc = " * - `n` (`n > 0` and `n < 15`) : for the applicable confidence value,"]
5635    #[doc = " * - `15`                       : if there is full confidence in the detected Object."]
5636    #[doc = " * "]
5637    #[doc = " * @unit n/a"]
5638    #[doc = " * @category: Sensing information"]
5639    #[doc = " * @revision: Created in V2.1.1 "]
5640    #[doc = ""]
5641    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5642    #[rasn(delegate, value("0..=15"))]
5643    pub struct ObjectPerceptionQuality(pub u8);
5644    #[doc = "*"]
5645    #[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. "]
5646    #[doc = " *"]
5647    #[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, "]
5648    #[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 "]
5649    #[doc = " * probability that exactly all the provided lanes are occupied. "]
5650    #[doc = " *"]
5651    #[doc = " * It shall include the following components: "]
5652    #[doc = " *"]
5653    #[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. "]
5654    #[doc = " * Lanes that are partially occupied can be described using the component lanePositionWithLateralDetails of @ref  Options, with the following constraints: "]
5655    #[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 "]
5656    #[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 , "]
5657    #[doc = " * and/or the last entry shall contain the component distanceToRightBorder > 0; the respective other components of these entries shall be set to 0."]
5658    #[doc = " * "]
5659    #[doc = " * @field mapBased: optional lane information described in the context of a MAPEM as specified in ETSI TS 103 301 [15]. "]
5660    #[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 "]
5661    #[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. "]
5662    #[doc = " *"]
5663    #[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 "]
5664    #[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."]
5665    #[doc = " *"]
5666    #[doc = " * @category: Road Topology information"]
5667    #[doc = " * @revision: Created in V2.2.1"]
5668    #[doc = " "]
5669    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5670    #[rasn(automatic_tags)]
5671    #[non_exhaustive]
5672    pub struct OccupiedLanesWithConfidence {
5673        #[rasn(size("1..=4"), identifier = "lanePositionBased")]
5674        pub lane_position_based: SequenceOf<LanePositionOptions>,
5675        #[rasn(size("1..=4"), identifier = "mapBased")]
5676        pub map_based: Option<SequenceOf<MapPosition>>,
5677        pub confidence: MetaInformation,
5678    }
5679    impl OccupiedLanesWithConfidence {
5680        pub fn new(
5681            lane_position_based: SequenceOf<LanePositionOptions>,
5682            map_based: Option<SequenceOf<MapPosition>>,
5683            confidence: MetaInformation,
5684        ) -> Self {
5685            Self {
5686                lane_position_based,
5687                map_based,
5688                confidence,
5689            }
5690        }
5691    }
5692    #[doc = "*"]
5693    #[doc = " * This DE represents a time period to describe the opening days and hours of a Point of Interest."]
5694    #[doc = " * (for example local commerce)."]
5695    #[doc = " *"]
5696    #[doc = " * @category: Basic information"]
5697    #[doc = " * @revision: V1.3.1"]
5698    #[doc = " "]
5699    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5700    #[rasn(delegate)]
5701    pub struct OpeningDaysHours(pub Utf8String);
5702    #[doc = "*"]
5703    #[doc = " * The DE represents an ordinal number that indicates the position of an element in a set. "]
5704    #[doc = " * "]
5705    #[doc = " * @category: Basic information"]
5706    #[doc = " * @revision: Created in V2.1.1"]
5707    #[doc = ""]
5708    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5709    #[rasn(delegate, value("0..=255"))]
5710    pub struct OrdinalNumber1B(pub u8);
5711    #[doc = "*"]
5712    #[doc = " * The DE represents an ordinal number that indicates the position of an element in a set. "]
5713    #[doc = " * "]
5714    #[doc = " * @category: Basic information"]
5715    #[doc = " * @revision: Created in V2.1.1"]
5716    #[doc = ""]
5717    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5718    #[rasn(delegate, value("1..=8"))]
5719    pub struct OrdinalNumber3b(pub u8);
5720    #[doc = "* "]
5721    #[doc = " * This DE indicates the subclass of a detected object for @ref ObjectClass \"otherSubclass\"."]
5722    #[doc = " *"]
5723    #[doc = " * The value shall be set to:"]
5724    #[doc = " * - `0` - unknown          - if the subclass is unknown."]
5725    #[doc = " * - `1` - singleObject     - if the object is a single object."]
5726    #[doc = " * - `2` - multipleObjects  - if the object is a group of multiple objects."]
5727    #[doc = " * - `3` - bulkMaterial     - if the object is a bulk material."]
5728    #[doc = " *"]
5729    #[doc = " * @category: Sensing information"]
5730    #[doc = " * @revision: Created in V2.1.1"]
5731    #[doc = " "]
5732    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5733    #[rasn(delegate, value("0..=255"))]
5734    pub struct OtherSubClass(pub u8);
5735    #[doc = "* "]
5736    #[doc = " * This DE indicates the arrangement of parking space in a parking area."]
5737    #[doc = " *"]
5738    #[doc = " * The value shall be set to:"]
5739    #[doc = " * - `0` to indicate that the parking spaces are arranged in a line and parallel to a road or curb,"]
5740    #[doc = " * - `1` to indicate that the parking spaces are arranged side-by-side and diagonally to a curb,"]
5741    #[doc = " * - `2` to indicate that the parking spaces are arranged side-by-side and perpendicularly to a curb,"]
5742    #[doc = " * - `3` to indicate that the parking spaces are arranged so that vehicles form a queue,"]
5743    #[doc = " * - `4` to indicate that the parking spaces are arranged in a mixed fashion, "]
5744    #[doc = " * - 5-7 - reserved for future usage. "]
5745    #[doc = " *"]
5746    #[doc = " * @category: Road topology information"]
5747    #[doc = " * @revision: Created in V2.3.1"]
5748    #[doc = ""]
5749    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5750    #[rasn(delegate, value("0..=7"))]
5751    pub struct ParkingAreaArrangementType(pub u8);
5752    #[doc = "* "]
5753    #[doc = " * This DF indicates the allowed type of occupancy of a parking space/area in terms of time and/or usage."]
5754    #[doc = " *"]
5755    #[doc = " * The following options are available:"]
5756    #[doc = " * "]
5757    #[doc = " * @field unknown: indicates that the allowed type of occupancy is unknown."]
5758    #[doc = " *"]
5759    #[doc = " * @field unlimitedOccupancy: indicates that it can be occupied without limits."]
5760    #[doc = " *"]
5761    #[doc = " * @field onlyWhileCharging: indicates that it can be occupied only while charging an electric vehicle."]
5762    #[doc = " *"]
5763    #[doc = " * @field limitedDuration: indicates that it can be occupied for a limited and indicated duration in minutes."]
5764    #[doc = " *"]
5765    #[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."]
5766    #[doc = " *"]
5767    #[doc = " * @field parkingAllowedUntil: indicates that it can be occupied only until an indicated moment in time."]
5768    #[doc = " *"]
5769    #[doc = " * @field forcedParkingUntil: indicates that it can be occupied and departure is possible only after an indicated moment in time."]
5770    #[doc = " *"]
5771    #[doc = " * @category: Road Topology information"]
5772    #[doc = " * @revision: Created in V2.3.1 "]
5773    #[doc = ""]
5774    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5775    #[rasn(choice, automatic_tags)]
5776    #[non_exhaustive]
5777    pub enum ParkingOccupancyInfo {
5778        unknown(()),
5779        unlimitedOccupancy(()),
5780        onlyWhileCharging(()),
5781        limitedDuration(Integer),
5782        onlyWhileChargingLimitedDuration(Integer),
5783        parkingAllowedUntil(TimestampIts),
5784        forcedParkingUntil(TimestampIts),
5785    }
5786    #[doc = "* "]
5787    #[doc = " * This DE indicates the type of a reservation of a parking space/area."]
5788    #[doc = " *"]
5789    #[doc = " * The value shall be set to:"]
5790    #[doc = " * - `0` to indicate that it is reserved to disabled persons,"]
5791    #[doc = " * - `1` to indicate that it is reserved to pregnant women,"]
5792    #[doc = " * - `2` to indicate that it is reserved to women,"]
5793    #[doc = " * - `3` to indicate that it is reserved to parents with small children,"]
5794    #[doc = " * - `4` to indicate that it is reserved for loading and unloading of goods,"]
5795    #[doc = " * - `5` to indicate that it is reserved for manual charging of electric vehicles,"]
5796    #[doc = " * - `6` to indicate that it is reserved for automated charging of electric vehicles,"]
5797    #[doc = " * - `7` to indicate that it is reserved for vehicles carrying out refrigerated transport of goods,"]
5798    #[doc = " * - `8` to indicate that it is reserved for VIPs,"]
5799    #[doc = " * - `9` to indicate that it is reserved for pre-booked reservations only,"]
5800    #[doc = " * - `10` to indicate that it is not reserved and can still be reserved,"]
5801    #[doc = " * - `11` to indicate that a reservation type is not applicable, i.e. that it cannot be reserved,"]
5802    #[doc = " * - `12` to indicate that it reserved for drop-off and pick-up of vehicles for automated valet parking,"]
5803    #[doc = " * - `13` to indicate that it is reserved for vehicles with a permit,"]
5804    #[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 "]
5805    #[doc = "          when all official marked parking spaces to which it blocks the access (if any), are already occupied at the moment of arrival."]
5806    #[doc = " * - 15-31  - reserved for future usage. "]
5807    #[doc = " *"]
5808    #[doc = " * @category: Road topology information"]
5809    #[doc = " * @revision: Created in V2.3.1, value 14 assigned in V2.4.1."]
5810    #[doc = ""]
5811    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5812    #[rasn(delegate, value("0..=31"))]
5813    pub struct ParkingReservationType(pub u8);
5814    #[doc = "*"]
5815    #[doc = " * This DF provides basic information about the parking capabilities and availabilities of a single parking space. "]
5816    #[doc = " *"]
5817    #[doc = " * It shall include the following components: "]
5818    #[doc = " *"]
5819    #[doc = " * @field id: the unqiue identifier of the parking space within the parking area."]
5820    #[doc = " *"]
5821    #[doc = " * @field location: the optional location of the geometrical center of the parking space w.r.t. the location of the parking area."]
5822    #[doc = " *"]
5823    #[doc = " * @field status: the actual status of the parking space."]
5824    #[doc = " *"]
5825    #[doc = " * @category: Road Topology information"]
5826    #[doc = " * @revision: Created in V2.3.1 "]
5827    #[doc = ""]
5828    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5829    #[rasn(automatic_tags)]
5830    pub struct ParkingSpaceBasic {
5831        pub id: Identifier2B,
5832        pub location: Option<DeltaReferencePosition>,
5833        pub status: ParkingSpaceStatus,
5834    }
5835    impl ParkingSpaceBasic {
5836        pub fn new(
5837            id: Identifier2B,
5838            location: Option<DeltaReferencePosition>,
5839            status: ParkingSpaceStatus,
5840        ) -> Self {
5841            Self {
5842                id,
5843                location,
5844                status,
5845            }
5846        }
5847    }
5848    #[doc = "*"]
5849    #[doc = " * This DF provides detailed information about the parking capabilities and availabilities of a single parking space. "]
5850    #[doc = " * "]
5851    #[doc = " * It is an extension of @ref ParkingSpaceBasic and it shall additionally include the following additional components: "]
5852    #[doc = " *"]
5853    #[doc = " * @field arrangementType: the optional arrangement of the parking space w.r.t. other spaces."]
5854    #[doc = " * This is component, if present, overrides the common arrangementType defined in the @ref ParkingArea."]
5855    #[doc = " *"]
5856    #[doc = " * @field boundary: the optional physical boundary of the parking space as a polygon w.r.t. the location of the parking space."]
5857    #[doc = " *"]
5858    #[doc = " * @field orientation: the optional orientation of the parking space."]
5859    #[doc = " * This is component, if present, overrides the common orientation defined in the @ref ParkingArea."]
5860    #[doc = " *"]
5861    #[doc = " * @field occupancyRule: the occupancy rule applicable to the parking space."]
5862    #[doc = " *"]
5863    #[doc = " * @field chargingStationId: the optional identitfier of a charging station that serves the parking space."]
5864    #[doc = " *"]
5865    #[doc = " * @field accessViaLane: the optional identifier of a lane that provides access to the parking space."]
5866    #[doc = " *"]
5867    #[doc = " * @field accessViaParkingSpaces: the optional identifier(s) of a parking spaces that provide access to the parking space."]
5868    #[doc = " * "]
5869    #[doc = " * @field reservationType: the optional parking reservation type(s) associated to the parking space."]
5870    #[doc = " * This is component, if present, overrides the common reservationType defined in the @ref ParkingArea."]
5871    #[doc = " *"]
5872    #[doc = " * @category: Road Topology information"]
5873    #[doc = " * @revision: Created in V2.3.1 "]
5874    #[doc = ""]
5875    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5876    #[rasn(automatic_tags)]
5877    #[non_exhaustive]
5878    pub struct ParkingSpaceDetailed {
5879        #[rasn(identifier = "arrangementType")]
5880        pub arrangement_type: Option<ParkingAreaArrangementType>,
5881        pub boundary: Option<DeltaPositions>,
5882        pub orientation: Option<Wgs84Angle>,
5883        #[rasn(identifier = "occupancyRule")]
5884        pub occupancy_rule: ParkingOccupancyInfo,
5885        #[rasn(identifier = "chargingStationId")]
5886        pub charging_station_id: Option<Identifier2B>,
5887        #[rasn(identifier = "accessViaLane")]
5888        pub access_via_lane: Option<Identifier2B>,
5889        #[rasn(size("0..=7"), identifier = "accessViaParkingSpaces")]
5890        pub access_via_parking_spaces: Option<SequenceOf<Identifier2B>>,
5891        #[rasn(size("1..=4", extensible), identifier = "reservationType")]
5892        pub reservation_type: Option<SequenceOf<ParkingReservationType>>,
5893        pub id: Identifier2B,
5894        pub location: Option<DeltaReferencePosition>,
5895        pub status: ParkingSpaceStatus,
5896    }
5897    impl ParkingSpaceDetailed {
5898        pub fn new(
5899            arrangement_type: Option<ParkingAreaArrangementType>,
5900            boundary: Option<DeltaPositions>,
5901            orientation: Option<Wgs84Angle>,
5902            occupancy_rule: ParkingOccupancyInfo,
5903            charging_station_id: Option<Identifier2B>,
5904            access_via_lane: Option<Identifier2B>,
5905            access_via_parking_spaces: Option<SequenceOf<Identifier2B>>,
5906            reservation_type: Option<SequenceOf<ParkingReservationType>>,
5907            id: Identifier2B,
5908            location: Option<DeltaReferencePosition>,
5909            status: ParkingSpaceStatus,
5910        ) -> Self {
5911            Self {
5912                arrangement_type,
5913                boundary,
5914                orientation,
5915                occupancy_rule,
5916                charging_station_id,
5917                access_via_lane,
5918                access_via_parking_spaces,
5919                reservation_type,
5920                id,
5921                location,
5922                status,
5923            }
5924        }
5925    }
5926    #[doc = "* "]
5927    #[doc = " * This DF indicates the status of parking space."]
5928    #[doc = " *"]
5929    #[doc = " * The following options are available:"]
5930    #[doc = " * "]
5931    #[doc = " * @field unknown: indicates that the status is unknown."]
5932    #[doc = " *"]
5933    #[doc = " * @field free: indicates that the parking space is free and hence available to be used."]
5934    #[doc = " *"]
5935    #[doc = " * @field freeUntil: indicates that the parking space is free to be used until an indicated moment in time."]
5936    #[doc = " *"]
5937    #[doc = " * @field fullyOccupied: indicates that the parking space is interely occupied."]
5938    #[doc = " *"]
5939    #[doc = " * @field partiallyOccupied: indicates that the parking space that allows parking of multiple vehicles is occupied by an indicated percentage."]
5940    #[doc = " *"]
5941    #[doc = " * @field occupiedUntil: indicates that the parking space is entirely occupied until an indicated moment in time."]
5942    #[doc = " *"]
5943    #[doc = " * @field reservedUntil: indicates that the parking space is reserved (but not necessarily occupied) until an indicated moment in time."]
5944    #[doc = " *"]
5945    #[doc = " * @field accessBlocked: indicates that the parking space cannot accessed, e.g. due to obstructing vehicles."]
5946    #[doc = " *"]
5947    #[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, "]
5948    #[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."]
5949    #[doc = " *"]
5950    #[doc = " * @category: Road Topology information"]
5951    #[doc = " * @revision: Created in V2.3.1 "]
5952    #[doc = ""]
5953    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5954    #[rasn(choice, automatic_tags)]
5955    #[non_exhaustive]
5956    pub enum ParkingSpaceStatus {
5957        unknown(()),
5958        free(()),
5959        freeUntil(TimestampIts),
5960        fullyOccupied(()),
5961        #[rasn(value("0..=100"))]
5962        partiallyOccupied(u8),
5963        occupiedUntil(TimestampIts),
5964        reservedUntil(TimestampIts),
5965        accessBlocked(()),
5966        retrictedUsage(()),
5967    }
5968    #[doc = "*"]
5969    #[doc = " * This DF represents a path with a set of path points."]
5970    #[doc = " * It shall contain up to `40` @ref PathPoint. "]
5971    #[doc = " * "]
5972    #[doc = " * The first PathPoint presents an offset delta position with regards to an external reference position."]
5973    #[doc = " * Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
5974    #[doc = " *"]
5975    #[doc = " * @category: GeoReference information, Vehicle information"]
5976    #[doc = " * @revision: created in V2.1.1 based on PathHistory"]
5977    #[doc = " "]
5978    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5979    #[rasn(delegate, size("0..=40"))]
5980    pub struct Path(pub SequenceOf<PathPoint>);
5981    #[doc = "*"]
5982    #[doc = " * This DE represents the recorded or estimated travel time between a position and a predefined reference position. "]
5983    #[doc = " *"]
5984    #[doc = " * @unit 0,01 second"]
5985    #[doc = " * @category: Basic information"]
5986    #[doc = " * @revision: V1.3.1"]
5987    #[doc = " "]
5988    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5989    #[rasn(delegate, value("1..=65535", extensible))]
5990    pub struct PathDeltaTime(pub Integer);
5991    #[doc = "*"]
5992    #[doc = " * This DF represents estimated/predicted travel time between a position and a predefined reference position. "]
5993    #[doc = " *"]
5994    #[doc = " * the following options are available:"]
5995    #[doc = " * "]
5996    #[doc = " * @field deltaTimeHighPrecision: delta time with precision of 0,1 s."]
5997    #[doc = " *"]
5998    #[doc = " * @field deltaTimeBigRange: delta time with precision of 10 s."]
5999    #[doc = " *"]
6000    #[doc = " * @field deltaTimeMidRange: delta time with precision of 1 s."]
6001    #[doc = " *"]
6002    #[doc = " * @category: Basic information"]
6003    #[doc = " * @revision: Created in V2.2.1, added deltaTimeMidRange extension in V2.3.1"]
6004    #[doc = " "]
6005    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6006    #[rasn(choice, automatic_tags)]
6007    #[non_exhaustive]
6008    pub enum PathDeltaTimeChoice {
6009        deltaTimeHighPrecision(DeltaTimeTenthOfSecond),
6010        deltaTimeBigRange(DeltaTimeTenSeconds),
6011        #[rasn(extension_addition)]
6012        deltaTimeMidRange(DeltaTimeSecond),
6013    }
6014    #[doc = "* "]
6015    #[doc = " * This DF represents a path towards a specific point specified in the @ref EventZone."]
6016    #[doc = " *"]
6017    #[doc = " * It shall include the following components: "]
6018    #[doc = " * "]
6019    #[doc = " * @field pointOfEventZone: the ordinal number of the point within the DF EventZone, i.e. within the list of EventPoints."]
6020    #[doc = " *"]
6021    #[doc = " * @field path: the associated path towards the point specified in pointOfEventZone."]
6022    #[doc = " * The first PathPoint presents an offset delta position with regards to the position of that pointOfEventZone."]
6023    #[doc = " *"]
6024    #[doc = " * @category: GeoReference information"]
6025    #[doc = " * @revision: Created in V2.2.1"]
6026    #[doc = ""]
6027    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6028    #[rasn(automatic_tags)]
6029    pub struct PathExtended {
6030        #[rasn(value("1..=23"), identifier = "pointOfEventZone")]
6031        pub point_of_event_zone: u8,
6032        pub path: Path,
6033    }
6034    impl PathExtended {
6035        pub fn new(point_of_event_zone: u8, path: Path) -> Self {
6036            Self {
6037                point_of_event_zone,
6038                path,
6039            }
6040        }
6041    }
6042    #[doc = "*"]
6043    #[doc = " * This DF represents a path history with a set of path points."]
6044    #[doc = " * It shall contain up to `40` @ref PathPoint. "]
6045    #[doc = " * "]
6046    #[doc = " * The first PathPoint presents an offset delta position with regards to an external reference position."]
6047    #[doc = " * Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
6048    #[doc = " *"]
6049    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref Path instead."]
6050    #[doc = " * @category: GeoReference information, Vehicle information"]
6051    #[doc = " * @revision: semantics updated in V2.1.1, size corrected to 0..40 in V2.2.1"]
6052    #[doc = " "]
6053    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6054    #[rasn(delegate, size("0..=40"))]
6055    pub struct PathHistory(pub SequenceOf<PathPoint>);
6056    #[doc = "* "]
6057    #[doc = " * This DE indicates an ordinal number that represents the position of a component in the list of @ref Traces or @ref TracesExtended. "]
6058    #[doc = " *"]
6059    #[doc = " * The value shall be set to:"]
6060    #[doc = " * - `0` - noPath  - if no path is identified"]
6061    #[doc = " * - `1..7`        - for instances 1..7 of @ref Traces "]
6062    #[doc = " * - `8..14`       - for instances 1..7 of @ref TracesExtended. "]
6063    #[doc = " *"]
6064    #[doc = " * @category: Road topology information"]
6065    #[doc = " * @revision: Created in V2.2.1"]
6066    #[doc = ""]
6067    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6068    #[rasn(delegate, value("0..=14"))]
6069    pub struct PathId(pub u8);
6070    #[doc = "*"]
6071    #[doc = " * This DF defines an offset waypoint position within a path."]
6072    #[doc = " *"]
6073    #[doc = " * It shall include the following components: "]
6074    #[doc = " *"]
6075    #[doc = " * @field pathPosition: The waypoint position defined as an offset position with regards to a pre-defined reference position. "]
6076    #[doc = " *"]
6077    #[doc = " * @field pathDeltaTime: The optional travel time separated from a waypoint to the predefined reference position."]
6078    #[doc = " *"]
6079    #[doc = " * @category GeoReference information"]
6080    #[doc = " * @revision: semantics updated in V2.1.1"]
6081    #[doc = " "]
6082    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6083    #[rasn(automatic_tags)]
6084    pub struct PathPoint {
6085        #[rasn(identifier = "pathPosition")]
6086        pub path_position: DeltaReferencePosition,
6087        #[rasn(identifier = "pathDeltaTime")]
6088        pub path_delta_time: Option<PathDeltaTime>,
6089    }
6090    impl PathPoint {
6091        pub fn new(
6092            path_position: DeltaReferencePosition,
6093            path_delta_time: Option<PathDeltaTime>,
6094        ) -> Self {
6095            Self {
6096                path_position,
6097                path_delta_time,
6098            }
6099        }
6100    }
6101    #[doc = "*"]
6102    #[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."]
6103    #[doc = " *"]
6104    #[doc = " * It shall include the following components: "]
6105    #[doc = " *"]
6106    #[doc = " * @field deltaLatitude: the offset latitude with regards to a pre-defined reference position. "]
6107    #[doc = " *"]
6108    #[doc = " * @field deltaLongitude: the offset longitude with regards to a pre-defined reference position. "]
6109    #[doc = " * "]
6110    #[doc = " * @field horizontalPositionConfidence: the optional confidence value associated to the horizontal geographical position."]
6111    #[doc = " *"]
6112    #[doc = " * @field deltaAltitude: the optional offset altitude with regards to a pre-defined reference position, with default value unavailable. "]
6113    #[doc = " *"]
6114    #[doc = " * @field altitudeConfidence: the optional confidence value associated to the altitude value of the geographical position, with default value unavailable."]
6115    #[doc = " * "]
6116    #[doc = " * @field pathDeltaTime: the optional travel time to the waypoint from the predefined reference position."]
6117    #[doc = ""]
6118    #[doc = " * @field symmetricAreaOffset: the optional symmetric offset to generate a shape, see Annex D for details."]
6119    #[doc = " *  "]
6120    #[doc = " * @field asymmetricAreaOffset: the optional asymmetric offset to generate a shape, see Annex D for details. "]
6121    #[doc = " *"]
6122    #[doc = " * @category GeoReference information"]
6123    #[doc = " * @revision: Created in V2.1.1, type of pathDeltaTime changed and optionality added, fields symmetricAreaOffset and asymmetricAreaOffset added in V2.2.1"]
6124    #[doc = " "]
6125    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6126    #[rasn(automatic_tags)]
6127    #[non_exhaustive]
6128    pub struct PathPointPredicted {
6129        #[rasn(identifier = "deltaLatitude")]
6130        pub delta_latitude: DeltaLatitude,
6131        #[rasn(identifier = "deltaLongitude")]
6132        pub delta_longitude: DeltaLongitude,
6133        #[rasn(identifier = "horizontalPositionConfidence")]
6134        pub horizontal_position_confidence: Option<PosConfidenceEllipse>,
6135        #[rasn(
6136            default = "path_point_predicted_delta_altitude_default",
6137            identifier = "deltaAltitude"
6138        )]
6139        pub delta_altitude: DeltaAltitude,
6140        #[rasn(
6141            default = "path_point_predicted_altitude_confidence_default",
6142            identifier = "altitudeConfidence"
6143        )]
6144        pub altitude_confidence: AltitudeConfidence,
6145        #[rasn(identifier = "pathDeltaTime")]
6146        pub path_delta_time: Option<PathDeltaTimeChoice>,
6147        #[rasn(identifier = "symmetricAreaOffset")]
6148        pub symmetric_area_offset: Option<StandardLength9b>,
6149        #[rasn(identifier = "asymmetricAreaOffset")]
6150        pub asymmetric_area_offset: Option<StandardLength9b>,
6151    }
6152    impl PathPointPredicted {
6153        pub fn new(
6154            delta_latitude: DeltaLatitude,
6155            delta_longitude: DeltaLongitude,
6156            horizontal_position_confidence: Option<PosConfidenceEllipse>,
6157            delta_altitude: DeltaAltitude,
6158            altitude_confidence: AltitudeConfidence,
6159            path_delta_time: Option<PathDeltaTimeChoice>,
6160            symmetric_area_offset: Option<StandardLength9b>,
6161            asymmetric_area_offset: Option<StandardLength9b>,
6162        ) -> Self {
6163            Self {
6164                delta_latitude,
6165                delta_longitude,
6166                horizontal_position_confidence,
6167                delta_altitude,
6168                altitude_confidence,
6169                path_delta_time,
6170                symmetric_area_offset,
6171                asymmetric_area_offset,
6172            }
6173        }
6174    }
6175    fn path_point_predicted_delta_altitude_default() -> DeltaAltitude {
6176        DeltaAltitude(12800)
6177    }
6178    fn path_point_predicted_altitude_confidence_default() -> AltitudeConfidence {
6179        AltitudeConfidence::unavailable
6180    }
6181    #[doc = "*"]
6182    #[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. "]
6183    #[doc = " * It shall contain up to `16` @ref PathPointPredicted. "]
6184    #[doc = " * "]
6185    #[doc = " * The first PathPoint presents an offset delta position with regards to an external reference position."]
6186    #[doc = " * Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
6187    #[doc = " *"]
6188    #[doc = " * @category: GeoReference information"]
6189    #[doc = " * @revision: created in V2.1.1 , size constraint changed to SIZE(1..16, ...) in V2.2.1, size extended in V2.3.1"]
6190    #[doc = " "]
6191    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6192    #[rasn(delegate, size("1..=16", extensible))]
6193    pub struct PathPredicted(pub SequenceOf<PathPointPredicted>);
6194    #[doc = "* "]
6195    #[doc = " * This DF represents a predicted path, predicted trajectory or predicted path zone together with usage information and a prediction confidence."]
6196    #[doc = " *"]
6197    #[doc = " * It shall include the following components: "]
6198    #[doc = " *"]
6199    #[doc = " * @field pathPredicted: the predicted path (pathDeltaTime ABSENT) or trajectory (pathDeltaTime PRESENT) and/or the path zone (symmetricAreaOffset PRESENT)."]
6200    #[doc = " *"]
6201    #[doc = " * @field usageIndication: an indication of how the predicted path will be used. "]
6202    #[doc = " *"]
6203    #[doc = " * @field confidenceLevel: the confidence that the path/trajectory in pathPredicted will occur as predicted."]
6204    #[doc = " *"]
6205    #[doc = " * @category: GeoReference information"]
6206    #[doc = " * @revision: created in V2.2.1 "]
6207    #[doc = " "]
6208    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6209    #[rasn(automatic_tags)]
6210    #[non_exhaustive]
6211    pub struct PathPredicted2 {
6212        #[rasn(value("0.."), identifier = "pathPredicted")]
6213        pub path_predicted: PathPredicted,
6214        #[rasn(identifier = "usageIndication")]
6215        pub usage_indication: UsageIndication,
6216        #[rasn(identifier = "confidenceLevel")]
6217        pub confidence_level: ConfidenceLevel,
6218    }
6219    impl PathPredicted2 {
6220        pub fn new(
6221            path_predicted: PathPredicted,
6222            usage_indication: UsageIndication,
6223            confidence_level: ConfidenceLevel,
6224        ) -> Self {
6225            Self {
6226                path_predicted,
6227                usage_indication,
6228                confidence_level,
6229            }
6230        }
6231    }
6232    #[doc = "*"]
6233    #[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."]
6234    #[doc = " * It shall contain up to `16` @ref PathPredicted2. "]
6235    #[doc = " * "]
6236    #[doc = " * @category: GeoReference information"]
6237    #[doc = " * @revision: V2.2.1"]
6238    #[doc = " "]
6239    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6240    #[rasn(delegate, size("1..=16", extensible))]
6241    pub struct PathPredictedList(pub SequenceOf<PathPredicted2>);
6242    #[doc = "* "]
6243    #[doc = " * This DF represents a list of references to the components of a @ref Traces or @ref TracesExtended DF using the @ref PathId. "]
6244    #[doc = " *"]
6245    #[doc = " * @category: Road topology information"]
6246    #[doc = " * @revision: Created in V2.2.1"]
6247    #[doc = ""]
6248    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6249    #[rasn(delegate, size("1..=14"))]
6250    pub struct PathReferences(pub SequenceOf<PathId>);
6251    #[doc = "*"]
6252    #[doc = " * This DE represents the position of a vehicle pedal (e.g. brake or accelerator pedal)."]
6253    #[doc = " *"]
6254    #[doc = " * @unit: 10%"]
6255    #[doc = " * @category: Vehicle information"]
6256    #[doc = " * @revision: Created in V2.3.1"]
6257    #[doc = ""]
6258    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6259    #[rasn(delegate, value("0..=11"))]
6260    pub struct PedalPositionValue(pub u8);
6261    #[doc = "*"]
6262    #[doc = " * This DE contains information about the status of a vehicle pedal."]
6263    #[doc = " *"]
6264    #[doc = " * It shall include the following components: "]
6265    #[doc = " *"]
6266    #[doc = " * @field pedalPositionValue: information about the pedal position. "]
6267    #[doc = " *"]
6268    #[doc = " * @category: vehicle information"]
6269    #[doc = " * @revision: created in V2.3.1"]
6270    #[doc = " "]
6271    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6272    #[rasn(automatic_tags)]
6273    #[non_exhaustive]
6274    pub struct PedalStatus {
6275        #[rasn(identifier = "pedalPositionValue")]
6276        pub pedal_position_value: PedalPositionValue,
6277    }
6278    impl PedalStatus {
6279        pub fn new(pedal_position_value: PedalPositionValue) -> Self {
6280            Self {
6281                pedal_position_value,
6282            }
6283        }
6284    }
6285    #[doc = "* "]
6286    #[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."]
6287    #[doc = " * "]
6288    #[doc = " * It shall include the following components: "]
6289    #[doc = " *"]
6290    #[doc = " * @field objectId: optional identifier assigned to a detected object."]
6291    #[doc = " *"]
6292    #[doc = " * @field measurementDeltaTime: the time difference from a reference time to the time of the  measurement of the object. "]
6293    #[doc = " * Negative values indicate that the provided object state refers to a point in time before the reference time."]
6294    #[doc = " *"]
6295    #[doc = " * @field position: the position of the geometric centre of the object's bounding box within the pre-defined coordinate system."]
6296    #[doc = " *"]
6297    #[doc = " * @field velocity: the velocity vector of the object within the pre-defined coordinate system."]
6298    #[doc = " *"]
6299    #[doc = " * @field acceleration: the acceleration vector of the object within the pre-defined coordinate system."]
6300    #[doc = " *"]
6301    #[doc = " * @field angles: optional Euler angles of the object bounding box at the time of measurement. "]
6302    #[doc = " * "]
6303    #[doc = " * @field zAngularVelocity: optional angular velocity of the object around the z-axis at the time of measurement."]
6304    #[doc = " * The angular velocity is measured with positive values considering the object orientation turning around the z-axis using the right-hand rule."]
6305    #[doc = " *"]
6306    #[doc = " * @field lowerTriangularCorrelationMatrices: optional set of lower triangular correlation matrices for selected components of the provided kinematic state and attitude vector."]
6307    #[doc = " *"]
6308    #[doc = " * @field objectDimensionZ: optional z-dimension of object bounding box. "]
6309    #[doc = " * This dimension shall be measured along the direction of the z-axis after all the rotations have been applied. "]
6310    #[doc = " *"]
6311    #[doc = " * @field objectDimensionY: optional y-dimension of the object bounding box. "]
6312    #[doc = " * This dimension shall be measured along the direction of the y-axis after all the rotations have been applied. "]
6313    #[doc = " *"]
6314    #[doc = " * @field objectDimensionX: optional x-dimension of object bounding box."]
6315    #[doc = " * This dimension shall be measured along the direction of the x-axis after all the rotations have been applied."]
6316    #[doc = " * "]
6317    #[doc = " * @field objectAge: optional age of the detected and described object, i.e. the difference in time between the moment "]
6318    #[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."]
6319    #[doc = " *"]
6320    #[doc = " * @field objectPerceptionQuality: optional confidence associated to the object. "]
6321    #[doc = " *"]
6322    #[doc = " * @field sensorIdList: optional list of sensor-IDs which provided the measurement data. "]
6323    #[doc = " *"]
6324    #[doc = " * @field classification: optional classification of the described object"]
6325    #[doc = " *"]
6326    #[doc = " * @field matchedPosition: optional map-matched position of an object."]
6327    #[doc = " *"]
6328    #[doc = " * @category Sensing information"]
6329    #[doc = " * @revision: created in V2.1.1"]
6330    #[doc = " "]
6331    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6332    #[rasn(automatic_tags)]
6333    #[non_exhaustive]
6334    pub struct PerceivedObject {
6335        #[rasn(identifier = "objectId")]
6336        pub object_id: Option<Identifier2B>,
6337        #[rasn(identifier = "measurementDeltaTime")]
6338        pub measurement_delta_time: DeltaTimeMilliSecondSigned,
6339        pub position: CartesianPosition3dWithConfidence,
6340        pub velocity: Option<Velocity3dWithConfidence>,
6341        pub acceleration: Option<Acceleration3dWithConfidence>,
6342        pub angles: Option<EulerAnglesWithConfidence>,
6343        #[rasn(identifier = "zAngularVelocity")]
6344        pub z_angular_velocity: Option<CartesianAngularVelocityComponent>,
6345        #[rasn(identifier = "lowerTriangularCorrelationMatrices")]
6346        pub lower_triangular_correlation_matrices:
6347            Option<LowerTriangularPositiveSemidefiniteMatrices>,
6348        #[rasn(identifier = "objectDimensionZ")]
6349        pub object_dimension_z: Option<ObjectDimension>,
6350        #[rasn(identifier = "objectDimensionY")]
6351        pub object_dimension_y: Option<ObjectDimension>,
6352        #[rasn(identifier = "objectDimensionX")]
6353        pub object_dimension_x: Option<ObjectDimension>,
6354        #[rasn(value("0..=2047"), identifier = "objectAge")]
6355        pub object_age: Option<DeltaTimeMilliSecondSigned>,
6356        #[rasn(identifier = "objectPerceptionQuality")]
6357        pub object_perception_quality: Option<ObjectPerceptionQuality>,
6358        #[rasn(identifier = "sensorIdList")]
6359        pub sensor_id_list: Option<SequenceOfIdentifier1B>,
6360        pub classification: Option<ObjectClassDescription>,
6361        #[rasn(identifier = "mapPosition")]
6362        pub map_position: Option<MapPosition>,
6363    }
6364    impl PerceivedObject {
6365        pub fn new(
6366            object_id: Option<Identifier2B>,
6367            measurement_delta_time: DeltaTimeMilliSecondSigned,
6368            position: CartesianPosition3dWithConfidence,
6369            velocity: Option<Velocity3dWithConfidence>,
6370            acceleration: Option<Acceleration3dWithConfidence>,
6371            angles: Option<EulerAnglesWithConfidence>,
6372            z_angular_velocity: Option<CartesianAngularVelocityComponent>,
6373            lower_triangular_correlation_matrices: Option<
6374                LowerTriangularPositiveSemidefiniteMatrices,
6375            >,
6376            object_dimension_z: Option<ObjectDimension>,
6377            object_dimension_y: Option<ObjectDimension>,
6378            object_dimension_x: Option<ObjectDimension>,
6379            object_age: Option<DeltaTimeMilliSecondSigned>,
6380            object_perception_quality: Option<ObjectPerceptionQuality>,
6381            sensor_id_list: Option<SequenceOfIdentifier1B>,
6382            classification: Option<ObjectClassDescription>,
6383            map_position: Option<MapPosition>,
6384        ) -> Self {
6385            Self {
6386                object_id,
6387                measurement_delta_time,
6388                position,
6389                velocity,
6390                acceleration,
6391                angles,
6392                z_angular_velocity,
6393                lower_triangular_correlation_matrices,
6394                object_dimension_z,
6395                object_dimension_y,
6396                object_dimension_x,
6397                object_age,
6398                object_perception_quality,
6399                sensor_id_list,
6400                classification,
6401                map_position,
6402            }
6403        }
6404    }
6405    #[doc = "*"]
6406    #[doc = " * This DE denotes the ability of an ITS-S to provide information fullfilling additional requirements."]
6407    #[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 "]
6408    #[doc = " * and should be subject to profiling."]
6409    #[doc = " * "]
6410    #[doc = " *  The value shall be set to:"]
6411    #[doc = " * - `0` if  the performance class is unknown,"]
6412    #[doc = " * - `1` for performance class A,"]
6413    #[doc = " * - `2` for performance class B,"]
6414    #[doc = " * -  3-7 reserved for future use."]
6415    #[doc = " *"]
6416    #[doc = " * @category: Vehicle information"]
6417    #[doc = " * @revision: Editorial update in V2.1.1, description changed in V2.3.1"]
6418    #[doc = " "]
6419    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6420    #[rasn(delegate, value("0..=7"))]
6421    pub struct PerformanceClass(pub u8);
6422    #[doc = "*"]
6423    #[doc = " * This DE represents a telephone number"]
6424    #[doc = " * "]
6425    #[doc = " * @category: Basic information"]
6426    #[doc = " * @revision: V1.3.1"]
6427    #[doc = " "]
6428    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6429    #[rasn(delegate, size("1..=16"))]
6430    pub struct PhoneNumber(pub NumericString);
6431    #[doc = "*"]
6432    #[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."]
6433    #[doc = "*"]
6434    #[doc = "* The following options are available:"]
6435    #[doc = "* "]
6436    #[doc = "* @field deltaPositions: an ordered sequence of delta geographical positions with respect to the previous position, with latitude and longitude,"]
6437    #[doc = "* with the first instance referring to the reference position and with the order implicitly defining a direction associated with the polygonal line."]
6438    #[doc = "*"]
6439    #[doc = "* @field deltaPositionsWithAltitude:  an ordered sequence of delta geographical positions with respect to the previous position, with latitude, longitude and altitude,"]
6440    #[doc = "* with the first instance referring to the reference position and with the order implicitly defining a direction associated with the polygonal line."]
6441    #[doc = "*"]
6442    #[doc = "* @field absolutePositions: a sequence of absolute geographical positions, with latitude and longitude."]
6443    #[doc = "*"]
6444    #[doc = "* @field absolutePositionsWithAltitude: a sequence of absolute geographical positions, with latitude, longitude and altitude."]
6445    #[doc = "*"]
6446    #[doc = "* @category: GeoReference information"]
6447    #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321"]
6448    #[doc = ""]
6449    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6450    #[rasn(choice, automatic_tags)]
6451    #[non_exhaustive]
6452    pub enum PolygonalLine {
6453        deltaPositions(DeltaPositions),
6454        deltaPositionsWithAltitude(DeltaReferencePositions),
6455        absolutePositions(GeoPositionsWoAltitude),
6456        absolutePositionsWithAltitude(GeoPositionsWAltitude),
6457    }
6458    #[doc = "* "]
6459    #[doc = " * This DF represents the shape of a polygonal area or of a right prism."]
6460    #[doc = " *"]
6461    #[doc = " * It shall include the following components: "]
6462    #[doc = " *"]
6463    #[doc = " * @field shapeReferencePoint: the optional reference point used for the definition of the shape, relative to an externally specified reference position. "]
6464    #[doc = " * If this component is absent, the externally specified reference position represents the shape's reference point. "]
6465    #[doc = " *"]
6466    #[doc = " * @field polygon: the polygonal area represented by a list of minimum `3` to maximum `16` @ref CartesianPosition3d."]
6467    #[doc = " * All nodes of the polygon shall be considered relative to the shape's reference point."]
6468    #[doc = " *"]
6469    #[doc = " * @field height: the optional height, present if the shape is a right prism extending in the positive z-axis."]
6470    #[doc = " * "]
6471    #[doc = " * @category GeoReference information"]
6472    #[doc = " * @revision: created in V2.1.1"]
6473    #[doc = " *"]
6474    #[doc = " "]
6475    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6476    #[rasn(automatic_tags)]
6477    pub struct PolygonalShape {
6478        #[rasn(identifier = "shapeReferencePoint")]
6479        pub shape_reference_point: Option<CartesianPosition3d>,
6480        #[rasn(size("3..=16", extensible))]
6481        pub polygon: SequenceOfCartesianPosition3d,
6482        pub height: Option<StandardLength12b>,
6483    }
6484    impl PolygonalShape {
6485        pub fn new(
6486            shape_reference_point: Option<CartesianPosition3d>,
6487            polygon: SequenceOfCartesianPosition3d,
6488            height: Option<StandardLength12b>,
6489        ) -> Self {
6490            Self {
6491                shape_reference_point,
6492                polygon,
6493                height,
6494            }
6495        }
6496    }
6497    #[doc = "*"]
6498    #[doc = " * This DE indicates the perpendicular distance from the centre of mass of an empty load vehicle to the front line of"]
6499    #[doc = " * the vehicle bounding box of the empty load vehicle."]
6500    #[doc = " *"]
6501    #[doc = " * The value shall be set to:"]
6502    #[doc = " * - `n` (`n > 0` and `n < 62`) for any aplicable value n between 0,1 metre and 6,2 metres, "]
6503    #[doc = " * - `62` for values equal to or higher than 6.1 metres,"]
6504    #[doc = " * - `63`  if the information is unavailable."]
6505    #[doc = " * "]
6506    #[doc = " * @note:\tThe empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
6507    #[doc = " *"]
6508    #[doc = " * @unit 0,1 metre "]
6509    #[doc = " * @category Vehicle information"]
6510    #[doc = " * @revision: description revised in V2.1.1 (the meaning of 62 has changed slightly) "]
6511    #[doc = " "]
6512    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6513    #[rasn(delegate, value("1..=63"))]
6514    pub struct PosCentMass(pub u8);
6515    #[doc = "*"]
6516    #[doc = " * This DF indicates the horizontal position confidence ellipse which represents the estimated accuracy with a "]
6517    #[doc = " * confidence level of 95  %. The centre of the ellipse shape corresponds to the reference"]
6518    #[doc = " * position point for which the position accuracy is evaluated."]
6519    #[doc = " *"]
6520    #[doc = " * It shall include the following components: "]
6521    #[doc = " *"]
6522    #[doc = " * @field semiMajorConfidence: half of length of the major axis, i.e. distance between the centre point"]
6523    #[doc = " * and major axis point of the position accuracy ellipse. "]
6524    #[doc = " *"]
6525    #[doc = " * @field semiMinorConfidence: half of length of the minor axis, i.e. distance between the centre point"]
6526    #[doc = " * and minor axis point of the position accuracy ellipse. "]
6527    #[doc = " *"]
6528    #[doc = " * @field semiMajorOrientation: orientation direction of the ellipse major axis of the position accuracy"]
6529    #[doc = " * ellipse with regards to the WGS84 north. "]
6530    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
6531    #[doc = " *"]
6532    #[doc = " *"]
6533    #[doc = " * @category GeoReference information"]
6534    #[doc = " * @revision: V1.3.1"]
6535    #[doc = " "]
6536    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6537    #[rasn(automatic_tags)]
6538    pub struct PosConfidenceEllipse {
6539        #[rasn(identifier = "semiMajorConfidence")]
6540        pub semi_major_confidence: SemiAxisLength,
6541        #[rasn(identifier = "semiMinorConfidence")]
6542        pub semi_minor_confidence: SemiAxisLength,
6543        #[rasn(identifier = "semiMajorOrientation")]
6544        pub semi_major_orientation: HeadingValue,
6545    }
6546    impl PosConfidenceEllipse {
6547        pub fn new(
6548            semi_major_confidence: SemiAxisLength,
6549            semi_minor_confidence: SemiAxisLength,
6550            semi_major_orientation: HeadingValue,
6551        ) -> Self {
6552            Self {
6553                semi_major_confidence,
6554                semi_minor_confidence,
6555                semi_major_orientation,
6556            }
6557        }
6558    }
6559    #[doc = "*"]
6560    #[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."]
6561    #[doc = " *"]
6562    #[doc = " * The value shall be set to:"]
6563    #[doc = " * - `n` (`n > 0` and `n < 19`) for any aplicable value between 0,1 metre and 1,9 metres,"]
6564    #[doc = " * - `19` for values equal to or higher than 1.8 metres,"]
6565    #[doc = " * - `20` if the information is unavailable."]
6566    #[doc = " *"]
6567    #[doc = " * @category: Vehicle information"]
6568    #[doc = " * @unit 0,1 metre"]
6569    #[doc = " * @revision: description revised in V2.1.1 (the meaning of 19 has changed slightly) "]
6570    #[doc = " "]
6571    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6572    #[rasn(delegate, value("1..=20"))]
6573    pub struct PosFrontAx(pub u8);
6574    #[doc = "*"]
6575    #[doc = " * This DE represents the distance from the centre of vehicle front bumper to the right or left longitudinal carrier of vehicle."]
6576    #[doc = " * The left/right carrier refers to the left/right as seen from a passenger sitting in the vehicle."]
6577    #[doc = " *"]
6578    #[doc = " * The value shall be set to:"]
6579    #[doc = " * - `n` (`n > 0` and `n < 126`) for any aplicable value between 0,01 metre and 1,26 metres, "]
6580    #[doc = " * - `126` for values equal to or higher than 1.25 metres,"]
6581    #[doc = " * - `127` if the information is unavailable."]
6582    #[doc = " *"]
6583    #[doc = " * @unit 0,01 metre "]
6584    #[doc = " * @category Vehicle information"]
6585    #[doc = " * @revision: description revised in V2.1.1 (the meaning of 126 has changed slightly) "]
6586    #[doc = " "]
6587    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6588    #[rasn(delegate, value("1..=127"))]
6589    pub struct PosLonCarr(pub u8);
6590    #[doc = "*"]
6591    #[doc = " * This DE represents the perpendicular inter-distance of neighbouring pillar axis of vehicle starting from the"]
6592    #[doc = " * middle point of the front line of the vehicle bounding box."]
6593    #[doc = " *"]
6594    #[doc = " * The value shall be set to:"]
6595    #[doc = " * - `n` (`n > 0` and `n < 29`) for any aplicable value between 0,1 metre and 2,9 metres, "]
6596    #[doc = " * - `29` for values equal to or greater than 2.8 metres,"]
6597    #[doc = " * - `30` if the information is unavailable."]
6598    #[doc = " * "]
6599    #[doc = " * @unit 0,1 metre "]
6600    #[doc = " * @category Vehicle information"]
6601    #[doc = " * @revision: description revised in V2.1.1 (the meaning of 29 has changed slightly) "]
6602    #[doc = " "]
6603    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6604    #[rasn(delegate, value("1..=30"))]
6605    pub struct PosPillar(pub u8);
6606    #[doc = "* "]
6607    #[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, "]
6608    #[doc = " * in direction of an externally defined reference direction."]
6609    #[doc = " * "]
6610    #[doc = " * The value shall be set to:"]
6611    #[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,"]
6612    #[doc = " * - `0` if the position is at the starting point,"]
6613    #[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,"]
6614    #[doc = " * - `8 190` if the position is out of range, i.e. equal to or greater than 8 189 m,"]
6615    #[doc = " * - `8 191` if the position information is not available. "]
6616    #[doc = " *"]
6617    #[doc = " * @unit 1 metre"]
6618    #[doc = " * @category: GeoReference information"]
6619    #[doc = " * @revision: Created in V2.2.1"]
6620    #[doc = " "]
6621    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6622    #[rasn(delegate, value("-8190..=8191"))]
6623    pub struct Position1d(pub i16);
6624    #[doc = "*"]
6625    #[doc = " * This DF indicates the horizontal position confidence ellipse which represents the estimated accuracy with a "]
6626    #[doc = " * confidence level of 95 %. The centre of the ellipse shape corresponds to the reference"]
6627    #[doc = " * position point for which the position accuracy is evaluated."]
6628    #[doc = " *"]
6629    #[doc = " * It shall include the following components: "]
6630    #[doc = " *"]
6631    #[doc = " * @field semiMajorAxisLength: half of length of the major axis, i.e. distance between the centre point"]
6632    #[doc = " * and major axis point of the position accuracy ellipse. "]
6633    #[doc = " *"]
6634    #[doc = " * @field semiMinorAxisLength: half of length of the minor axis, i.e. distance between the centre point"]
6635    #[doc = " * and minor axis point of the position accuracy ellipse. "]
6636    #[doc = " *"]
6637    #[doc = " * @field semiMajorAxisOrientation: orientation direction of the ellipse major axis of the position accuracy"]
6638    #[doc = " * ellipse with regards to the WGS84 north. "]
6639    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
6640    #[doc = " *"]
6641    #[doc = " * @category GeoReference information"]
6642    #[doc = " * @revision: created in V2.1.1 based on @ref PosConfidenceEllipse"]
6643    #[doc = " "]
6644    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6645    #[rasn(automatic_tags)]
6646    pub struct PositionConfidenceEllipse {
6647        #[rasn(identifier = "semiMajorAxisLength")]
6648        pub semi_major_axis_length: SemiAxisLength,
6649        #[rasn(identifier = "semiMinorAxisLength")]
6650        pub semi_minor_axis_length: SemiAxisLength,
6651        #[rasn(identifier = "semiMajorAxisOrientation")]
6652        pub semi_major_axis_orientation: Wgs84AngleValue,
6653    }
6654    impl PositionConfidenceEllipse {
6655        pub fn new(
6656            semi_major_axis_length: SemiAxisLength,
6657            semi_minor_axis_length: SemiAxisLength,
6658            semi_major_axis_orientation: Wgs84AngleValue,
6659        ) -> Self {
6660            Self {
6661                semi_major_axis_length,
6662                semi_minor_axis_length,
6663                semi_major_axis_orientation,
6664            }
6665        }
6666    }
6667    #[doc = "*"]
6668    #[doc = " * This DE indicates whether a passenger seat is occupied or whether the occupation status is detectable or not."]
6669    #[doc = " * "]
6670    #[doc = " * The number of row in vehicle seats layout is counted in rows from the driver row backwards from front to the rear"]
6671    #[doc = " * of the vehicle."]
6672    #[doc = " * The left side seat of a row refers to the left hand side seen from vehicle rear to front."]
6673    #[doc = " * Additionally, a bit is reserved for each seat row, to indicate if the seat occupation of a row is detectable or not,"]
6674    #[doc = " * i.e. `row1NotDetectable (3)`, `row2NotDetectable(8)`, `row3NotDetectable(13)` and `row4NotDetectable(18)`."]
6675    #[doc = " * Finally, a bit is reserved for each row seat to indicate if the seat row is present or not in the vehicle,"]
6676    #[doc = " * i.e. `row1NotPresent (4)`, `row2NotPresent (9)`, `row3NotPresent(14)`, `row4NotPresent(19)`."]
6677    #[doc = " * "]
6678    #[doc = " * When a seat is detected to be occupied, the corresponding seat occupation bit shall be set to `1`."]
6679    #[doc = " * For example, when the row 1 left seat is occupied, `row1LeftOccupied(0)` bit shall be set to `1`."]
6680    #[doc = " * When a seat is detected to be not occupied, the corresponding seat occupation bit shall be set to `0`."]
6681    #[doc = " * Otherwise, the value of seat occupation bit shall be set according to the following conditions:"]
6682    #[doc = " * - If the seat occupation of a seat row is not detectable, the corresponding bit shall be set to `1`."]
6683    #[doc = " *   When any seat row not detectable bit is set to `1`, all corresponding seat occupation bits of the same row"]
6684    #[doc = " *   shall be set to `1`."]
6685    #[doc = " * - If the seat row is not present, the corresponding not present bit of the same row shall be set to `1`."]
6686    #[doc = " *   When any of the seat row not present bit is set to `1`, the corresponding not detectable bit for that row"]
6687    #[doc = " *   shall be set to `1`, and all the corresponding seat occupation bits in that row shall be set to `0`."]
6688    #[doc = " * "]
6689    #[doc = " * @category: Vehicle information"]
6690    #[doc = " * @revision: V1.3.1"]
6691    #[doc = " "]
6692    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6693    #[rasn(delegate)]
6694    pub struct PositionOfOccupants(pub FixedBitString<20usize>);
6695    #[doc = "*"]
6696    #[doc = " * This DF shall contain a list of distances @ref PosPillar that refer to the perpendicular distance between centre of vehicle front bumper"]
6697    #[doc = " * and vehicle pillar A, between neighbour pillars until the last pillar of the vehicle."]
6698    #[doc = " *"]
6699    #[doc = " * Vehicle pillars refer to the vertical or near vertical support of vehicle,"]
6700    #[doc = " * designated respectively as the A, B, C or D and other pillars moving in side profile view from the front to rear."]
6701    #[doc = " * "]
6702    #[doc = " * The first value of the DF refers to the perpendicular distance from the centre of vehicle front bumper to "]
6703    #[doc = " * vehicle A pillar. The second value refers to the perpendicular distance from the centre position of A pillar"]
6704    #[doc = " * to the B pillar of vehicle and so on until the last pillar."]
6705    #[doc = " *"]
6706    #[doc = " * @category: Vehicle information"]
6707    #[doc = " * @revision: V1.3.1"]
6708    #[doc = " "]
6709    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6710    #[rasn(delegate, size("1..=3", extensible))]
6711    pub struct PositionOfPillars(pub SequenceOf<PosPillar>);
6712    #[doc = "*"]
6713    #[doc = " * This DE indicates the positioning technology being used to estimate a geographical position."]
6714    #[doc = " *"]
6715    #[doc = " * The value shall be set to:"]
6716    #[doc = " * - 0 `noPositioningSolution`  - no positioning solution used,"]
6717    #[doc = " * - 1 `sGNSS`                  - Global Navigation Satellite System used,"]
6718    #[doc = " * - 2 `dGNSS`                  - Differential GNSS used,"]
6719    #[doc = " * - 3 `sGNSSplusDR`            - GNSS and dead reckoning used,"]
6720    #[doc = " * - 4 `dGNSSplusDR`            - Differential GNSS and dead reckoning used,"]
6721    #[doc = " * - 5 `dR`                     - dead reckoning used,"]
6722    #[doc = " * - 6 `manuallyByOperator`     - position set manually by a human operator."]
6723    #[doc = " *"]
6724    #[doc = " * @category: GeoReference information"]
6725    #[doc = " * @revision: V1.3.1, extension with value 6 added in V2.2.1"]
6726    #[doc = " "]
6727    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6728    #[rasn(enumerated)]
6729    #[non_exhaustive]
6730    pub enum PositioningSolutionType {
6731        noPositioningSolution = 0,
6732        sGNSS = 1,
6733        dGNSS = 2,
6734        sGNSSplusDR = 3,
6735        dGNSSplusDR = 4,
6736        dR = 5,
6737        #[rasn(extension_addition)]
6738        manuallyByOperator = 6,
6739    }
6740    #[doc = "*"]
6741    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `postCrash` ."]
6742    #[doc = " * "]
6743    #[doc = " * The value shall be set to:"]
6744    #[doc = " * - 0 `unavailable`                                               - in case further detailed information on post crash event is unavailable,"]
6745    #[doc = " * - 1 `accidentWithoutECallTriggered`                             - in case no eCall has been triggered for an accident,"]
6746    #[doc = " * - 2 `accidentWithECallManuallyTriggered`                        - in case eCall has been manually triggered and transmitted to eCall back end,"]
6747    #[doc = " * - 3 `accidentWithECallAutomaticallyTriggered`                   - in case eCall has been automatically triggered and transmitted to eCall back end,"]
6748    #[doc = " * - 4 `accidentWithECallTriggeredWithoutAccessToCellularNetwork`  - in case eCall has been triggered but cellular network is not accessible from triggering vehicle."]
6749    #[doc = " * - 5-255                                                         - are reserved for future usage."]
6750    #[doc = " *"]
6751    #[doc = " * @category: Traffic information"]
6752    #[doc = " * @revision: V1.3.1"]
6753    #[doc = " "]
6754    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6755    #[rasn(delegate, value("0..=255"))]
6756    pub struct PostCrashSubCauseCode(pub u8);
6757    #[doc = "*"]
6758    #[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.  "]
6759    #[doc = "* "]
6760    #[doc = "* The following values are specified:"]
6761    #[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,"]
6762    #[doc = "* - `2000` if the amount of rain falling is greater than 199.9 mm/h, "]
6763    #[doc = "* - `2001` if the information is not available."]
6764    #[doc = "*"]
6765    #[doc = "* @unit: 0,1 mm/h "]
6766    #[doc = "* @category: Basic Information"]
6767    #[doc = "* @revision: created in V2.1.1"]
6768    #[doc = ""]
6769    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6770    #[rasn(delegate, value("1..=2001"))]
6771    pub struct PrecipitationIntensity(pub u16);
6772    #[doc = "*"]
6773    #[doc = " * This DF describes a zone of protection inside which the ITS communication should be restricted."]
6774    #[doc = " *"]
6775    #[doc = " * It shall include the following components: "]
6776    #[doc = " * "]
6777    #[doc = " * @field protectedZoneType: type of the protected zone. "]
6778    #[doc = " * "]
6779    #[doc = " * @field expiryTime: optional time at which the validity of the protected communication zone will expire."]
6780    #[doc = " * "]
6781    #[doc = " * @field protectedZoneLatitude: latitude of the centre point of the protected communication zone."]
6782    #[doc = " * "]
6783    #[doc = " * @field protectedZoneLongitude: longitude of the centre point of the protected communication zone."]
6784    #[doc = " * "]
6785    #[doc = " * @field protectedZoneRadius: optional radius of the protected communication zone in metres."]
6786    #[doc = " * "]
6787    #[doc = " * @field protectedZoneId: the optional ID of the protected communication zone."]
6788    #[doc = " * "]
6789    #[doc = " * @note: A protected communication zone may be defined around a CEN DSRC road side equipment."]
6790    #[doc = " * "]
6791    #[doc = " * @category: Infrastructure information, Communication information"]
6792    #[doc = " * @revision: revised in V2.1.1 (changed protectedZoneID to protectedZoneId)"]
6793    #[doc = " "]
6794    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6795    #[rasn(automatic_tags)]
6796    #[non_exhaustive]
6797    pub struct ProtectedCommunicationZone {
6798        #[rasn(identifier = "protectedZoneType")]
6799        pub protected_zone_type: ProtectedZoneType,
6800        #[rasn(identifier = "expiryTime")]
6801        pub expiry_time: Option<TimestampIts>,
6802        #[rasn(identifier = "protectedZoneLatitude")]
6803        pub protected_zone_latitude: Latitude,
6804        #[rasn(identifier = "protectedZoneLongitude")]
6805        pub protected_zone_longitude: Longitude,
6806        #[rasn(identifier = "protectedZoneRadius")]
6807        pub protected_zone_radius: Option<ProtectedZoneRadius>,
6808        #[rasn(identifier = "protectedZoneId")]
6809        pub protected_zone_id: Option<ProtectedZoneId>,
6810    }
6811    impl ProtectedCommunicationZone {
6812        pub fn new(
6813            protected_zone_type: ProtectedZoneType,
6814            expiry_time: Option<TimestampIts>,
6815            protected_zone_latitude: Latitude,
6816            protected_zone_longitude: Longitude,
6817            protected_zone_radius: Option<ProtectedZoneRadius>,
6818            protected_zone_id: Option<ProtectedZoneId>,
6819        ) -> Self {
6820            Self {
6821                protected_zone_type,
6822                expiry_time,
6823                protected_zone_latitude,
6824                protected_zone_longitude,
6825                protected_zone_radius,
6826                protected_zone_id,
6827            }
6828        }
6829    }
6830    #[doc = "*"]
6831    #[doc = " * This DF shall contain a list of @ref ProtectedCommunicationZone provided by a road side ITS-S (Road Side Unit RSU)."]
6832    #[doc = " *"]
6833    #[doc = " * It may provide up to 16 protected communication zones information."]
6834    #[doc = " *"]
6835    #[doc = " * @category: Infrastructure information, Communication information"]
6836    #[doc = " * @revision: V1.3.1"]
6837    #[doc = " "]
6838    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6839    #[rasn(delegate, size("1..=16"))]
6840    pub struct ProtectedCommunicationZonesRSU(pub SequenceOf<ProtectedCommunicationZone>);
6841    #[doc = "*"]
6842    #[doc = " * This DE represents the indentifier of a protected communication zone."]
6843    #[doc = " * "]
6844    #[doc = " * "]
6845    #[doc = " * @category: Infrastructure information, Communication information"]
6846    #[doc = " * @revision: Revision in V2.1.1 (changed name from ProtectedZoneID to ProtectedZoneId)"]
6847    #[doc = " "]
6848    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6849    #[rasn(delegate, value("0..=134217727"))]
6850    pub struct ProtectedZoneId(pub u32);
6851    #[doc = "*"]
6852    #[doc = " * This DE represents the radius of a protected communication zone. "]
6853    #[doc = " * "]
6854    #[doc = " * "]
6855    #[doc = " * @unit: metre"]
6856    #[doc = " * @category: Infrastructure information, Communication information"]
6857    #[doc = " * @revision: V1.3.1"]
6858    #[doc = " "]
6859    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6860    #[rasn(delegate, value("1..=255", extensible))]
6861    pub struct ProtectedZoneRadius(pub Integer);
6862    #[doc = "*"]
6863    #[doc = " * This DE indicates the type of a protected communication zone, so that an ITS-S is aware of the actions to do"]
6864    #[doc = " * while passing by such zone (e.g. reduce the transmit power in case of a DSRC tolling station)."]
6865    #[doc = " * "]
6866    #[doc = " * The protected zone type is defined in ETSI TS 102 792 [14]."]
6867    #[doc = " * "]
6868    #[doc = " * "]
6869    #[doc = " * @category: Communication information"]
6870    #[doc = " * @revision: V1.3.1"]
6871    #[doc = " "]
6872    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6873    #[rasn(enumerated)]
6874    #[non_exhaustive]
6875    pub enum ProtectedZoneType {
6876        permanentCenDsrcTolling = 0,
6877        #[rasn(extension_addition)]
6878        temporaryCenDsrcTolling = 1,
6879    }
6880    #[doc = "*"]
6881    #[doc = " * This DF identifies an organization."]
6882    #[doc = " *"]
6883    #[doc = " * It shall include the following components: "]
6884    #[doc = " * "]
6885    #[doc = " * @field countryCode: represents the country code that identifies the country of the national registration administrator for issuers according to ISO 14816."]
6886    #[doc = " *"]
6887    #[doc = " * @field providerIdentifier: identifies the organization according to the national ISO 14816 register for issuers."]
6888    #[doc = " *"]
6889    #[doc = " * @note: See https://www.itsstandards.eu/registries/register-of-nra-i-cs1/ for a list of national registration administrators and their respective registers"]
6890    #[doc = " * "]
6891    #[doc = " * @category: Communication information"]
6892    #[doc = " * @revision: Created in V2.2.1 based on ISO 17573-3 [24]"]
6893    #[doc = " "]
6894    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6895    #[rasn(automatic_tags)]
6896    pub struct Provider {
6897        #[rasn(identifier = "countryCode")]
6898        pub country_code: CountryCode,
6899        #[rasn(identifier = "providerIdentifier")]
6900        pub provider_identifier: IssuerIdentifier,
6901    }
6902    impl Provider {
6903        pub fn new(country_code: CountryCode, provider_identifier: IssuerIdentifier) -> Self {
6904            Self {
6905                country_code,
6906                provider_identifier,
6907            }
6908        }
6909    }
6910    #[doc = "*"]
6911    #[doc = " * This DF represents activation data for real-time systems designed for operations control, traffic light priorities, track switches, barriers, etc."]
6912    #[doc = " * using a range of activation devices equipped in public transport vehicles."]
6913    #[doc = " *"]
6914    #[doc = " * The activation of the corresponding equipment is triggered by the approach or passage of a public transport"]
6915    #[doc = " * vehicle at a certain point (e.g. a beacon)."]
6916    #[doc = " *"]
6917    #[doc = " * @field ptActivationType: type of activation. "]
6918    #[doc = " *"]
6919    #[doc = " * @field ptActicationData: data of activation. "]
6920    #[doc = " *"]
6921    #[doc = " * Today there are different payload variants defined for public transport activation-data. The R09.x is one of"]
6922    #[doc = " * the industry standard used by public transport vehicles (e.g. buses, trams) in Europe (e.g. Germany Austria)"]
6923    #[doc = " * for controlling traffic lights, barriers, bollards, etc. This DF shall include information like route, course,"]
6924    #[doc = " * destination, priority, etc."]
6925    #[doc = " * "]
6926    #[doc = " * The R09.x content is defined in VDV recommendation 420 [7]. It includes following information:"]
6927    #[doc = " * - Priority Request Information (pre-request, request, ready to start)"]
6928    #[doc = " * - End of Prioritization procedure"]
6929    #[doc = " * - Priority request direction"]
6930    #[doc = " * - Public Transport line number"]
6931    #[doc = " * - Priority of public transport"]
6932    #[doc = " * - Route line identifier of the public transport"]
6933    #[doc = " * - Route number identification"]
6934    #[doc = " * - Destination of public transport vehicle"]
6935    #[doc = " *"]
6936    #[doc = " * Other countries may use different message sets defined by the local administration."]
6937    #[doc = " * @category: Vehicle information"]
6938    #[doc = " * @revision: V1.3.1"]
6939    #[doc = " "]
6940    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6941    #[rasn(automatic_tags)]
6942    pub struct PtActivation {
6943        #[rasn(identifier = "ptActivationType")]
6944        pub pt_activation_type: PtActivationType,
6945        #[rasn(identifier = "ptActivationData")]
6946        pub pt_activation_data: PtActivationData,
6947    }
6948    impl PtActivation {
6949        pub fn new(
6950            pt_activation_type: PtActivationType,
6951            pt_activation_data: PtActivationData,
6952        ) -> Self {
6953            Self {
6954                pt_activation_type,
6955                pt_activation_data,
6956            }
6957        }
6958    }
6959    #[doc = "*"]
6960    #[doc = " * This DE is used for various tasks in the public transportation environment, especially for controlling traffic"]
6961    #[doc = " * signal systems to prioritize and speed up public transportation in urban area (e.g. intersection \"_bottlenecks_\")."]
6962    #[doc = " * The traffic lights may be controlled by an approaching bus or tram automatically. This permits \"_In Time_\" activation"]
6963    #[doc = " * of the green phase, will enable the individual traffic to clear a potential traffic jam in advance. Thereby the"]
6964    #[doc = " * approaching bus or tram may pass an intersection with activated green light without slowing down the speed due to"]
6965    #[doc = " * traffic congestion. Other usage of the DE is the provision of information like the public transport line number"]
6966    #[doc = " * or the schedule delay of a public transport vehicle."]
6967    #[doc = " * "]
6968    #[doc = " * @category: Vehicle information"]
6969    #[doc = " * @revision: V1.3.1"]
6970    #[doc = " "]
6971    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6972    #[rasn(delegate, size("1..=20"))]
6973    pub struct PtActivationData(pub OctetString);
6974    #[doc = "*"]
6975    #[doc = " * This DE indicates a certain coding type of the PtActivationData data."]
6976    #[doc = " *"]
6977    #[doc = " * The folowing value are specified:"]
6978    #[doc = " * - 0 `undefinedCodingType`  : undefined coding type,"]
6979    #[doc = " * - 1 `r09-16CodingType`     : coding of PtActivationData conform to VDV recommendation 420 [7],"]
6980    #[doc = " * - 2 `vdv-50149CodingType`  : coding of PtActivationData based on VDV recommendation 420 [7]."]
6981    #[doc = " * - 3 - 255                  : reserved for alternative and future use."]
6982    #[doc = " * "]
6983    #[doc = " * @category: Vehicle information "]
6984    #[doc = " * @revision: V1.3.1"]
6985    #[doc = " "]
6986    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6987    #[rasn(delegate, value("0..=255"))]
6988    pub struct PtActivationType(pub u8);
6989    #[doc = "*"]
6990    #[doc = " * This DF describes a radial shape. The circular or spherical sector is constructed by sweeping      "]
6991    #[doc = " * the provided range about the reference position specified outside of the context of this DF or "]
6992    #[doc = " * about the optional shapeReferencePoint. The range is swept between a horizontal start and a "]
6993    #[doc = " * horizontal end angle in the X-Y plane of a cartesian coordinate system specified outside of the "]
6994    #[doc = " * context of this DF, in a right-hand positive angular direction w.r.t. the x-axis. "]
6995    #[doc = " * A vertical opening angle in the X-Z plane may optionally be provided in a right-hand positive "]
6996    #[doc = " * angular direction w.r.t. the x-axis. "]
6997    #[doc = " *"]
6998    #[doc = " * It shall include the following components:"]
6999    #[doc = " * "]
7000    #[doc = " * @field shapeReferencePoint: the optional reference point used for the definition of the shape, "]
7001    #[doc = " * relative to an externally specified reference position. If this component is absent, the  "]
7002    #[doc = " * externally specified reference position represents the shape's reference point. "]
7003    #[doc = " *"]
7004    #[doc = " * @field range: the radial range of the shape from the shape's reference point. "]
7005    #[doc = " *"]
7006    #[doc = " * @field horizontalOpeningAngleStart: the start of the shape's horizontal opening angle. "]
7007    #[doc = " *"]
7008    #[doc = " * @field horizontalOpeningAngleEnd: the end of the shape's horizontal opening angle. "]
7009    #[doc = " *"]
7010    #[doc = " * @field verticalOpeningAngleStart: optional start of the shape's vertical opening angle. "]
7011    #[doc = " *"]
7012    #[doc = " * @field verticalOpeningAngleEnd: optional end of the shape's vertical opening angle. "]
7013    #[doc = " *"]
7014    #[doc = " * @category GeoReference information"]
7015    #[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"]
7016    #[doc = ""]
7017    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7018    #[rasn(automatic_tags)]
7019    pub struct RadialShape {
7020        #[rasn(identifier = "shapeReferencePoint")]
7021        pub shape_reference_point: Option<CartesianPosition3d>,
7022        pub range: StandardLength12b,
7023        #[rasn(identifier = "horizontalOpeningAngleStart")]
7024        pub horizontal_opening_angle_start: CartesianAngleValue,
7025        #[rasn(identifier = "horizontalOpeningAngleEnd")]
7026        pub horizontal_opening_angle_end: CartesianAngleValue,
7027        #[rasn(identifier = "verticalOpeningAngleStart")]
7028        pub vertical_opening_angle_start: Option<CartesianAngleValue>,
7029        #[rasn(identifier = "verticalOpeningAngleEnd")]
7030        pub vertical_opening_angle_end: Option<CartesianAngleValue>,
7031    }
7032    impl RadialShape {
7033        pub fn new(
7034            shape_reference_point: Option<CartesianPosition3d>,
7035            range: StandardLength12b,
7036            horizontal_opening_angle_start: CartesianAngleValue,
7037            horizontal_opening_angle_end: CartesianAngleValue,
7038            vertical_opening_angle_start: Option<CartesianAngleValue>,
7039            vertical_opening_angle_end: Option<CartesianAngleValue>,
7040        ) -> Self {
7041            Self {
7042                shape_reference_point,
7043                range,
7044                horizontal_opening_angle_start,
7045                horizontal_opening_angle_end,
7046                vertical_opening_angle_start,
7047                vertical_opening_angle_end,
7048            }
7049        }
7050    }
7051    #[doc = "*"]
7052    #[doc = " * This DF describes radial shape details. The circular sector or cone is"]
7053    #[doc = " * constructed by sweeping the provided range about the position specified outside of the  "]
7054    #[doc = " * context of this DF. The range is swept between a horizontal start and a horizontal end angle in "]
7055    #[doc = " * the X-Y plane of a right-hand cartesian coordinate system specified outside of the context of "]
7056    #[doc = " * this DF, in positive angular direction w.r.t. the x-axis. A vertical opening angle in the X-Z "]
7057    #[doc = " * plane may optionally be provided in positive angular direction w.r.t. the x-axis."]
7058    #[doc = " * "]
7059    #[doc = " * It shall include the following components:"]
7060    #[doc = " * "]
7061    #[doc = " * @field range: the radial range of the sensor from the reference point or sensor point offset. "]
7062    #[doc = " *"]
7063    #[doc = " * @field horizontalOpeningAngleStart:  the start of the shape's horizontal opening angle."]
7064    #[doc = " *"]
7065    #[doc = " * @field horizontalOpeningAngleEnd: the end of the shape's horizontal opening angle. "]
7066    #[doc = " *"]
7067    #[doc = " * @field verticalOpeningAngleStart: optional start of the shape's vertical opening angle. "]
7068    #[doc = " *"]
7069    #[doc = " * @field verticalOpeningAngleEnd: optional end of the shape's vertical opening angle. "]
7070    #[doc = " *"]
7071    #[doc = " * @category: Georeference information"]
7072    #[doc = " * @revision: created in V2.1.1, description revised and constraint added in V2.2.1"]
7073    #[doc = " "]
7074    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7075    #[rasn(automatic_tags)]
7076    pub struct RadialShapeDetails {
7077        pub range: StandardLength12b,
7078        #[rasn(identifier = "horizontalOpeningAngleStart")]
7079        pub horizontal_opening_angle_start: CartesianAngleValue,
7080        #[rasn(identifier = "horizontalOpeningAngleEnd")]
7081        pub horizontal_opening_angle_end: CartesianAngleValue,
7082        #[rasn(identifier = "verticalOpeningAngleStart")]
7083        pub vertical_opening_angle_start: Option<CartesianAngleValue>,
7084        #[rasn(identifier = "verticalOpeningAngleEnd")]
7085        pub vertical_opening_angle_end: Option<CartesianAngleValue>,
7086    }
7087    impl RadialShapeDetails {
7088        pub fn new(
7089            range: StandardLength12b,
7090            horizontal_opening_angle_start: CartesianAngleValue,
7091            horizontal_opening_angle_end: CartesianAngleValue,
7092            vertical_opening_angle_start: Option<CartesianAngleValue>,
7093            vertical_opening_angle_end: Option<CartesianAngleValue>,
7094        ) -> Self {
7095            Self {
7096                range,
7097                horizontal_opening_angle_start,
7098                horizontal_opening_angle_end,
7099                vertical_opening_angle_start,
7100                vertical_opening_angle_end,
7101            }
7102        }
7103    }
7104    #[doc = "*"]
7105    #[doc = " * This DF describes a list of radial shapes positioned w.r.t. to an offset position defined  "]
7106    #[doc = " * relative to a reference position specified outside of the context of this DF and oriented w.r.t.  "]
7107    #[doc = " * a cartesian coordinate system specified outside of the context of this DF. "]
7108    #[doc = " *"]
7109    #[doc = " * It shall include the following components:"]
7110    #[doc = " *"]
7111    #[doc = " * @field refPointId: the identification of the reference point in case of a sensor mounted to trailer. Defaults to ITS ReferencePoint (0)."]
7112    #[doc = " * "]
7113    #[doc = " * @field xCoordinate: the x-coordinate of the offset position."]
7114    #[doc = " *"]
7115    #[doc = " * @field yCoordinate: the y-coordinate of the offset position."]
7116    #[doc = " *"]
7117    #[doc = " * @field zCoordinate: the optional z-coordinate of the offset position."]
7118    #[doc = " *"]
7119    #[doc = " * @field radialShapesList: the list of radial shape details."]
7120    #[doc = " *"]
7121    #[doc = " * @category: Georeference information"]
7122    #[doc = " * @revision: created in V2.1.1, description revised in V2.2.1"]
7123    #[doc = " "]
7124    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7125    #[rasn(automatic_tags)]
7126    pub struct RadialShapes {
7127        #[rasn(identifier = "refPointId")]
7128        pub ref_point_id: Identifier1B,
7129        #[rasn(identifier = "xCoordinate")]
7130        pub x_coordinate: CartesianCoordinateSmall,
7131        #[rasn(identifier = "yCoordinate")]
7132        pub y_coordinate: CartesianCoordinateSmall,
7133        #[rasn(identifier = "zCoordinate")]
7134        pub z_coordinate: Option<CartesianCoordinateSmall>,
7135        #[rasn(identifier = "radialShapesList")]
7136        pub radial_shapes_list: RadialShapesList,
7137    }
7138    impl RadialShapes {
7139        pub fn new(
7140            ref_point_id: Identifier1B,
7141            x_coordinate: CartesianCoordinateSmall,
7142            y_coordinate: CartesianCoordinateSmall,
7143            z_coordinate: Option<CartesianCoordinateSmall>,
7144            radial_shapes_list: RadialShapesList,
7145        ) -> Self {
7146            Self {
7147                ref_point_id,
7148                x_coordinate,
7149                y_coordinate,
7150                z_coordinate,
7151                radial_shapes_list,
7152            }
7153        }
7154    }
7155    #[doc = "* "]
7156    #[doc = " * The DF contains a list of @ref RadialShapeDetails."]
7157    #[doc = " *"]
7158    #[doc = " * @category: Georeference information"]
7159    #[doc = " * @revision: created in V2.1.1"]
7160    #[doc = " "]
7161    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7162    #[rasn(delegate, size("1..=16", extensible))]
7163    pub struct RadialShapesList(pub SequenceOf<RadialShapeDetails>);
7164    #[doc = "*"]
7165    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `railwayLevelCrossing` ."]
7166    #[doc = " * "]
7167    #[doc = " * The value shall be set to:"]
7168    #[doc = " * - 0 `unavailable`                   - in case no further detailed information on the railway level crossing status is available,"]
7169    #[doc = " * - 1 `doNotCrossAbnormalSituation`   - in case when something wrong is detected by equation or sensors of the railway level crossing, "]
7170    #[doc = "                                         including level crossing is closed for too long (e.g. more than 10 minutes long ; default value),"]
7171    #[doc = " * - 2 `closed`                        - in case the crossing is closed or closing (barriers down),"]
7172    #[doc = " * - 3 `unguarded`                     - in case the level crossing is unguarded (i.e a Saint Andrew cross level crossing without detection of train),"]
7173    #[doc = " * - 4 `nominal`                       - in case the barriers are up and/or the warning systems are off,"]
7174    #[doc = " * - 5 `trainApproaching`              - in case a train is approaching and the railway level crossing is without barriers."]
7175    #[doc = " * - 6-255: reserved for future usage."]
7176    #[doc = " *"]
7177    #[doc = " * @category: Traffic information"]
7178    #[doc = " * @revision: V1.3.1, description of value 2 and 4 changed and value 5 added in V2.3.1"]
7179    #[doc = " "]
7180    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7181    #[rasn(delegate, value("0..=255"))]
7182    pub struct RailwayLevelCrossingSubCauseCode(pub u8);
7183    #[doc = "* "]
7184    #[doc = " * This DF represents the shape of a rectangular area or a right rectangular prism that is centred "]
7185    #[doc = " * on a reference position defined outside of the context of this DF and oriented w.r.t. a cartesian    "]
7186    #[doc = " * coordinate system defined outside of the context of this DF. "]
7187    #[doc = " *"]
7188    #[doc = " * It shall include the following components: "]
7189    #[doc = " * "]
7190    #[doc = " * @field shapeReferencePoint: represents an optional offset point which the rectangle is centred on with "]
7191    #[doc = " * respect to the reference position. If this component is absent, the externally specified  "]
7192    #[doc = " * reference position represents the shape's reference point. "]
7193    #[doc = " *"]
7194    #[doc = " * @field semiLength: represents half the length of the rectangle located in the X-Y Plane."]
7195    #[doc = " * "]
7196    #[doc = " * @field semiBreadth: represents half the breadth of the rectangle located in the X-Y Plane."]
7197    #[doc = " *"]
7198    #[doc = " * @field orientation: represents the optional orientation of the longer side of the rectangle, "]
7199    #[doc = " * measured with positive values turning around the Z-axis using the right-hand rule, starting from"]
7200    #[doc = " * the X-axis. If absent, the orientation is equal to the value zero."]
7201    #[doc = " *"]
7202    #[doc = " * @field height: represents the optional height, present if the shape is a right rectangular prism "]
7203    #[doc = " * with height extending in the positive Z-axis."]
7204    #[doc = " *"]
7205    #[doc = " * @category GeoReference information"]
7206    #[doc = " * @revision: created in V2.1.1, centerPoint renamed to shapeReferencePoint, the type of the field orientation changed "]
7207    #[doc = " *            and description revised in V2.2.1, added sentence on absence in V2.4.1"]
7208    #[doc = " "]
7209    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7210    #[rasn(automatic_tags)]
7211    pub struct RectangularShape {
7212        #[rasn(identifier = "shapeReferencePoint")]
7213        pub shape_reference_point: Option<CartesianPosition3d>,
7214        #[rasn(identifier = "semiLength")]
7215        pub semi_length: StandardLength12b,
7216        #[rasn(identifier = "semiBreadth")]
7217        pub semi_breadth: StandardLength12b,
7218        pub orientation: Option<CartesianAngleValue>,
7219        pub height: Option<StandardLength12b>,
7220    }
7221    impl RectangularShape {
7222        pub fn new(
7223            shape_reference_point: Option<CartesianPosition3d>,
7224            semi_length: StandardLength12b,
7225            semi_breadth: StandardLength12b,
7226            orientation: Option<CartesianAngleValue>,
7227            height: Option<StandardLength12b>,
7228        ) -> Self {
7229            Self {
7230                shape_reference_point,
7231                semi_length,
7232                semi_breadth,
7233                orientation,
7234                height,
7235            }
7236        }
7237    }
7238    #[doc = "*"]
7239    #[doc = " * A position within a geographic coordinate system together with a confidence ellipse. "]
7240    #[doc = " *"]
7241    #[doc = " * It shall include the following components: "]
7242    #[doc = " *"]
7243    #[doc = " * @field latitude: the latitude of the geographical point."]
7244    #[doc = " *"]
7245    #[doc = " * @field longitude: the longitude of the geographical point."]
7246    #[doc = " *"]
7247    #[doc = " * @field positionConfidenceEllipse: the confidence ellipse associated to the geographical position."]
7248    #[doc = " *"]
7249    #[doc = " * @field altitude: the altitude and an altitude accuracy of the geographical point."]
7250    #[doc = " *"]
7251    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref ReferencePositionWithConfidence instead. "]
7252    #[doc = " * @category: GeoReference information"]
7253    #[doc = " * @revision: description updated in V2.1.1"]
7254    #[doc = " "]
7255    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7256    #[rasn(automatic_tags)]
7257    pub struct ReferencePosition {
7258        pub latitude: Latitude,
7259        pub longitude: Longitude,
7260        #[rasn(identifier = "positionConfidenceEllipse")]
7261        pub position_confidence_ellipse: PosConfidenceEllipse,
7262        pub altitude: Altitude,
7263    }
7264    impl ReferencePosition {
7265        pub fn new(
7266            latitude: Latitude,
7267            longitude: Longitude,
7268            position_confidence_ellipse: PosConfidenceEllipse,
7269            altitude: Altitude,
7270        ) -> Self {
7271            Self {
7272                latitude,
7273                longitude,
7274                position_confidence_ellipse,
7275                altitude,
7276            }
7277        }
7278    }
7279    #[doc = "*"]
7280    #[doc = " * A position within a geographic coordinate system together with a confidence ellipse. "]
7281    #[doc = " *"]
7282    #[doc = " * It shall include the following components: "]
7283    #[doc = " *"]
7284    #[doc = " * @field latitude: the latitude of the geographical point."]
7285    #[doc = " *"]
7286    #[doc = " * @field longitude: the longitude of the geographical point."]
7287    #[doc = " *"]
7288    #[doc = " * @field positionConfidenceEllipse: the confidence ellipse associated to the geographical position."]
7289    #[doc = " *"]
7290    #[doc = " * @field altitude: the altitude and an altitude accuracy of the geographical point."]
7291    #[doc = " *"]
7292    #[doc = " * @category: GeoReference information"]
7293    #[doc = " * @revision: created in V2.1.1 based on @ref ReferencePosition but using @ref PositionConfidenceEllipse."]
7294    #[doc = " "]
7295    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7296    #[rasn(automatic_tags)]
7297    pub struct ReferencePositionWithConfidence {
7298        pub latitude: Latitude,
7299        pub longitude: Longitude,
7300        #[rasn(identifier = "positionConfidenceEllipse")]
7301        pub position_confidence_ellipse: PositionConfidenceEllipse,
7302        pub altitude: Altitude,
7303    }
7304    impl ReferencePositionWithConfidence {
7305        pub fn new(
7306            latitude: Latitude,
7307            longitude: Longitude,
7308            position_confidence_ellipse: PositionConfidenceEllipse,
7309            altitude: Altitude,
7310        ) -> Self {
7311            Self {
7312                latitude,
7313                longitude,
7314                position_confidence_ellipse,
7315                altitude,
7316            }
7317        }
7318    }
7319    #[doc = "*"]
7320    #[doc = " * This DE describes a distance of relevance for information indicated in a message."]
7321    #[doc = " *"]
7322    #[doc = " * The value shall be set to:"]
7323    #[doc = " * - 0 `lessThan50m`   - for distances below 50 m,"]
7324    #[doc = " * - 1 `lessThan100m`  - for distances below 100 m, "]
7325    #[doc = " * - 2 `lessThan200m`  - for distances below 200 m, "]
7326    #[doc = " * - 3 `lessThan500m`  - for distances below 300 m, "]
7327    #[doc = " * - 4 `lessThan1000m` - for distances below 1 000 m, "]
7328    #[doc = " * - 5 `lessThan5km`   - for distances below 5 000 m, "]
7329    #[doc = " * - 6 `lessThan10km`  - for distances below 10 000 m, "]
7330    #[doc = " * - 7 `over10km`      - for distances over 10 000 m. "]
7331    #[doc = " * "]
7332    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref StandardLength3b instead. "]
7333    #[doc = " *"]
7334    #[doc = " * @category: GeoReference information"]
7335    #[doc = " * @revision: Editorial update in V2.1.1"]
7336    #[doc = " "]
7337    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7338    #[rasn(enumerated)]
7339    pub enum RelevanceDistance {
7340        lessThan50m = 0,
7341        lessThan100m = 1,
7342        lessThan200m = 2,
7343        lessThan500m = 3,
7344        lessThan1000m = 4,
7345        lessThan5km = 5,
7346        lessThan10km = 6,
7347        over10km = 7,
7348    }
7349    #[doc = "*"]
7350    #[doc = " * This DE indicates a traffic direction that is relevant to information indicated in a message."]
7351    #[doc = " * "]
7352    #[doc = " * The value shall be set to:"]
7353    #[doc = " * - 0 `allTrafficDirections` - for all traffic directions, "]
7354    #[doc = " * - 1 `upstreamTraffic`      - for upstream traffic, "]
7355    #[doc = " * - 2 `downstreamTraffic`    - for downstream traffic, "]
7356    #[doc = " * - 3 `oppositeTraffic`      - for traffic in the opposite direction. "]
7357    #[doc = " *"]
7358    #[doc = " * The terms `upstream`, `downstream` and `oppositeTraffic` are relative to the event position."]
7359    #[doc = " *"]
7360    #[doc = " * @note: Upstream traffic corresponds to the incoming traffic towards the event position,"]
7361    #[doc = " * and downstream traffic to the departing traffic away from the event position."]
7362    #[doc = " *"]
7363    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrafficDirection instead. "]
7364    #[doc = " *"]
7365    #[doc = " * @category: GeoReference information"]
7366    #[doc = " * @revision: Editorial update in V2.1.1"]
7367    #[doc = " "]
7368    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7369    #[rasn(enumerated)]
7370    pub enum RelevanceTrafficDirection {
7371        allTrafficDirections = 0,
7372        upstreamTraffic = 1,
7373        downstreamTraffic = 2,
7374        oppositeTraffic = 3,
7375    }
7376    #[doc = "*"]
7377    #[doc = " * This DE indicates whether an ITS message is transmitted as request from ITS-S or a response transmitted from"]
7378    #[doc = " * ITS-S after receiving request from other ITS-Ss."]
7379    #[doc = " *"]
7380    #[doc = " * The value shall be set to:"]
7381    #[doc = " * - 0 `request`  - for a request message, "]
7382    #[doc = " * - 1 `response` - for a response message.  "]
7383    #[doc = " *"]
7384    #[doc = " * @category Communication information"]
7385    #[doc = " * @revision: Editorial update in V2.1.1"]
7386    #[doc = " "]
7387    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7388    #[rasn(enumerated)]
7389    pub enum RequestResponseIndication {
7390        request = 0,
7391        response = 1,
7392    }
7393    #[doc = "*"]
7394    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `RescueRecoveryAndMaintenanceWorkInProgressSubCauseCode` "]
7395    #[doc = " * "]
7396    #[doc = " * The value shall be set to:"]
7397    #[doc = " * - 0 `unavailable`                         - in case further detailed information on rescue and recovery work is unavailable,"]
7398    #[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,"]
7399    #[doc = " * - 2 `rescueHelicopterLanding`             - in case rescue helicopter is landing,"]
7400    #[doc = " * - 3 `policeActivityOngoing`               - in case police activity is ongoing (only to be used if a more specific sub cause than (1) is needed),"]
7401    #[doc = " * - 4 `medicalEmergencyOngoing`             - in case medical emergency recovery is ongoing (only to be used if a more specific sub cause than (1) is needed),"]
7402    #[doc = " * - 5 `childAbductionInProgress-deprecated` - deprecated,"]
7403    #[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,"]
7404    #[doc = " * - 7 `rescueAndRecoveryVehicle`            - in case technical rescue work is ongoing by rescue and recovery vehicles."]
7405    #[doc = " * - 8-255: reserved for future usage."]
7406    #[doc = ""]
7407    #[doc = " *"]
7408    #[doc = " * @category: Traffic information"]
7409    #[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"]
7410    #[doc = " "]
7411    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7412    #[rasn(delegate, value("0..=255"))]
7413    pub struct RescueRecoveryAndMaintenanceWorkInProgressSubCauseCode(pub u8);
7414    #[doc = "*"]
7415    #[doc = " * This DF shall contain a list of @ref StationType. to which a certain traffic restriction, e.g. the speed limit, applies."]
7416    #[doc = " * "]
7417    #[doc = " * @category: Infrastructure information, Traffic information"]
7418    #[doc = " * @revision: V1.3.1"]
7419    #[doc = " "]
7420    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7421    #[rasn(delegate, size("1..=3", extensible))]
7422    pub struct RestrictedTypes(pub SequenceOf<StationType>);
7423    #[doc = "* "]
7424    #[doc = " * This DF provides configuration information about a road section."]
7425    #[doc = " *"]
7426    #[doc = " * It shall include the following components: "]
7427    #[doc = " *"]
7428    #[doc = " * @field roadSectionDefinition: the topological definition of the road section for which the information in the other components applies throughout its entire length."]
7429    #[doc = " * "]
7430    #[doc = " * @field roadType: the optional type of road on which the section is located."]
7431    #[doc = " * "]
7432    #[doc = " * @field laneConfiguration: the optional configuration of the road section in terms of basic information per lane."]
7433    #[doc = " *"]
7434    #[doc = " * @field mapemConfiguration: the optional configuration of the road section in terms of MAPEM lanes or connections."]
7435    #[doc = " *"]
7436    #[doc = " * @category: Road topology information"]
7437    #[doc = " * @revision: Created in V2.2.1"]
7438    #[doc = ""]
7439    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7440    #[rasn(automatic_tags)]
7441    #[non_exhaustive]
7442    pub struct RoadConfigurationSection {
7443        #[rasn(identifier = "roadSectionDefinition")]
7444        pub road_section_definition: RoadSectionDefinition,
7445        #[rasn(identifier = "roadType")]
7446        pub road_type: Option<RoadType>,
7447        #[rasn(identifier = "laneConfiguration")]
7448        pub lane_configuration: Option<BasicLaneConfiguration>,
7449        #[rasn(identifier = "mapemConfiguration")]
7450        pub mapem_configuration: Option<MapemConfiguration>,
7451    }
7452    impl RoadConfigurationSection {
7453        pub fn new(
7454            road_section_definition: RoadSectionDefinition,
7455            road_type: Option<RoadType>,
7456            lane_configuration: Option<BasicLaneConfiguration>,
7457            mapem_configuration: Option<MapemConfiguration>,
7458        ) -> Self {
7459            Self {
7460                road_section_definition,
7461                road_type,
7462                lane_configuration,
7463                mapem_configuration,
7464            }
7465        }
7466    }
7467    #[doc = "*"]
7468    #[doc = " * This DF shall contain a list of @ref RoadConfigurationSection."]
7469    #[doc = " * "]
7470    #[doc = " * @category: Road Topology information"]
7471    #[doc = " * @revision: Created in V2.2.1"]
7472    #[doc = " "]
7473    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7474    #[rasn(delegate, size("1..=8", extensible))]
7475    pub struct RoadConfigurationSectionList(pub SequenceOf<RoadConfigurationSection>);
7476    #[doc = "* "]
7477    #[doc = " * This DF provides the basic topological definition of a road section."]
7478    #[doc = " *"]
7479    #[doc = " * It shall include the following components: "]
7480    #[doc = " * "]
7481    #[doc = " * @field startingPointSection: the position of the starting point of the section. "]
7482    #[doc = " * "]
7483    #[doc = " * @field lengthOfSection: the optional length of the section along the road profile (i.e. including curves)."]
7484    #[doc = " * "]
7485    #[doc = " * @field endingPointSection: the optional position of the ending point of the section. "]
7486    #[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."]
7487    #[doc = " *"]
7488    #[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. "]
7489    #[doc = " * "]
7490    #[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. "]
7491    #[doc = " *"]
7492    #[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). "]
7493    #[doc = " * "]
7494    #[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."]
7495    #[doc = " *"]
7496    #[doc = " * @category: Road topology information"]
7497    #[doc = " * @revision: Created in V2.2.1"]
7498    #[doc = ""]
7499    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7500    #[rasn(automatic_tags)]
7501    #[non_exhaustive]
7502    pub struct RoadSectionDefinition {
7503        #[rasn(identifier = "startingPointSection")]
7504        pub starting_point_section: GeoPosition,
7505        #[rasn(identifier = "lengthOfSection")]
7506        pub length_of_section: Option<StandardLength2B>,
7507        #[rasn(identifier = "endingPointSection")]
7508        pub ending_point_section: Option<GeoPosition>,
7509        #[rasn(identifier = "connectedPaths")]
7510        pub connected_paths: PathReferences,
7511        #[rasn(identifier = "includedPaths")]
7512        pub included_paths: PathReferences,
7513        #[rasn(identifier = "isEventZoneIncluded")]
7514        pub is_event_zone_included: bool,
7515        #[rasn(identifier = "isEventZoneConnected")]
7516        pub is_event_zone_connected: bool,
7517    }
7518    impl RoadSectionDefinition {
7519        pub fn new(
7520            starting_point_section: GeoPosition,
7521            length_of_section: Option<StandardLength2B>,
7522            ending_point_section: Option<GeoPosition>,
7523            connected_paths: PathReferences,
7524            included_paths: PathReferences,
7525            is_event_zone_included: bool,
7526            is_event_zone_connected: bool,
7527        ) -> Self {
7528            Self {
7529                starting_point_section,
7530                length_of_section,
7531                ending_point_section,
7532                connected_paths,
7533                included_paths,
7534                is_event_zone_included,
7535                is_event_zone_connected,
7536            }
7537        }
7538    }
7539    #[doc = "* "]
7540    #[doc = " * This DE indicates an ordinal number that represents the position of a component in the list @ref RoadConfigurationSectionList. "]
7541    #[doc = " *"]
7542    #[doc = " * The value shall be set to:"]
7543    #[doc = " * - `0`     - if no road section is identified"]
7544    #[doc = " * - `1..8`  - for instances 1..8 of @ref RoadConfigurationSectionList "]
7545    #[doc = " *"]
7546    #[doc = " * @category: Road topology information"]
7547    #[doc = " * @revision: Created in V2.2.1"]
7548    #[doc = " "]
7549    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7550    #[rasn(delegate, value("0..=8", extensible))]
7551    pub struct RoadSectionId(pub Integer);
7552    #[doc = "*"]
7553    #[doc = " * This DF represents a unique id for a road segment"]
7554    #[doc = " *"]
7555    #[doc = " * It shall include the following components: "]
7556    #[doc = " *"]
7557    #[doc = " * @field region: the optional identifier of the entity that is responsible for the region in which the road segment is placed."]
7558    #[doc = " * It is the duty of that entity to guarantee that the @ref Id is unique within the region."]
7559    #[doc = " *"]
7560    #[doc = " * @field id: the identifier of the road segment."]
7561    #[doc = " *"]
7562    #[doc = " * @note: when the component region is present, the RoadSegmentReferenceId is guaranteed to be globally unique."]
7563    #[doc = " * @category: GeoReference information"]
7564    #[doc = " * @revision: created in V2.1.1"]
7565    #[doc = " "]
7566    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7567    #[rasn(automatic_tags)]
7568    pub struct RoadSegmentReferenceId {
7569        pub region: Option<Identifier2B>,
7570        pub id: Identifier2B,
7571    }
7572    impl RoadSegmentReferenceId {
7573        pub fn new(region: Option<Identifier2B>, id: Identifier2B) -> Self {
7574            Self { region, id }
7575        }
7576    }
7577    #[doc = "*"]
7578    #[doc = " * This DE indicates the type of a road segment."]
7579    #[doc = " * "]
7580    #[doc = " * The value shall be set to:"]
7581    #[doc = " * - 0 `urban-NoStructuralSeparationToOppositeLanes`       - for an urban road with no structural separation between lanes carrying traffic in opposite directions,"]
7582    #[doc = " * - 1 `urban-WithStructuralSeparationToOppositeLanes`     - for an urban road with structural separation between lanes carrying traffic in opposite directions,"]
7583    #[doc = " * - 2 `nonUrban-NoStructuralSeparationToOppositeLanes`    - for an non urban road with no structural separation between lanes carrying traffic in opposite directions,"]
7584    #[doc = " * - 3 `nonUrban-WithStructuralSeparationToOppositeLanes`  - for an non urban road with structural separation between lanes carrying traffic in opposite directions."]
7585    #[doc = " *"]
7586    #[doc = " * @category: Road Topology Information"]
7587    #[doc = " * @revision: Editorial update in V2.1.1"]
7588    #[doc = " "]
7589    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7590    #[rasn(enumerated)]
7591    pub enum RoadType {
7592        #[rasn(identifier = "urban-NoStructuralSeparationToOppositeLanes")]
7593        urban_NoStructuralSeparationToOppositeLanes = 0,
7594        #[rasn(identifier = "urban-WithStructuralSeparationToOppositeLanes")]
7595        urban_WithStructuralSeparationToOppositeLanes = 1,
7596        #[rasn(identifier = "nonUrban-NoStructuralSeparationToOppositeLanes")]
7597        nonUrban_NoStructuralSeparationToOppositeLanes = 2,
7598        #[rasn(identifier = "nonUrban-WithStructuralSeparationToOppositeLanes")]
7599        nonUrban_WithStructuralSeparationToOppositeLanes = 3,
7600    }
7601    #[doc = "*"]
7602    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `roadworks`."]
7603    #[doc = " * "]
7604    #[doc = "The value shall be set to:"]
7605    #[doc = " * - 0 `unavailable`                 - in case further detailed information on roadworks is unavailable,"]
7606    #[doc = " * - 1 `roadOrCarriagewayClosure`    - in case roadworks are ongoing which comprise the closure of the entire road or of one entire carriageway,"]
7607    #[doc = " * - 2 `roadMarkingWork-deprecated`  - deprecated since covered by 3 or 4,"]
7608    #[doc = " * - 3 `movingLaneClosure`           - in case moving roadworks are ongoing, which comprise the closure of a lane,"]
7609    #[doc = " * - 4 `stationaryLaneClosure`       - in case stationary roadworks are ongoing, which comprise the closure of one or multiple lanes but not of the carriageway/road,"]
7610    #[doc = " * - 5 `streetCleaning-deprecated`   - deprecated since not pertinent to roadworks and already covered by SlowVehicleSubCauseCode,"]
7611    #[doc = " * - 6 `winterService-deprecated`    - deprecated since not pertinent to roadworks and already covered by SlowVehicleSubCauseCode,"]
7612    #[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, "]
7613    #[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, "]
7614    #[doc = " * - 9 `dismantlingPhase`            - in case the work zone is being dismantled after finished works, which comprised the closure of one or multiple lanes "]
7615    #[doc = "                                       but the carriageway/road was not closed,"]
7616    #[doc = " * - 10 `carriagewayCrossover`       - in case the work zone includes lanes that are re-directed to another carriageway. "]
7617    #[doc = " * - 11-255                          - are reserved for future usage."]
7618    #[doc = " *"]
7619    #[doc = " * @category: Traffic information"]
7620    #[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"]
7621    #[doc = " "]
7622    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7623    #[rasn(delegate, value("0..=255"))]
7624    pub struct RoadworksSubCauseCode(pub u8);
7625    #[doc = "*"]
7626    #[doc = " * This DE indicates the driving automation level as defined in SAE J3016 [26]."]
7627    #[doc = " *"]
7628    #[doc = " * @category: Vehicle information"]
7629    #[doc = " * @revision: created in V2.3.1"]
7630    #[doc = ""]
7631    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7632    #[rasn(delegate, value("0..=5"))]
7633    pub struct SaeAutomationLevel(pub u8);
7634    #[doc = "*"]
7635    #[doc = " * This DF provides the safe distance indication of a traffic participant with other traffic participant(s)."]
7636    #[doc = " *"]
7637    #[doc = " * It shall include the following components: "]
7638    #[doc = " * "]
7639    #[doc = " * @field subjectStation: optionally indicates one \"other\" traffic participant identified by its ITS-S."]
7640    #[doc = " *  "]
7641    #[doc = " * @field safeDistanceIndicator: indicates whether the distance between the ego ITS-S and the traffic participant(s) is safe."]
7642    #[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. "]
7643    #[doc = " *"]
7644    #[doc = " * @field timeToCollision: optionally indicated the time-to-collision calculated as sqrt(LaDi^2 + LoDi^2 + VDi^2/relative speed "]
7645    #[doc = " * and represented in  the  nearest 100  ms. This component may be present only if subjectStation is present. "]
7646    #[doc = " *"]
7647    #[doc = " * @note: the abbreviations used are Lateral Distance (LaD),  Longitudinal Distance (LoD) and Vertical Distance (VD) "]
7648    #[doc = " * and their respective  thresholds, Minimum  Safe  Lateral  Distance (MSLaD), Minimum  Safe  Longitudinal Distance  (MSLoD),  and  Minimum  Safe Vertical Distance (MSVD)."]
7649    #[doc = " *"]
7650    #[doc = " * @category: Traffic information, Kinematic information"]
7651    #[doc = " * @revision: created in V2.1.1"]
7652    #[doc = " "]
7653    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7654    #[rasn(automatic_tags)]
7655    #[non_exhaustive]
7656    pub struct SafeDistanceIndication {
7657        #[rasn(identifier = "subjectStation")]
7658        pub subject_station: Option<StationId>,
7659        #[rasn(identifier = "safeDistanceIndicator")]
7660        pub safe_distance_indicator: SafeDistanceIndicator,
7661        #[rasn(identifier = "timeToCollision")]
7662        pub time_to_collision: Option<DeltaTimeTenthOfSecond>,
7663    }
7664    impl SafeDistanceIndication {
7665        pub fn new(
7666            subject_station: Option<StationId>,
7667            safe_distance_indicator: SafeDistanceIndicator,
7668            time_to_collision: Option<DeltaTimeTenthOfSecond>,
7669        ) -> Self {
7670            Self {
7671                subject_station,
7672                safe_distance_indicator,
7673                time_to_collision,
7674            }
7675        }
7676    }
7677    #[doc = "*"]
7678    #[doc = " * This DE indicates if a distance is safe. "]
7679    #[doc = " *"]
7680    #[doc = " * The value shall be set to:"]
7681    #[doc = " * -  `FALSE`  if  the triple  {LaD,  LoD, VD} < {MSLaD, MSLoD, MSVD} is simultaneously  satisfied with confidence level of  90 % or  more, "]
7682    #[doc = " * -  `TRUE` otherwise. "]
7683    #[doc = " *"]
7684    #[doc = " * @note: the abbreviations used are Lateral Distance (LaD),  Longitudinal Distance (LoD) and Vertical Distance (VD) "]
7685    #[doc = " * and their respective  thresholds, Minimum  Safe  Lateral  Distance (MSLaD), Minimum  Safe  Longitudinal Distance  (MSLoD),  and  Minimum  Safe Vertical Distance (MSVD)."]
7686    #[doc = " *"]
7687    #[doc = " * @category: Traffic information, Kinematic information"]
7688    #[doc = " * @revision: Created in V2.1.1"]
7689    #[doc = ""]
7690    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7691    #[rasn(delegate)]
7692    pub struct SafeDistanceIndicator(pub bool);
7693    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7694    #[rasn(delegate, value("0..=4095"))]
7695    pub struct SemiAxisLength(pub u16);
7696    #[doc = "* "]
7697    #[doc = " * This DE indicates the type of sensor."]
7698    #[doc = " * "]
7699    #[doc = " * The value shall be set to:"]
7700    #[doc = " * - 0  `undefined`         - in case the sensor type is undefined, "]
7701    #[doc = " * - 1  `radar`             - in case the sensor is a radar,"]
7702    #[doc = " * - 2  `lidar`             - in case the sensor is a lidar,"]
7703    #[doc = " * - 3  `monovideo`         - in case the sensor is mono video,"]
7704    #[doc = " * - 4  `stereovision`      - in case the sensor is stereo vision,"]
7705    #[doc = " * - 5  `nightvision`       - in case the sensor supports night vision, using e.g. infrared illumination or thermal imaging,"]
7706    #[doc = " * - 6  `ultrasonic`        - in case the sensor is ultrasonic,"]
7707    #[doc = " * - 7  `pmd`               - in case the sensor is photonic mixing device,"]
7708    #[doc = " * - 8  `inductionLoop`     - in case the sensor is an induction loop,"]
7709    #[doc = " * - 9  `sphericalCamera`   - in case the sensor is a spherical camera,"]
7710    #[doc = " * - 10 `uwb`               - in case the sensor is ultra wide band,"]
7711    #[doc = " * - 11 `acoustic`          - in case the sensor is acoustic,"]
7712    #[doc = " * - 12 `localAggregation`  - in case the information is provided by a system that aggregates information from different local sensors. Aggregation may include fusion,"]
7713    #[doc = " * - 13 `itsAggregation`    - in case the information is provided by a system that aggregates information from other received ITS messages,"]
7714    #[doc = " * - 14 `rfid`              - in case the sensor is radio frequency identification using a passive or active (e.g. Bluetooth, W-LAN) technology. "]
7715    #[doc = " * - 15-31                  - are reserved for future usage."]
7716    #[doc = " *"]
7717    #[doc = " * @category: Sensing Information"]
7718    #[doc = " * @revision: created in V2.1.1, description of value 5 changed and value 14 added in V2.3.1"]
7719    #[doc = ""]
7720    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7721    #[rasn(delegate, value("0..=31"))]
7722    pub struct SensorType(pub u8);
7723    #[doc = "* "]
7724    #[doc = " * This DE indicates the type of sensor(s)."]
7725    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
7726    #[doc = " * "]
7727    #[doc = " * - 0  `undefined`         - in case the sensor type is undefined. "]
7728    #[doc = " * - 1  `radar`             - in case the sensor is a radar,"]
7729    #[doc = " * - 2  `lidar`             - in case the sensor is a lidar,"]
7730    #[doc = " * - 3  `monovideo`         - in case the sensor is mono video,"]
7731    #[doc = " * - 4  `stereovision`      - in case the sensor is stereo vision,"]
7732    #[doc = " * - 5  `nightvision`       - in case the sensor supports night vision, using e.g. infrared illumination or thermal imaging,"]
7733    #[doc = " * - 6  `ultrasonic`        - in case the sensor is ultrasonic,"]
7734    #[doc = " * - 7  `pmd`               - in case the sensor is photonic mixing device,"]
7735    #[doc = " * - 8  `inductionLoop`     - in case the sensor is an induction loop,"]
7736    #[doc = " * - 9  `sphericalCamera`   - in case the sensor is a spherical camera,"]
7737    #[doc = " * - 10 `uwb`               - in case the sensor is ultra wide band,"]
7738    #[doc = " * - 11 `acoustic`          - in case the sensor is acoustic,"]
7739    #[doc = " * - 12 `localAggregation`  - in case the information is provided by a system that aggregates information from different local sensors. Aggregation may include fusion,"]
7740    #[doc = " * - 13 `itsAggregation`    - in case the information is provided by a system that aggregates information from other received ITS messages,"]
7741    #[doc = " * - 14 `rfid`              - in case the sensor is radio frequency identification using a passive or active (e.g. Bluetooth, W-LAN) technology. "]
7742    #[doc = " * - 15                     - reserved for future usage."]
7743    #[doc = " * "]
7744    #[doc = " * @note: If all bits are set to 0, then no sensor type is used"]
7745    #[doc = " *"]
7746    #[doc = " * @category: Sensing Information"]
7747    #[doc = " * @revision: created in V2.2.1, description of value 5 changed and value 14 added in V2.3.1"]
7748    #[doc = ""]
7749    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7750    #[rasn(delegate, size("16", extensible))]
7751    pub struct SensorTypes(pub BitString);
7752    #[doc = "*"]
7753    #[doc = " * This DE represents a sequence number."]
7754    #[doc = " * "]
7755    #[doc = " * @category: Basic information"]
7756    #[doc = " * @revision: V1.3.1"]
7757    #[doc = " "]
7758    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7759    #[rasn(delegate, value("0..=65535"))]
7760    pub struct SequenceNumber(pub u16);
7761    #[doc = "* "]
7762    #[doc = " * This DF shall contain a list of DF @ref CartesianPosition3d."]
7763    #[doc = " * "]
7764    #[doc = " * @category: GeoReference information"]
7765    #[doc = " * @revision: created in V2.1.1"]
7766    #[doc = " "]
7767    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7768    #[rasn(delegate, size("1..=16", extensible))]
7769    pub struct SequenceOfCartesianPosition3d(pub SequenceOf<CartesianPosition3d>);
7770    #[doc = "* "]
7771    #[doc = " * The DF contains a list of DE @ref Identifier1B."]
7772    #[doc = " *"]
7773    #[doc = " * @category: Basic information"]
7774    #[doc = " * @revision: created in V2.1.1"]
7775    #[doc = ""]
7776    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7777    #[rasn(delegate, size("1..=128", extensible))]
7778    pub struct SequenceOfIdentifier1B(pub SequenceOf<Identifier1B>);
7779    #[doc = "*"]
7780    #[doc = " * The DF contains a list of DF @ref SafeDistanceIndication."]
7781    #[doc = " *"]
7782    #[doc = " * @category: Traffic information, Kinematic information"]
7783    #[doc = " * @revision: created in V2.1.1"]
7784    #[doc = ""]
7785    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7786    #[rasn(delegate, size("1..=8", extensible))]
7787    pub struct SequenceOfSafeDistanceIndication(pub SequenceOf<SafeDistanceIndication>);
7788    #[doc = "*"]
7789    #[doc = " * The DF shall contain a list of DF @ref TrajectoryInterceptionIndication."]
7790    #[doc = " *"]
7791    #[doc = " * @category: Traffic information, Kinematic information"]
7792    #[doc = " * @revision: created in V2.1.1"]
7793    #[doc = ""]
7794    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7795    #[rasn(delegate, size("1..=8", extensible))]
7796    pub struct SequenceOfTrajectoryInterceptionIndication(
7797        pub SequenceOf<TrajectoryInterceptionIndication>,
7798    );
7799    #[doc = "*"]
7800    #[doc = " * This DF provides the definition of a geographical area or volume, based on different options."]
7801    #[doc = " *"]
7802    #[doc = " * It is a choice of the following components: "]
7803    #[doc = " *"]
7804    #[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."]
7805    #[doc = " *"]
7806    #[doc = " * @field circular: definition of an area of circular shape or a right circular cylinder."]
7807    #[doc = " *"]
7808    #[doc = " * @field polygonal: definition of an area of polygonal shape or a right prism."]
7809    #[doc = " *"]
7810    #[doc = " * @field elliptical: definition of an area of elliptical shape or a right elliptical cylinder."]
7811    #[doc = " *"]
7812    #[doc = " * @field radial: definition of a radial shape."]
7813    #[doc = " *"]
7814    #[doc = " * @field radialList: definition of list of radial shapes."]
7815    #[doc = " *"]
7816    #[doc = " * @category: GeoReference information"]
7817    #[doc = " * @revision: Created in V2.1.1"]
7818    #[doc = " "]
7819    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7820    #[rasn(choice, automatic_tags)]
7821    #[non_exhaustive]
7822    pub enum Shape {
7823        rectangular(RectangularShape),
7824        circular(CircularShape),
7825        polygonal(PolygonalShape),
7826        elliptical(EllipticalShape),
7827        radial(RadialShape),
7828        radialShapes(RadialShapes),
7829    }
7830    #[doc = "*"]
7831    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `signalViolation`."]
7832    #[doc = " * "]
7833    #[doc = " * The value shall be set to:"]
7834    #[doc = " * - 0 `unavailable`               - in case further detailed information on signal violation event is unavailable,"]
7835    #[doc = " * - 1 `stopSignViolation`         - in case a stop sign violation is detected,"]
7836    #[doc = " * - 2 `trafficLightViolation`     - in case a traffic light violation is detected,"]
7837    #[doc = " * - 3 `turningRegulationViolation`- in case a turning regulation violation is detected."]
7838    #[doc = " * - 4-255                         - are reserved for future usage."]
7839    #[doc = " *"]
7840    #[doc = " * @category: Traffic information"]
7841    #[doc = " * @revision: V1.3.1"]
7842    #[doc = " "]
7843    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7844    #[rasn(delegate, value("0..=255"))]
7845    pub struct SignalViolationSubCauseCode(pub u8);
7846    #[doc = "*"]
7847    #[doc = " * This DE represents the sub cause codes of the @ref CauseCode \"slowVehicle\"."]
7848    #[doc = " * "]
7849    #[doc = " * The value shall be set to:"]
7850    #[doc = " * - 0 `unavailable`                            - in case further detailed information on slow vehicle driving event is unavailable,"]
7851    #[doc = " * - 1 `maintenanceVehicle`                     - in case of a slow driving maintenance vehicle on the road (incl. winter maintenance without detailed status),"]
7852    #[doc = " * - 2 `vehiclesSlowingToLookAtAccident`        - in case vehicle is temporally slowing down to look at accident, spot, etc.,"]
7853    #[doc = " * - 3 `abnormalLoad`                           - in case an abnormal loaded vehicle is driving slowly on the road,"]
7854    #[doc = " * - 4 `abnormalWideLoad`                       - in case an abnormal wide load vehicle is driving slowly on the road,"]
7855    #[doc = " * - 5 `convoy`                                 - in case of slow driving convoy on the road,"]
7856    #[doc = " * - 6 `winterMaintenanceSnowplough             - in case of slow driving snow plough on the road,"]
7857    #[doc = " * - 7 `deicing-deprecated`                     - deprecated since covered by 8 `winterMaintenanceAdhesionImprovement`,"]
7858    #[doc = " * - 8 `winterMaintenanceAdhesionImprovement`   - in case of a slow driving winter maintenance vehicle applying measures to improve the driving conditions "]
7859    #[doc = "                                                  and adhesion on winter roads, including improving grip (by applying sand or grit), de-icing (by applying salt or brine),"]
7860    #[doc = "                                                  or anti-icing (by applying brine to prevent buildup of ice and snow). "]
7861    #[doc = " * - 9-255                                      - are reserved for future usage."]
7862    #[doc = " * "]
7863    #[doc = " * @category: Traffic information"]
7864    #[doc = " * @revision: V1.3.1, value 7 deprecated and name of 6 and 8 changed and semantics of 8 refined in V2.4.1"]
7865    #[doc = " "]
7866    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7867    #[rasn(delegate, value("0..=255"))]
7868    pub struct SlowVehicleSubCauseCode(pub u8);
7869    #[doc = "*"]
7870    #[doc = " * The DE indicates if a vehicle is carrying goods in the special transport conditions."]
7871    #[doc = " *"]
7872    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
7873    #[doc = " * - 0 `heavyLoad`        - the vehicle is carrying goods with heavy load,"]
7874    #[doc = " * - 1 `excessWidth`      - the vehicle is carrying goods in excess of width,"]
7875    #[doc = " * - 2 `excessLength`     - the vehicle is carrying goods in excess of length,"]
7876    #[doc = " * - 3 `excessHeight`     - the vehicle is carrying goods in excess of height."]
7877    #[doc = " *"]
7878    #[doc = " * Otherwise, the corresponding bit shall be set to 0."]
7879    #[doc = " * @category Vehicle information"]
7880    #[doc = " * @revision: Description revised in V2.1.1"]
7881    #[doc = " "]
7882    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7883    #[rasn(delegate)]
7884    pub struct SpecialTransportType(pub FixedBitString<4usize>);
7885    #[doc = "*"]
7886    #[doc = " * This DF represents the speed and associated confidence value."]
7887    #[doc = " *"]
7888    #[doc = " * It shall include the following components: "]
7889    #[doc = " * "]
7890    #[doc = " * @field speedValue: the speed value."]
7891    #[doc = " * "]
7892    #[doc = " * @field speedConfidence: the confidence value of the speed value."]
7893    #[doc = " *"]
7894    #[doc = " * @category: Kinematic information"]
7895    #[doc = " * @revision: V1.3.1"]
7896    #[doc = " "]
7897    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7898    #[rasn(automatic_tags)]
7899    pub struct Speed {
7900        #[rasn(identifier = "speedValue")]
7901        pub speed_value: SpeedValue,
7902        #[rasn(identifier = "speedConfidence")]
7903        pub speed_confidence: SpeedConfidence,
7904    }
7905    impl Speed {
7906        pub fn new(speed_value: SpeedValue, speed_confidence: SpeedConfidence) -> Self {
7907            Self {
7908                speed_value,
7909                speed_confidence,
7910            }
7911        }
7912    }
7913    #[doc = "*"]
7914    #[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 %."]
7915    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
7916    #[doc = " * "]
7917    #[doc = " * The value shall be set to:"]
7918    #[doc = " * - `n` (`n > 0` and `n < 126`) if the confidence value is equal to or less than n * 0,01 m/s."]
7919    #[doc = " * - `126` if the confidence value is out of range, i.e. greater than 1,25 m/s,"]
7920    #[doc = " * - `127` if the confidence value information is not available."]
7921    #[doc = " *  "]
7922    #[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:"]
7923    #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
7924    #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
7925    #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
7926    #[doc = " * In all 3 cases above, the speed value may be valid and used by the application."]
7927    #[doc = " * "]
7928    #[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 "]
7929    #[doc = " * and therefore cannot be trusted. Such is not useful for the application."]
7930    #[doc = " *"]
7931    #[doc = " * @unit: 0,01 m/s"]
7932    #[doc = " * @category: Vehicle information"]
7933    #[doc = " * @revision: Description revised in V2.1.1 "]
7934    #[doc = " "]
7935    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7936    #[rasn(delegate, value("1..=127"))]
7937    pub struct SpeedConfidence(pub u8);
7938    #[doc = "*"]
7939    #[doc = " * This DE represents a speed limitation applied to a geographical position, a road section or a geographical region."]
7940    #[doc = " * "]
7941    #[doc = " * @unit: km/h"]
7942    #[doc = " * @category: Infrastructure information, Traffic information"]
7943    #[doc = " * @revision: V1.3.1"]
7944    #[doc = " "]
7945    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7946    #[rasn(delegate, value("1..=255"))]
7947    pub struct SpeedLimit(pub u8);
7948    #[doc = "*"]
7949    #[doc = " * This DE represents a speed value, i.e. the magnitude of the velocity-vector. "]
7950    #[doc = " *"]
7951    #[doc = " * The value shall be set to:"]
7952    #[doc = " * - `0` in a standstill situation."]
7953    #[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,"]
7954    #[doc = " * - `16 382` for speed values greater than 163,81 m/s,"]
7955    #[doc = " * - `16 383` if the speed accuracy information is not available."]
7956    #[doc = " * "]
7957    #[doc = " * @note: the definition of standstill is out of scope of the present document."]
7958    #[doc = " *"]
7959    #[doc = " * @unit: 0,01 m/s"]
7960    #[doc = " * @category: Kinematic information"]
7961    #[doc = " * @revision: Description revised in V2.1.1 (the meaning of 16382 has changed slightly) "]
7962    #[doc = ""]
7963    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7964    #[rasn(delegate, value("0..=16383"))]
7965    pub struct SpeedValue(pub u16);
7966    #[doc = "*"]
7967    #[doc = " * This DF  provides the  indication of  change in stability."]
7968    #[doc = " *"]
7969    #[doc = " * It shall include the following components: "]
7970    #[doc = " * "]
7971    #[doc = " * @field lossProbability: the probability of stability loss. "]
7972    #[doc = " * "]
7973    #[doc = " * @field actionDeltaTime: the period over which the the probability of stability loss is estimated. "]
7974    #[doc = " *"]
7975    #[doc = " * @category: Kinematic information"]
7976    #[doc = " * @revision: V2.1.1"]
7977    #[doc = " "]
7978    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7979    #[rasn(automatic_tags)]
7980    #[non_exhaustive]
7981    pub struct StabilityChangeIndication {
7982        #[rasn(identifier = "lossProbability")]
7983        pub loss_probability: StabilityLossProbability,
7984        #[rasn(identifier = "actionDeltaTime")]
7985        pub action_delta_time: DeltaTimeTenthOfSecond,
7986    }
7987    impl StabilityChangeIndication {
7988        pub fn new(
7989            loss_probability: StabilityLossProbability,
7990            action_delta_time: DeltaTimeTenthOfSecond,
7991        ) -> Self {
7992            Self {
7993                loss_probability,
7994                action_delta_time,
7995            }
7996        }
7997    }
7998    #[doc = "*"]
7999    #[doc = " * This DE indicates the estimated probability of a stability level and conversely also the probability of a stability loss."]
8000    #[doc = " *"]
8001    #[doc = " * The value shall be set to:"]
8002    #[doc = " * - `0` to indicate an estimated probability of a loss of stability of 0 %, i.e. \"stable\", "]
8003    #[doc = " * - `n` (`n > 0` and `n < 50`) to indicate the actual stability level,"]
8004    #[doc = " * - `50` to indicate a estimated probability of a loss of stability of 100 %, i.e. \"total loss of stability\","]
8005    #[doc = " * - the values between 51 and 62 are reserved for future use,"]
8006    #[doc = " * - `63`: this value indicates that the information is unavailable."]
8007    #[doc = " *"]
8008    #[doc = " * @unit: 2 %"]
8009    #[doc = " * @category: Kinematic information"]
8010    #[doc = " * @revision: Created in V2.1.1"]
8011    #[doc = " "]
8012    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8013    #[rasn(delegate, value("0..=63"))]
8014    pub struct StabilityLossProbability(pub u8);
8015    #[doc = "*"]
8016    #[doc = " * The DE represents length as a measure of distance between points or as a dimension of an object or shape. "]
8017    #[doc = " *"]
8018    #[doc = " * @unit: 0,1 metre"]
8019    #[doc = " * @category: Basic information"]
8020    #[doc = " * @revision: Created in V2.1.1"]
8021    #[doc = " "]
8022    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8023    #[rasn(delegate, value("0..=4095"))]
8024    pub struct StandardLength12b(pub u16);
8025    #[doc = "*"]
8026    #[doc = " * The DE represents length as a measure of distance between points or as a dimension of an object. "]
8027    #[doc = " *"]
8028    #[doc = " * @unit: 0,1 metre"]
8029    #[doc = " * @category: Basic information"]
8030    #[doc = " * @revision: Created in V2.1.1"]
8031    #[doc = " "]
8032    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8033    #[rasn(delegate, value("0..=255"))]
8034    pub struct StandardLength1B(pub u8);
8035    #[doc = "*"]
8036    #[doc = " * The DE represents length as a measure of distance between points or as a dimension of an object.  "]
8037    #[doc = " *"]
8038    #[doc = " * @unit: 0,1 metre"]
8039    #[doc = " * @category: Basic information"]
8040    #[doc = " * @revision: Created in V2.1.1"]
8041    #[doc = " "]
8042    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8043    #[rasn(delegate, value("0..=65535"))]
8044    pub struct StandardLength2B(pub u16);
8045    #[doc = "*"]
8046    #[doc = " * The DE represents length as a measure of distance between points. "]
8047    #[doc = " *"]
8048    #[doc = " * The value shall be set to:"]
8049    #[doc = " * - 0 `lessThan50m`   - for distances below 50 m, "]
8050    #[doc = " * - 1 `lessThan100m`  - for distances below 100 m,"]
8051    #[doc = " * - 2 `lessThan200m`  - for distances below 200 m, "]
8052    #[doc = " * - 3 `lessThan500m`  - for distances below 300 m, "]
8053    #[doc = " * - 4 `lessThan1000m` - for distances below 1 000 m,"]
8054    #[doc = " * - 5 `lessThan5km`   - for distances below 5 000 m, "]
8055    #[doc = " * - 6 `lessThan10km`  - for distances below 10 000 m, "]
8056    #[doc = " * - 7 `over10km`      - for distances over 10 000 m."]
8057    #[doc = " *"]
8058    #[doc = " * @category: GeoReference information"]
8059    #[doc = " * @revision: Created in V2.1.1 from RelevanceDistance"]
8060    #[doc = " "]
8061    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8062    #[rasn(enumerated)]
8063    pub enum StandardLength3b {
8064        lessThan50m = 0,
8065        lessThan100m = 1,
8066        lessThan200m = 2,
8067        lessThan500m = 3,
8068        lessThan1000m = 4,
8069        lessThan5km = 5,
8070        lessThan10km = 6,
8071        over10km = 7,
8072    }
8073    #[doc = "*"]
8074    #[doc = " * The DE represents length as a measure of distance between points or as a dimension of an object. "]
8075    #[doc = " *"]
8076    #[doc = " * @unit: 0,1 metre"]
8077    #[doc = " * @category: Basic information"]
8078    #[doc = " * @revision: Created in V2.1.1"]
8079    #[doc = " "]
8080    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8081    #[rasn(delegate, value("0..=511"))]
8082    pub struct StandardLength9b(pub u16);
8083    #[doc = "*"]
8084    #[doc = " * This DE represents the identifier of an ITS-S."]
8085    #[doc = " * The ITS-S ID may be a pseudonym. It may change over space and/or over time."]
8086    #[doc = " *"]
8087    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref StationId instead."]
8088    #[doc = " * @category: Basic information"]
8089    #[doc = " * @revision: V1.3.1"]
8090    #[doc = " "]
8091    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8092    #[rasn(delegate, value("0..=4294967295"))]
8093    pub struct StationID(pub u32);
8094    #[doc = "*"]
8095    #[doc = " * This DE represents the identifier of an ITS-S."]
8096    #[doc = " * The ITS-S ID may be a pseudonym. It may change over space and/or over time."]
8097    #[doc = " *"]
8098    #[doc = " * @category: Basic information"]
8099    #[doc = " * @revision: Created in V2.1.1 based on @ref StationID"]
8100    #[doc = " "]
8101    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8102    #[rasn(delegate, value("0..=4294967295"))]
8103    pub struct StationId(pub u32);
8104    #[doc = "*"]
8105    #[doc = " * This DE represents the type of technical context the ITS-S is integrated in."]
8106    #[doc = " * The station type depends on the integration environment of ITS-S into vehicle, mobile devices or at infrastructure."]
8107    #[doc = " * "]
8108    #[doc = " * The value shall be set to the corresponding value of the integration environment of DE TrafficParticipantType"]
8109    #[doc = " * "]
8110    #[doc = " * @category: Communication information."]
8111    #[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."]
8112    #[doc = " "]
8113    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8114    #[rasn(delegate)]
8115    pub struct StationType(pub TrafficParticipantType);
8116    #[doc = "*"]
8117    #[doc = " * This DE indicates the duration in minutes since which something is stationary."]
8118    #[doc = " * "]
8119    #[doc = " * The value shall be set to:"]
8120    #[doc = " * - 0 `lessThan1Minute`         - for being stationary since less than 1 minute, "]
8121    #[doc = " * - 1 `lessThan2Minutes`        - for being stationary since less than 2 minute and for equal to or more than 1 minute,"]
8122    #[doc = " * - 2 `lessThan15Minutes`       - for being stationary since less than 15 minutes and for equal to or more than 1 minute,"]
8123    #[doc = " * - 3 `equalOrGreater15Minutes` - for being stationary since equal to or more than 15 minutes."]
8124    #[doc = " *"]
8125    #[doc = " * @category: Kinematic information"]
8126    #[doc = " * @revision: Created in V2.1.1"]
8127    #[doc = " "]
8128    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8129    #[rasn(enumerated)]
8130    pub enum StationarySince {
8131        lessThan1Minute = 0,
8132        lessThan2Minutes = 1,
8133        lessThan15Minutes = 2,
8134        equalOrGreater15Minutes = 3,
8135    }
8136    #[doc = "*"]
8137    #[doc = " * This DE provides the value of the sub cause codes of the @ref CauseCode \"stationaryVehicle\". "]
8138    #[doc = " * "]
8139    #[doc = " * The value shall be set to:"]
8140    #[doc = " * - 0 `unavailable`             - in case further detailed information on stationary vehicle is unavailable,"]
8141    #[doc = " * - 1 `humanProblem-deprecated` - deprecated since covered by DE HumanProblemSubCauseCode,"]
8142    #[doc = " * - 2 `vehicleBreakdown`        - in case stationary vehicle is due to vehicle break down,"]
8143    #[doc = " * - 3 `postCrash`               - in case stationary vehicle is caused by collision,"]
8144    #[doc = " * - 4 `publicTransportStop`     - in case public transport vehicle is stationary at bus stop,"]
8145    #[doc = " * - 5 `carryingDangerousGoods`  - in case the stationary vehicle is carrying dangerous goods,"]
8146    #[doc = " * - 6 `vehicleOnFire`           - in case of vehicle on fire."]
8147    #[doc = " * - 7-255 reserved for future usage."]
8148    #[doc = " *"]
8149    #[doc = " * @category: Traffic information"]
8150    #[doc = " * @revision: V1.3.1, value 6 added in V2.1.1, value 1 deprecated in V2.4.1"]
8151    #[doc = " "]
8152    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8153    #[rasn(delegate, value("0..=255"))]
8154    pub struct StationaryVehicleSubCauseCode(pub u8);
8155    #[doc = "*"]
8156    #[doc = " * This DF represents the steering wheel angle of the vehicle at certain point in time."]
8157    #[doc = " *"]
8158    #[doc = " * It shall include the following components: "]
8159    #[doc = " * "]
8160    #[doc = " * @field steeringWheelAngleValue: steering wheel angle value."]
8161    #[doc = " * "]
8162    #[doc = " * @field steeringWheelAngleConfidence: confidence value of the steering wheel angle value."]
8163    #[doc = " * "]
8164    #[doc = " * @category: Vehicle information"]
8165    #[doc = " * @revision: Created in V2.1.1"]
8166    #[doc = " "]
8167    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8168    #[rasn(automatic_tags)]
8169    pub struct SteeringWheelAngle {
8170        #[rasn(identifier = "steeringWheelAngleValue")]
8171        pub steering_wheel_angle_value: SteeringWheelAngleValue,
8172        #[rasn(identifier = "steeringWheelAngleConfidence")]
8173        pub steering_wheel_angle_confidence: SteeringWheelAngleConfidence,
8174    }
8175    impl SteeringWheelAngle {
8176        pub fn new(
8177            steering_wheel_angle_value: SteeringWheelAngleValue,
8178            steering_wheel_angle_confidence: SteeringWheelAngleConfidence,
8179        ) -> Self {
8180            Self {
8181                steering_wheel_angle_value,
8182                steering_wheel_angle_confidence,
8183            }
8184        }
8185    }
8186    #[doc = "*"]
8187    #[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 %."]
8188    #[doc = " * "]
8189    #[doc = " * The value shall be set to:"]
8190    #[doc = " * - `n` (`n > 0` and `n < 126`) if the confidence value is equal to or less than n x 1,5 degrees,"]
8191    #[doc = " * - `126` if the confidence value is out of range, i.e. greater than 187,5 degrees,"]
8192    #[doc = " * - `127` if the confidence value is not available."]
8193    #[doc = " * "]
8194    #[doc = " * @note: The fact that a steering wheel angle value is received with confidence value set to `unavailable(127)`"]
8195    #[doc = " * can be caused by several reasons, such as:"]
8196    #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
8197    #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
8198    #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
8199    #[doc = " * In all 3 cases above, the steering wheel angle value may be valid and used by the application."]
8200    #[doc = " * "]
8201    #[doc = " * If a steering wheel angle value is received and its confidence value is set to `outOfRange(126)`,"]
8202    #[doc = " * it means that the steering wheel angle value is not valid and therefore cannot be trusted."]
8203    #[doc = " * Such value is not useful for the application."]
8204    #[doc = " * "]
8205    #[doc = " * @unit: 1,5 degree"]
8206    #[doc = " * @category: Vehicle Information"]
8207    #[doc = " * @revision: Description revised in V2.1.1"]
8208    #[doc = ""]
8209    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8210    #[rasn(delegate, value("1..=127"))]
8211    pub struct SteeringWheelAngleConfidence(pub u8);
8212    #[doc = "*"]
8213    #[doc = " * This DE represents the steering wheel angle of the vehicle at certain point in time."]
8214    #[doc = " * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11."]
8215    #[doc = " * "]
8216    #[doc = " * The value shall be set to:"]
8217    #[doc = " * - `-511` if the steering wheel angle is equal to or greater than 511 x 1,5 degrees = 766,5 degrees to the right,"]
8218    #[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, "]
8219    #[doc = "      turning clockwise (i.e. to the right),"]
8220    #[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, "]
8221    #[doc = "      turning counter-clockwise (i.e. to the left),"]
8222    #[doc = " * - `511` if the steering wheel angle is greater than 510 x 1,5 degrees = 765 degrees to the left,"]
8223    #[doc = " * - `512` if information is not available."]
8224    #[doc = " *"]
8225    #[doc = " * @unit: 1,5 degree"]
8226    #[doc = " * @revision: Description revised in V2.1.1 (meaning of value 511 has changed slightly)."]
8227    #[doc = " "]
8228    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8229    #[rasn(delegate, value("-511..=512"))]
8230    pub struct SteeringWheelAngleValue(pub i16);
8231    #[doc = "* "]
8232    #[doc = " * This DE indicates the type of stored information."]
8233    #[doc = " *"]
8234    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
8235    #[doc = " * "]
8236    #[doc = " * - `0` undefined        - in case the stored information type is undefined. "]
8237    #[doc = " * - `1` staticDb         - in case the stored information type is a static database."]
8238    #[doc = " * - `2` dynamicDb        - in case the stored information type is a dynamic database"]
8239    #[doc = " * - `3` realTimeDb       - in case the stored information type is a real time updated database."]
8240    #[doc = " * - `4` map              - in case the stored information type is a road topology map."]
8241    #[doc = " * - Bits 5 to 7          - are reserved for future use."]
8242    #[doc = " *"]
8243    #[doc = " * @note: If all bits are set to 0, then no stored information type is used"]
8244    #[doc = " *"]
8245    #[doc = " * @category: Basic Information"]
8246    #[doc = " * @revision: created in V2.2.1"]
8247    #[doc = ""]
8248    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8249    #[rasn(delegate, size("8", extensible))]
8250    pub struct StoredInformationType(pub BitString);
8251    #[doc = "*"]
8252    #[doc = " * This DE indicates the generic sub cause of a detected event."]
8253    #[doc = " * "]
8254    #[doc = " * @note: The sub cause code value assignment varies based on value of @ref CauseCode."]
8255    #[doc = " *"]
8256    #[doc = " * @category: Traffic information"]
8257    #[doc = " * @revision: Description revised in V2.1.1 (this is  the generic sub cause type)"]
8258    #[doc = " "]
8259    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8260    #[rasn(delegate, value("0..=255"))]
8261    pub struct SubCauseCodeType(pub u8);
8262    #[doc = "*"]
8263    #[doc = " * This DE indicates a temperature value."]
8264    #[doc = ""]
8265    #[doc = " * The value shall be set to:"]
8266    #[doc = " * - `-60` for temperature equal to or less than -60 degrees C,"]
8267    #[doc = " * - `n` (`n > -60` and `n < 67`) for the actual temperature n in degrees C,"]
8268    #[doc = " * - `67` for temperature equal to or greater than 67 degrees C."]
8269    #[doc = " * "]
8270    #[doc = " * @unit: degrees Celsius"]
8271    #[doc = " * @category: Basic information"]
8272    #[doc = " * @revision: Editorial update in V2.1.1"]
8273    #[doc = " "]
8274    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8275    #[rasn(delegate, value("-60..=67"))]
8276    pub struct Temperature(pub i8);
8277    #[doc = "*"]
8278    #[doc = " * This DE represents the number of elapsed (TAI) milliseconds since the ITS Epoch. "]
8279    #[doc = " * The ITS epoch is `00:00:00.000 UTC, 1 January 2004`."]
8280    #[doc = " * \"Elapsed\" means that the true number of milliseconds is continuously counted without interruption,"]
8281    #[doc = " *  i.e. it is not altered by leap seconds, which occur in UTC."]
8282    #[doc = " * "]
8283    #[doc = " * @note: International Atomic Time (TAI) is the time reference coordinate on the basis of the readings of atomic clocks, "]
8284    #[doc = " * operated in accordance with the definition of the second, the unit of time of the International System of Units. "]
8285    #[doc = " * TAI is a continuous time scale. UTC has discontinuities, as it is occasionally adjusted by leap seconds. "]
8286    #[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, "]
8287    #[doc = " * further 5 leap seconds have been inserted in UTC."]
8288    #[doc = " * "]
8289    #[doc = " * EXAMPLE: The value for TimestampIts for 1 January 2007 00:00:00.000 UTC is `94 694 401 000` milliseconds,"]
8290    #[doc = " * which includes one leap second insertion since the ITS epoch."]
8291    #[doc = " * @unit: 0,001 s"]
8292    #[doc = " * @category: Basic information"]
8293    #[doc = " * @revision: Description revised in in V2.1.1"]
8294    #[doc = " "]
8295    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8296    #[rasn(delegate, value("0..=4398046511103"))]
8297    pub struct TimestampIts(pub u64);
8298    #[doc = "*"]
8299    #[doc = " * This DF represents one or more paths using @ref Path."]
8300    #[doc = " * "]
8301    #[doc = " * @category: GeoReference information"]
8302    #[doc = " * @revision: Description revised in V2.1.1. Is is now based on Path and not on PathHistory"]
8303    #[doc = " "]
8304    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8305    #[rasn(delegate, size("1..=7"))]
8306    pub struct Traces(pub SequenceOf<Path>);
8307    #[doc = "*"]
8308    #[doc = " * This DF represents one or more paths using @ref PathExtended."]
8309    #[doc = " * "]
8310    #[doc = " * @category: GeoReference information"]
8311    #[doc = " * @revision: Created in V2.2.1"]
8312    #[doc = " "]
8313    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8314    #[rasn(delegate, size("1..=7"))]
8315    pub struct TracesExtended(pub SequenceOf<PathExtended>);
8316    #[doc = "*"]
8317    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `trafficCondition`. "]
8318    #[doc = " * "]
8319    #[doc = " * The value shall be set to:"]
8320    #[doc = " * - 0 `unavailable`                  - in case further detailed information on the traffic condition is unavailable,"]
8321    #[doc = " * - 1 `increasedVolumeOfTraffic`     - in case the type of traffic condition is increased traffic volume,"]
8322    #[doc = " * - 2 `trafficJamSlowlyIncreasing`   - in case the type of traffic condition is a traffic jam which volume is increasing slowly,"]
8323    #[doc = " * - 3 `trafficJamIncreasing`         - in case the type of traffic condition is a traffic jam which volume is increasing,"]
8324    #[doc = " * - 4 `trafficJamStronglyIncreasing` - in case the type of traffic condition is a traffic jam which volume is strongly increasing,"]
8325    #[doc = " * - 5 `trafficJam`         `         - in case the type of traffic condition is a traffic jam and no further detailed information about its volume is available,"]
8326    #[doc = " * - 6 `trafficJamSlightlyDecreasing` - in case the type of traffic condition is a traffic jam which volume is decreasing slowly,"]
8327    #[doc = " * - 7 `trafficJamDecreasing`         - in case the type of traffic condition is a traffic jam which volume is decreasing,"]
8328    #[doc = " * - 8 `trafficJamStronglyDecreasing` - in case the type of traffic condition is a traffic jam which volume is decreasing rapidly,"]
8329    #[doc = " * - 9 `trafficJamStable`             - in case the traffic condition is a traffic jam with stable volume,"]
8330    #[doc = " * - 10-255: reserved for future usage."]
8331    #[doc = " *"]
8332    #[doc = " * @category: Traffic information"]
8333    #[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"]
8334    #[doc = " "]
8335    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8336    #[rasn(delegate, value("0..=255"))]
8337    pub struct TrafficConditionSubCauseCode(pub u8);
8338    #[doc = "*"]
8339    #[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."]
8340    #[doc = " * "]
8341    #[doc = " * The value shall be set to:"]
8342    #[doc = " * - 0 `allTrafficDirections`                                    - for all directions of traffic, "]
8343    #[doc = " * - 1 `sameAsReferenceDirection-upstreamOfReferencePosition`    - for the direction of traffic according to the reference direction, and the portion of traffic upstream of the reference position, "]
8344    #[doc = " * - 2 `sameAsReferenceDirection-downstreamOfReferencePosition`  - for the direction of traffic according to the reference direction, and the portion of traffic downstream of the reference position, "]
8345    #[doc = " * - 3 `oppositeToReferenceDirection`                            - for the direction of traffic opposite to the reference direction. "]
8346    #[doc = " *"]
8347    #[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."]
8348    #[doc = " * @category: GeoReference information"]
8349    #[doc = " * @revision: Created in V2.1.1 from RelevanceTrafficDirection, description and naming of values changed in V2.2.1"]
8350    #[doc = " *"]
8351    #[doc = " "]
8352    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8353    #[rasn(enumerated)]
8354    pub enum TrafficDirection {
8355        allTrafficDirections = 0,
8356        #[rasn(identifier = "sameAsReferenceDirection-upstreamOfReferencePosition")]
8357        sameAsReferenceDirection_upstreamOfReferencePosition = 1,
8358        #[rasn(identifier = "sameAsReferenceDirection-downstreamOfReferencePosition")]
8359        sameAsReferenceDirection_downstreamOfReferencePosition = 2,
8360        oppositeToReferenceDirection = 3,
8361    }
8362    #[doc = "*"]
8363    #[doc = " * Ths DF represents the a position on a traffic island between two lanes. "]
8364    #[doc = " *"]
8365    #[doc = " * It shall include the following components: "]
8366    #[doc = " *"]
8367    #[doc = " * @field oneSide: represents one lane."]
8368    #[doc = " * "]
8369    #[doc = " * @field otherSide: represents the other lane."]
8370    #[doc = " * "]
8371    #[doc = " * @category: Road Topology information"]
8372    #[doc = " * @revision: Created in V2.1.1"]
8373    #[doc = " "]
8374    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8375    #[rasn(automatic_tags)]
8376    #[non_exhaustive]
8377    pub struct TrafficIslandPosition {
8378        #[rasn(identifier = "oneSide")]
8379        pub one_side: LanePositionAndType,
8380        #[rasn(identifier = "otherSide")]
8381        pub other_side: LanePositionAndType,
8382    }
8383    impl TrafficIslandPosition {
8384        pub fn new(one_side: LanePositionAndType, other_side: LanePositionAndType) -> Self {
8385            Self {
8386                one_side,
8387                other_side,
8388            }
8389        }
8390    }
8391    #[doc = "*"]
8392    #[doc = " * This DE represents the type of a traffic participant."]
8393    #[doc = " * "]
8394    #[doc = " * The value shall be set to:"]
8395    #[doc = " * - 0 `unknown`          - information about traffic participant is not provided,"]
8396    #[doc = " * - 1 `pedestrian`       - human being not using a mechanical device for their trip (VRU profile 1),"]
8397    #[doc = " * - 2 `cyclist`          - non-motorized unicycles, bicycles , tricycles, quadracycles (VRU profile 2),"]
8398    #[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),"]
8399    #[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),"]
8400    #[doc = " * - 5 `passengerCar`     - small passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class M1,"]
8401    #[doc = " * - 6 `bus`              - large passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class M2, M3,"]
8402    #[doc = " * - 7 `lightTruck`       - light Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class N1,"]
8403    #[doc = " * - 8 `heavyTruck`       - Heavy Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class N2 and N3,"]
8404    #[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,"]
8405    #[doc = " * - 10 `specialVehicles` - vehicles which have special purposes other than the above (e.g. moving road works vehicle),"]
8406    #[doc = " * - 11 `tram`            - vehicle which runs on tracks along public streets,"]
8407    #[doc = " * - 12 `lightVruVehicle` - human being traveling on light vehicle, incl. possible use of roller skates or skateboards (VRU profile 2),"]
8408    #[doc = " * - 13 `animal`          - animal presenting a safety risk to other road users e.g. domesticated dog in a city or horse (VRU Profile 4),"]
8409    #[doc = " * - 14 `agricultural`    - agricultural and forestry vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class T,"]
8410    #[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, "]
8411    #[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),"]
8412    #[doc = " * - 16-255               - are reserved for future usage."]
8413    #[doc = " * "]
8414    #[doc = " * @category: Communication information."]
8415    #[doc = " * @revision: Created in V2.1.1 based on StationType, Changed name and definition of value 15 in V2.4.1 "]
8416    #[doc = " "]
8417    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8418    #[rasn(delegate, value("0..=255"))]
8419    pub struct TrafficParticipantType(pub u8);
8420    #[doc = "*"]
8421    #[doc = " * This DE indicates traffic rules that apply to vehicles at a certain position."]
8422    #[doc = " *"]
8423    #[doc = " * The value shall be set to:"]
8424    #[doc = " * - `0` - if overtaking is prohibited for all vehicles,"]
8425    #[doc = " * - `1` - if overtaking is prohibited for trucks,"]
8426    #[doc = " * - `2` - if vehicles should pass to the right lane,"]
8427    #[doc = " * - `3` - if vehicles should pass to the left lane."]
8428    #[doc = " * - `4` - if vehicles should pass to the left or right lane."]
8429    #[doc = " *"]
8430    #[doc = " * @category: Infrastructure information, Traffic information"]
8431    #[doc = " * @revision: Editorial update in V2.1.1"]
8432    #[doc = " "]
8433    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8434    #[rasn(enumerated)]
8435    #[non_exhaustive]
8436    pub enum TrafficRule {
8437        noPassing = 0,
8438        noPassingForTrucks = 1,
8439        passToRight = 2,
8440        passToLeft = 3,
8441        #[rasn(extension_addition)]
8442        passToLeftOrRight = 4,
8443    }
8444    #[doc = "* "]
8445    #[doc = " * This DF provides detailed information about an attached trailer."]
8446    #[doc = " *"]
8447    #[doc = " * It shall include the following components: "]
8448    #[doc = " *"]
8449    #[doc = " * @field refPointId: identifier of the reference point of the trailer."]
8450    #[doc = " *"]
8451    #[doc = " * @field hitchPointOffset: optional position of the hitch point in negative x-direction (according to ISO 8855) from the"]
8452    #[doc = " * vehicle Reference Point."]
8453    #[doc = " *"]
8454    #[doc = " * @field frontOverhang: optional length of the trailer overhang in the positive x direction (according to ISO 8855) from the"]
8455    #[doc = " * trailer Reference Point indicated by the refPointID. The value defaults to 0 in case the trailer"]
8456    #[doc = " * is not overhanging to the front with respect to the trailer reference point."]
8457    #[doc = " *"]
8458    #[doc = " * @field rearOverhang: optional length of the trailer overhang in the negative x direction (according to ISO 8855) from the"]
8459    #[doc = " * trailer Reference Point indicated by the refPointID."]
8460    #[doc = " *"]
8461    #[doc = " * @field trailerWidth: optional width of the trailer."]
8462    #[doc = " *"]
8463    #[doc = " * @field hitchAngle: optional Value and confidence value of the angle between the trailer orientation (corresponding to the x"]
8464    #[doc = " * direction of the ISO 8855 [21] coordinate system centered on the trailer) and the direction of"]
8465    #[doc = " * the segment having as end points the reference point of the trailer and the reference point of"]
8466    #[doc = " * the pulling vehicle, which can be another trailer or a vehicle looking on the horizontal plane"]
8467    #[doc = " * xy, described in the local Cartesian coordinate system of the trailer. The"]
8468    #[doc = " * angle is measured with negative values considering the trailer orientation turning clockwise"]
8469    #[doc = " * starting from the segment direction. The angle value accuracy is provided with the"]
8470    #[doc = " * confidence level of 95 %."]
8471    #[doc = " *"]
8472    #[doc = " * @category: Vehicle information"]
8473    #[doc = " * @revision: Created in V2.1.1"]
8474    #[doc = ""]
8475    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8476    #[rasn(automatic_tags)]
8477    #[non_exhaustive]
8478    pub struct TrailerData {
8479        #[rasn(identifier = "refPointId")]
8480        pub ref_point_id: Identifier1B,
8481        #[rasn(identifier = "hitchPointOffset")]
8482        pub hitch_point_offset: StandardLength1B,
8483        #[rasn(identifier = "frontOverhang")]
8484        pub front_overhang: Option<StandardLength1B>,
8485        #[rasn(identifier = "rearOverhang")]
8486        pub rear_overhang: Option<StandardLength1B>,
8487        #[rasn(identifier = "trailerWidth")]
8488        pub trailer_width: Option<VehicleWidth>,
8489        #[rasn(identifier = "hitchAngle")]
8490        pub hitch_angle: CartesianAngle,
8491    }
8492    impl TrailerData {
8493        pub fn new(
8494            ref_point_id: Identifier1B,
8495            hitch_point_offset: StandardLength1B,
8496            front_overhang: Option<StandardLength1B>,
8497            rear_overhang: Option<StandardLength1B>,
8498            trailer_width: Option<VehicleWidth>,
8499            hitch_angle: CartesianAngle,
8500        ) -> Self {
8501            Self {
8502                ref_point_id,
8503                hitch_point_offset,
8504                front_overhang,
8505                rear_overhang,
8506                trailer_width,
8507                hitch_angle,
8508            }
8509        }
8510    }
8511    #[doc = "*"]
8512    #[doc = " * This DE provides information about the presence of a trailer. "]
8513    #[doc = " *"]
8514    #[doc = " * The value shall be set to:"]
8515    #[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."]
8516    #[doc = " * - 1 `trailerPresentWithKnownLength`   - to indicate that a trailer has been detected as present and the length is included in the vehicle length value."]
8517    #[doc = " * - 2 `trailerPresentWithUnknownLength` - to indicate that a trailer has been detected as present and the length is not included in the vehicle length value."]
8518    #[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."]
8519    #[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 "]
8520    #[doc = " *                                         nor the detection of trailer presence/absence is possible."]
8521    #[doc = " * "]
8522    #[doc = " * @category: Vehicle information"]
8523    #[doc = " * @revision: Created in V2.1.1 based on VehicleLengthConfidenceIndication"]
8524    #[doc = ""]
8525    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8526    #[rasn(enumerated)]
8527    pub enum TrailerPresenceInformation {
8528        noTrailerPresent = 0,
8529        trailerPresentWithKnownLength = 1,
8530        trailerPresentWithUnknownLength = 2,
8531        trailerPresenceIsUnknown = 3,
8532        unavailable = 4,
8533    }
8534    #[doc = "*"]
8535    #[doc = " * This DE  defines  the  confidence level of the trajectoryInterceptionProbability."]
8536    #[doc = " *"]
8537    #[doc = " * The value shall be set to:"]
8538    #[doc = " * - `0` - to indicate confidence level less than 50 %,"]
8539    #[doc = " * - `1` - to indicate confidence level greater than or equal to 50 % and less than 70 %,"]
8540    #[doc = " * - `2` - to indicate confidence level greater than or equal to 70 % and less than 90 %,"]
8541    #[doc = " * - `3` - to indicate confidence level greater than or equal to 90%."]
8542    #[doc = " * "]
8543    #[doc = " * @category: Kinematic information"]
8544    #[doc = " * @revision: Created in V2.1.1"]
8545    #[doc = " "]
8546    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8547    #[rasn(delegate, value("0..=3"))]
8548    pub struct TrajectoryInterceptionConfidence(pub u8);
8549    #[doc = "*"]
8550    #[doc = " * This DF  provides the trajectory  interception  indication  of  ego-VRU  ITS-S  with another ITS-Ss. "]
8551    #[doc = " *"]
8552    #[doc = " * It shall include the following components: "]
8553    #[doc = " * "]
8554    #[doc = " * @field subjectStation: indicates the subject station."]
8555    #[doc = " * "]
8556    #[doc = " * @field trajectoryInterceptionProbability: indicates the propbability of the interception of the subject station trajectory "]
8557    #[doc = " * with the trajectory of the station indicated in the component subjectStation."]
8558    #[doc = " *"]
8559    #[doc = " * @field trajectoryInterceptionConfidence: indicates the confidence of interception of the subject station trajectory "]
8560    #[doc = " * with the trajectory of the station indicated in the component subjectStation."]
8561    #[doc = " * "]
8562    #[doc = " * @category: Vehicle information"]
8563    #[doc = " * @revision: Created in V2.1.1"]
8564    #[doc = " "]
8565    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8566    #[rasn(automatic_tags)]
8567    #[non_exhaustive]
8568    pub struct TrajectoryInterceptionIndication {
8569        #[rasn(identifier = "subjectStation")]
8570        pub subject_station: Option<StationId>,
8571        #[rasn(identifier = "trajectoryInterceptionProbability")]
8572        pub trajectory_interception_probability: TrajectoryInterceptionProbability,
8573        #[rasn(identifier = "trajectoryInterceptionConfidence")]
8574        pub trajectory_interception_confidence: Option<TrajectoryInterceptionConfidence>,
8575    }
8576    impl TrajectoryInterceptionIndication {
8577        pub fn new(
8578            subject_station: Option<StationId>,
8579            trajectory_interception_probability: TrajectoryInterceptionProbability,
8580            trajectory_interception_confidence: Option<TrajectoryInterceptionConfidence>,
8581        ) -> Self {
8582            Self {
8583                subject_station,
8584                trajectory_interception_probability,
8585                trajectory_interception_confidence,
8586            }
8587        }
8588    }
8589    #[doc = "*"]
8590    #[doc = " * This  DE  defines  the  probability  that the ego trajectory  intercepts  with any  other object's  trajectory  on the  road. "]
8591    #[doc = " * "]
8592    #[doc = " * The value shall be set to:"]
8593    #[doc = " * - `n` (`n >= 0` and `n <= 50`) to indicate the actual probability,"]
8594    #[doc = " * - the values between 51 and 62 are reserved,"]
8595    #[doc = " * - `63`: to indicate that the information is unavailable. "]
8596    #[doc = " *"]
8597    #[doc = " * @unit: 2 %"]
8598    #[doc = " * @category: Kinematic information"]
8599    #[doc = " * @revision: Created in V2.1.1"]
8600    #[doc = " "]
8601    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8602    #[rasn(delegate, value("0..=63"))]
8603    pub struct TrajectoryInterceptionProbability(pub u8);
8604    #[doc = "*"]
8605    #[doc = " * This DE represents the time interval between two consecutive message transmissions."]
8606    #[doc = " * "]
8607    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref DeltaTimeMilliSecondPos instead."]
8608    #[doc = " * @unit: 0,001 s"]
8609    #[doc = " * @category: Basic information"]
8610    #[doc = " * @revision: V1.3.1"]
8611    #[doc = " "]
8612    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8613    #[rasn(delegate, value("1..=10000"))]
8614    pub struct TransmissionInterval(pub u16);
8615    #[doc = "*"]
8616    #[doc = " * This DE provides the turning direction. "]
8617    #[doc = " * "]
8618    #[doc = " * The value shall be set to:"]
8619    #[doc = " * - `left`  for turning to te left."]
8620    #[doc = " * - `right` for turing to the right."]
8621    #[doc = " *"]
8622    #[doc = " * @category: Kinematic information"]
8623    #[doc = " * @revision: Created in V2.1.1"]
8624    #[doc = " "]
8625    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8626    #[rasn(enumerated)]
8627    pub enum TurningDirection {
8628        left = 0,
8629        right = 1,
8630    }
8631    #[doc = "*"]
8632    #[doc = " * This DE represents the smallest circular turn (i.e. U-turn) that the vehicle is capable of making."]
8633    #[doc = " *"]
8634    #[doc = " * The value shall be set to:"]
8635    #[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,"]
8636    #[doc = " * - `254` to indicate that the turning radius is  greater than 253 x 0,4 metre = 101.2 metres,"]
8637    #[doc = " * - `255` to indicate that the information is unavailable."]
8638    #[doc = " * "]
8639    #[doc = " * For vehicle with tracker, the turning radius applies to the vehicle only."]
8640    #[doc = " *"]
8641    #[doc = " * @category: Vehicle information"]
8642    #[doc = " * @unit 0,4 metre"]
8643    #[doc = " * @revision: Description revised V2.1.1 (the meaning of 254 has changed slightly)"]
8644    #[doc = " "]
8645    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8646    #[rasn(delegate, value("1..=255"))]
8647    pub struct TurningRadius(pub u8);
8648    #[doc = "*"]
8649    #[doc = " * This DE represents an indication of how a certain path or area will be used. "]
8650    #[doc = " * "]
8651    #[doc = " * The value shall be set to:"]
8652    #[doc = " * - 0  - ` noIndication `     - in case it will remain free to be used,"]
8653    #[doc = " * - 1  - ` specialUse `       - in case it will be physically blocked by special use,"]
8654    #[doc = " * - 2  - ` rescueOperation`   - in case it is intended to be used for rescue operations,"]
8655    #[doc = " * - 3  - ` railroad `         - in case it is intended to be used for rail traffic,"]
8656    #[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.),"]
8657    #[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),"]
8658    #[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),"]
8659    #[doc = " * - 7  - ` navigation `       - in case it is intended to be used for driving with an active navigation system."]
8660    #[doc = " *"]
8661    #[doc = " * @category: Basic information"]
8662    #[doc = " * @revision: Created in V2.2.1, extension 3-7 added in V2.3.1"]
8663    #[doc = " "]
8664    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8665    #[rasn(enumerated)]
8666    #[non_exhaustive]
8667    pub enum UsageIndication {
8668        noIndication = 0,
8669        specialUse = 1,
8670        rescueOperation = 2,
8671        #[rasn(extension_addition)]
8672        railroad = 3,
8673        #[rasn(extension_addition)]
8674        fixedRoute = 4,
8675        #[rasn(extension_addition)]
8676        restrictedRoute = 5,
8677        #[rasn(extension_addition)]
8678        adasAd = 6,
8679        #[rasn(extension_addition)]
8680        navigation = 7,
8681    }
8682    #[doc = "*"]
8683    #[doc = " * This DE represents the Vehicle Descriptor Section (VDS). The values are assigned according to ISO 3779 [6]."]
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(delegate, size("6"))]
8690    pub struct VDS(pub Ia5String);
8691    #[doc = "* "]
8692    #[doc = " * This DE represents the duration of a traffic event validity. "]
8693    #[doc = " *"]
8694    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref DeltaTimeSecond instead."]
8695    #[doc = " * @unit: 1 s"]
8696    #[doc = " * @category: Basic information"]
8697    #[doc = " * @revision: V1.3.1"]
8698    #[doc = ""]
8699    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8700    #[rasn(delegate, value("0..=86400"))]
8701    pub struct ValidityDuration(pub u32);
8702    #[doc = "*"]
8703    #[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. "]
8704    #[doc = " *"]
8705    #[doc = " * @category: Basic information"]
8706    #[doc = " * @revision: Created in V2.1.1"]
8707    #[doc = " "]
8708    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8709    #[rasn(choice)]
8710    pub enum VarLengthNumber {
8711        #[rasn(value("0..=127"), tag(context, 0))]
8712        content(u8),
8713        #[rasn(tag(context, 1))]
8714        extension(Ext1),
8715    }
8716    #[doc = "*"]
8717    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `vehicleBreakdown`. "]
8718    #[doc = " * "]
8719    #[doc = " * The value shall be set to:"]
8720    #[doc = " * - 0 `unavailable`              - in case further detailed information on cause of vehicle break down is unavailable,"]
8721    #[doc = " * - 1 `lackOfFuel`               - in case vehicle break down is due to lack of fuel,"]
8722    #[doc = " * - 2 `lackOfBatteryPower`       - in case vehicle break down is caused by lack of battery power,"]
8723    #[doc = " * - 3 `engineProblem`            - in case vehicle break down is caused by an engine problem,"]
8724    #[doc = " * - 4 `transmissionProblem`      - in case vehicle break down is caused by transmission problem,"]
8725    #[doc = " * - 5 `engineCoolingProblem`     - in case vehicle break down is caused by an engine cooling problem,"]
8726    #[doc = " * - 6 `brakingSystemProblem`     - in case vehicle break down is caused by a braking system problem,"]
8727    #[doc = " * - 7 `steeringProblem`          - in case vehicle break down is caused by a steering problem,"]
8728    #[doc = " * - 8 `tyrePuncture-deprecated`  - deprecated since covered by `tyrePressureProblem`,"]
8729    #[doc = " * - 9 `tyrePressureProblem`      - in case low tyre pressure in detected,"]
8730    #[doc = " * - 10 `vehicleOnFire`           - in case the vehicle is on fire."]
8731    #[doc = " * - 11-255                       - are reserved for future usage."]
8732    #[doc = " *"]
8733    #[doc = " * @category: Traffic information"]
8734    #[doc = " * @revision: V1.3.1, value 10 assigned in V2.1.1, value 8 deprecated in V2.4.1"]
8735    #[doc = " "]
8736    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8737    #[rasn(delegate, value("0..=255"))]
8738    pub struct VehicleBreakdownSubCauseCode(pub u8);
8739    #[doc = "* "]
8740    #[doc = " * This DE represents the height of the vehicle, measured from the ground to the highest point, excluding any antennas."]
8741    #[doc = " * In case vehicles are equipped with adjustable ride heights, camper shells, and any other"]
8742    #[doc = " * equipment which may result in varying height, the largest possible height shall be used."]
8743    #[doc = " *"]
8744    #[doc = " * The value shall be set to:"]
8745    #[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,"]
8746    #[doc = " * - `127` indicates that the vehicle width is greater than 6,3 metres,"]
8747    #[doc = " * - `128` indicates that the information in unavailable."]
8748    #[doc = " *"]
8749    #[doc = " * @unit: 0,05 metre "]
8750    #[doc = " * @category: Vehicle information"]
8751    #[doc = " * @revision: created in V2.1.1"]
8752    #[doc = ""]
8753    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8754    #[rasn(delegate, value("1..=128"))]
8755    pub struct VehicleHeight(pub u8);
8756    #[doc = "* "]
8757    #[doc = " * This DE represents the height of the vehicle, measured from the ground to the highest point, excluding any antennas."]
8758    #[doc = " * In case vehicles are equipped with adjustable ride heights, camper shells, and any other"]
8759    #[doc = " * equipment which may result in varying height, the largest possible height shall be used."]
8760    #[doc = ""]
8761    #[doc = " * The value shall be set to:"]
8762    #[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,"]
8763    #[doc = " * - `61` indicates that the vehicle height is greater than 6,0 metres,"]
8764    #[doc = " * - `62` indicates that the information in unavailable."]
8765    #[doc = " * "]
8766    #[doc = " * @unit: 0,1 metre"]
8767    #[doc = " * @category: Vehicle information "]
8768    #[doc = " * @revision: created in V2.3.1 based on VehicleHeight but better aligned in unit and range with VehicleWidth."]
8769    #[doc = " "]
8770    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8771    #[rasn(delegate, value("1..=62"))]
8772    pub struct VehicleHeight2(pub u8);
8773    #[doc = "*"]
8774    #[doc = " * This DF provides information related to the identification of a vehicle."]
8775    #[doc = " *"]
8776    #[doc = " * It shall include the following components: "]
8777    #[doc = " * "]
8778    #[doc = " * @field wMInumber: World Manufacturer Identifier (WMI) code."]
8779    #[doc = " * "]
8780    #[doc = " * @field vDS: Vehicle Descriptor Section (VDS). "]
8781    #[doc = " * "]
8782    #[doc = " * @category: Vehicle information"]
8783    #[doc = " * @revision: V1.3.1"]
8784    #[doc = " "]
8785    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8786    #[rasn(automatic_tags)]
8787    #[non_exhaustive]
8788    pub struct VehicleIdentification {
8789        #[rasn(identifier = "wMInumber")]
8790        pub w_minumber: Option<WMInumber>,
8791        #[rasn(identifier = "vDS")]
8792        pub v_ds: Option<VDS>,
8793    }
8794    impl VehicleIdentification {
8795        pub fn new(w_minumber: Option<WMInumber>, v_ds: Option<VDS>) -> Self {
8796            Self { w_minumber, v_ds }
8797        }
8798    }
8799    #[doc = "*"]
8800    #[doc = " * This DF represents the length of vehicle and accuracy indication information."]
8801    #[doc = " *"]
8802    #[doc = " * It shall include the following components: "]
8803    #[doc = " * "]
8804    #[doc = " * @field vehicleLengthValue: length of vehicle. "]
8805    #[doc = " * "]
8806    #[doc = " * @field vehicleLengthConfidenceIndication: indication of the length value confidence."]
8807    #[doc = " * "]
8808    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref VehicleLengthV2 instead."]
8809    #[doc = " * @category: Vehicle information"]
8810    #[doc = " * @revision: V1.3.1"]
8811    #[doc = " "]
8812    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8813    #[rasn(automatic_tags)]
8814    pub struct VehicleLength {
8815        #[rasn(identifier = "vehicleLengthValue")]
8816        pub vehicle_length_value: VehicleLengthValue,
8817        #[rasn(identifier = "vehicleLengthConfidenceIndication")]
8818        pub vehicle_length_confidence_indication: VehicleLengthConfidenceIndication,
8819    }
8820    impl VehicleLength {
8821        pub fn new(
8822            vehicle_length_value: VehicleLengthValue,
8823            vehicle_length_confidence_indication: VehicleLengthConfidenceIndication,
8824        ) -> Self {
8825            Self {
8826                vehicle_length_value,
8827                vehicle_length_confidence_indication,
8828            }
8829        }
8830    }
8831    #[doc = "*"]
8832    #[doc = " * This DE provides information about the presence of a trailer. "]
8833    #[doc = " *"]
8834    #[doc = " * The value shall be set to:"]
8835    #[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,"]
8836    #[doc = " * - 1 `trailerPresentWithKnownLength`   - to indicate that a trailer has been detected as present and the length is  included in the vehicle length value,"]
8837    #[doc = " * - 2 `trailerPresentWithUnknownLength` - to indicate that a trailer has been detected as present and the length is not included in the vehicle length value,"]
8838    #[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,"]
8839    #[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, "]
8840    #[doc = " *                                        nor the detection of trailer presence/absence is possible."]
8841    #[doc = " * "]
8842    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrailerPresenceInformation instead. "]
8843    #[doc = " * @category: Vehicle information"]
8844    #[doc = " * @revision: Description revised in V2.1.1"]
8845    #[doc = ""]
8846    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8847    #[rasn(enumerated)]
8848    pub enum VehicleLengthConfidenceIndication {
8849        noTrailerPresent = 0,
8850        trailerPresentWithKnownLength = 1,
8851        trailerPresentWithUnknownLength = 2,
8852        trailerPresenceIsUnknown = 3,
8853        unavailable = 4,
8854    }
8855    #[doc = "*"]
8856    #[doc = " * This DF represents the length of vehicle and accuracy indication information."]
8857    #[doc = " *"]
8858    #[doc = " * It shall include the following components: "]
8859    #[doc = " * "]
8860    #[doc = " * @field vehicleLengthValue: length of vehicle. "]
8861    #[doc = " * "]
8862    #[doc = " * @field trailerPresenceInformation: information about the trailer presence."]
8863    #[doc = " * "]
8864    #[doc = " * @category: Vehicle information"]
8865    #[doc = " * @revision: created in V2.1.1 based on @ref VehicleLength but using @ref TrailerPresenceInformation."]
8866    #[doc = " "]
8867    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8868    #[rasn(automatic_tags)]
8869    pub struct VehicleLengthV2 {
8870        #[rasn(identifier = "vehicleLengthValue")]
8871        pub vehicle_length_value: VehicleLengthValue,
8872        #[rasn(identifier = "trailerPresenceInformation")]
8873        pub trailer_presence_information: TrailerPresenceInformation,
8874    }
8875    impl VehicleLengthV2 {
8876        pub fn new(
8877            vehicle_length_value: VehicleLengthValue,
8878            trailer_presence_information: TrailerPresenceInformation,
8879        ) -> Self {
8880            Self {
8881                vehicle_length_value,
8882                trailer_presence_information,
8883            }
8884        }
8885    }
8886    #[doc = "*"]
8887    #[doc = " * This DE represents the length of a vehicle."]
8888    #[doc = " *"]
8889    #[doc = " * The value shall be set to:"]
8890    #[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,"]
8891    #[doc = " * - `1 022` to indicate that the vehicle length is greater than 102.1 metres,"]
8892    #[doc = " * - `1 023` to indicate that the information in unavailable."]
8893    #[doc = " * "]
8894    #[doc = " * "]
8895    #[doc = " * @unit: 0,1 metre"]
8896    #[doc = " * @category: Vehicle information"]
8897    #[doc = " * @revision: Description updated in V2.1.1 (the meaning of 1 022 has changed slightly)."]
8898    #[doc = " "]
8899    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8900    #[rasn(delegate, value("1..=1023"))]
8901    pub struct VehicleLengthValue(pub u16);
8902    #[doc = "*"]
8903    #[doc = " * This DE represents the mass of an empty loaded vehicle."]
8904    #[doc = " *"]
8905    #[doc = " * The value shall be set to: "]
8906    #[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,"]
8907    #[doc = " * - `1 023` indicates that the vehicle mass is greater than 102 200 000 g,"]
8908    #[doc = " * - `1 024` indicates  the vehicle mass information is unavailable."]
8909    #[doc = " * "]
8910    #[doc = " * @note:\tThe empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
8911    #[doc = " * "]
8912    #[doc = " * @unit: 10^5 gramm"]
8913    #[doc = " * @category: Vehicle information"]
8914    #[doc = " * @revision: Description updated in V2.1.1 (the meaning of 1 023 has changed slightly)."]
8915    #[doc = ""]
8916    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8917    #[rasn(delegate, value("1..=1024"))]
8918    pub struct VehicleMass(pub u16);
8919    #[doc = "*"]
8920    #[doc = " * This DF provides information about the status of the vehicle´s movement control mechanisms. "]
8921    #[doc = " *"]
8922    #[doc = " * It shall include the following components: "]
8923    #[doc = " *"]
8924    #[doc = " * @field accelerationPedalStatus: information about the status of the acceleration pedal. "]
8925    #[doc = " * "]
8926    #[doc = " * @field brakePedalPostionStatus information about the status of the brake pedal. "]
8927    #[doc = " *"]
8928    #[doc = " * @field saeAutomationLevel: optional information about the level of driving automation. "]
8929    #[doc = " *"]
8930    #[doc = " * @field automationControl: optional information about the controlling mechanism for lateral, or combined lateral and longitudinal movement."]
8931    #[doc = " *"]
8932    #[doc = " * @field accelerationControl: optional information about the controlling mechanism for longitudinal movement. "]
8933    #[doc = " *"]
8934    #[doc = " * @field accelerationControlExtension: optional extended information about the controlling mechanism for longitudinal movement. "]
8935    #[doc = " *"]
8936    #[doc = " * @category: Vehicle information"]
8937    #[doc = " * @revision: created in V2.3.1"]
8938    #[doc = " "]
8939    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8940    #[rasn(automatic_tags)]
8941    #[non_exhaustive]
8942    pub struct VehicleMovementControl {
8943        #[rasn(identifier = "accelerationPedalStatus")]
8944        pub acceleration_pedal_status: PedalStatus,
8945        #[rasn(identifier = "brakePedalStatus")]
8946        pub brake_pedal_status: PedalStatus,
8947        #[rasn(identifier = "saeAutomationLevel")]
8948        pub sae_automation_level: Option<SaeAutomationLevel>,
8949        #[rasn(identifier = "automationControl")]
8950        pub automation_control: Option<AutomationControl>,
8951        #[rasn(identifier = "accelerationControl")]
8952        pub acceleration_control: Option<AccelerationControl>,
8953        #[rasn(identifier = "accelerationControlExtension")]
8954        pub acceleration_control_extension: Option<AccelerationControlExtension>,
8955    }
8956    impl VehicleMovementControl {
8957        pub fn new(
8958            acceleration_pedal_status: PedalStatus,
8959            brake_pedal_status: PedalStatus,
8960            sae_automation_level: Option<SaeAutomationLevel>,
8961            automation_control: Option<AutomationControl>,
8962            acceleration_control: Option<AccelerationControl>,
8963            acceleration_control_extension: Option<AccelerationControlExtension>,
8964        ) -> Self {
8965            Self {
8966                acceleration_pedal_status,
8967                brake_pedal_status,
8968                sae_automation_level,
8969                automation_control,
8970                acceleration_control,
8971                acceleration_control_extension,
8972            }
8973        }
8974    }
8975    #[doc = "*"]
8976    #[doc = " * This DE indicates the role played by a vehicle at a point in time."]
8977    #[doc = " *"]
8978    #[doc = " * The value shall be set to:"]
8979    #[doc = " * - 0 `default`          - to indicate the default vehicle role as indicated by the vehicle type,"]
8980    #[doc = " * - 1 `publicTransport`  - to indicate that the vehicle is used to operate public transport service,"]
8981    #[doc = " * - 2 `specialTransport` - to indicate that the vehicle is used for special transport purpose, e.g. oversized trucks,"]
8982    #[doc = " * - 3 `dangerousGoods`   - to indicate that the vehicle is used for dangerous goods transportation,"]
8983    #[doc = " * - 4 `roadWork`         - to indicate that the vehicle is used to realize roadwork or road maintenance mission,"]
8984    #[doc = " * - 5 `rescue`           - to indicate that the vehicle is used for rescue purpose in case of an accident, e.g. as a towing service,"]
8985    #[doc = " * - 6 `emergency`        - to indicate that the vehicle is used for emergency mission, e.g. ambulance, fire brigade,"]
8986    #[doc = " * - 7 `safetyCar`        - to indicate that the vehicle is used for public safety, e.g. patrol,"]
8987    #[doc = " * - 8 `agriculture`      - to indicate that the vehicle is used for agriculture, e.g. farm tractor, "]
8988    #[doc = " * - 9 `commercial`       - to indicate that the vehicle is used for transportation of commercial goods,"]
8989    #[doc = " * - 10 `military`        - to indicate that the vehicle is used for military purpose, "]
8990    #[doc = " * - 11 `roadOperator`    - to indicate that the vehicle is used in road operator missions,"]
8991    #[doc = " * - 12 `taxi`            - to indicate that the vehicle is used to provide an authorized taxi service,"]
8992    #[doc = " * - 13 `uvar`            - to indicate that the vehicle is authorized to enter a zone according to the applicable Urban Vehicle Access Restrictions."]
8993    #[doc = " * - 14 `rfu1`            - is reserved for future usage."]
8994    #[doc = " * - 15 `rfu2`            - is reserved for future usage."]
8995    #[doc = " * "]
8996    #[doc = " * @category: Vehicle Information"]
8997    #[doc = " * @revision: Description updated in V2.1.1 (removed reference to CEN/TS 16157-3), value 13 assigned in V2.2.1"]
8998    #[doc = " "]
8999    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
9000    #[rasn(enumerated)]
9001    pub enum VehicleRole {
9002        default = 0,
9003        publicTransport = 1,
9004        specialTransport = 2,
9005        dangerousGoods = 3,
9006        roadWork = 4,
9007        rescue = 5,
9008        emergency = 6,
9009        safetyCar = 7,
9010        agriculture = 8,
9011        commercial = 9,
9012        military = 10,
9013        roadOperator = 11,
9014        taxi = 12,
9015        uvar = 13,
9016        rfu1 = 14,
9017        rfu2 = 15,
9018    }
9019    #[doc = "*"]
9020    #[doc = " * This DE represents the width of a vehicle, excluding side mirrors and possible similar extensions."]
9021    #[doc = ""]
9022    #[doc = " * The value shall be set to:"]
9023    #[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,"]
9024    #[doc = " * - `61` indicates that the vehicle width is greater than 6,0 metres,"]
9025    #[doc = " * - `62` indicates that the information in unavailable."]
9026    #[doc = " * "]
9027    #[doc = " * @unit: 0,1 metre"]
9028    #[doc = " * @category: Vehicle information "]
9029    #[doc = " * @revision: Description updated in V2.1.1 (the meaning of 61 has changed slightly)."]
9030    #[doc = " "]
9031    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9032    #[rasn(delegate, value("1..=62"))]
9033    pub struct VehicleWidth(pub u8);
9034    #[doc = "*"]
9035    #[doc = " * This DF represents a velocity vector with associated confidence value."]
9036    #[doc = " *"]
9037    #[doc = " * The following options are available:"]
9038    #[doc = " * "]
9039    #[doc = " * @field polarVelocity: the representation of the velocity vector in a polar or cylindrical coordinate system. "]
9040    #[doc = " * "]
9041    #[doc = " * @field cartesianVelocity: the representation of the velocity vector in a cartesian coordinate system."]
9042    #[doc = " * "]
9043    #[doc = " * @category: Kinematic information"]
9044    #[doc = " * @revision: Created in V2.1.1"]
9045    #[doc = " "]
9046    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9047    #[rasn(choice, automatic_tags)]
9048    pub enum Velocity3dWithConfidence {
9049        polarVelocity(VelocityPolarWithZ),
9050        cartesianVelocity(VelocityCartesian),
9051    }
9052    #[doc = "*"]
9053    #[doc = " * This DF represents a velocity vector in a cartesian coordinate system."]
9054    #[doc = " "]
9055    #[doc = " * It shall include the following components: "]
9056    #[doc = " * "]
9057    #[doc = " * @field xVelocity: the x component of the velocity vector with the associated confidence value."]
9058    #[doc = " * "]
9059    #[doc = " * @field yVelocity: the y component of the velocity vector with the associated confidence value."]
9060    #[doc = " *"]
9061    #[doc = " * @field zVelocity: the optional z component of the velocity vector with the associated confidence value."]
9062    #[doc = " * "]
9063    #[doc = " * @category: Kinematic information"]
9064    #[doc = " * @revision: Created in V2.1.1"]
9065    #[doc = " "]
9066    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9067    #[rasn(automatic_tags)]
9068    pub struct VelocityCartesian {
9069        #[rasn(identifier = "xVelocity")]
9070        pub x_velocity: VelocityComponent,
9071        #[rasn(identifier = "yVelocity")]
9072        pub y_velocity: VelocityComponent,
9073        #[rasn(identifier = "zVelocity")]
9074        pub z_velocity: Option<VelocityComponent>,
9075    }
9076    impl VelocityCartesian {
9077        pub fn new(
9078            x_velocity: VelocityComponent,
9079            y_velocity: VelocityComponent,
9080            z_velocity: Option<VelocityComponent>,
9081        ) -> Self {
9082            Self {
9083                x_velocity,
9084                y_velocity,
9085                z_velocity,
9086            }
9087        }
9088    }
9089    #[doc = "*"]
9090    #[doc = " * This DF represents a component of the velocity vector and the associated confidence value."]
9091    #[doc = " *"]
9092    #[doc = " * It shall include the following components: "]
9093    #[doc = " * "]
9094    #[doc = " * @field value: the value of the component."]
9095    #[doc = " * "]
9096    #[doc = " * @field confidence: the confidence value of the value."]
9097    #[doc = " *"]
9098    #[doc = " * @category: Kinematic information"]
9099    #[doc = " * @revision: V2.1.1"]
9100    #[doc = " "]
9101    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9102    #[rasn(automatic_tags)]
9103    pub struct VelocityComponent {
9104        pub value: VelocityComponentValue,
9105        pub confidence: SpeedConfidence,
9106    }
9107    impl VelocityComponent {
9108        pub fn new(value: VelocityComponentValue, confidence: SpeedConfidence) -> Self {
9109            Self { value, confidence }
9110        }
9111    }
9112    #[doc = "* "]
9113    #[doc = " * This DE represents the value of a velocity component in a defined coordinate system."]
9114    #[doc = " *"]
9115    #[doc = " * The value shall be set to:"]
9116    #[doc = " * - `-16 383` if the velocity is equal to or smaller than -163,83 m/s,"]
9117    #[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,"]
9118    #[doc = " * - `16 382` for velocity values equal to or greater than 163,81 m/s,"]
9119    #[doc = " * - `16 383` if the velocity information is not available."]
9120    #[doc = " * "]
9121    #[doc = " * @unit: 0,01 m/s"]
9122    #[doc = " * @category: Kinematic information"]
9123    #[doc = " * @revision: Created in V2.1.1"]
9124    #[doc = ""]
9125    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9126    #[rasn(delegate, value("-16383..=16383"))]
9127    pub struct VelocityComponentValue(pub i16);
9128    #[doc = "*"]
9129    #[doc = " * This DF represents a velocity vector in a polar or cylindrical coordinate system."]
9130    #[doc = " *"]
9131    #[doc = " * It shall include the following components: "]
9132    #[doc = " * "]
9133    #[doc = " * @field velocityMagnitude: magnitude of the velocity vector on the reference plane, with the associated confidence value."]
9134    #[doc = " * "]
9135    #[doc = " * @field velocityDirection: polar angle of the velocity vector on the reference plane, with the associated confidence value."]
9136    #[doc = " *"]
9137    #[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."]
9138    #[doc = " * "]
9139    #[doc = " * @category: Kinematic information"]
9140    #[doc = " * @revision: Created in V2.1.1"]
9141    #[doc = " "]
9142    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9143    #[rasn(automatic_tags)]
9144    pub struct VelocityPolarWithZ {
9145        #[rasn(identifier = "velocityMagnitude")]
9146        pub velocity_magnitude: Speed,
9147        #[rasn(identifier = "velocityDirection")]
9148        pub velocity_direction: CartesianAngle,
9149        #[rasn(identifier = "zVelocity")]
9150        pub z_velocity: Option<VelocityComponent>,
9151    }
9152    impl VelocityPolarWithZ {
9153        pub fn new(
9154            velocity_magnitude: Speed,
9155            velocity_direction: CartesianAngle,
9156            z_velocity: Option<VelocityComponent>,
9157        ) -> Self {
9158            Self {
9159                velocity_magnitude,
9160                velocity_direction,
9161                z_velocity,
9162            }
9163        }
9164    }
9165    #[doc = " four and more octets length"]
9166    #[doc = "*"]
9167    #[doc = " * This DF indicates the vehicle acceleration at vertical direction and the associated confidence value."]
9168    #[doc = " *"]
9169    #[doc = " * It shall include the following components: "]
9170    #[doc = " * "]
9171    #[doc = " * @field verticalAccelerationValue: vertical acceleration value at a point in time."]
9172    #[doc = " * "]
9173    #[doc = " * @field verticalAccelerationConfidence: confidence value of the vertical acceleration value with a predefined confidence level."]
9174    #[doc = " * "]
9175    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead."]
9176    #[doc = " * @category Vehicle information"]
9177    #[doc = " * @revision: Description revised in V2.1.1"]
9178    #[doc = " "]
9179    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9180    #[rasn(automatic_tags)]
9181    pub struct VerticalAcceleration {
9182        #[rasn(identifier = "verticalAccelerationValue")]
9183        pub vertical_acceleration_value: VerticalAccelerationValue,
9184        #[rasn(identifier = "verticalAccelerationConfidence")]
9185        pub vertical_acceleration_confidence: AccelerationConfidence,
9186    }
9187    impl VerticalAcceleration {
9188        pub fn new(
9189            vertical_acceleration_value: VerticalAccelerationValue,
9190            vertical_acceleration_confidence: AccelerationConfidence,
9191        ) -> Self {
9192            Self {
9193                vertical_acceleration_value,
9194                vertical_acceleration_confidence,
9195            }
9196        }
9197    }
9198    #[doc = "*"]
9199    #[doc = " * This DE represents the vehicle acceleration at vertical direction in the centre of the mass of the empty vehicle."]
9200    #[doc = " * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11."]
9201    #[doc = " *"]
9202    #[doc = " * The value shall be set to:"]
9203    #[doc = " * - `-160` for acceleration values equal to or less than -16 m/s^2,"]
9204    #[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,"]
9205    #[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,"]
9206    #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
9207    #[doc = " * - `161` when the data is unavailable."]
9208    #[doc = " * "]
9209    #[doc = " * @note: The empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
9210    #[doc = " *"]
9211    #[doc = " * @category: Vehicle information"]
9212    #[doc = " * @unit: 0,1 m/s^2"]
9213    #[doc = " * @revision: Desciption updated in V2.1.1 (the meaning of 160 has changed slightly)."]
9214    #[doc = " *  "]
9215    #[doc = ""]
9216    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9217    #[rasn(delegate, value("-160..=161"))]
9218    pub struct VerticalAccelerationValue(pub i16);
9219    #[doc = "* "]
9220    #[doc = " * This DF provides information about a VRU cluster."]
9221    #[doc = " *"]
9222    #[doc = " * It shall include the following components: "]
9223    #[doc = " *"]
9224    #[doc = " * @field clusterId: optional identifier of a VRU cluster."]
9225    #[doc = " *"]
9226    #[doc = " * @field clusterBoundingBoxShape: optionally indicates the shape of the cluster bounding box, per default inside an East-North-Up coordinate system "]
9227    #[doc = " * centered around a reference point defined outside of the context of this DF."]
9228    #[doc = " *"]
9229    #[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) ."]
9230    #[doc = " *"]
9231    #[doc = " * @field clusterProfiles: optionally identifies all the VRU profile types that are estimated to be within the cluster."]
9232    #[doc = " * if this component is absent it means that the information is unavailable. "]
9233    #[doc = " *"]
9234    #[doc = " * @category: VRU information"]
9235    #[doc = " * @revision: Created in V2.1.1, description revised in V2.2.1"]
9236    #[doc = ""]
9237    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9238    #[rasn(automatic_tags)]
9239    #[non_exhaustive]
9240    pub struct VruClusterInformation {
9241        #[rasn(identifier = "clusterId")]
9242        pub cluster_id: Option<Identifier1B>,
9243        #[rasn(value("0.."), identifier = "clusterBoundingBoxShape")]
9244        pub cluster_bounding_box_shape: Option<Shape>,
9245        #[rasn(identifier = "clusterCardinalitySize")]
9246        pub cluster_cardinality_size: CardinalNumber1B,
9247        #[rasn(identifier = "clusterProfiles")]
9248        pub cluster_profiles: Option<VruClusterProfiles>,
9249    }
9250    impl VruClusterInformation {
9251        pub fn new(
9252            cluster_id: Option<Identifier1B>,
9253            cluster_bounding_box_shape: Option<Shape>,
9254            cluster_cardinality_size: CardinalNumber1B,
9255            cluster_profiles: Option<VruClusterProfiles>,
9256        ) -> Self {
9257            Self {
9258                cluster_id,
9259                cluster_bounding_box_shape,
9260                cluster_cardinality_size,
9261                cluster_profiles,
9262            }
9263        }
9264    }
9265    #[doc = "* "]
9266    #[doc = " * This DE Identifies all the VRU profile types within a cluster."]
9267    #[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)."]
9268    #[doc = " * "]
9269    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
9270    #[doc = " * - 0 `pedestrian`  - indicates that the VRU cluster contains at least one pedestrian VRU,"]
9271    #[doc = " * - 1 `bicycle`     - indicates that the VRU cluster contains at least one bicycle VRU member,"]
9272    #[doc = " * - 2 `motorcyclist`- indicates that the VRU cluster contains at least one motorcycle VRU member,"]
9273    #[doc = " * - 3 `animal`      - indicates that the VRU cluster contains at least one animal VRU member."]
9274    #[doc = " * "]
9275    #[doc = " * Otherwise, the corresponding bit shall be set to 0."]
9276    #[doc = " *"]
9277    #[doc = " * @category: VRU information"]
9278    #[doc = " * @revision: Created in V2.1.1"]
9279    #[doc = ""]
9280    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9281    #[rasn(delegate)]
9282    pub struct VruClusterProfiles(pub FixedBitString<4usize>);
9283    #[doc = "*"]
9284    #[doc = " * This DE represents the possible usage conditions of the VRU device."]
9285    #[doc = ""]
9286    #[doc = " * - The value shall be set to:"]
9287    #[doc = " * - 0 `unavailable`      - to indicate that the usage conditions are unavailable,"]
9288    #[doc = " * - 1 `other`            - to indicate that the VRU device is in a state not defined below,"]
9289    #[doc = " * - 2 `idle`             - to indicate that the human is currently not interacting with the device,"]
9290    #[doc = " * - 3 `listeningToAudio` - to indicate that any audio source other than calling is in use,"]
9291    #[doc = " * - 4 `typing`           - to indicate that the human is texting or performaing any other manual input activity,"]
9292    #[doc = " * - 5 `calling`          - to indicate that the VRU device is currently receiving a call,"]
9293    #[doc = " * - 6 `playingGames`     - to indicate that the human is playing games,"]
9294    #[doc = " * - 7 `reading`          - to indicate that the human is reading on the VRU device,"]
9295    #[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."]
9296    #[doc = " * - value 9 to 15        - are reserved for future usage. "]
9297    #[doc = " *"]
9298    #[doc = " * @category: VRU information"]
9299    #[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"]
9300    #[doc = " "]
9301    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9302    #[rasn(delegate, value("0..=15"))]
9303    pub struct VruDeviceUsage(pub u8);
9304    #[doc = "*"]
9305    #[doc = " * This DE represents the possible VRU environment conditions."]
9306    #[doc = " *"]
9307    #[doc = " * - The value shall be set to:"]
9308    #[doc = " * - 0 `unavailable`            - to indicate that the information on the type of environment is unavailable,"]
9309    #[doc = " * - 1 `intersectionCrossing`   - to indicate that the VRU is on an intersection or crossing,"]
9310    #[doc = " * - 2 `zebraCrossing`          - to indicate that the VRU is on a  zebra crossing (crosswalk),"]
9311    #[doc = " * - 3 `sidewalk`               - to indicate that the VRU is on a sidewalk,"]
9312    #[doc = " * - 4 `onVehicleRoad`          - to indicate that the VRU is on a traffic lane,"]
9313    #[doc = " * - 5 `protectedGeographicArea`- to indicate that the VRU is in a protected area."]
9314    #[doc = " * - value 6 to 15              - are reserved for future usage. "]
9315    #[doc = " *"]
9316    #[doc = " * @category: VRU information"]
9317    #[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"]
9318    #[doc = " "]
9319    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9320    #[rasn(delegate, value("0..=15"))]
9321    pub struct VruEnvironment(pub u8);
9322    #[doc = "*"]
9323    #[doc = " * This DF represents the status of the exterior light switches of a VRU."]
9324    #[doc = " * This DF is an extension of the vehicular DE @ref ExteriorLights."]
9325    #[doc = " *"]
9326    #[doc = " * It shall include the following components: "]
9327    #[doc = " * "]
9328    #[doc = " * @field vehicular:  represents the status of the exterior light switches of a road vehicle."]
9329    #[doc = " * "]
9330    #[doc = " * @field vruSpecific: represents the status of the exterior light switches of a VRU."]
9331    #[doc = " *"]
9332    #[doc = " * @category: VRU information"]
9333    #[doc = " * @revision: created in V2.1.1"]
9334    #[doc = " "]
9335    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9336    #[rasn(automatic_tags)]
9337    #[non_exhaustive]
9338    pub struct VruExteriorLights {
9339        pub vehicular: ExteriorLights,
9340        #[rasn(identifier = "vruSpecific")]
9341        pub vru_specific: VruSpecificExteriorLights,
9342    }
9343    impl VruExteriorLights {
9344        pub fn new(vehicular: ExteriorLights, vru_specific: VruSpecificExteriorLights) -> Self {
9345            Self {
9346                vehicular,
9347                vru_specific,
9348            }
9349        }
9350    }
9351    #[doc = "*"]
9352    #[doc = " *  This DE indicates the status of the possible human control over a VRU vehicle."]
9353    #[doc = " *"]
9354    #[doc = " * The value shall be set to:"]
9355    #[doc = " * - 0 `unavailable`                 - to indicate that the information is unavailable,"]
9356    #[doc = " * - 1 `braking`                     - to indicate that the VRU is braking,"]
9357    #[doc = " * - 2 `hardBraking`                 - to indicate that the VRU is braking hard,"]
9358    #[doc = " * - 3 `stopPedaling`                - to indicate that the VRU stopped pedaling,"]
9359    #[doc = " * - 4 `brakingAndStopPedaling`      - to indicate that the VRU stopped pedaling an is braking,"]
9360    #[doc = " * - 5 `hardBrakingAndStopPedaling`  - to indicate that the VRU stopped pedaling an is braking hard,"]
9361    #[doc = " * - 6 `noReaction`                  - to indicate that the VRU is not changing its behavior."]
9362    #[doc = " * - 7 to 15                         - are reserved for future usage. "]
9363    #[doc = " *"]
9364    #[doc = " * @category: VRU information"]
9365    #[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"]
9366    #[doc = " "]
9367    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9368    #[rasn(delegate, value("0..=15"))]
9369    pub struct VruMovementControl(pub u8);
9370    #[doc = "*"]
9371    #[doc = " * This DF indicates the profile of a VRU including sub-profile information"]
9372    #[doc = " * It identifies four options corresponding to the four types of VRU profiles specified in ETSI TS 103 300-2 [18]:"]
9373    #[doc = " *"]
9374    #[doc = " * @field pedestrian: VRU Profile 1 - Pedestrian."]
9375    #[doc = " *"]
9376    #[doc = " * @field bicyclistAndLightVruVehicle: VRU Profile  2 - Bicyclist."]
9377    #[doc = " *"]
9378    #[doc = " * @field motorcyclist: VRU Profile 3  - Motorcyclist."]
9379    #[doc = " *"]
9380    #[doc = " * @field animal: VRU Profile  4 -  Animal."]
9381    #[doc = " *"]
9382    #[doc = " * @category: VRU information"]
9383    #[doc = " * @revision: Created in V2.1.1"]
9384    #[doc = " "]
9385    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9386    #[rasn(choice, automatic_tags)]
9387    #[non_exhaustive]
9388    pub enum VruProfileAndSubprofile {
9389        pedestrian(VruSubProfilePedestrian),
9390        bicyclistAndLightVruVehicle(VruSubProfileBicyclist),
9391        motorcyclist(VruSubProfileMotorcyclist),
9392        animal(VruSubProfileAnimal),
9393    }
9394    #[doc = "*"]
9395    #[doc = " * This DE indicates the approximate size of a VRU including the VRU vehicle used."]
9396    #[doc = " * "]
9397    #[doc = " * The value shall be set to:"]
9398    #[doc = " * - 0 `unavailable`    - to indicate that there is no matched size class or due to privacy reasons in profile 1, "]
9399    #[doc = " * - 1 `low`            - to indicate that the VRU size class is low depending on the VRU profile,"]
9400    #[doc = " * - 2 `medium`         - to indicate that the VRU size class is medium depending on the VRU profile,"]
9401    #[doc = " * - 3 `high`           - to indicate that the VRU size class is high depending on the VRU profile."]
9402    #[doc = " * - 4 to 15            - are reserved for future usage. "]
9403    #[doc = " *"]
9404    #[doc = " * @category: VRU information"]
9405    #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
9406    #[doc = " "]
9407    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9408    #[rasn(delegate, value("0..=15"))]
9409    pub struct VruSizeClass(pub u8);
9410    #[doc = "*"]
9411    #[doc = " * This DE describes the status of the exterior light switches of a VRU."]
9412    #[doc = " *"]
9413    #[doc = " * The value of each bit indicates the state of the switch, which commands the corresponding light. "]
9414    #[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 "]
9415    #[doc = " * or automatically by a vehicle or VRU system: "]
9416    #[doc = " * - 0 `unavailable`     - indicates no information available, "]
9417    #[doc = " * - 1 `backFlashLight ` - indicates the status of the back flash light,"]
9418    #[doc = " * - 2 `helmetLight`     - indicates the status of the helmet light,"]
9419    #[doc = " * - 3 `armLight`        - indicates the status of the arm light,"]
9420    #[doc = " * - 4 `legLight`        - indicates the status of the leg light,"]
9421    #[doc = " * - 5 `wheelLight`      - indicates the status of the wheel light. "]
9422    #[doc = " * - Bits 6 to 8         - are reserved for future use. "]
9423    #[doc = " * The bit values do not indicate if the corresponding lamps are alight or not."]
9424    #[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."]
9425    #[doc = " *"]
9426    #[doc = " * @category: VRU information"]
9427    #[doc = " * @revision: Created in V2.1.1"]
9428    #[doc = " "]
9429    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9430    #[rasn(delegate)]
9431    pub struct VruSpecificExteriorLights(pub FixedBitString<8usize>);
9432    #[doc = "*"]
9433    #[doc = " * This DE indicates the profile of an animal"]
9434    #[doc = " * "]
9435    #[doc = " * The value shall be set to:"]
9436    #[doc = " * - 0 `unavailable`     - to indicate that the information  is unavailable,"]
9437    #[doc = " * - 1 `wild-animal`     - to indicate a animal living in the wildness, "]
9438    #[doc = " * - 2 `farm-animal`     - to indicate an animal beloning to a farm,"]
9439    #[doc = " * - 3 `service-animal`  - to indicate an animal that supports a human being."]
9440    #[doc = " * - 4 to 15             - are reserved for future usage. "]
9441    #[doc = " *"]
9442    #[doc = " * @category: VRU information"]
9443    #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
9444    #[doc = " "]
9445    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9446    #[rasn(delegate, value("0..=15"))]
9447    pub struct VruSubProfileAnimal(pub u8);
9448    #[doc = "*"]
9449    #[doc = " * This DE indicates the profile of a VRU and its light VRU vehicle / mounted animal. "]
9450    #[doc = " *"]
9451    #[doc = " * The value shall be set to:"]
9452    #[doc = " * - 0 `unavailable`           - to indicate that the information  is unavailable,"]
9453    #[doc = " * - 1 `bicyclist `            - to indicate a cycle and bicyclist to which no more-specific profile applies, "]
9454    #[doc = " * - 2 `wheelchair-user`       - to indicate a wheelchair and its user,"]
9455    #[doc = " * - 3 `horse-and-rider`       - to indicate a horse and rider,"]
9456    #[doc = " * - 4 `rollerskater`          - to indicate a roller-skater and skater,"]
9457    #[doc = " * - 5 `e-scooter`             - to indicate an e-scooter and rider,"]
9458    #[doc = " * - 6 `personal-transporter`  - to indicate a personal-transporter and rider,"]
9459    #[doc = " * - 7 `pedelec`               - to indicate a pedelec and rider to which no more-specific profile applies,"]
9460    #[doc = " * - 8 `speed-pedelec`         - to indicate a speed-pedelec and rider."]
9461    #[doc = " * - 9 `roadbike`              - to indicate a road bicycle (or road pedelec) and rider,"]
9462    #[doc = " * - 10 `childrensbike`        - to indicate a children´s bicycle (or children´s pedelec) and rider,"]
9463    #[doc = " * - 11 `racebike`             - to indicate a race bicycle (according to local applicable regulations) and rider. "]
9464    #[doc = " * - 12 to 15                  - are reserved for future usage. "]
9465    #[doc = " *"]
9466    #[doc = " * @category: VRU information"]
9467    #[doc = " * @revision: Created in V2.1.1, values 9 and 10 assigned in V2.2.1, value 11 assigned in V2.4.1"]
9468    #[doc = " "]
9469    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9470    #[rasn(delegate, value("0..=15"))]
9471    pub struct VruSubProfileBicyclist(pub u8);
9472    #[doc = "*"]
9473    #[doc = " * This DE indicates the profile of a motorcyclist and corresponding vehicle."]
9474    #[doc = " * "]
9475    #[doc = " * The value shall be set to:"]
9476    #[doc = " * - 0 `unavailable `                  - to indicate that the information  is unavailable,"]
9477    #[doc = " * - 1 `moped`                         - to indicate a moped and rider,"]
9478    #[doc = " * - 2 `motorcycle`                    - to indicate a motorcycle and rider,"]
9479    #[doc = " * - 3 `motorcycle-and-sidecar-right`  - to indicate a motorcycle with sidecar on the right and rider,"]
9480    #[doc = " * - 4 `motorcycle-and-sidecar-left`   - to indicate  a motorcycle with sidecar on the left and rider."]
9481    #[doc = " * - 5 to 15                           - are reserved for future usage. "]
9482    #[doc = " *"]
9483    #[doc = " * @category: VRU information"]
9484    #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
9485    #[doc = " "]
9486    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9487    #[rasn(delegate, value("0..=15"))]
9488    pub struct VruSubProfileMotorcyclist(pub u8);
9489    #[doc = "*"]
9490    #[doc = " * This DE indicates the profile of a pedestrian."]
9491    #[doc = " * "]
9492    #[doc = " * The value shall be set to:"]
9493    #[doc = " * - 0 `unavailable`             - to indicate that the information on is unavailable,"]
9494    #[doc = " * - 1 `ordinary-pedestrian`     - to indicate a pedestrian to which no more-specific profile applies,"]
9495    #[doc = " * - 2 `road-worker`             - to indicate a pedestrian with the role of a road worker,"]
9496    #[doc = " * - 3 `first-responder`         - to indicate a pedestrian with the role of a first responder."]
9497    #[doc = " * - value 4 to 15               - are reserved for future usage. "]
9498    #[doc = " *"]
9499    #[doc = " * @category: VRU information"]
9500    #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
9501    #[doc = " "]
9502    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9503    #[rasn(delegate, value("0..=15"))]
9504    pub struct VruSubProfilePedestrian(pub u8);
9505    #[doc = "*"]
9506    #[doc = " * This DE represents the World Manufacturer Identifier (WMI). The values are assigned according to ISO 3779 [6]."]
9507    #[doc = " * "]
9508    #[doc = " *"]
9509    #[doc = " * @category: Vehicle information"]
9510    #[doc = " * @revision: V1.3.1"]
9511    #[doc = " "]
9512    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9513    #[rasn(delegate, size("1..=3"))]
9514    pub struct WMInumber(pub Ia5String);
9515    #[doc = "* "]
9516    #[doc = " * This DF represents an angular component along with a confidence value in the WGS84 coordinate system."]
9517    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
9518    #[doc = " *"]
9519    #[doc = " * It shall include the following components: "]
9520    #[doc = " *"]
9521    #[doc = " * @field value: the angle value, which can be estimated as the mean of the current distribution."]
9522    #[doc = " *"]
9523    #[doc = " * @field confidence: the confidence value associated to the angle value."]
9524    #[doc = " *"]
9525    #[doc = " * @category: GeoReference information"]
9526    #[doc = " * @revision: Created in V2.1.1"]
9527    #[doc = ""]
9528    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9529    #[rasn(automatic_tags)]
9530    pub struct Wgs84Angle {
9531        pub value: Wgs84AngleValue,
9532        pub confidence: Wgs84AngleConfidence,
9533    }
9534    impl Wgs84Angle {
9535        pub fn new(value: Wgs84AngleValue, confidence: Wgs84AngleConfidence) -> Self {
9536            Self { value, confidence }
9537        }
9538    }
9539    #[doc = "* "]
9540    #[doc = " * This DE indicates the angle confidence value which represents the estimated accuracy of an angle value with a default confidence level of 95 %."]
9541    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
9542    #[doc = " * "]
9543    #[doc = " * The value shall be set to:"]
9544    #[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,"]
9545    #[doc = " * - `126` if the confidence value is out of range, i.e. greater than 12,5 degrees,"]
9546    #[doc = " * - `127` if the confidence value is not available."]
9547    #[doc = " *"]
9548    #[doc = " *"]
9549    #[doc = " * @unit 0,1 degrees"]
9550    #[doc = " * @category: GeoReference Information"]
9551    #[doc = " * @revision: Created in V2.1.1"]
9552    #[doc = ""]
9553    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9554    #[rasn(delegate, value("1..=127"))]
9555    pub struct Wgs84AngleConfidence(pub u8);
9556    #[doc = "* "]
9557    #[doc = " * This DE represents an angle value in degrees described in the WGS84 reference system with respect to the WGS84 north."]
9558    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
9559    #[doc = " * When the information is not available, the DE shall be set to 3 601. The value 3600 shall not be used."]
9560    #[doc = " *"]
9561    #[doc = " * @unit 0,1 degrees"]
9562    #[doc = " * @category: GeoReference Information"]
9563    #[doc = " * @revision: Created in V2.1.1"]
9564    #[doc = ""]
9565    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9566    #[rasn(delegate, value("0..=3601"))]
9567    pub struct Wgs84AngleValue(pub u16);
9568    #[doc = "*"]
9569    #[doc = " * This DE indicates the perpendicular distance between front and rear axle of the wheel base of vehicle."]
9570    #[doc = " *"]
9571    #[doc = " * The value shall be set to:"]
9572    #[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,"]
9573    #[doc = " * - `126` indicates that the wheel base distance is equal to or greater than 12,5 metres,"]
9574    #[doc = " * - `127` indicates that the information is unavailable."]
9575    #[doc = " *"]
9576    #[doc = " * @unit 0,1 metre"]
9577    #[doc = " * @category: Vehicle information"]
9578    #[doc = " * @revision: Created in V2.1.1"]
9579    #[doc = " "]
9580    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9581    #[rasn(delegate, value("1..=127"))]
9582    pub struct WheelBaseVehicle(pub u8);
9583    #[doc = "*"]
9584    #[doc = " * This DE indicates the actual status of the front wipers of the vehicle. "]
9585    #[doc = " *"]
9586    #[doc = " * The value shall be set to:"]
9587    #[doc = " * - 0 `unavailable`   - to indicate that the information is unavailable,"]
9588    #[doc = " * - 1 `off`           - to indicate that the wipers are switched off,"]
9589    #[doc = " * - 2 `intermittent`  - to indicate that the wipers are moving intermittently,"]
9590    #[doc = " * - 3 `low`           - to indicate that the wipers are moving at low speed,"]
9591    #[doc = " * - 4 `high`          - to indicate that the wipers are moving at high speed,"]
9592    #[doc = " * - values 5 to 7      - are reserved for future usage. "]
9593    #[doc = " *"]
9594    #[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. "]
9595    #[doc = " * @category: Vehicle information "]
9596    #[doc = " * @revision: created in V2.3.1"]
9597    #[doc = " "]
9598    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9599    #[rasn(delegate, value("0..=7"))]
9600    pub struct WiperStatus(pub u8);
9601    #[doc = "*"]
9602    #[doc = " * This DE represents the sub cause codes of the @ref CauseCode `wrongWayDriving` ."]
9603    #[doc = " * "]
9604    #[doc = " * The value shall be set to:"]
9605    #[doc = " * - 0 `unavailable`           - in case further detailed information on wrong way driving event is unavailable,"]
9606    #[doc = " * - 1 `wrongLane-deprecated`   - deprecated since not pertinent to wrong way driving,"]
9607    #[doc = " * - 2 `wrongDirection`        - in case vehicle is driving in a direction that it is not allowed,"]
9608    #[doc = " * - 3-255                     - reserved for future usage."]
9609    #[doc = " * "]
9610    #[doc = " * @category: Traffic information"]
9611    #[doc = " * @revision: V1.3.1, value 1 deprecated in V2.4.1"]
9612    #[doc = " "]
9613    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9614    #[rasn(delegate, value("0..=255"))]
9615    pub struct WrongWayDrivingSubCauseCode(pub u8);
9616    #[doc = "*"]
9617    #[doc = " * This DF represents a yaw rate of vehicle at a point in time."]
9618    #[doc = " *"]
9619    #[doc = " * It shall include the following components: "]
9620    #[doc = " * "]
9621    #[doc = " * @field yawRateValue: yaw rate value at a point in time."]
9622    #[doc = " * "]
9623    #[doc = " * @field yawRateConfidence: confidence value associated to the yaw rate value."]
9624    #[doc = " * "]
9625    #[doc = " * @category: Vehicle Information"]
9626    #[doc = " * @revision: V1.3.1"]
9627    #[doc = " "]
9628    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9629    #[rasn(automatic_tags)]
9630    pub struct YawRate {
9631        #[rasn(identifier = "yawRateValue")]
9632        pub yaw_rate_value: YawRateValue,
9633        #[rasn(identifier = "yawRateConfidence")]
9634        pub yaw_rate_confidence: YawRateConfidence,
9635    }
9636    impl YawRate {
9637        pub fn new(yaw_rate_value: YawRateValue, yaw_rate_confidence: YawRateConfidence) -> Self {
9638            Self {
9639                yaw_rate_value,
9640                yaw_rate_confidence,
9641            }
9642        }
9643    }
9644    #[doc = "*"]
9645    #[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 %."]
9646    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
9647    #[doc = " * "]
9648    #[doc = " * The value shall be set to:"]
9649    #[doc = " * - `0` if the confidence value is equal to or less than 0,01 degree/second,"]
9650    #[doc = " * - `1` if the confidence value is equal to or less than 0,05 degrees/second or greater than 0,01 degree/second,"]
9651    #[doc = " * - `2` if the confidence value is equal to or less than 0,1 degree/second or greater than 0,05 degree/second,"]
9652    #[doc = " * - `3` if the confidence value is equal to or less than 1 degree/second or greater than 0,1 degree/second,"]
9653    #[doc = " * - `4` if the confidence value is equal to or less than 5 degrees/second or greater than 1 degrees/second,"]
9654    #[doc = " * - `5` if the confidence value is equal to or less than 10 degrees/second or greater than 5 degrees/second,"]
9655    #[doc = " * - `6` if the confidence value is equal to or less than 100 degrees/second or greater than 10 degrees/second,"]
9656    #[doc = " * - `7` if the confidence value is out of range, i.e. greater than 100 degrees/second,"]
9657    #[doc = " * - `8` if the confidence value is unavailable."]
9658    #[doc = " * "]
9659    #[doc = " * NOTE: The fact that a yaw rate value is received with confidence value set to `unavailable(8)` can be caused by"]
9660    #[doc = " * several reasons, such as:"]
9661    #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
9662    #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
9663    #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
9664    #[doc = " * In all 3 cases above, the yaw rate value may be valid and used by the application."]
9665    #[doc = " * "]
9666    #[doc = " * If a yaw rate value is received and its confidence value is set to `outOfRange(7)`, it means that the "]
9667    #[doc = " * yaw rate value is not valid and therefore cannot be trusted. Such value is not useful the application."]
9668    #[doc = " * "]
9669    #[doc = " * @category: Vehicle information"]
9670    #[doc = " * @revision: Description revised in V2.1.1"]
9671    #[doc = " "]
9672    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
9673    #[rasn(enumerated)]
9674    pub enum YawRateConfidence {
9675        #[rasn(identifier = "degSec-000-01")]
9676        degSec_000_01 = 0,
9677        #[rasn(identifier = "degSec-000-05")]
9678        degSec_000_05 = 1,
9679        #[rasn(identifier = "degSec-000-10")]
9680        degSec_000_10 = 2,
9681        #[rasn(identifier = "degSec-001-00")]
9682        degSec_001_00 = 3,
9683        #[rasn(identifier = "degSec-005-00")]
9684        degSec_005_00 = 4,
9685        #[rasn(identifier = "degSec-010-00")]
9686        degSec_010_00 = 5,
9687        #[rasn(identifier = "degSec-100-00")]
9688        degSec_100_00 = 6,
9689        outOfRange = 7,
9690        unavailable = 8,
9691    }
9692    #[doc = "*"]
9693    #[doc = " * This DE represents the vehicle rotation around z-axis of the coordinate system centred on the centre of mass of the empty-loaded"]
9694    #[doc = " * vehicle. The leading sign denotes the direction of rotation."]
9695    #[doc = " * "]
9696    #[doc = " * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11."]
9697    #[doc = " *"]
9698    #[doc = " * The value shall be set to:"]
9699    #[doc = " * - `-32 766` to indicate that the yaw rate is equal to or greater than 327,66 degrees/second to the right,"]
9700    #[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, "]
9701    #[doc = "      and greater than (n-1) x 0,01 degrees/s,"]
9702    #[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, "]
9703    #[doc = "      and greater than (n-1) x 0,01 degrees/s,"]
9704    #[doc = " * - `32 766` to indicate that the yaw rate is greater than 327.65 degrees/second to the left,"]
9705    #[doc = " * - `32 767` to indicate that the information is not available."]
9706    #[doc = " * "]
9707    #[doc = " * The reading instant should be the same as for the vehicle acceleration."]
9708    #[doc = " * "]
9709    #[doc = " * @note: The empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
9710    #[doc = " * "]
9711    #[doc = " * @unit: 0,01 degree per second. "]
9712    #[doc = " * @category: Vehicle Information"]
9713    #[doc = " * @revision: Description revised in V2.1.1 (the meaning of 32766 has changed slightly). Requirement on raw data deleted in V2.4.1"]
9714    #[doc = ""]
9715    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9716    #[rasn(delegate, value("-32766..=32767"))]
9717    pub struct YawRateValue(pub i16);
9718}