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        #[rasn(extension_addition, identifier = "extensionContainers")]
235        pub extension_containers: Option<WrappedExtensionContainers>,
236    }
237    impl CamParameters {
238        pub fn new(
239            basic_container: BasicContainer,
240            high_frequency_container: HighFrequencyContainer,
241            low_frequency_container: Option<LowFrequencyContainer>,
242            special_vehicle_container: Option<SpecialVehicleContainer>,
243            extension_containers: Option<WrappedExtensionContainers>,
244        ) -> Self {
245            Self {
246                basic_container,
247                high_frequency_container,
248                low_frequency_container,
249                special_vehicle_container,
250                extension_containers,
251            }
252        }
253    }
254    #[doc = "*"]
255    #[doc = "* This type represents the CAM payload. "]
256    #[doc = "*"]
257    #[doc = "* It shall include the following components: "]
258    #[doc = "*"]
259    #[doc = "* @field generationDeltaTime: Time corresponding to the time of the reference position in the CAM, considered as time of the CAM generation."]
260    #[doc = "*"]
261    #[doc = "* @field camParameters: The sequence of CAM mandatory and optional container."]
262    #[doc = "*"]
263    #[doc = ""]
264    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
265    #[rasn(automatic_tags)]
266    pub struct CamPayload {
267        #[rasn(identifier = "generationDeltaTime")]
268        pub generation_delta_time: GenerationDeltaTime,
269        #[rasn(identifier = "camParameters")]
270        pub cam_parameters: CamParameters,
271    }
272    impl CamPayload {
273        pub fn new(
274            generation_delta_time: GenerationDeltaTime,
275            cam_parameters: CamParameters,
276        ) -> Self {
277            Self {
278                generation_delta_time,
279                cam_parameters,
280            }
281        }
282    }
283    #[doc = "*"]
284    #[doc = "* This type contains type-specific information about cyclists."]
285    #[doc = "*"]
286    #[doc = "* It shall include the following components:"]
287    #[doc = "*"]
288    #[doc = "* @field vruSubProfileBicyclist: it indicates the detailed type of the cyclist."]
289    #[doc = "*"]
290    #[doc = "* @field vruMovementControl: it includes information about the movement control of the bicycle."]
291    #[doc = "*"]
292    #[doc = ""]
293    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
294    #[rasn(automatic_tags)]
295    #[non_exhaustive]
296    pub struct CyclistTypeSpecificInformation {
297        #[rasn(value("0..=10"), identifier = "vruSubProfileBicyclist")]
298        pub vru_sub_profile_bicyclist: Option<VruSubProfileBicyclist>,
299        #[rasn(identifier = "vruMovementControl")]
300        pub vru_movement_control: Option<VruMovementControl>,
301    }
302    impl CyclistTypeSpecificInformation {
303        pub fn new(
304            vru_sub_profile_bicyclist: Option<VruSubProfileBicyclist>,
305            vru_movement_control: Option<VruMovementControl>,
306        ) -> Self {
307            Self {
308                vru_sub_profile_bicyclist,
309                vru_movement_control,
310            }
311        }
312    }
313    #[doc = "*"]
314    #[doc = "* This type contains detaild information of the Dangerous Goods Container."]
315    #[doc = "*"]
316    #[doc = "* It shall include the following components:"]
317    #[doc = "*"]
318    #[doc = "* @field dangerousGoodsBasic: identifies the type of the dangerous goods transported by the vehicle that originates the CAM. It shall be present if"]
319    #[doc = "* the data is available in the originating ITS S."]
320    #[doc = ""]
321    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
322    #[rasn(automatic_tags)]
323    pub struct DangerousGoodsContainer {
324        #[rasn(identifier = "dangerousGoodsBasic")]
325        pub dangerous_goods_basic: DangerousGoodsBasic,
326    }
327    impl DangerousGoodsContainer {
328        pub fn new(dangerous_goods_basic: DangerousGoodsBasic) -> Self {
329            Self {
330                dangerous_goods_basic,
331            }
332        }
333    }
334    #[doc = "*"]
335    #[doc = "* This type contains contextual, map-based location information."]
336    #[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."]
337    #[doc = "*"]
338    #[doc = "* It shall include the following components:"]
339    #[doc = "*"]
340    #[doc = "* @field segmentAhead: the road segment that the vehicle is predicted to reach, starting from the reference position."]
341    #[doc = "* At least one node must be filled in so that the current map position can be calculated on the receiver side."]
342    #[doc = "*"]
343    #[doc = "* @field nodeProbabilities: confidence values for each node in segmentAhead, indicating how confident we are that the ITS station will reach that point."]
344    #[doc = "*"]
345    #[doc = "* @field segmentBehind: the road segment that the vehicle has passed, based on the collected data, starting from the reference position."]
346    #[doc = "* At least one node must be filled in so that the current map position can be calculated on the receiver side."]
347    #[doc = "*"]
348    #[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."]
349    #[doc = "*"]
350    #[doc = "* @field segmentSource: it represents the origin of the map-specific data."]
351    #[doc = "*"]
352    #[doc = ""]
353    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
354    #[rasn(automatic_tags)]
355    #[non_exhaustive]
356    pub struct EHorizonLocationSharingContainer {
357        #[rasn(identifier = "segmentAhead")]
358        pub segment_ahead: PolygonalLine,
359        #[rasn(identifier = "nodeProbabilities")]
360        pub node_probabilities: Option<ConfidenceLevels>,
361        #[rasn(identifier = "segmentBehind")]
362        pub segment_behind: PolygonalLine,
363        #[rasn(identifier = "laneLevelDetails")]
364        pub lane_level_details: Option<BasicLaneConfiguration>,
365        #[rasn(value("0.."), identifier = "segmentSource")]
366        pub segment_source: Option<MetaInformation>,
367    }
368    impl EHorizonLocationSharingContainer {
369        pub fn new(
370            segment_ahead: PolygonalLine,
371            node_probabilities: Option<ConfidenceLevels>,
372            segment_behind: PolygonalLine,
373            lane_level_details: Option<BasicLaneConfiguration>,
374            segment_source: Option<MetaInformation>,
375        ) -> Self {
376            Self {
377                segment_ahead,
378                node_probabilities,
379                segment_behind,
380                lane_level_details,
381                segment_source,
382            }
383        }
384    }
385    #[doc = "*"]
386    #[doc = "* This type contains detaild information of the Emergency Container."]
387    #[doc = "*"]
388    #[doc = "* It shall include the following components:"]
389    #[doc = "*"]
390    #[doc = "* @field lightBarSirenInUse: it indicates whether light-bar or a siren is in use by the vehicle originating the CAM."]
391    #[doc = "*"]
392    #[doc = "* @field incidentIndication: the optional incident related to the roadworks to provide additional information of the roadworks zone."]
393    #[doc = "*"]
394    #[doc = "* @field emergencyPriority: the optional component represent right of way indicator of the vehicle ITS-S that originates the CAM PDU."]
395    #[doc = ""]
396    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
397    #[rasn(automatic_tags)]
398    pub struct EmergencyContainer {
399        #[rasn(identifier = "lightBarSirenInUse")]
400        pub light_bar_siren_in_use: LightBarSirenInUse,
401        #[rasn(identifier = "incidentIndication")]
402        pub incident_indication: Option<CauseCodeV2>,
403        #[rasn(identifier = "emergencyPriority")]
404        pub emergency_priority: Option<EmergencyPriority>,
405    }
406    impl EmergencyContainer {
407        pub fn new(
408            light_bar_siren_in_use: LightBarSirenInUse,
409            incident_indication: Option<CauseCodeV2>,
410            emergency_priority: Option<EmergencyPriority>,
411        ) -> Self {
412            Self {
413                light_bar_siren_in_use,
414                incident_indication,
415                emergency_priority,
416            }
417        }
418    }
419    #[doc = "*"]
420    #[doc = "* This DE represents the identifier of the container type."]
421    #[doc = ""]
422    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
423    #[rasn(delegate, value("1..=16", extensible))]
424    pub struct ExtensionContainerId(pub Integer);
425    #[doc = "*"]
426    #[doc = "* This type represents the generalized lane positions container."]
427    #[doc = "*"]
428    #[doc = "* Contains detailed information about the transversal position of the ITS station with respect to the road and potentially about the lane type."]
429    #[doc = ""]
430    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
431    #[rasn(automatic_tags)]
432    #[non_exhaustive]
433    pub struct GeneralizedLanePositionsContainer {
434        #[rasn(identifier = "generalizedLanePositions")]
435        pub generalized_lane_positions: GeneralizedLanePositions,
436    }
437    impl GeneralizedLanePositionsContainer {
438        pub fn new(generalized_lane_positions: GeneralizedLanePositions) -> Self {
439            Self {
440                generalized_lane_positions,
441            }
442        }
443    }
444    #[doc = "*"]
445    #[doc = "* This type represents the high frequency container."]
446    #[doc = "* "]
447    #[doc = "* It shall include the following components: "]
448    #[doc = "*"]
449    #[doc = "* @field basicVehicleContainerHighFrequency: The mandatory high frequency container of the CAM when the originating ITS-S is of the type vehicle ITS-S."]
450    #[doc = "*"]
451    #[doc = "* @field rsuContainerHighFrequency: The mandatory high frequency container of CAM when the type of the originating ITS-S is RSU ITS-S."]
452    #[doc = ""]
453    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
454    #[rasn(choice, automatic_tags)]
455    #[non_exhaustive]
456    pub enum HighFrequencyContainer {
457        basicVehicleContainerHighFrequency(BasicVehicleContainerHighFrequency),
458        rsuContainerHighFrequency(RSUContainerHighFrequency),
459    }
460    #[doc = "*"]
461    #[doc = "* This type represents the low frequency container."]
462    #[doc = "* "]
463    #[doc = "* It shall include the following components: "]
464    #[doc = "*"]
465    #[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."]
466    #[doc = ""]
467    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
468    #[rasn(choice, automatic_tags)]
469    #[non_exhaustive]
470    pub enum LowFrequencyContainer {
471        #[rasn(value("0.."))]
472        basicVehicleContainerLowFrequency(BasicVehicleContainerLowFrequency),
473    }
474    #[doc = "*"]
475    #[doc = "* This type represents the path prediction container."]
476    #[doc = "*"]
477    #[doc = "* Contains information about the possible future paths of ITS station."]
478    #[doc = ""]
479    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
480    #[rasn(automatic_tags)]
481    #[non_exhaustive]
482    pub struct PathPredictionContainer {
483        #[rasn(identifier = "pathPredictedList")]
484        pub path_predicted_list: PathPredictedList,
485    }
486    impl PathPredictionContainer {
487        pub fn new(path_predicted_list: PathPredictedList) -> Self {
488            Self {
489                path_predicted_list,
490            }
491        }
492    }
493    #[doc = "*"]
494    #[doc = "* This type contains detaild information of the Public Transport Container."]
495    #[doc = "*"]
496    #[doc = "* It shall include the following components:"]
497    #[doc = "*"]
498    #[doc = "* @field embarkationStatus: It indicates whether the passenger embarkation is currently ongoing. "]
499    #[doc = "*"]
500    #[doc = "* @field ptActivation: an optional component used for controlling traffic lights, barriers, bollards, etc."]
501    #[doc = ""]
502    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
503    #[rasn(automatic_tags)]
504    pub struct PublicTransportContainer {
505        #[rasn(identifier = "embarkationStatus")]
506        pub embarkation_status: EmbarkationStatus,
507        #[rasn(identifier = "ptActivation")]
508        pub pt_activation: Option<PtActivation>,
509    }
510    impl PublicTransportContainer {
511        pub fn new(
512            embarkation_status: EmbarkationStatus,
513            pt_activation: Option<PtActivation>,
514        ) -> Self {
515            Self {
516                embarkation_status,
517                pt_activation,
518            }
519        }
520    }
521    #[doc = "*"]
522    #[doc = "* This type contains detaild information of the RSU Container High Frequency."]
523    #[doc = "*"]
524    #[doc = "* It shall include the following components:"]
525    #[doc = "*"]
526    #[doc = "* @field protectedCommunicationZonesRSU: an optional Information about position of a CEN DSRC Tolling Station operating in the 5,8 GHz frequency "]
527    #[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"]
528    #[doc = "* CEN DSRC tolling stations. "]
529    #[doc = ""]
530    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
531    #[rasn(automatic_tags)]
532    #[non_exhaustive]
533    pub struct RSUContainerHighFrequency {
534        #[rasn(identifier = "protectedCommunicationZonesRSU")]
535        pub protected_communication_zones_rsu: Option<ProtectedCommunicationZonesRSU>,
536    }
537    impl RSUContainerHighFrequency {
538        pub fn new(
539            protected_communication_zones_rsu: Option<ProtectedCommunicationZonesRSU>,
540        ) -> Self {
541            Self {
542                protected_communication_zones_rsu,
543            }
544        }
545    }
546    #[doc = "*"]
547    #[doc = "* This type contains detaild information of the Rescue Container."]
548    #[doc = "*"]
549    #[doc = "* It shall include the following components:"]
550    #[doc = "*"]
551    #[doc = "* @field lightBarSirenInUse: it indicates whether light-bar or a siren is in use by the vehicle originating the CAM."]
552    #[doc = ""]
553    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
554    #[rasn(automatic_tags)]
555    pub struct RescueContainer {
556        #[rasn(identifier = "lightBarSirenInUse")]
557        pub light_bar_siren_in_use: LightBarSirenInUse,
558    }
559    impl RescueContainer {
560        pub fn new(light_bar_siren_in_use: LightBarSirenInUse) -> Self {
561            Self {
562                light_bar_siren_in_use,
563            }
564        }
565    }
566    #[doc = "*"]
567    #[doc = "* This type contains detaild information of the Road Works Container Basic."]
568    #[doc = "*"]
569    #[doc = "* It shall include the following components:"]
570    #[doc = "*"]
571    #[doc = "* @field roadworksSubCauseCode: The optional component, in case the originating ITS-S is mounted to a vehicle ITS-S participating to roadwork. It "]
572    #[doc = "* provides information on the type of roadwork that it is currently undertaking. This component shall be present if the data is available in "]
573    #[doc = "* originating ITS S."]
574    #[doc = "*"]
575    #[doc = "* @field lightBarSirenInUse: it indicates whether light-bar or a siren is in use by the vehicle originating the CAM."]
576    #[doc = "*"]
577    #[doc = "* @field closedLanes: an optional component which provides information about the opening/closure status of the lanes ahead. Lanes are counted from"]
578    #[doc = "* the inside boarder of the road. If a lane is closed to traffic, the corresponding bit shall be set to 1."]
579    #[doc = ""]
580    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
581    #[rasn(automatic_tags)]
582    pub struct RoadWorksContainerBasic {
583        #[rasn(identifier = "roadworksSubCauseCode")]
584        pub roadworks_sub_cause_code: Option<RoadworksSubCauseCode>,
585        #[rasn(identifier = "lightBarSirenInUse")]
586        pub light_bar_siren_in_use: LightBarSirenInUse,
587        #[rasn(identifier = "closedLanes")]
588        pub closed_lanes: Option<ClosedLanes>,
589    }
590    impl RoadWorksContainerBasic {
591        pub fn new(
592            roadworks_sub_cause_code: Option<RoadworksSubCauseCode>,
593            light_bar_siren_in_use: LightBarSirenInUse,
594            closed_lanes: Option<ClosedLanes>,
595        ) -> Self {
596            Self {
597                roadworks_sub_cause_code,
598                light_bar_siren_in_use,
599                closed_lanes,
600            }
601        }
602    }
603    #[doc = "*"]
604    #[doc = "* This type contains detaild information of the Safety Car Container."]
605    #[doc = "*"]
606    #[doc = "* It shall include the following components:"]
607    #[doc = "*"]
608    #[doc = "* @field lightBarSirenInUse: it indicates whether light-bar or a siren is in use by the vehicle originating the CAM."]
609    #[doc = "*"]
610    #[doc = "* @field incidentIndication: the optional incident related to the roadworks to provide additional information of the roadworks zone."]
611    #[doc = "*"]
612    #[doc = "* @field trafficRule: an optional rule indicates whether vehicles are allowed to overtake a safety car that is originating this CAM."]
613    #[doc = "*"]
614    #[doc = "* @field speedLimit: an optional speed indicates whether a speed limit is applied to vehicles following the safety car. "]
615    #[doc = ""]
616    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
617    #[rasn(automatic_tags)]
618    pub struct SafetyCarContainer {
619        #[rasn(identifier = "lightBarSirenInUse")]
620        pub light_bar_siren_in_use: LightBarSirenInUse,
621        #[rasn(identifier = "incidentIndication")]
622        pub incident_indication: Option<CauseCodeV2>,
623        #[rasn(identifier = "trafficRule")]
624        pub traffic_rule: Option<TrafficRule>,
625        #[rasn(identifier = "speedLimit")]
626        pub speed_limit: Option<SpeedLimit>,
627    }
628    impl SafetyCarContainer {
629        pub fn new(
630            light_bar_siren_in_use: LightBarSirenInUse,
631            incident_indication: Option<CauseCodeV2>,
632            traffic_rule: Option<TrafficRule>,
633            speed_limit: Option<SpeedLimit>,
634        ) -> Self {
635            Self {
636                light_bar_siren_in_use,
637                incident_indication,
638                traffic_rule,
639                speed_limit,
640            }
641        }
642    }
643    #[doc = "*"]
644    #[doc = "* This type contains detaild information of the Special Transport Container."]
645    #[doc = "*"]
646    #[doc = "* It shall include the following components:"]
647    #[doc = "*"]
648    #[doc = "* @field specialTransportType: which indicates whether the originating ITS-S is mounted on a special transport vehicle with heavy or oversized load"]
649    #[doc = "* or both. It shall be present if the data is available in originating ITS-S."]
650    #[doc = "*"]
651    #[doc = "* @field lightBarSirenInUse: indicates whether light-bar or a siren is in use by the vehicle originating the CAM."]
652    #[doc = ""]
653    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
654    #[rasn(automatic_tags)]
655    pub struct SpecialTransportContainer {
656        #[rasn(identifier = "specialTransportType")]
657        pub special_transport_type: SpecialTransportType,
658        #[rasn(identifier = "lightBarSirenInUse")]
659        pub light_bar_siren_in_use: LightBarSirenInUse,
660    }
661    impl SpecialTransportContainer {
662        pub fn new(
663            special_transport_type: SpecialTransportType,
664            light_bar_siren_in_use: LightBarSirenInUse,
665        ) -> Self {
666            Self {
667                special_transport_type,
668                light_bar_siren_in_use,
669            }
670        }
671    }
672    #[doc = "*"]
673    #[doc = "* This type represent the Special Vehicle Container."]
674    #[doc = "*"]
675    #[doc = "* It shall include the following components:"]
676    #[doc = "*"]
677    #[doc = "* @field publicTransportContainer: If the vehicleRole component is set to publicTransport(1) this container shall be present."]
678    #[doc = "*"]
679    #[doc = "* @field specialTransportContainer: If the vehicleRole component is set to specialTransport(2) this container shall be present."]
680    #[doc = "*"]
681    #[doc = "* @field dangerousGoodsContainer: If the vehicleRole component is set to dangerousGoods(3) this container shall be present."]
682    #[doc = "*"]
683    #[doc = "* @field roadWorksContainerBasic: If the vehicleRole component is set to roadWork(4) this container shall be present. "]
684    #[doc = "*"]
685    #[doc = "* @field rescueContainer: If the vehicleRole component is set to rescue(5) this container shall be present. "]
686    #[doc = "*"]
687    #[doc = "* @field emergencyContainer: If the vehicleRole component is set to emergency(6) this container shall be present."]
688    #[doc = "*"]
689    #[doc = "* @field safetyCarContainer: If the vehicleRole component is set to safetyCar(7) this container shall be present. "]
690    #[doc = ""]
691    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
692    #[rasn(choice, automatic_tags)]
693    #[non_exhaustive]
694    pub enum SpecialVehicleContainer {
695        publicTransportContainer(PublicTransportContainer),
696        specialTransportContainer(SpecialTransportContainer),
697        dangerousGoodsContainer(DangerousGoodsContainer),
698        roadWorksContainerBasic(RoadWorksContainerBasic),
699        rescueContainer(RescueContainer),
700        emergencyContainer(EmergencyContainer),
701        safetyCarContainer(SafetyCarContainer),
702    }
703    #[doc = "*"]
704    #[doc = "* This type contains detailed information about two wheelers. It is meant to use for StationType"]
705    #[doc = "* cyclist, moped and motorcycle."]
706    #[doc = "*"]
707    #[doc = "* It shall include the following components:"]
708    #[doc = "*"]
709    #[doc = "* @field typeSpecificInformation: this data field contains type specific information about two wheelers."]
710    #[doc = "*"]
711    #[doc = "* @field rollAngle: this data field describes the roll angle of the two wheeler."]
712    #[doc = "*"]
713    #[doc = "* @field orientation: this data field describes the orientation of the two wheeler."]
714    #[doc = "*"]
715    #[doc = "* @field stabilityChangeIndication: this data field describes if the two wheeler is about to lose control."]
716    #[doc = "*"]
717    #[doc = ""]
718    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
719    #[rasn(automatic_tags)]
720    #[non_exhaustive]
721    pub struct TwoWheelerContainer {
722        #[rasn(identifier = "typeSpecificInformation")]
723        pub type_specific_information: Option<TwoWheelerTypeSpecificInformation>,
724        #[rasn(identifier = "rollAngle")]
725        pub roll_angle: Option<CartesianAngle>,
726        pub orientation: Option<Wgs84Angle>,
727        #[rasn(identifier = "stabilityChangeIndication")]
728        pub stability_change_indication: Option<StabilityChangeIndication>,
729    }
730    impl TwoWheelerContainer {
731        pub fn new(
732            type_specific_information: Option<TwoWheelerTypeSpecificInformation>,
733            roll_angle: Option<CartesianAngle>,
734            orientation: Option<Wgs84Angle>,
735            stability_change_indication: Option<StabilityChangeIndication>,
736        ) -> Self {
737            Self {
738                type_specific_information,
739                roll_angle,
740                orientation,
741                stability_change_indication,
742            }
743        }
744    }
745    #[doc = "*"]
746    #[doc = "* This type contains type specific information about a two wheeler."]
747    #[doc = "*"]
748    #[doc = "* It includes one of the following components:"]
749    #[doc = "*"]
750    #[doc = "* @field cyclist: it contains cyclist-specific information."]
751    #[doc = "*"]
752    #[doc = ""]
753    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
754    #[rasn(choice, automatic_tags)]
755    #[non_exhaustive]
756    pub enum TwoWheelerTypeSpecificInformation {
757        cyclist(CyclistTypeSpecificInformation),
758    }
759    #[doc = "*"]
760    #[doc = "* This type represents the vehicle movement control container."]
761    #[doc = "*"]
762    #[doc = "* Contains information about the current vehicle movement control status "]
763    #[doc = "* of ITS station."]
764    #[doc = "*  This contains: "]
765    #[doc = "*\t- brake and acceleration pedal position status information"]
766    #[doc = "* \t- mechanism for lateral, longitudinal movements dimensions "]
767    #[doc = "*\t  of the vehicle "]
768    #[doc = ""]
769    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
770    #[rasn(automatic_tags)]
771    #[non_exhaustive]
772    pub struct VehicleMovementControlContainer {
773        #[rasn(identifier = "vehicleMovementControl")]
774        pub vehicle_movement_control: VehicleMovementControl,
775    }
776    impl VehicleMovementControlContainer {
777        pub fn new(vehicle_movement_control: VehicleMovementControl) -> Self {
778            Self {
779                vehicle_movement_control,
780            }
781        }
782    }
783    #[doc = "*"]
784    #[doc = "* This type represents the very low frequency container."]
785    #[doc = "*"]
786    #[doc = "* It shall include the following components:"]
787    #[doc = "*"]
788    #[doc = "* @field vehicleHeight: this component represents the height of the vehicle that originates the CAM."]
789    #[doc = "*"]
790    #[doc = "* @field wiperStatus: this component represents the status of the wipers of the vehicle that originates the CAM, at the time indicated by generationDeltaTime."]
791    #[doc = "*"]
792    #[doc = "* @field brakeControl: this component represents the status of the brake control system of the vehicle that originates the CAM, "]
793    #[doc = "* at the time indicated by generationDeltaTime and during the period 10 seconds before that time."]
794    #[doc = ""]
795    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
796    #[rasn(automatic_tags)]
797    #[non_exhaustive]
798    pub struct VeryLowFrequencyContainer {
799        #[rasn(identifier = "vehicleHeight")]
800        pub vehicle_height: Option<VehicleHeight2>,
801        #[rasn(identifier = "wiperStatus")]
802        pub wiper_status: Option<WiperStatus>,
803        #[rasn(identifier = "brakeControl")]
804        pub brake_control: Option<BrakeControl>,
805    }
806    impl VeryLowFrequencyContainer {
807        pub fn new(
808            vehicle_height: Option<VehicleHeight2>,
809            wiper_status: Option<WiperStatus>,
810            brake_control: Option<BrakeControl>,
811        ) -> Self {
812            Self {
813                vehicle_height,
814                wiper_status,
815                brake_control,
816            }
817        }
818    }
819    #[doc = "*"]
820    #[doc = "* This DF represents a CAM container preceded by its type identifier and a length indicator."]
821    #[doc = "*"]
822    #[doc = "* It shall include the following components:"]
823    #[doc = "*"]
824    #[doc = "* @field containerId: the identifier of the container type."]
825    #[doc = "*"]
826    #[doc = "* @field containerData: the container content consistent with the container type."]
827    #[doc = "*"]
828    #[doc = ""]
829    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
830    #[rasn(automatic_tags)]
831    pub struct WrappedExtensionContainer {
832        #[rasn(identifier = "containerId")]
833        pub container_id: ExtensionContainerId,
834        #[rasn(identifier = "containerData")]
835        pub container_data: Any,
836    }
837    impl WrappedExtensionContainer {
838        pub fn new(container_id: ExtensionContainerId, container_data: Any) -> Self {
839            Self {
840                container_id,
841                container_data,
842            }
843        }
844    }
845    #[doc = "*"]
846    #[doc = "* This DF represents a list of CAM containers, each with their type identifier."]
847    #[doc = ""]
848    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
849    #[rasn(delegate, size("1..=8", extensible))]
850    pub struct WrappedExtensionContainers(pub SequenceOf<WrappedExtensionContainer>);
851    pub static E_HORIZON_LOCATION_SHARING_CONTAINER: LazyLock<ExtensionContainerId> =
852        LazyLock::new(|| ExtensionContainerId(Integer::from(2i128)));
853    pub static GENERALIZED_LANE_POSITIONS_CONTAINER: LazyLock<ExtensionContainerId> =
854        LazyLock::new(|| ExtensionContainerId(Integer::from(5i128)));
855    pub static PATH_PREDICTION_CONTAINER: LazyLock<ExtensionContainerId> =
856        LazyLock::new(|| ExtensionContainerId(Integer::from(4i128)));
857    #[doc = "*"]
858    #[doc = "* These value assignments represent specific values of the container type identifier. "]
859    #[doc = ""]
860    pub static TWO_WHEELER_CONTAINER: LazyLock<ExtensionContainerId> =
861        LazyLock::new(|| ExtensionContainerId(Integer::from(1i128)));
862    pub static VEHICLE_MOVEMENT_CONTROL_CONTAINER: LazyLock<ExtensionContainerId> =
863        LazyLock::new(|| ExtensionContainerId(Integer::from(6i128)));
864    pub static VERY_LOW_FREQUENCY_CONTAINER: LazyLock<ExtensionContainerId> =
865        LazyLock::new(|| ExtensionContainerId(Integer::from(3i128)));
866}
867#[allow(
868    non_camel_case_types,
869    non_snake_case,
870    non_upper_case_globals,
871    unused,
872    clippy::too_many_arguments,
873    clippy::doc_overindented_list_items
874)]
875pub mod etsi_its_cdd {
876    extern crate alloc;
877    use core::borrow::Borrow;
878    use rasn::prelude::*;
879    use std::sync::LazyLock;
880    #[doc = ""]
881    #[doc = ""]
882    #[doc = ""]
883    #[doc = ""]
884    #[doc = ""]
885    #[doc = ""]
886    #[doc = ""]
887    #[doc = ""]
888    #[doc = ""]
889    #[doc = ""]
890    #[doc = " Specification of CDD Data Frames:"]
891    #[doc = ""]
892    #[doc = ""]
893    #[doc = ""]
894    #[doc = ""]
895    #[doc = ""]
896    #[doc = ""]
897    #[doc = ""]
898    #[doc = ""]
899    #[doc = ""]
900    #[doc = ""]
901    #[doc = "*"]
902    #[doc = " * This DF represents an acceleration vector with associated confidence value."]
903    #[doc = " *"]
904    #[doc = " * It shall include the following components: "]
905    #[doc = " * "]
906    #[doc = " * @field polarAcceleration: the representation of the acceleration vector in a polar or cylindrical coordinate system. "]
907    #[doc = " * "]
908    #[doc = " * @field cartesianAcceleration: the representation of the acceleration vector in a cartesian coordinate system."]
909    #[doc = " * "]
910    #[doc = " * @category: Kinematic information"]
911    #[doc = " * @revision: Created in V2.1.1"]
912    #[doc = " "]
913    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
914    #[rasn(choice, automatic_tags)]
915    pub enum Acceleration3dWithConfidence {
916        polarAcceleration(AccelerationPolarWithZ),
917        cartesianAcceleration(AccelerationCartesian),
918    }
919    #[doc = "*"]
920    #[doc = " * This DF represents a acceleration vector in a cartesian coordinate system."]
921    #[doc = " "]
922    #[doc = " * It shall include the following components: "]
923    #[doc = " * "]
924    #[doc = " * @field xAcceleration: the x component of the acceleration vector with the associated confidence value."]
925    #[doc = " * "]
926    #[doc = " * @field yAcceleration: the y component of the acceleration vector with the associated confidence value."]
927    #[doc = " *"]
928    #[doc = " * @field zAcceleration: the optional z component of the acceleration vector with the associated confidence value."]
929    #[doc = " * "]
930    #[doc = " * @category: Kinematic information"]
931    #[doc = " * @revision: Created in V2.1.1"]
932    #[doc = " "]
933    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
934    #[rasn(automatic_tags)]
935    pub struct AccelerationCartesian {
936        #[rasn(identifier = "xAcceleration")]
937        pub x_acceleration: AccelerationComponent,
938        #[rasn(identifier = "yAcceleration")]
939        pub y_acceleration: AccelerationComponent,
940        #[rasn(identifier = "zAcceleration")]
941        pub z_acceleration: Option<AccelerationComponent>,
942    }
943    impl AccelerationCartesian {
944        pub fn new(
945            x_acceleration: AccelerationComponent,
946            y_acceleration: AccelerationComponent,
947            z_acceleration: Option<AccelerationComponent>,
948        ) -> Self {
949            Self {
950                x_acceleration,
951                y_acceleration,
952                z_acceleration,
953            }
954        }
955    }
956    #[doc = ""]
957    #[doc = ""]
958    #[doc = ""]
959    #[doc = ""]
960    #[doc = ""]
961    #[doc = ""]
962    #[doc = ""]
963    #[doc = ""]
964    #[doc = ""]
965    #[doc = ""]
966    #[doc = ""]
967    #[doc = " Specification of CDD Data Elements: "]
968    #[doc = ""]
969    #[doc = ""]
970    #[doc = ""]
971    #[doc = ""]
972    #[doc = ""]
973    #[doc = ""]
974    #[doc = ""]
975    #[doc = ""]
976    #[doc = ""]
977    #[doc = ""]
978    #[doc = ""]
979    #[doc = "* "]
980    #[doc = " * This DE indicates a change of acceleration."]
981    #[doc = " *"]
982    #[doc = " * The value shall be set to:"]
983    #[doc = " * - 0 - `accelerate` - if the magnitude of the horizontal velocity vector increases."]
984    #[doc = " * - 1 - `decelerate` - if the magnitude of the horizontal velocity vector decreases."]
985    #[doc = " *"]
986    #[doc = " * @category: Kinematic information"]
987    #[doc = " * @revision: Created in V2.1.1"]
988    #[doc = ""]
989    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
990    #[rasn(enumerated)]
991    pub enum AccelerationChange {
992        accelerate = 0,
993        decelerate = 1,
994    }
995    #[doc = "* "]
996    #[doc = " * This DF represents information associated to changes in acceleration. "]
997    #[doc = " *"]
998    #[doc = " * It shall include the following components: "]
999    #[doc = " *"]
1000    #[doc = " * @field accelOrDecel: the indication of an acceleration change."]
1001    #[doc = " *"]
1002    #[doc = " * @field actionDeltaTime: the period over which the acceleration change action is performed."]
1003    #[doc = " *"]
1004    #[doc = " * @category: Kinematic Information"]
1005    #[doc = " * @revision: Created in V2.1.1"]
1006    #[doc = " "]
1007    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1008    #[rasn(automatic_tags)]
1009    #[non_exhaustive]
1010    pub struct AccelerationChangeIndication {
1011        #[rasn(identifier = "accelOrDecel")]
1012        pub accel_or_decel: AccelerationChange,
1013        #[rasn(identifier = "actionDeltaTime")]
1014        pub action_delta_time: DeltaTimeTenthOfSecond,
1015    }
1016    impl AccelerationChangeIndication {
1017        pub fn new(
1018            accel_or_decel: AccelerationChange,
1019            action_delta_time: DeltaTimeTenthOfSecond,
1020        ) -> Self {
1021            Self {
1022                accel_or_decel,
1023                action_delta_time,
1024            }
1025        }
1026    }
1027    #[doc = "* "]
1028    #[doc = " * This DF represents an acceleration component along with a confidence value."]
1029    #[doc = " *"]
1030    #[doc = " * It shall include the following components: "]
1031    #[doc = " *"]
1032    #[doc = " * @field value: the value of the acceleration component which can be estimated as the mean of the current distribution."]
1033    #[doc = " *"]
1034    #[doc = " * @field confidence: the confidence value associated to the provided value."]
1035    #[doc = " *"]
1036    #[doc = " * @category: Kinematic Information"]
1037    #[doc = " * @revision: Created in V2.1.1"]
1038    #[doc = " "]
1039    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1040    #[rasn(automatic_tags)]
1041    pub struct AccelerationComponent {
1042        pub value: AccelerationValue,
1043        pub confidence: AccelerationConfidence,
1044    }
1045    impl AccelerationComponent {
1046        pub fn new(value: AccelerationValue, confidence: AccelerationConfidence) -> Self {
1047            Self { value, confidence }
1048        }
1049    }
1050    #[doc = "*"]
1051    #[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 %. "]
1052    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
1053    #[doc = " *"]
1054    #[doc = " * The value shall be set to:"]
1055    #[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,"]
1056    #[doc = " * - `101` if the confidence value is out of range i.e. greater than 10 m/s^2,"]
1057    #[doc = " * - `102` if the confidence value is unavailable."]
1058    #[doc = " *"]
1059    #[doc = " * The value 0 shall not be used."]
1060    #[doc = " *"]
1061    #[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:"]
1062    #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
1063    #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
1064    #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
1065    #[doc = " * In all 3 cases above, the acceleration value may be valid and used by the application."]
1066    #[doc = " * "]
1067    #[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."]
1068    #[doc = " *"]
1069    #[doc = " * @unit 0,1 m/s^2"]
1070    #[doc = " * @category: Kinematic information"]
1071    #[doc = " * @revision: Description revised in V2.1.1"]
1072    #[doc = " "]
1073    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1074    #[rasn(delegate, value("0..=102"))]
1075    pub struct AccelerationConfidence(pub u8);
1076    #[doc = "*"]
1077    #[doc = " * This DE indicates the status of the controlling mechanisms for longitudinal movement of the vehicle."]
1078    #[doc = " * The data may be provided via the in-vehicle network. It indicates whether a specific in-vehicle"]
1079    #[doc = " * acceleration control system is engaged or not. "]
1080    #[doc = " *"]
1081    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
1082    #[doc = " * - 0 - `brakePedalEngaged`      - Driver is stepping on the brake pedal,"]
1083    #[doc = " * - 1 - `gasPedalEngaged`        - Driver is stepping on the gas pedal,"]
1084    #[doc = " * - 2 - `emergencyBrakeEngaged`  - emergency brake system is engaged,"]
1085    #[doc = " * - 3 - `collisionWarningEngaged`- collision warning system is engaged,"]
1086    #[doc = " * - 4 - `accEngaged`             - ACC is engaged,"]
1087    #[doc = " * - 5 - `cruiseControlEngaged`   - cruise control is engaged,"]
1088    #[doc = " * - 6 - `speedLimiterEngaged`    - speed limiter is engaged."]
1089    #[doc = " *"]
1090    #[doc = " * Otherwise (for example when the corresponding system is not available due to non equipped system"]
1091    #[doc = " * or information is unavailable), the corresponding bit shall be set to 0."]
1092    #[doc = " *"]
1093    #[doc = " * @note: The system engagement condition is OEM specific and therefore out of scope of the present document."]
1094    #[doc = " * @category: Vehicle information"]
1095    #[doc = " * @revision: V1.3.1, description revised in V2.3.1"]
1096    #[doc = " "]
1097    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1098    #[rasn(delegate)]
1099    pub struct AccelerationControl(pub FixedBitString<7usize>);
1100    #[doc = "*"]
1101    #[doc = " * This DE represents the extension of DE AccelerationControl and should only be used together with DE AccelerationControl."]
1102    #[doc = " *"]
1103    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
1104    #[doc = " * - 0  - `rearCrossTrafficAlertEngaged`       - rear cross traffic alert system is engaged"]
1105    #[doc = " * - 1  - `emergencyBrakeRearEngaged`          - emergency brake system for rear driving is engaged"]
1106    #[doc = " * - 2  - `assistedParkingLongitudinalEngaged` - assisted parking system (longitudinal control) is engaged"]
1107    #[doc = " *"]
1108    #[doc = " * Otherwise (for example when the corresponding system is not available due to non-equipped system "]
1109    #[doc = " * or information is unavailable), the corresponding bit shall be set to 0. "]
1110    #[doc = " *"]
1111    #[doc = " * @category: Vehicle information"]
1112    #[doc = " * @revision: Created in V2.3.1"]
1113    #[doc = " "]
1114    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1115    #[rasn(delegate, size("3", extensible))]
1116    pub struct AccelerationControlExtension(pub BitString);
1117    #[doc = "*"]
1118    #[doc = " * This DF represents the magnitude of the acceleration vector and associated confidence value."]
1119    #[doc = " *"]
1120    #[doc = " * It shall include the following components: "]
1121    #[doc = " * "]
1122    #[doc = " * @field accelerationMagnitudeValue: the magnitude of the acceleration vector."]
1123    #[doc = " * "]
1124    #[doc = " * @field accelerationConfidence: the confidence value of the magnitude value."]
1125    #[doc = " *"]
1126    #[doc = " * @category: Kinematic information"]
1127    #[doc = " * @revision: Created in V2.1.1"]
1128    #[doc = " "]
1129    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1130    #[rasn(automatic_tags)]
1131    pub struct AccelerationMagnitude {
1132        #[rasn(identifier = "accelerationMagnitudeValue")]
1133        pub acceleration_magnitude_value: AccelerationMagnitudeValue,
1134        #[rasn(identifier = "accelerationConfidence")]
1135        pub acceleration_confidence: AccelerationConfidence,
1136    }
1137    impl AccelerationMagnitude {
1138        pub fn new(
1139            acceleration_magnitude_value: AccelerationMagnitudeValue,
1140            acceleration_confidence: AccelerationConfidence,
1141        ) -> Self {
1142            Self {
1143                acceleration_magnitude_value,
1144                acceleration_confidence,
1145            }
1146        }
1147    }
1148    #[doc = "* "]
1149    #[doc = " * This DE represents the magnitude of the acceleration vector in a defined coordinate system."]
1150    #[doc = " *"]
1151    #[doc = " * The value shall be set to:"]
1152    #[doc = " * - `0` to indicate no acceleration,"]
1153    #[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,"]
1154    #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
1155    #[doc = " * - `161` when the data is unavailable."]
1156    #[doc = " *"]
1157    #[doc = " * @unit 0,1 m/s^2"]
1158    #[doc = " * @category: Kinematic information"]
1159    #[doc = " * @revision: Created in V2.1.1"]
1160    #[doc = ""]
1161    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1162    #[rasn(delegate, value("0..=161"))]
1163    pub struct AccelerationMagnitudeValue(pub u8);
1164    #[doc = "*"]
1165    #[doc = " * This DF represents an acceleration vector in a polar or cylindrical coordinate system."]
1166    #[doc = " "]
1167    #[doc = " * It shall include the following components: "]
1168    #[doc = " * "]
1169    #[doc = " * @field accelerationMagnitude: magnitude of the acceleration vector projected onto the reference plane, with the associated confidence value."]
1170    #[doc = " * "]
1171    #[doc = " * @field accelerationDirection: polar angle of the acceleration vector projected onto the reference plane, with the associated confidence value."]
1172    #[doc = " *"]
1173    #[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."]
1174    #[doc = " * "]
1175    #[doc = " * @category: Kinematic information"]
1176    #[doc = " * @revision: Created in V2.1.1"]
1177    #[doc = " "]
1178    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1179    #[rasn(automatic_tags)]
1180    pub struct AccelerationPolarWithZ {
1181        #[rasn(identifier = "accelerationMagnitude")]
1182        pub acceleration_magnitude: AccelerationMagnitude,
1183        #[rasn(identifier = "accelerationDirection")]
1184        pub acceleration_direction: CartesianAngle,
1185        #[rasn(identifier = "zAcceleration")]
1186        pub z_acceleration: Option<AccelerationComponent>,
1187    }
1188    impl AccelerationPolarWithZ {
1189        pub fn new(
1190            acceleration_magnitude: AccelerationMagnitude,
1191            acceleration_direction: CartesianAngle,
1192            z_acceleration: Option<AccelerationComponent>,
1193        ) -> Self {
1194            Self {
1195                acceleration_magnitude,
1196                acceleration_direction,
1197                z_acceleration,
1198            }
1199        }
1200    }
1201    #[doc = "* "]
1202    #[doc = " * This DE represents the value of an acceleration component in a defined coordinate system."]
1203    #[doc = " *"]
1204    #[doc = " * The value shall be set to:"]
1205    #[doc = " * - `-160` for acceleration values equal to or less than -16 m/s^2,"]
1206    #[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,"]
1207    #[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,"]
1208    #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
1209    #[doc = " * - `161` when the data is unavailable."]
1210    #[doc = " *"]
1211    #[doc = " * @note: the formula for values > -160 and <160 results in rounding up to the next value. Zero acceleration is indicated using n=0."]
1212    #[doc = " * @unit 0,1 m/s^2"]
1213    #[doc = " * @category: Kinematic information"]
1214    #[doc = " * @revision: Created in V2.1.1"]
1215    #[doc = ""]
1216    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1217    #[rasn(delegate, value("-160..=161"))]
1218    pub struct AccelerationValue(pub i16);
1219    #[doc = "*"]
1220    #[doc = " * This DE indicates an access technology."]
1221    #[doc = " *"]
1222    #[doc = " * The value shall be set to:"]
1223    #[doc = " * - `0`: in case of any access technology class,"]
1224    #[doc = " * - `1`: in case of ITS-G5 access technology class,"]
1225    #[doc = " * - `2`: in case of LTE-V2X access technology class,"]
1226    #[doc = " * - `3`: in case of NR-V2X access technology class."]
1227    #[doc = " * "]
1228    #[doc = " * @category: Communication information"]
1229    #[doc = " * @revision: Created in V2.1.1"]
1230    #[doc = " "]
1231    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1232    #[rasn(enumerated)]
1233    #[non_exhaustive]
1234    pub enum AccessTechnologyClass {
1235        any = 0,
1236        itsg5Class = 1,
1237        ltev2xClass = 2,
1238        nrv2xClass = 3,
1239    }
1240    #[doc = "*"]
1241    #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `accident`."]
1242    #[doc = " *"]
1243    #[doc = " * The value shall be set to:"]
1244    #[doc = " * - 0 - `unavailable`                        - in case the information on the sub cause of the accident is unavailable,"]
1245    #[doc = " * - 1 - `multiVehicleAccident`               - in case more than two vehicles are involved in accident,"]
1246    #[doc = " * - 2 - `heavyAccident`                      - in case the airbag of the vehicle involved in the accident is triggered, "]
1247    #[doc = " *                                              the accident requires important rescue and/or recovery work,"]
1248    #[doc = " * - 3 - `accidentInvolvingLorry`             - in case the accident involves a lorry,"]
1249    #[doc = " * - 4 - `accidentInvolvingBus`               - in case the accident involves a bus,"]
1250    #[doc = " * - 5 - `accidentInvolvingHazardousMaterials`- in case the accident involves hazardous material,"]
1251    #[doc = " * - 6 - `accidentOnOppositeLane-deprecated`  - deprecated,"]
1252    #[doc = " * - 7 - `unsecuredAccident`                  - in case the accident is not secured,"]
1253    #[doc = " * - 8 - `assistanceRequested`                - in case rescue and assistance are requested,"]
1254    #[doc = " * - 9-255                                    - reserved for future usage. "]
1255    #[doc = " *"]
1256    #[doc = " * @category: Traffic information"]
1257    #[doc = " * @revision: V1.3.1, value 6 deprecated in V2.4.1"]
1258    #[doc = " "]
1259    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1260    #[rasn(delegate, value("0..=255"))]
1261    pub struct AccidentSubCauseCode(pub u8);
1262    #[doc = "*"]
1263    #[doc = " * This DF represents an identifier used to describe a protocol action taken by an ITS-S."]
1264    #[doc = " * "]
1265    #[doc = " * It shall include the following components: "]
1266    #[doc = " *"]
1267    #[doc = " * @field originatingStationId: Id of the ITS-S that takes the action. "]
1268    #[doc = " * "]
1269    #[doc = " * @field sequenceNumber: a sequence number. "]
1270    #[doc = " * "]
1271    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref ActionId instead. "]
1272    #[doc = " * @category: Communication information"]
1273    #[doc = " * @revision: V1.3.1"]
1274    #[doc = " "]
1275    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1276    #[rasn(automatic_tags)]
1277    pub struct ActionID {
1278        #[rasn(identifier = "originatingStationId")]
1279        pub originating_station_id: StationID,
1280        #[rasn(identifier = "sequenceNumber")]
1281        pub sequence_number: SequenceNumber,
1282    }
1283    impl ActionID {
1284        pub fn new(originating_station_id: StationID, sequence_number: SequenceNumber) -> Self {
1285            Self {
1286                originating_station_id,
1287                sequence_number,
1288            }
1289        }
1290    }
1291    #[doc = "*"]
1292    #[doc = " * This DF represents an identifier used to describe a protocol action taken by an ITS-S."]
1293    #[doc = " * "]
1294    #[doc = " * It shall include the following components: "]
1295    #[doc = " *"]
1296    #[doc = " * @field originatingStationId: Id of the ITS-S that takes the action. "]
1297    #[doc = " * "]
1298    #[doc = " * @field sequenceNumber: a sequence number. "]
1299    #[doc = " * "]
1300    #[doc = " * @category: Communication information"]
1301    #[doc = " * @revision: Created in V2.1.1 based on @ref ActionID."]
1302    #[doc = " "]
1303    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1304    #[rasn(automatic_tags)]
1305    pub struct ActionId {
1306        #[rasn(identifier = "originatingStationId")]
1307        pub originating_station_id: StationId,
1308        #[rasn(identifier = "sequenceNumber")]
1309        pub sequence_number: SequenceNumber,
1310    }
1311    impl ActionId {
1312        pub fn new(originating_station_id: StationId, sequence_number: SequenceNumber) -> Self {
1313            Self {
1314                originating_station_id,
1315                sequence_number,
1316            }
1317        }
1318    }
1319    #[doc = "*"]
1320    #[doc = " * This DF shall contain a list of @ref ActionId. "]
1321    #[doc = ""]
1322    #[doc = " * @category: Communication Information"]
1323    #[doc = " * @revision: Created in V2.1.1 based on ReferenceDenms from DENM Release 1"]
1324    #[doc = ""]
1325    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1326    #[rasn(delegate, size("1..=8", extensible))]
1327    pub struct ActionIdList(pub SequenceOf<ActionId>);
1328    #[doc = "*"]
1329    #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `adhesion`. "]
1330    #[doc = " * "]
1331    #[doc = " * The value shall be set to:"]
1332    #[doc = " * - 0 - `unavailable`     - in case information on the cause of the low road adhesion is unavailable,"]
1333    #[doc = " * - 1 - `heavyFrostOnRoad`- in case the low road adhesion is due to heavy frost on the road,"]
1334    #[doc = " * - 2 - `fuelOnRoad`      - in case the low road adhesion is due to fuel on the road,"]
1335    #[doc = " * - 3 - `mudOnRoad`       - in case the low road adhesion is due to mud on the road,"]
1336    #[doc = " * - 4 - `snowOnRoad`      - in case the low road adhesion is due to snow on the road,"]
1337    #[doc = " * - 5 - `iceOnRoad`       - in case the low road adhesion is due to ice on the road,"]
1338    #[doc = " * - 6 - `blackIceOnRoad`  - in case the low road adhesion is due to black ice on the road,"]
1339    #[doc = " * - 7 - `oilOnRoad`       - in case the low road adhesion is due to oil on the road,"]
1340    #[doc = " * - 8 - `looseChippings`  - in case the low road adhesion is due to loose gravel or stone fragments on the road,"]
1341    #[doc = " * - 9 - `instantBlackIce` - in case the low road adhesion is due to instant black ice on the road surface,"]
1342    #[doc = " * - 10 - `roadsSalted`    - when the low road adhesion is due to salted road,"]
1343    #[doc = " * - 11 - `flooding`       - in case low road adhesion is due to flooding of the road,"]
1344    #[doc = " * - 12 - `waterOnRoad`    - in case low road adhesion is due to a shallow layer of standing water on the road (not flooding). "]
1345    #[doc = " * - 12-255                - are reserved for future usage."]
1346    #[doc = " *"]
1347    #[doc = " * @category: Traffic information"]
1348    #[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 "]
1349    #[doc = " "]
1350    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1351    #[rasn(delegate, value("0..=255"))]
1352    pub struct AdhesionSubCauseCode(pub u8);
1353    #[doc = "*"]
1354    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-Precipitation`. "]
1355    #[doc = " *"]
1356    #[doc = " * The value shall be set to:"]
1357    #[doc = " * - 0 - `unavailable`   - in case information on the type of precipitation is unavailable,"]
1358    #[doc = " * - 1 - `rain`          - in case the type of precipitation is rain,"]
1359    #[doc = " * - 2 - `snowfall`      - in case the type of precipitation is snowfall,"]
1360    #[doc = " * - 3 - `hail`          - in case the type of precipitation is hail."]
1361    #[doc = " * - 4-255               - are reserved for future usage"]
1362    #[doc = " *"]
1363    #[doc = " * @category: Traffic information"]
1364    #[doc = " * @revision: V1.3.1, values 1,2,3 renamed in V2.4.1"]
1365    #[doc = " "]
1366    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1367    #[rasn(
1368        delegate,
1369        identifier = "AdverseWeatherCondition-PrecipitationSubCauseCode",
1370        value("0..=255")
1371    )]
1372    pub struct AdverseWeatherConditionPrecipitationSubCauseCode(pub u8);
1373    #[doc = "*"]
1374    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-Visibility`."]
1375    #[doc = " *"]
1376    #[doc = " * The value shall be set to:"]
1377    #[doc = " * - 0 - `unavailable`    - in case information on the cause of low visibility is unavailable,"]
1378    #[doc = " * - 1 - `fog`            - in case the cause of low visibility is fog,"]
1379    #[doc = " * - 2 - `smoke`          - in case the cause of low visibility is smoke,"]
1380    #[doc = " * - 3 - `snowfall`       - in case the cause of low visibility is snow fall,"]
1381    #[doc = " * - 4 - `rain`           - in case the cause of low visibility is rain,"]
1382    #[doc = " * - 5 - `hail`           - in case the cause of low visibility is hail,"]
1383    #[doc = " * - 6 - `lowSunGlare`    - in case the cause of low visibility is sun glare,"]
1384    #[doc = " * - 7 - `sandstorms`     - in case the cause of low visibility is sand storm,"]
1385    #[doc = " * - 8 - `swarmsOfInsects`- in case the cause of low visibility is swarm of insects."]
1386    #[doc = " * - 9-255                - are reserved for future usage"]
1387    #[doc = " *"]
1388    #[doc = " * @category: Traffic information"]
1389    #[doc = " * @revision: V1.3.1, values 3, 4, 5 renamed in V2.4.1"]
1390    #[doc = " "]
1391    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1392    #[rasn(
1393        delegate,
1394        identifier = "AdverseWeatherCondition-VisibilitySubCauseCode",
1395        value("0..=255")
1396    )]
1397    pub struct AdverseWeatherConditionVisibilitySubCauseCode(pub u8);
1398    #[doc = "*"]
1399    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-Wind`."]
1400    #[doc = " *"]
1401    #[doc = " * The value shall be set to:"]
1402    #[doc = " * - 0 - `unavailable`             - in case information on the type of wind is unavailable,"]
1403    #[doc = " * - 1 - `strongWinds`             - in case the type of wind is strong wind such as gale or storm (e.g. Beaufort scale number 9-11),"]
1404    #[doc = " * - 2 - `damagingHail-deprecated` - deprecated since not representing a wind related event,"]
1405    #[doc = " * - 3 - `hurricane`               - in case the type of storm is hurricane (e.g. Beaufort scale number 12),"]
1406    #[doc = " * - 4 - `thunderstorm`            - in case the type of storm is thunderstorm,"]
1407    #[doc = " * - 5 - `tornado`                 - in case the type of storm is tornado,"]
1408    #[doc = " * - 6 - `blizzard`                - in case the type of storm is blizzard."]
1409    #[doc = " * - 7-255                         - are reserved for future usage."]
1410    #[doc = " *"]
1411    #[doc = " * @category: Traffic information"]
1412    #[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"]
1413    #[doc = " "]
1414    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1415    #[rasn(
1416        delegate,
1417        identifier = "AdverseWeatherCondition-WindSubCauseCode",
1418        value("0..=255")
1419    )]
1420    pub struct AdverseWeatherConditionWindSubCauseCode(pub u8);
1421    #[doc = "*"]
1422    #[doc = " * This DE represents the air humidity in tenths of percent."]
1423    #[doc = " *"]
1424    #[doc = " * The value shall be set to:"]
1425    #[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."]
1426    #[doc = " * - `1001` indicates that the air humidity is unavailable."]
1427    #[doc = " *"]
1428    #[doc = " * @category: Basic information"]
1429    #[doc = " * @unit: 0,1 % "]
1430    #[doc = " * @revision: created in V2.1.1"]
1431    #[doc = " "]
1432    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1433    #[rasn(delegate, value("1..=1001"))]
1434    pub struct AirHumidity(pub u16);
1435    #[doc = "*"]
1436    #[doc = " * This DF provides the altitude and confidence level of an altitude information in a WGS84 coordinate system."]
1437    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
1438    #[doc = " *"]
1439    #[doc = " * It shall include the following components: "]
1440    #[doc = " *"]
1441    #[doc = " * @field altitudeValue: altitude of a geographical point."]
1442    #[doc = " *"]
1443    #[doc = " * @field altitudeConfidence: confidence level of the altitudeValue."]
1444    #[doc = " *"]
1445    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref AltitudeWithConfidence instead. "]
1446    #[doc = " * @category: GeoReference information"]
1447    #[doc = " * @revision: Description revised in V2.1.1"]
1448    #[doc = " "]
1449    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1450    #[rasn(automatic_tags)]
1451    pub struct Altitude {
1452        #[rasn(identifier = "altitudeValue")]
1453        pub altitude_value: AltitudeValue,
1454        #[rasn(identifier = "altitudeConfidence")]
1455        pub altitude_confidence: AltitudeConfidence,
1456    }
1457    impl Altitude {
1458        pub fn new(altitude_value: AltitudeValue, altitude_confidence: AltitudeConfidence) -> Self {
1459            Self {
1460                altitude_value,
1461                altitude_confidence,
1462            }
1463        }
1464    }
1465    #[doc = "*"]
1466    #[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 %."]
1467    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
1468    #[doc = " *"]
1469    #[doc = " * The value shall be set to: "]
1470    #[doc = " *   - 0  - `alt-000-01`   - if the confidence value is equal to or less than 0,01 metre,"]
1471    #[doc = " *   - 1  - `alt-000-02`   - if the confidence value is equal to or less than 0,02 metre and greater than 0,01 metre,"]
1472    #[doc = " *   - 2  - `alt-000-05`   - if the confidence value is equal to or less than 0,05 metre and greater than 0,02 metre,            "]
1473    #[doc = " *   - 3  - `alt-000-10`   - if the confidence value is equal to or less than 0,1 metre and greater than 0,05 metre,            "]
1474    #[doc = " *   - 4  - `alt-000-20`   - if the confidence value is equal to or less than 0,2 metre and greater than 0,1 metre,            "]
1475    #[doc = " *   - 5  - `alt-000-50`   - if the confidence value is equal to or less than 0,5 metre and greater than 0,2 metre,             "]
1476    #[doc = " *   - 6  - `alt-001-00`   - if the confidence value is equal to or less than 1 metre and greater than 0,5 metre,             "]
1477    #[doc = " *   - 7  - `alt-002-00`   - if the confidence value is equal to or less than 2 metres and greater than 1 metre,             "]
1478    #[doc = " *   - 8  - `alt-005-00`   - if the confidence value is equal to or less than 5 metres and greater than 2 metres,              "]
1479    #[doc = " *   - 9  - `alt-010-00`   - if the confidence value is equal to or less than 10 metres and greater than 5 metres,             "]
1480    #[doc = " *   - 10 - `alt-020-00`   - if the confidence value is equal to or less than 20 metres and greater than 10 metres,            "]
1481    #[doc = " *   - 11 - `alt-050-00`   - if the confidence value is equal to or less than 50 metres and greater than 20 metres,            "]
1482    #[doc = " *   - 12 - `alt-100-00`   - if the confidence value is equal to or less than 100 metres and greater than 50 metres,           "]
1483    #[doc = " *   - 13 - `alt-200-00`   - if the confidence value is equal to or less than 200 metres and greater than 100 metres,           "]
1484    #[doc = " *   - 14 - `outOfRange`   - if the confidence value is out of range, i.e. greater than 200 metres,"]
1485    #[doc = " *   - 15 - `unavailable`  - if the confidence value is unavailable.       "]
1486    #[doc = " *"]
1487    #[doc = " * @note: The fact that an altitude value is received with confidence value set to `unavailable(15)` can be caused"]
1488    #[doc = " * by several reasons, such as:"]
1489    #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
1490    #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
1491    #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
1492    #[doc = " * In all 3 cases above, the altitude value may be valid and used by the application."]
1493    #[doc = " * "]
1494    #[doc = " * @note: If an altitude value is received and its confidence value is set to `outOfRange(14)`, it means that the  "]
1495    #[doc = " * altitude value is not valid and therefore cannot be trusted. Such value is not useful for the application.             "]
1496    #[doc = " *"]
1497    #[doc = " * @category: GeoReference information"]
1498    #[doc = " * @revision: Description revised in V2.1.1"]
1499    #[doc = " "]
1500    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1501    #[rasn(enumerated)]
1502    pub enum AltitudeConfidence {
1503        #[rasn(identifier = "alt-000-01")]
1504        alt_000_01 = 0,
1505        #[rasn(identifier = "alt-000-02")]
1506        alt_000_02 = 1,
1507        #[rasn(identifier = "alt-000-05")]
1508        alt_000_05 = 2,
1509        #[rasn(identifier = "alt-000-10")]
1510        alt_000_10 = 3,
1511        #[rasn(identifier = "alt-000-20")]
1512        alt_000_20 = 4,
1513        #[rasn(identifier = "alt-000-50")]
1514        alt_000_50 = 5,
1515        #[rasn(identifier = "alt-001-00")]
1516        alt_001_00 = 6,
1517        #[rasn(identifier = "alt-002-00")]
1518        alt_002_00 = 7,
1519        #[rasn(identifier = "alt-005-00")]
1520        alt_005_00 = 8,
1521        #[rasn(identifier = "alt-010-00")]
1522        alt_010_00 = 9,
1523        #[rasn(identifier = "alt-020-00")]
1524        alt_020_00 = 10,
1525        #[rasn(identifier = "alt-050-00")]
1526        alt_050_00 = 11,
1527        #[rasn(identifier = "alt-100-00")]
1528        alt_100_00 = 12,
1529        #[rasn(identifier = "alt-200-00")]
1530        alt_200_00 = 13,
1531        outOfRange = 14,
1532        unavailable = 15,
1533    }
1534    #[doc = "*"]
1535    #[doc = " * This DE represents the altitude value in a WGS84 coordinate system."]
1536    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
1537    #[doc = " *"]
1538    #[doc = " * The value shall be set to: "]
1539    #[doc = " * - `-100 000` if the altitude is equal to or less than -1 000 m,"]
1540    #[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,"]
1541    #[doc = " * - `800 000` if the altitude  greater than 7 999,99 m,"]
1542    #[doc = " * - `800 001` if the information is not available."]
1543    #[doc = " *"]
1544    #[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."]
1545    #[doc = " * @unit: 0,01 metre"]
1546    #[doc = " * @category: GeoReference information"]
1547    #[doc = " * @revision: Description revised in V2.1.1 (definition of 800 000 has slightly changed) "]
1548    #[doc = " "]
1549    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1550    #[rasn(delegate, value("-100000..=800001"))]
1551    pub struct AltitudeValue(pub i32);
1552    #[doc = "* "]
1553    #[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 %."]
1554    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
1555    #[doc = " *"]
1556    #[doc = " * The value shall be set to: "]
1557    #[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,"]
1558    #[doc = " * - `126` if the  accuracy is out of range, i.e. greater than 12,5 degrees,"]
1559    #[doc = " * - `127` if the accuracy information is not available."]
1560    #[doc = " *"]
1561    #[doc = " * @unit: 0,1 degrees"]
1562    #[doc = " * @category: Basic information"]
1563    #[doc = " * @revision: Created in V2.1.1"]
1564    #[doc = ""]
1565    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1566    #[rasn(delegate, value("1..=127"))]
1567    pub struct AngleConfidence(pub u8);
1568    #[doc = "* "]
1569    #[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 %."]
1570    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
1571    #[doc = " * For correlation computation, maximum interval levels shall be assumed."]
1572    #[doc = " *"]
1573    #[doc = " * The value shall be set to:"]
1574    #[doc = " * - 0 - `degSecSquared-01` - if the accuracy is equal to or less than 1 degree/second^2,"]
1575    #[doc = " * - 1 - `degSecSquared-02` - if the accuracy is equal to or less than 2 degrees/second^2 and greater than 1 degree/second^2,"]
1576    #[doc = " * - 2 - `degSecSquared-05` - if the accuracy is equal to or less than 5 degrees/second^2 and greater than 1 degree/second^2,"]
1577    #[doc = " * - 3 - `degSecSquared-10` - if the accuracy is equal to or less than 10 degrees/second^2 and greater than 5 degrees/second^2,"]
1578    #[doc = " * - 4 - `degSecSquared-20` - if the accuracy is equal to or less than 20 degrees/second^2 and greater than 10 degrees/second^2,"]
1579    #[doc = " * - 5 - `degSecSquared-50` - if the accuracy is equal to or less than 50 degrees/second^2 and greater than 20 degrees/second^2,"]
1580    #[doc = " * - 6 - `outOfRange`       - if the accuracy is out of range, i.e. greater than 50 degrees/second^2,"]
1581    #[doc = " * - 7 - `unavailable`      - if the accuracy information is unavailable."]
1582    #[doc = " *"]
1583    #[doc = " * @category: Kinematic information"]
1584    #[doc = " * @revision: Created in V2.1.1"]
1585    #[doc = ""]
1586    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1587    #[rasn(enumerated)]
1588    pub enum AngularAccelerationConfidence {
1589        #[rasn(identifier = "degSecSquared-01")]
1590        degSecSquared_01 = 0,
1591        #[rasn(identifier = "degSecSquared-02")]
1592        degSecSquared_02 = 1,
1593        #[rasn(identifier = "degSecSquared-05")]
1594        degSecSquared_05 = 2,
1595        #[rasn(identifier = "degSecSquared-10")]
1596        degSecSquared_10 = 3,
1597        #[rasn(identifier = "degSecSquared-20")]
1598        degSecSquared_20 = 4,
1599        #[rasn(identifier = "degSecSquared-50")]
1600        degSecSquared_50 = 5,
1601        outOfRange = 6,
1602        unavailable = 7,
1603    }
1604    #[doc = "* "]
1605    #[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 %."]
1606    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
1607    #[doc = " * For correlation computation, maximum interval levels can be assumed."]
1608    #[doc = " *"]
1609    #[doc = " * The value shall be set to:"]
1610    #[doc = " * - 0 - `degSec-01`   - if the accuracy is equal to or less than 1 degree/second,"]
1611    #[doc = " * - 1 - `degSec-02`   - if the accuracy is equal to or less than 2 degrees/second and greater than 1 degree/second,"]
1612    #[doc = " * - 2 - `degSec-05`   - if the accuracy is equal to or less than 5 degrees/second and greater than 2 degrees/second,"]
1613    #[doc = " * - 3 - `degSec-10`   - if the accuracy is equal to or less than 10 degrees/second and greater than 5 degrees/second,"]
1614    #[doc = " * - 4 - `degSec-20`   - if the accuracy is equal to or less than 20 degrees/second and greater than 10 degrees/second,"]
1615    #[doc = " * - 5 - `degSec-50`   - if the accuracy is equal to or less than 50 degrees/second and greater than 20 degrees/second,"]
1616    #[doc = " * - 6 - `outOfRange`  - if the accuracy is out of range, i.e. greater than 50 degrees/second,"]
1617    #[doc = " * - 7 - `unavailable` - if the accuracy information is unavailable."]
1618    #[doc = " * "]
1619    #[doc = " * @category: Kinematic information"]
1620    #[doc = " * @revision: Created in V2.1.1"]
1621    #[doc = ""]
1622    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
1623    #[rasn(enumerated)]
1624    pub enum AngularSpeedConfidence {
1625        #[rasn(identifier = "degSec-01")]
1626        degSec_01 = 0,
1627        #[rasn(identifier = "degSec-02")]
1628        degSec_02 = 1,
1629        #[rasn(identifier = "degSec-05")]
1630        degSec_05 = 2,
1631        #[rasn(identifier = "degSec-10")]
1632        degSec_10 = 3,
1633        #[rasn(identifier = "degSec-20")]
1634        degSec_20 = 4,
1635        #[rasn(identifier = "degSec-50")]
1636        degSec_50 = 5,
1637        outOfRange = 6,
1638        unavailable = 7,
1639    }
1640    #[doc = "*"]
1641    #[doc = " * This DE indicates the status of the controlling mechanisms for the lateral and combined lateral and longitudinal movements of the vehicle."]
1642    #[doc = " * The data may be provided via the in-vehicle network. It indicates whether a specific in-vehicle"]
1643    #[doc = " * acceleration control system combined with steering of the direction of the vehicle is engaged or not. "]
1644    #[doc = " *"]
1645    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
1646    #[doc = " * - 0  - `emergencySteeringSystemEngaged`       - emergency steering system is engaged,"]
1647    #[doc = " * - 1  - `autonomousEmergencySteeringEngaged`   - autonomous emergency steering system is engaged,"]
1648    #[doc = " * - 2  - `automaticLaneChangeEngaged`           - automatic lane change system is engaged,"]
1649    #[doc = " * - 3  - `laneKeepingAssistEngaged`             - lane keeping assist is engaged,"]
1650    #[doc = " * - 4  - `assistedParkingLateralEngaged`        - assisted parking system (lateral  control) is engaged,"]
1651    #[doc = " * - 5  - `emergencyAssistEngaged`               - emergency assist (lateral and longitudinal control) is engaged."]
1652    #[doc = " *"]
1653    #[doc = " * Otherwise (for example when the corresponding system is not available due to non-equipped system or information is unavailable), "]
1654    #[doc = " * the corresponding bit shall be set to 0. "]
1655    #[doc = " *"]
1656    #[doc = " * @category: Vehicle information"]
1657    #[doc = " * @revision: Created in V2.3.1"]
1658    #[doc = ""]
1659    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1660    #[rasn(delegate, size("6", extensible))]
1661    pub struct AutomationControl(pub BitString);
1662    #[doc = "*"]
1663    #[doc = " * This DE indicates the number of axles of a passing train."]
1664    #[doc = " *"]
1665    #[doc = " * The value shall be set to:"]
1666    #[doc = " * - `n` (`n > 2` and `n < 1001`) indicates that the train has n x axles,"]
1667    #[doc = " * - `1001`indicates that the number of axles is out of range,"]
1668    #[doc = " * - `1002` the information is unavailable."]
1669    #[doc = " *"]
1670    #[doc = " * "]
1671    #[doc = " * @unit: Number of axles"]
1672    #[doc = " * @category: Vehicle information"]
1673    #[doc = " * @revision: Created in V2.1.1"]
1674    #[doc = ""]
1675    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1676    #[rasn(delegate, value("2..=1002"))]
1677    pub struct AxlesCount(pub u16);
1678    #[doc = "*"]
1679    #[doc = " * This DE represents the measured uncompensated atmospheric pressure."]
1680    #[doc = " * "]
1681    #[doc = " * The value shall be set to:"]
1682    #[doc = " * - `2999` indicates that the applicable value is less than 29990 Pa,"]
1683    #[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, "]
1684    #[doc = " * - `12001` indicates that the values is greater than 120000 Pa,"]
1685    #[doc = " * - `12002` indicates that the information is not available."]
1686    #[doc = " *"]
1687    #[doc = " * @category: Basic information"]
1688    #[doc = " * @unit: 10 Pascal"]
1689    #[doc = " * @revision: Created in V2.1.1"]
1690    #[doc = ""]
1691    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1692    #[rasn(delegate, value("2999..=12002"))]
1693    pub struct BarometricPressure(pub u16);
1694    #[doc = "* "]
1695    #[doc = " * This DE represents a general container for usage in various types of messages."]
1696    #[doc = " *"]
1697    #[doc = " * It shall include the following components: "]
1698    #[doc = " *"]
1699    #[doc = " * @field stationType: the type of technical context in which the ITS-S that has generated the message is integrated in."]
1700    #[doc = " *"]
1701    #[doc = " * @field referencePosition: the reference position of the station that has generated the message that contains the basic container."]
1702    #[doc = " *"]
1703    #[doc = " * @category: Basic information"]
1704    #[doc = " * @revision: Created in V2.1.1"]
1705    #[doc = ""]
1706    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1707    #[rasn(automatic_tags)]
1708    #[non_exhaustive]
1709    pub struct BasicContainer {
1710        #[rasn(identifier = "stationType")]
1711        pub station_type: TrafficParticipantType,
1712        #[rasn(identifier = "referencePosition")]
1713        pub reference_position: ReferencePositionWithConfidence,
1714    }
1715    impl BasicContainer {
1716        pub fn new(
1717            station_type: TrafficParticipantType,
1718            reference_position: ReferencePositionWithConfidence,
1719        ) -> Self {
1720            Self {
1721                station_type,
1722                reference_position,
1723            }
1724        }
1725    }
1726    #[doc = "* "]
1727    #[doc = " * This DF provides information about the configuration of a road section in terms of lanes using a list of @ref LanePositionAndType ."]
1728    #[doc = " *"]
1729    #[doc = " * @category: Road topology information"]
1730    #[doc = " * @revision: Created in V2.2.1"]
1731    #[doc = ""]
1732    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1733    #[rasn(delegate, size("1..=16", extensible))]
1734    pub struct BasicLaneConfiguration(pub SequenceOf<BasicLaneInformation>);
1735    #[doc = "* "]
1736    #[doc = " * This DF provides basic information about a single lane of a road segment."]
1737    #[doc = " * It includes the following components: "]
1738    #[doc = " * "]
1739    #[doc = " * @field laneNumber: the number associated to the lane that provides a transversal identification. "]
1740    #[doc = " * "]
1741    #[doc = " * @field direction: the direction of traffic flow allowed on the lane. "]
1742    #[doc = " * "]
1743    #[doc = " * @field laneWidth: the optional width of the lane."]
1744    #[doc = " *"]
1745    #[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,"]
1746    #[doc = " * if it does not actively change lanes. If this component is absent, the lane name number remains the same in the next section."]
1747    #[doc = " *"]
1748    #[doc = " * @field connectingRoadSection: the identifier of the next road section in direction of traffic, that is connecting to the current road section. "]
1749    #[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."]
1750    #[doc = " *"]
1751    #[doc = " * @category: Road topology information"]
1752    #[doc = " * @revision: Created in V2.2.1"]
1753    #[doc = ""]
1754    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1755    #[rasn(automatic_tags)]
1756    #[non_exhaustive]
1757    pub struct BasicLaneInformation {
1758        #[rasn(identifier = "laneNumber")]
1759        pub lane_number: LanePosition,
1760        pub direction: Direction,
1761        #[rasn(identifier = "laneWidth")]
1762        pub lane_width: Option<LaneWidth>,
1763        #[rasn(identifier = "connectingLane")]
1764        pub connecting_lane: Option<LanePosition>,
1765        #[rasn(identifier = "connectingRoadSection")]
1766        pub connecting_road_section: Option<RoadSectionId>,
1767    }
1768    impl BasicLaneInformation {
1769        pub fn new(
1770            lane_number: LanePosition,
1771            direction: Direction,
1772            lane_width: Option<LaneWidth>,
1773            connecting_lane: Option<LanePosition>,
1774            connecting_road_section: Option<RoadSectionId>,
1775        ) -> Self {
1776            Self {
1777                lane_number,
1778                direction,
1779                lane_width,
1780                connecting_lane,
1781                connecting_road_section,
1782            }
1783        }
1784    }
1785    #[doc = "*"]
1786    #[doc = " * This DE indicates the cardinal number of bogies of a train."]
1787    #[doc = " *"]
1788    #[doc = " * The value shall be set to: "]
1789    #[doc = " * - `n` (`n > 1` and `n < 100`) indicates that the train has n x bogies,"]
1790    #[doc = " * - `100`indicates that the number of bogies is out of range, "]
1791    #[doc = " * - `101` the information is unavailable."]
1792    #[doc = " *"]
1793    #[doc = " * @unit: Number of bogies"]
1794    #[doc = " * @category: Vehicle information"]
1795    #[doc = " * @revision: Created in V2.1.1"]
1796    #[doc = ""]
1797    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1798    #[rasn(delegate, value("2..=101"))]
1799    pub struct BogiesCount(pub u8);
1800    #[doc = "*"]
1801    #[doc = " * This DE indicates the status of the vehicle´s brake control system during an externally defined period of time. "]
1802    #[doc = " *"]
1803    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
1804    #[doc = " * - 0 `abs`        - the anti-lock braking system is engaged or has been engaged,"]
1805    #[doc = " * - 1 `tcs`        - the traction control system is engaged or has been engaged,"]
1806    #[doc = " * - 2 `esc`        - the electronic stability control system is engaged or has been engaged."]
1807    #[doc = " *"]
1808    #[doc = " * Otherwise (for example when the corresponding system is not available due to non equipped system"]
1809    #[doc = " * or information is unavailable), the corresponding bit shall be set to 0."]
1810    #[doc = " *"]
1811    #[doc = " * @category: Vehicle information "]
1812    #[doc = " * @revision: created in V2.3.1"]
1813    #[doc = " "]
1814    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1815    #[rasn(delegate, size("3", extensible))]
1816    pub struct BrakeControl(pub BitString);
1817    #[doc = "*"]
1818    #[doc = " * The DE represents a cardinal number that counts the size of a set. "]
1819    #[doc = " * "]
1820    #[doc = " * @category: Basic information"]
1821    #[doc = " * @revision: Created in V2.1.1"]
1822    #[doc = ""]
1823    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1824    #[rasn(delegate, value("0..=255"))]
1825    pub struct CardinalNumber1B(pub u8);
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("1..=8"))]
1834    pub struct CardinalNumber3b(pub u8);
1835    #[doc = "* "]
1836    #[doc = " * This DF represents a general Data Frame to describe an angle component along with a confidence value in a cartesian coordinate system."]
1837    #[doc = " *"]
1838    #[doc = " * It shall include the following components: "]
1839    #[doc = " *"]
1840    #[doc = " * @field value: The angle value which can be estimated as the mean of the current distribution."]
1841    #[doc = " *"]
1842    #[doc = " * @field confidence: The confidence value associated to the provided value."]
1843    #[doc = " *"]
1844    #[doc = " * @category: Basic information"]
1845    #[doc = " * @revision: Created in V2.1.1"]
1846    #[doc = " "]
1847    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1848    #[rasn(automatic_tags)]
1849    pub struct CartesianAngle {
1850        pub value: CartesianAngleValue,
1851        pub confidence: AngleConfidence,
1852    }
1853    impl CartesianAngle {
1854        pub fn new(value: CartesianAngleValue, confidence: AngleConfidence) -> Self {
1855            Self { value, confidence }
1856        }
1857    }
1858    #[doc = "* "]
1859    #[doc = " * This DE represents an angle value described in a local Cartesian coordinate system, per default counted positive in"]
1860    #[doc = " * a right-hand local coordinate system from the abscissa."]
1861    #[doc = " *"]
1862    #[doc = " * The value shall be set to: "]
1863    #[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,"]
1864    #[doc = " * - `3601` if the information is not available."]
1865    #[doc = " *"]
1866    #[doc = " * The value 3600 shall not be used. "]
1867    #[doc = " * "]
1868    #[doc = " * @unit 0,1 degrees"]
1869    #[doc = " * @category: Basic information"]
1870    #[doc = " * @revision: Created in V2.1.1, description and value for 3601 corrected in V2.2.1"]
1871    #[doc = ""]
1872    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1873    #[rasn(delegate, value("0..=3601"))]
1874    pub struct CartesianAngleValue(pub u16);
1875    #[doc = "* "]
1876    #[doc = " * This DF represents a general Data Frame to describe an angular acceleration component along with a confidence value in a cartesian coordinate system."]
1877    #[doc = " *"]
1878    #[doc = " * It shall include the following components: "]
1879    #[doc = " *"]
1880    #[doc = " * @field value: The angular acceleration component value."]
1881    #[doc = " *"]
1882    #[doc = " * @field confidence: The confidence value associated to the provided value."]
1883    #[doc = " * "]
1884    #[doc = " * @category: Kinematic information"]
1885    #[doc = " * @revision: Created in V2.1.1 "]
1886    #[doc = " "]
1887    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1888    #[rasn(automatic_tags)]
1889    pub struct CartesianAngularAccelerationComponent {
1890        pub value: CartesianAngularAccelerationComponentValue,
1891        pub confidence: AngularAccelerationConfidence,
1892    }
1893    impl CartesianAngularAccelerationComponent {
1894        pub fn new(
1895            value: CartesianAngularAccelerationComponentValue,
1896            confidence: AngularAccelerationConfidence,
1897        ) -> Self {
1898            Self { value, confidence }
1899        }
1900    }
1901    #[doc = "*"]
1902    #[doc = " * This DE represents an angular acceleration value described in a local Cartesian coordinate system, per default counted positive in"]
1903    #[doc = " * a right-hand local coordinate system from the abscissa."]
1904    #[doc = " *"]
1905    #[doc = "  * The value shall be set to: "]
1906    #[doc = " * - `-255` if the acceleration is equal to or less than -255 degrees/s^2,"]
1907    #[doc = " * - `n` (`n > -255` and `n < 255`) if the acceleration is equal to or less than n x 1 degree/s^2,"]
1908    #[doc = "      and greater than `(n-1)` x 0,01 degree/s^2,"]
1909    #[doc = " * - `255` if the acceleration is greater than 254 degrees/s^2,"]
1910    #[doc = " * - `256` if the information is unavailable."]
1911    #[doc = " *"]
1912    #[doc = " * @unit:  degree/s^2 (degrees per second squared)"]
1913    #[doc = " * @category: Kinematic information"]
1914    #[doc = " * @revision: Created in V2.1.1"]
1915    #[doc = ""]
1916    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1917    #[rasn(delegate, value("-255..=256"))]
1918    pub struct CartesianAngularAccelerationComponentValue(pub i16);
1919    #[doc = "* "]
1920    #[doc = " * This DF represents an angular velocity component along with a confidence value in a cartesian coordinate system."]
1921    #[doc = " *"]
1922    #[doc = " * It shall include the following components: "]
1923    #[doc = " *"]
1924    #[doc = " * @field value: The angular velocity component."]
1925    #[doc = " *"]
1926    #[doc = " * @field confidence: The confidence value associated to the provided value."]
1927    #[doc = " *"]
1928    #[doc = " * @category: Kinematic information"]
1929    #[doc = " * @revision: Created in V2.1.1"]
1930    #[doc = " "]
1931    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1932    #[rasn(automatic_tags)]
1933    pub struct CartesianAngularVelocityComponent {
1934        pub value: CartesianAngularVelocityComponentValue,
1935        pub confidence: AngularSpeedConfidence,
1936    }
1937    impl CartesianAngularVelocityComponent {
1938        pub fn new(
1939            value: CartesianAngularVelocityComponentValue,
1940            confidence: AngularSpeedConfidence,
1941        ) -> Self {
1942            Self { value, confidence }
1943        }
1944    }
1945    #[doc = "*"]
1946    #[doc = " * This DE represents an angular velocity component described in a local Cartesian coordinate system, per default counted positive in"]
1947    #[doc = " * a right-hand local coordinate system from the abscissa."]
1948    #[doc = " *"]
1949    #[doc = " * The value shall be set to: "]
1950    #[doc = " * - `-255` if the velocity is equal to or less than -255 degrees/s,"]
1951    #[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,"]
1952    #[doc = " * - `255` if the velocity is greater than 254 degrees/s,"]
1953    #[doc = " * - `256` if the information is unavailable."]
1954    #[doc = " *"]
1955    #[doc = " * @unit: degree/s"]
1956    #[doc = " * @category: Kinematic information"]
1957    #[doc = " * @revision: Created in V2.1.1"]
1958    #[doc = ""]
1959    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1960    #[rasn(delegate, value("-255..=256"))]
1961    pub struct CartesianAngularVelocityComponentValue(pub i16);
1962    #[doc = "*"]
1963    #[doc = " * This DF represents the value of a cartesian coordinate with a range of -327,68 metres to +327,66 metres."]
1964    #[doc = " *"]
1965    #[doc = " * The value shall be set to:"]
1966    #[doc = " * - `-32 768` if the longitudinal offset is out of range, i.e. less than or equal to -327,68 metres,"]
1967    #[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,"]
1968    #[doc = " * - `32 767` if the longitudinal offset is out of range, i.e. greater than + 327,66 metres."]
1969    #[doc = " *"]
1970    #[doc = " * @unit 0,01 m"]
1971    #[doc = " * @category: Basic information"]
1972    #[doc = " * @revision: Created in V2.1.1"]
1973    #[doc = ""]
1974    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1975    #[rasn(delegate, value("-32768..=32767"))]
1976    pub struct CartesianCoordinate(pub i16);
1977    #[doc = "*"]
1978    #[doc = " * This DF represents the value of a cartesian coordinate with a range of -1 310,72 metres to +1 310,70 metres."]
1979    #[doc = " *"]
1980    #[doc = " * The value shall be set to:"]
1981    #[doc = " * - `-131072` if the longitudinal offset is out of range, i.e. less than or equal to -1 310,72 metres,"]
1982    #[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,"]
1983    #[doc = " * - `131 071` if the longitudinal offset is out of range, i.e. greater than + 1 310,70 metres."]
1984    #[doc = " *  "]
1985    #[doc = " * @unit 0,01 m"]
1986    #[doc = " * @category: Basic information"]
1987    #[doc = " * @revision: Created in V2.1.1"]
1988    #[doc = ""]
1989    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
1990    #[rasn(delegate, value("-131072..=131071"))]
1991    pub struct CartesianCoordinateLarge(pub i32);
1992    #[doc = "*"]
1993    #[doc = " * This DF represents the value of a cartesian coordinate with a range of -30,94 metres to +10,00 metres."]
1994    #[doc = " *"]
1995    #[doc = " * The value shall be set to:"]
1996    #[doc = " * - `3094` if the longitudinal offset is out of range, i.e. less than or equal to -30,94 metres,"]
1997    #[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,"]
1998    #[doc = " * - `1001` if the longitudinal offset is out of range, i.e. greater than 10 metres."]
1999    #[doc = " *"]
2000    #[doc = " * @unit 0,01 m"]
2001    #[doc = " * @category: Basic information"]
2002    #[doc = " * @revision: Created in V2.1.1"]
2003    #[doc = ""]
2004    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2005    #[rasn(delegate, value("-3094..=1001"))]
2006    pub struct CartesianCoordinateSmall(pub i16);
2007    #[doc = "*"]
2008    #[doc = " * This DF represents a coordinate along with a confidence value in a cartesian reference system."]
2009    #[doc = " *"]
2010    #[doc = " * It shall include the following components: "]
2011    #[doc = " * "]
2012    #[doc = " * @field value: the coordinate value, which can be estimated as the mean of the current distribution."]
2013    #[doc = " * "]
2014    #[doc = " * @field confidence: the coordinate confidence value associated to the provided value."]
2015    #[doc = " *"]
2016    #[doc = " * @category: GeoReference information"]
2017    #[doc = " * @revision: Created in V2.1.1"]
2018    #[doc = ""]
2019    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2020    #[rasn(automatic_tags)]
2021    pub struct CartesianCoordinateWithConfidence {
2022        pub value: CartesianCoordinateLarge,
2023        pub confidence: CoordinateConfidence,
2024    }
2025    impl CartesianCoordinateWithConfidence {
2026        pub fn new(value: CartesianCoordinateLarge, confidence: CoordinateConfidence) -> Self {
2027            Self { value, confidence }
2028        }
2029    }
2030    #[doc = "* "]
2031    #[doc = " * This DF represents a  position in a two- or three-dimensional cartesian coordinate system."]
2032    #[doc = " *"]
2033    #[doc = " * It shall include the following components: "]
2034    #[doc = " *"]
2035    #[doc = " * @field xCoordinate: the X coordinate value."]
2036    #[doc = " *"]
2037    #[doc = " * @field yCoordinate: the Y coordinate value."]
2038    #[doc = " *"]
2039    #[doc = " * @field zCoordinate: the optional Z coordinate value."]
2040    #[doc = " * "]
2041    #[doc = " * @category: GeoReference information"]
2042    #[doc = " * @revision: Created in V2.1.1"]
2043    #[doc = ""]
2044    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2045    #[rasn(automatic_tags)]
2046    pub struct CartesianPosition3d {
2047        #[rasn(identifier = "xCoordinate")]
2048        pub x_coordinate: CartesianCoordinate,
2049        #[rasn(identifier = "yCoordinate")]
2050        pub y_coordinate: CartesianCoordinate,
2051        #[rasn(identifier = "zCoordinate")]
2052        pub z_coordinate: Option<CartesianCoordinate>,
2053    }
2054    impl CartesianPosition3d {
2055        pub fn new(
2056            x_coordinate: CartesianCoordinate,
2057            y_coordinate: CartesianCoordinate,
2058            z_coordinate: Option<CartesianCoordinate>,
2059        ) -> Self {
2060            Self {
2061                x_coordinate,
2062                y_coordinate,
2063                z_coordinate,
2064            }
2065        }
2066    }
2067    #[doc = "* "]
2068    #[doc = " * This DF represents a  position in a two- or three-dimensional cartesian coordinate system with an associated confidence level for each coordinate."]
2069    #[doc = " *"]
2070    #[doc = " * It shall include the following components: "]
2071    #[doc = " *"]
2072    #[doc = " * @field xCoordinate: the X coordinate value with the associated confidence level."]
2073    #[doc = " *"]
2074    #[doc = " * @field yCoordinate: the Y coordinate value with the associated confidence level."]
2075    #[doc = " *"]
2076    #[doc = " * @field zCoordinate: the optional Z coordinate value with the associated confidence level."]
2077    #[doc = " * "]
2078    #[doc = " * @category: GeoReference information"]
2079    #[doc = " * @revision: Created in V2.1.1"]
2080    #[doc = ""]
2081    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2082    #[rasn(automatic_tags)]
2083    pub struct CartesianPosition3dWithConfidence {
2084        #[rasn(identifier = "xCoordinate")]
2085        pub x_coordinate: CartesianCoordinateWithConfidence,
2086        #[rasn(identifier = "yCoordinate")]
2087        pub y_coordinate: CartesianCoordinateWithConfidence,
2088        #[rasn(identifier = "zCoordinate")]
2089        pub z_coordinate: Option<CartesianCoordinateWithConfidence>,
2090    }
2091    impl CartesianPosition3dWithConfidence {
2092        pub fn new(
2093            x_coordinate: CartesianCoordinateWithConfidence,
2094            y_coordinate: CartesianCoordinateWithConfidence,
2095            z_coordinate: Option<CartesianCoordinateWithConfidence>,
2096        ) -> Self {
2097            Self {
2098                x_coordinate,
2099                y_coordinate,
2100                z_coordinate,
2101            }
2102        }
2103    }
2104    #[doc = "*"]
2105    #[doc = " * This DF is a representation of the cause code value of a traffic event. "]
2106    #[doc = " *"]
2107    #[doc = " * It shall include the following components: "]
2108    #[doc = " *"]
2109    #[doc = " * @field causeCode: the main cause of a detected event. "]
2110    #[doc = " *"]
2111    #[doc = " * @field subCauseCode: the subordinate cause of a detected event. "]
2112    #[doc = " *"]
2113    #[doc = " * The semantics of the entire DF are completely defined by the component causeCode. The interpretation of the subCauseCode may "]
2114    #[doc = " * provide additional information that is not strictly necessary to understand the causeCode itself, and is therefore optional."]
2115    #[doc = " *"]
2116    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref CauseCodeV2 instead. "]
2117    #[doc = " *"]
2118    #[doc = " * @category: Traffic information"]
2119    #[doc = " * @revision: Editorial update in V2.1.1"]
2120    #[doc = " "]
2121    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2122    #[rasn(automatic_tags)]
2123    #[non_exhaustive]
2124    pub struct CauseCode {
2125        #[rasn(identifier = "causeCode")]
2126        pub cause_code: CauseCodeType,
2127        #[rasn(identifier = "subCauseCode")]
2128        pub sub_cause_code: SubCauseCodeType,
2129    }
2130    impl CauseCode {
2131        pub fn new(cause_code: CauseCodeType, sub_cause_code: SubCauseCodeType) -> Self {
2132            Self {
2133                cause_code,
2134                sub_cause_code,
2135            }
2136        }
2137    }
2138    #[doc = "*"]
2139    #[doc = " * This DF is a representation of the cause code value and associated sub cause code value of a traffic event. "]
2140    #[doc = " *"]
2141    #[doc = " * The following options are available:"]
2142    #[doc = " * - 0                                                        - reserved for future use,"]
2143    #[doc = " * - 1  - `trafficCondition1`                                 - in case the type of event is an abnormal traffic condition,"]
2144    #[doc = " * - 2  - `accident2`                                         - in case the type of event is a road accident, "]
2145    #[doc = " * - 3  - `roadworks3`                                        - in case the type of event is roadwork, based on authoritative information,"]
2146    #[doc = " * - 4  - `detectedRoadworks4`                                - in case the type of event is roadworks, based on non-authoritative information such as factual detections,"]
2147    #[doc = " * - 5  - `impassability5`                                    - in case the  type of event is unmanaged road blocking, referring to any"]
2148    #[doc = " *                                                              blocking of a road, partial or total, which has not been adequately secured and signposted,"]
2149    #[doc = " * - 6  - `adhesion6`                                         - in case the  type of event is low adhesion of the road surface,"]
2150    #[doc = " * - 7  - `aquaplaning7`                                      - danger of aquaplaning on the road,"]
2151    #[doc = " * - 8                                                        - reserved for future usage,"]
2152    #[doc = " * - 9  - `hazardousLocation-SurfaceCondition9`               - in case the type of event is abnormal road surface condition not covered by `adhesion6`, "]
2153    #[doc = " * - 10 - `hazardousLocation-ObstacleOnTheRoad10`             - in case the type of event is obstacle on the road,"]
2154    #[doc = " * - 11 - `hazardousLocation-AnimalOnTheRoad11`               - in case the type of event is animal on the road,"]
2155    #[doc = " * - 12 - `humanPresenceOnTheRoad`                            - in case the type of event is presence of human vulnerable road user on the road,"]
2156    #[doc = " * - 13                                                       - reserved for future usage,"]
2157    #[doc = " * - 14 - `wrongWayDriving14`                                 - in case the type of the event is vehicle driving in wrong way,"]
2158    #[doc = " * - 15 - `rescueRecoveryAndMaintenanceWorkInProgress15`      - in case the type of event is rescue, recovery and maintenance work for accident or for a road hazard in progress,"]
2159    #[doc = " * - 16                                                       - reserved for future usage,"]
2160    #[doc = " * - 17 - `adverseWeatherCondition-Wind17`                    - in case the type of event is wind,"]
2161    #[doc = " * - 18 - `adverseWeatherCondition-Visibility18`              - in case the type of event is low visibility,"]
2162    #[doc = " * - 19 - `adverseWeatherCondition-Precipitation19`           - in case the type of event is precipitation,"]
2163    #[doc = " * - 20 - `violence20`                                        - in case the the type of event is human violence on or near the road,"]
2164    #[doc = " * - 21-25                                                    - reserved for future usage,"]
2165    #[doc = " * - 26 - `slowVehicle26`                                     - in case the type of event is slow vehicle driving on the road,"]
2166    #[doc = " * - 27 - `dangerousEndOfQueue27`                             - in case the type of event is dangerous end of vehicle queue,"]
2167    #[doc = " * - 28 - `publicTransportVehicleApproaching                  - in case the type of event is a public transport vehicle approaching, with a priority defined by applicable traffic regulations,"]
2168    #[doc = " * - 29-90                                                    - are reserved for future usage,"]
2169    #[doc = " * - 91 - `vehicleBreakdown91`                                - in case the type of event is break down vehicle on the road,"]
2170    #[doc = " * - 92 - `postCrash92`                                       - in case the type of event is a detected crash,"]
2171    #[doc = " * - 93 - `humanProblem93`                                    - in case the type of event is human health problem in vehicles involved in traffic,"]
2172    #[doc = " * - 94 - `stationaryVehicle94`                               - in case the type of event is stationary vehicle,"]
2173    #[doc = " * - 95 - `emergencyVehicleApproaching95`                     - in case the type of event is an approaching vehicle operating on a mission for which the "]
2174    #[doc = "                                                                applicable traffic regulations provide it with defined priority rights in traffic. "]
2175    #[doc = " * - 96 - `hazardousLocation-DangerousCurve96`                - in case the type of event is dangerous curve,"]
2176    #[doc = " * - 97 - `collisionRisk97`                                   - in case the type of event is a collision risk,"]
2177    #[doc = " * - 98 - `signalViolation98`                                 - in case the type of event is signal violation,"]
2178    #[doc = " * - 99 - `dangerousSituation99`                              - in case the type of event is dangerous situation in which autonomous safety system in vehicle "]
2179    #[doc = " *                                                              is activated,"]
2180    #[doc = " * - 100 - `railwayLevelCrossing100`                          - in case the type of event is a railway level crossing. "]
2181    #[doc = " * - 101-255                                                  - are reserved for future usage."]
2182    #[doc = " *"]
2183    #[doc = " * @note: this DF is defined for use as part of CauseCodeV2. It is recommended to use CauseCodeV2."]
2184    #[doc = " * @category: Traffic information"]
2185    #[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"]
2186    #[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"]
2187    #[doc = " "]
2188    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2189    #[rasn(choice, automatic_tags)]
2190    pub enum CauseCodeChoice {
2191        reserved0(SubCauseCodeType),
2192        trafficCondition1(TrafficConditionSubCauseCode),
2193        accident2(AccidentSubCauseCode),
2194        roadworks3(RoadworksSubCauseCode),
2195        detectedRoadworks4(SubCauseCodeType),
2196        impassability5(ImpassabilitySubCauseCode),
2197        adhesion6(AdhesionSubCauseCode),
2198        aquaplaning7(SubCauseCodeType),
2199        reserved8(SubCauseCodeType),
2200        #[rasn(identifier = "hazardousLocation-SurfaceCondition9")]
2201        hazardousLocation_SurfaceCondition9(HazardousLocationSurfaceConditionSubCauseCode),
2202        #[rasn(identifier = "hazardousLocation-ObstacleOnTheRoad10")]
2203        hazardousLocation_ObstacleOnTheRoad10(HazardousLocationObstacleOnTheRoadSubCauseCode),
2204        #[rasn(identifier = "hazardousLocation-AnimalOnTheRoad11")]
2205        hazardousLocation_AnimalOnTheRoad11(HazardousLocationAnimalOnTheRoadSubCauseCode),
2206        humanPresenceOnTheRoad12(HumanPresenceOnTheRoadSubCauseCode),
2207        reserved13(SubCauseCodeType),
2208        wrongWayDriving14(WrongWayDrivingSubCauseCode),
2209        rescueRecoveryAndMaintenanceWorkInProgress15(
2210            RescueRecoveryAndMaintenanceWorkInProgressSubCauseCode,
2211        ),
2212        reserved16(SubCauseCodeType),
2213        #[rasn(identifier = "adverseWeatherCondition-Wind17")]
2214        adverseWeatherCondition_Wind17(AdverseWeatherConditionWindSubCauseCode),
2215        #[rasn(identifier = "adverseWeatherCondition-Visibility18")]
2216        adverseWeatherCondition_Visibility18(AdverseWeatherConditionVisibilitySubCauseCode),
2217        #[rasn(identifier = "adverseWeatherCondition-Precipitation19")]
2218        adverseWeatherCondition_Precipitation19(AdverseWeatherConditionPrecipitationSubCauseCode),
2219        violence20(SubCauseCodeType),
2220        reserved21(SubCauseCodeType),
2221        reserved22(SubCauseCodeType),
2222        reserved23(SubCauseCodeType),
2223        reserved24(SubCauseCodeType),
2224        reserved25(SubCauseCodeType),
2225        slowVehicle26(SlowVehicleSubCauseCode),
2226        dangerousEndOfQueue27(DangerousEndOfQueueSubCauseCode),
2227        publicTransportVehicleApproaching28(SubCauseCodeType),
2228        reserved29(SubCauseCodeType),
2229        reserved30(SubCauseCodeType),
2230        reserved31(SubCauseCodeType),
2231        reserved32(SubCauseCodeType),
2232        reserved33(SubCauseCodeType),
2233        reserved34(SubCauseCodeType),
2234        reserved35(SubCauseCodeType),
2235        reserved36(SubCauseCodeType),
2236        reserved37(SubCauseCodeType),
2237        reserved38(SubCauseCodeType),
2238        reserved39(SubCauseCodeType),
2239        reserved40(SubCauseCodeType),
2240        reserved41(SubCauseCodeType),
2241        dontPanic42(SubCauseCodeType),
2242        reserved43(SubCauseCodeType),
2243        reserved44(SubCauseCodeType),
2244        reserved45(SubCauseCodeType),
2245        reserved46(SubCauseCodeType),
2246        reserved47(SubCauseCodeType),
2247        reserved48(SubCauseCodeType),
2248        reserved49(SubCauseCodeType),
2249        reserved50(SubCauseCodeType),
2250        reserved51(SubCauseCodeType),
2251        reserved52(SubCauseCodeType),
2252        reserved53(SubCauseCodeType),
2253        reserved54(SubCauseCodeType),
2254        reserved55(SubCauseCodeType),
2255        reserved56(SubCauseCodeType),
2256        reserved57(SubCauseCodeType),
2257        reserved58(SubCauseCodeType),
2258        reserved59(SubCauseCodeType),
2259        reserved60(SubCauseCodeType),
2260        reserved61(SubCauseCodeType),
2261        reserved62(SubCauseCodeType),
2262        reserved63(SubCauseCodeType),
2263        reserved64(SubCauseCodeType),
2264        reserved65(SubCauseCodeType),
2265        reserved66(SubCauseCodeType),
2266        reserved67(SubCauseCodeType),
2267        reserved68(SubCauseCodeType),
2268        reserved69(SubCauseCodeType),
2269        reserved70(SubCauseCodeType),
2270        reserved71(SubCauseCodeType),
2271        reserved72(SubCauseCodeType),
2272        reserved73(SubCauseCodeType),
2273        reserved74(SubCauseCodeType),
2274        reserved75(SubCauseCodeType),
2275        reserved76(SubCauseCodeType),
2276        reserved77(SubCauseCodeType),
2277        reserved78(SubCauseCodeType),
2278        reserved79(SubCauseCodeType),
2279        reserved80(SubCauseCodeType),
2280        reserved81(SubCauseCodeType),
2281        reserved82(SubCauseCodeType),
2282        reserved83(SubCauseCodeType),
2283        reserved84(SubCauseCodeType),
2284        reserved85(SubCauseCodeType),
2285        reserved86(SubCauseCodeType),
2286        reserved87(SubCauseCodeType),
2287        reserved88(SubCauseCodeType),
2288        reserved89(SubCauseCodeType),
2289        reserved90(SubCauseCodeType),
2290        vehicleBreakdown91(VehicleBreakdownSubCauseCode),
2291        postCrash92(PostCrashSubCauseCode),
2292        humanProblem93(HumanProblemSubCauseCode),
2293        stationaryVehicle94(StationaryVehicleSubCauseCode),
2294        emergencyVehicleApproaching95(EmergencyVehicleApproachingSubCauseCode),
2295        #[rasn(identifier = "hazardousLocation-DangerousCurve96")]
2296        hazardousLocation_DangerousCurve96(HazardousLocationDangerousCurveSubCauseCode),
2297        collisionRisk97(CollisionRiskSubCauseCode),
2298        signalViolation98(SignalViolationSubCauseCode),
2299        dangerousSituation99(DangerousSituationSubCauseCode),
2300        railwayLevelCrossing100(RailwayLevelCrossingSubCauseCode),
2301        reserved101(SubCauseCodeType),
2302        reserved102(SubCauseCodeType),
2303        reserved103(SubCauseCodeType),
2304        reserved104(SubCauseCodeType),
2305        reserved105(SubCauseCodeType),
2306        reserved106(SubCauseCodeType),
2307        reserved107(SubCauseCodeType),
2308        reserved108(SubCauseCodeType),
2309        reserved109(SubCauseCodeType),
2310        reserved110(SubCauseCodeType),
2311        reserved111(SubCauseCodeType),
2312        reserved112(SubCauseCodeType),
2313        reserved113(SubCauseCodeType),
2314        reserved114(SubCauseCodeType),
2315        reserved115(SubCauseCodeType),
2316        reserved116(SubCauseCodeType),
2317        reserved117(SubCauseCodeType),
2318        reserved118(SubCauseCodeType),
2319        reserved119(SubCauseCodeType),
2320        reserved120(SubCauseCodeType),
2321        reserved121(SubCauseCodeType),
2322        reserved122(SubCauseCodeType),
2323        reserved123(SubCauseCodeType),
2324        reserved124(SubCauseCodeType),
2325        reserved125(SubCauseCodeType),
2326        reserved126(SubCauseCodeType),
2327        reserved127(SubCauseCodeType),
2328        reserved128(SubCauseCodeType),
2329    }
2330    #[doc = "*"]
2331    #[doc = " *The DE represents the value of the cause code of an event. "]
2332    #[doc = " * "]
2333    #[doc = " * The value shall be set to:"]
2334    #[doc = " * - 0                                                     - reserved for future use,"]
2335    #[doc = " * - 1  - `trafficCondition`                               - in case the type of event is an abnormal traffic condition,"]
2336    #[doc = " * - 2  - `accident`                                       - in case the type of event is a road accident,"]
2337    #[doc = " * - 3  - `roadworks`                                      - in case the type of event is roadworks, based on authoritative information,"]
2338    #[doc = " * - 4  - `detectedRoadworks`                              - in case the type of event is roadworks, based on non-authoritative information such as factual detections, "]
2339    #[doc = " * - 5  - `impassability`                                  - in case the  type of event is unmanaged road blocking, referring to any"]
2340    #[doc = " *                                                           blocking of a road, partial or total, which has not been adequately"]
2341    #[doc = " *                                                           secured and signposted,"]
2342    #[doc = " * - 6  - `adhesion`                                       - in case the  type of event is low adhesion of the road surface,"]
2343    #[doc = " * - 7  - `aquaplaning`                                    - danger of aquaplaning on the road,"]
2344    #[doc = " * - 8                                                     - reserved for future usage,"]
2345    #[doc = " * - 9  - `hazardousLocation-SurfaceCondition`             - in case the type of event is abnormal road surface condition not covered by `adhesion`"]
2346    #[doc = " * - 10 - `hazardousLocation-ObstacleOnTheRoad`            - in case the type of event is obstacle on the road,"]
2347    #[doc = " * - 11 - `hazardousLocation-AnimalOnTheRoad`              - in case the type of event is animal on the road,"]
2348    #[doc = " * - 12 - `humanPresenceOnTheRoad`                         - in case the type of event is presence of human vulnerable road user on the road,"]
2349    #[doc = " * - 13                                                    - reserved for future usage,"]
2350    #[doc = " * - 14 - `wrongWayDriving`                                - in case the type of the event is vehicle driving in wrong way,"]
2351    #[doc = " * - 15 - `rescueRecoveryAndMaintenanceWorkInProgress`     - in case the type of event is rescue, recovery and maintenance work for accident or for a road hazard in progress,"]
2352    #[doc = " * - 16                                                    - reserved for future usage,"]
2353    #[doc = " * - 17 - `adverseWeatherCondition-Wind                   `- in case the type of event is wind,"]
2354    #[doc = " * - 18 - `adverseWeatherCondition-Visibility`             - in case the type of event is low visibility,"]
2355    #[doc = " * - 19 - `adverseWeatherCondition-Precipitation`          - in case the type of event is precipitation,"]
2356    #[doc = " * - 20 - `violence`                                       - in case the the type of event is human violence on or near the road,"]
2357    #[doc = " * - 21-25                                                 - reserved for future usage,"]
2358    #[doc = " * - 26 - `slowVehicle`                                    - in case the type of event is slow vehicle driving on the road,"]
2359    #[doc = " * - 27 - `dangerousEndOfQueue`                            - in case the type of event is dangerous end of vehicle queue,"]
2360    #[doc = " * - 28 - `publicTransportVehicleApproaching               - in case the type of event is a public transport vehicle approaching, with a priority defined by applicable traffic regulations,"]
2361    #[doc = " * - 29-90                                                 - are reserved for future usage,"]
2362    #[doc = " * - 91 - `vehicleBreakdown`                               - in case the type of event is break down vehicle on the road,"]
2363    #[doc = " * - 92 - `postCrash`                                      - in case the type of event is a detected crash,"]
2364    #[doc = " * - 93 - `humanProblem`                                   - in case the type of event is human health problem in vehicles involved in traffic,"]
2365    #[doc = " * - 94 - `stationaryVehicle`                              - in case the type of event is stationary vehicle,"]
2366    #[doc = " * - 95 - `emergencyVehicleApproaching`                    - in case the type of event is an approaching vehicle operating on a mission for which the applicable "]
2367    #[doc = "                                                             traffic regulations provide it with defined priority rights in traffic. "]
2368    #[doc = " * - 96 - `hazardousLocation-DangerousCurve`               - in case the type of event is dangerous curve,"]
2369    #[doc = " * - 97 - `collisionRisk`                                  - in case the type of event is a collision risk,"]
2370    #[doc = " * - 98 - `signalViolation`                                - in case the type of event is signal violation,"]
2371    #[doc = " * - 99 - `dangerousSituation`                             - in case the type of event is dangerous situation in which autonomous safety system in vehicle "]
2372    #[doc = " *                                                             is activated,"]
2373    #[doc = " * - 100 - `railwayLevelCrossing`                          - in case the type of event is a railway level crossing. "]
2374    #[doc = " * - 101-255                                               - are reserved for future usage."]
2375    #[doc = " *"]
2376    #[doc = " * @category: Traffic information"]
2377    #[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,"]
2378    #[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"]
2379    #[doc = " "]
2380    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2381    #[rasn(delegate, value("0..=255"))]
2382    pub struct CauseCodeType(pub u8);
2383    #[doc = "*"]
2384    #[doc = " * This DF is an alternative representation of the cause code value of a traffic event. "]
2385    #[doc = " *"]
2386    #[doc = " * It shall include the following components: "]
2387    #[doc = " *"]
2388    #[doc = " * @field ccAndScc: the main cause of a detected event. Each entry is of a different type and represents the sub cause code."]
2389    #[doc = ""]
2390    #[doc = " * The semantics of the entire DF are completely defined by the choice value which represents the cause code value. "]
2391    #[doc = " * The interpretation of the sub cause code value may provide additional information that is not strictly necessary to understand "]
2392    #[doc = " * the cause code itself, and is therefore optional."]
2393    #[doc = " *"]
2394    #[doc = " * @category: Traffic information"]
2395    #[doc = " * @revision: Created in V2.1.1, description amended in V2.2.1"]
2396    #[doc = " "]
2397    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2398    #[rasn(automatic_tags)]
2399    #[non_exhaustive]
2400    pub struct CauseCodeV2 {
2401        #[rasn(identifier = "ccAndScc")]
2402        pub cc_and_scc: CauseCodeChoice,
2403    }
2404    impl CauseCodeV2 {
2405        pub fn new(cc_and_scc: CauseCodeChoice) -> Self {
2406            Self { cc_and_scc }
2407        }
2408    }
2409    #[doc = "*"]
2410    #[doc = " * The DF describes the position of a CEN DSRC road side equipment."]
2411    #[doc = " *"]
2412    #[doc = " * It shall include the following components: "]
2413    #[doc = " * "]
2414    #[doc = " * @field protectedZoneLatitude: the latitude of the CEN DSRC road side equipment."]
2415    #[doc = " * "]
2416    #[doc = " * @field protectedZoneLongitude: the latitude of the CEN DSRC road side equipment. "]
2417    #[doc = " * "]
2418    #[doc = " * @field cenDsrcTollingZoneID: the optional ID of the CEN DSRC road side equipment."]
2419    #[doc = " * "]
2420    #[doc = " * @category: Infrastructure information, Communication information"]
2421    #[doc = " * @revision: revised in V2.1.1 (cenDsrcTollingZoneId is directly of type ProtectedZoneId)"]
2422    #[doc = " "]
2423    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2424    #[rasn(automatic_tags)]
2425    #[non_exhaustive]
2426    pub struct CenDsrcTollingZone {
2427        #[rasn(identifier = "protectedZoneLatitude")]
2428        pub protected_zone_latitude: Latitude,
2429        #[rasn(identifier = "protectedZoneLongitude")]
2430        pub protected_zone_longitude: Longitude,
2431        #[rasn(identifier = "cenDsrcTollingZoneId")]
2432        pub cen_dsrc_tolling_zone_id: Option<ProtectedZoneId>,
2433    }
2434    impl CenDsrcTollingZone {
2435        pub fn new(
2436            protected_zone_latitude: Latitude,
2437            protected_zone_longitude: Longitude,
2438            cen_dsrc_tolling_zone_id: Option<ProtectedZoneId>,
2439        ) -> Self {
2440            Self {
2441                protected_zone_latitude,
2442                protected_zone_longitude,
2443                cen_dsrc_tolling_zone_id,
2444            }
2445        }
2446    }
2447    #[doc = "*"]
2448    #[doc = " * This DE represents the ID of a CEN DSRC tolling zone. "]
2449    #[doc = " * "]
2450    #[doc = " * @category: Communication information"]
2451    #[doc = " * @revision: V1.3.1"]
2452    #[doc = " * @note: this DE is deprecated and shall not be used anymore.  "]
2453    #[doc = " "]
2454    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2455    #[rasn(delegate)]
2456    pub struct CenDsrcTollingZoneID(pub ProtectedZoneId);
2457    #[doc = "* "]
2458    #[doc = " * "]
2459    #[doc = " * This DF represents the shape of a circular area or a right cylinder that is centred on the shape's reference point. "]
2460    #[doc = " *"]
2461    #[doc = " * It shall include the following components: "]
2462    #[doc = " * "]
2463    #[doc = " * @field shapeReferencePoint: optional reference point that represents the centre of the circle, relative to an externally specified reference position. "]
2464    #[doc = " * If this component is absent, the externally specified reference position represents the shape's reference point. "]
2465    #[doc = " *"]
2466    #[doc = " * @field radius: the radius of the circular area."]
2467    #[doc = " *"]
2468    #[doc = " * @field height: the optional height, present if the shape is a right cylinder extending in the positive z-axis. "]
2469    #[doc = " *"]
2470    #[doc = " * "]
2471    #[doc = " * @category: GeoReference information"]
2472    #[doc = " * @revision: Created in V2.1.1"]
2473    #[doc = " "]
2474    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2475    #[rasn(automatic_tags)]
2476    pub struct CircularShape {
2477        #[rasn(identifier = "shapeReferencePoint")]
2478        pub shape_reference_point: Option<CartesianPosition3d>,
2479        pub radius: StandardLength12b,
2480        pub height: Option<StandardLength12b>,
2481    }
2482    impl CircularShape {
2483        pub fn new(
2484            shape_reference_point: Option<CartesianPosition3d>,
2485            radius: StandardLength12b,
2486            height: Option<StandardLength12b>,
2487        ) -> Self {
2488            Self {
2489                shape_reference_point,
2490                radius,
2491                height,
2492            }
2493        }
2494    }
2495    #[doc = "*"]
2496    #[doc = " * This DF indicates the opening/closure status of the lanes of a carriageway."]
2497    #[doc = " *"]
2498    #[doc = " * It shall include the following components: "]
2499    #[doc = " * "]
2500    #[doc = " * @field innerhardShoulderStatus: this information is optional and shall be included if an inner hard shoulder is present and the information is known."]
2501    #[doc = " * It indicates the open/closing status of inner hard shoulder lanes. "]
2502    #[doc = " * "]
2503    #[doc = " * @field outerhardShoulderStatus: this information is optional and shall be included if an outer hard shoulder is present and the information is known."]
2504    #[doc = " * It indicates the open/closing status of outer hard shoulder lanes. "]
2505    #[doc = " * "]
2506    #[doc = " * @field drivingLaneStatus: this information is optional and shall be included if the information is known."]
2507    #[doc = " * It indicates the open/closing status of driving lanes. "]
2508    #[doc = " * For carriageways with more than 13 driving lanes, the drivingLaneStatus component shall not be present."]
2509    #[doc = " * "]
2510    #[doc = " * @category: Infrastructure information, Road topology information"]
2511    #[doc = " * @revision: Description revised in V2.1.1"]
2512    #[doc = " "]
2513    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2514    #[rasn(automatic_tags)]
2515    #[non_exhaustive]
2516    pub struct ClosedLanes {
2517        #[rasn(identifier = "innerhardShoulderStatus")]
2518        pub innerhard_shoulder_status: Option<HardShoulderStatus>,
2519        #[rasn(identifier = "outerhardShoulderStatus")]
2520        pub outerhard_shoulder_status: Option<HardShoulderStatus>,
2521        #[rasn(identifier = "drivingLaneStatus")]
2522        pub driving_lane_status: Option<DrivingLaneStatus>,
2523    }
2524    impl ClosedLanes {
2525        pub fn new(
2526            innerhard_shoulder_status: Option<HardShoulderStatus>,
2527            outerhard_shoulder_status: Option<HardShoulderStatus>,
2528            driving_lane_status: Option<DrivingLaneStatus>,
2529        ) -> Self {
2530            Self {
2531                innerhard_shoulder_status,
2532                outerhard_shoulder_status,
2533                driving_lane_status,
2534            }
2535        }
2536    }
2537    #[doc = "*"]
2538    #[doc = " * This DF provides information about the breakup of a cluster."]
2539    #[doc = " *"]
2540    #[doc = " * It shall include the following components: "]
2541    #[doc = " * "]
2542    #[doc = " * @field clusterBreakupReason: indicates the reason for breakup."]
2543    #[doc = " * "]
2544    #[doc = " * @field breakupTime: indicates the time of breakup. "]
2545    #[doc = " *"]
2546    #[doc = " * @category: Cluster Information"]
2547    #[doc = " * @revision: Created in V2.1.1"]
2548    #[doc = " "]
2549    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2550    #[rasn(automatic_tags)]
2551    #[non_exhaustive]
2552    pub struct ClusterBreakupInfo {
2553        #[rasn(identifier = "clusterBreakupReason")]
2554        pub cluster_breakup_reason: ClusterBreakupReason,
2555        #[rasn(identifier = "breakupTime")]
2556        pub breakup_time: DeltaTimeQuarterSecond,
2557    }
2558    impl ClusterBreakupInfo {
2559        pub fn new(
2560            cluster_breakup_reason: ClusterBreakupReason,
2561            breakup_time: DeltaTimeQuarterSecond,
2562        ) -> Self {
2563            Self {
2564                cluster_breakup_reason,
2565                breakup_time,
2566            }
2567        }
2568    }
2569    #[doc = "*"]
2570    #[doc = " * This DE indicates the reason why a cluster leader intends to break up the cluster."]
2571    #[doc = " * "]
2572    #[doc = " * The value shall be set to:"]
2573    #[doc = " * - 0 - `notProvided`                          - if the information is not provided,"]
2574    #[doc = " * - 1 - `clusteringPurposeCompleted`           - if the cluster purpose has been completed,"]
2575    #[doc = " * - 2 - `leaderMovedOutOfClusterBoundingBox`   - if the leader moved out of the cluster's bounding box,"]
2576    #[doc = " * - 3 - `joiningAnotherCluster`                - if the cluster leader is about to join another cluster,"]
2577    #[doc = " * - 4 - `enteringLowRiskAreaBasedOnMaps`       - if the cluster is entering an area idenrified as low risk based on the use of maps,"]
2578    #[doc = " * - 5 - `receptionOfCpmContainingCluster`      - if the leader received a Collective Perception Message containing information about the same cluster. "]
2579    #[doc = " * - 6 to 15                                    - are reserved for future use.                                    "]
2580    #[doc = " *"]
2581    #[doc = " * @category: Cluster information"]
2582    #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
2583    #[doc = ""]
2584    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2585    #[rasn(delegate, value("0..=15"))]
2586    pub struct ClusterBreakupReason(pub u8);
2587    #[doc = "*"]
2588    #[doc = " * This DF provides information about the joining of a cluster."]
2589    #[doc = " *"]
2590    #[doc = " * It shall include the following components: "]
2591    #[doc = " * "]
2592    #[doc = " * @field clusterId: indicates the identifier of the cluster."]
2593    #[doc = " * "]
2594    #[doc = " * @field joinTime: indicates the time of joining. "]
2595    #[doc = " *"]
2596    #[doc = " * @category: Cluster Information"]
2597    #[doc = " * @revision: Created in V2.1.1"]
2598    #[doc = " "]
2599    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2600    #[rasn(automatic_tags)]
2601    #[non_exhaustive]
2602    pub struct ClusterJoinInfo {
2603        #[rasn(identifier = "clusterId")]
2604        pub cluster_id: Identifier1B,
2605        #[rasn(identifier = "joinTime")]
2606        pub join_time: DeltaTimeQuarterSecond,
2607    }
2608    impl ClusterJoinInfo {
2609        pub fn new(cluster_id: Identifier1B, join_time: DeltaTimeQuarterSecond) -> Self {
2610            Self {
2611                cluster_id,
2612                join_time,
2613            }
2614        }
2615    }
2616    #[doc = "*"]
2617    #[doc = " * The DF provides information about the leaving of a cluster."]
2618    #[doc = " *"]
2619    #[doc = " * It shall include the following components: "]
2620    #[doc = " * "]
2621    #[doc = " * @field clusterId: indicates the cluster."]
2622    #[doc = " * "]
2623    #[doc = " * @field clusterLeaveReason: indicates the reason for leaving. "]
2624    #[doc = " *"]
2625    #[doc = " * @category: Cluster Information"]
2626    #[doc = " * @revision: Created in V2.1.1"]
2627    #[doc = " "]
2628    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2629    #[rasn(automatic_tags)]
2630    #[non_exhaustive]
2631    pub struct ClusterLeaveInfo {
2632        #[rasn(identifier = "clusterId")]
2633        pub cluster_id: Identifier1B,
2634        #[rasn(identifier = "clusterLeaveReason")]
2635        pub cluster_leave_reason: ClusterLeaveReason,
2636    }
2637    impl ClusterLeaveInfo {
2638        pub fn new(cluster_id: Identifier1B, cluster_leave_reason: ClusterLeaveReason) -> Self {
2639            Self {
2640                cluster_id,
2641                cluster_leave_reason,
2642            }
2643        }
2644    }
2645    #[doc = "*"]
2646    #[doc = " * This DE indicates the reason why a cluster participant is leaving the cluster."]
2647    #[doc = " * "]
2648    #[doc = " * The value shall be set to:"]
2649    #[doc = " * - 0 - `notProvided `                 - if the information is not provided,"]
2650    #[doc = " * - 1 - `clusterLeaderLost`            - if the cluster leader cannot be found anymore,   "]
2651    #[doc = " * - 2 - `clusterDisbandedByLeader`     - if the cluster has been disbanded by the leader,"]
2652    #[doc = " * - 3 - `outOfClusterBoundingBox`      - if the participants moved out of the cluster's bounding box,"]
2653    #[doc = " * - 4 - `outOfClusterSpeedRange`       - if the cluster speed moved out of a defined range, "]
2654    #[doc = " * - 5 - `joiningAnotherCluster`        - if the participant is joining another cluster,"]
2655    #[doc = " * - 6 - `cancelledJoin`                - if the participant is cancelling a joining procedure,"]
2656    #[doc = " * - 7 - `failedJoin`                   - if the participant failed to join the cluster,"]
2657    #[doc = " * - 8 - `safetyCondition`              - if a safety condition applies."]
2658    #[doc = " * - 9 to 15                            - are reserved for future use                             "]
2659    #[doc = " *"]
2660    #[doc = " * @category: Cluster information"]
2661    #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
2662    #[doc = " "]
2663    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2664    #[rasn(delegate, value("0..=15"))]
2665    pub struct ClusterLeaveReason(pub u8);
2666    #[doc = "*"]
2667    #[doc = " * This DE represents the sub cause codes of the @ref CauseCode `collisionRisk`."]
2668    #[doc = " * "]
2669    #[doc = " * The value shall be set to:"]
2670    #[doc = " * - 0 - `unavailable`                    - in case information on the type of collision risk is unavailable,"]
2671    #[doc = " * - 1 - `longitudinalCollisionRisk`      - in case the type of detected collision risk is longitudinal collision risk, "]
2672    #[doc = " *                                          e.g. forward collision or face to face collision,"]
2673    #[doc = " * - 2 - `crossingCollisionRisk`          - in case the type of detected collision risk is crossing collision risk,"]
2674    #[doc = " * - 3 - `lateralCollisionRisk`           - in case the type of detected collision risk is lateral collision risk,"]
2675    #[doc = " * - 4 - `vulnerableRoadUser`             - in case the type of detected collision risk involves vulnerable road users"]
2676    #[doc = " *                                          e.g. pedestrians or bicycles."]
2677    #[doc = " * - 5 - `collisionRiskWithPedestrian`    - in case the type of detected collision risk involves at least one pedestrian, "]
2678    #[doc = " * - 6 - `collisionRiskWithCyclist`       - in case the type of detected collision risk involves at least one cyclist (and no pedestrians),"]
2679    #[doc = " * - 7 - `collisionRiskWithMotorVehicle`  - in case the type of detected collision risk involves at least one motor vehicle (and no pedestrians or cyclists),"]
2680    #[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."]
2681    #[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. "]
2682    #[doc = " * - 10-255                               - are reserved for future usage."]
2683    #[doc = " *"]
2684    #[doc = " * @category: Traffic information"]
2685    #[doc = " * @revision: V1.3.1, values 5-7 assigned in V2.2.1, values 8-9 added in V2.4.1"]
2686    #[doc = " "]
2687    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2688    #[rasn(delegate, value("0..=255"))]
2689    pub struct CollisionRiskSubCauseCode(pub u8);
2690    #[doc = "* "]
2691    #[doc = " * This DE represents a confidence level in percentage."]
2692    #[doc = " * "]
2693    #[doc = " * The value shall be set to:"]
2694    #[doc = " * - `n` (`n > 0` and `n < 101`) : for the confidence level in %,"]
2695    #[doc = " * - `101`                   : in case the confidence level is not available."]
2696    #[doc = " *"]
2697    #[doc = " * @unit Percent "]
2698    #[doc = " * @category: Basic information "]
2699    #[doc = " * @revision: Created in V2.1.1 "]
2700    #[doc = ""]
2701    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2702    #[rasn(delegate, value("1..=101"))]
2703    pub struct ConfidenceLevel(pub u8);
2704    #[doc = "*"]
2705    #[doc = "* This DF shall contain a list of @ref ConfidenceLevel."]
2706    #[doc = "*"]
2707    #[doc = "* @category: Basic information"]
2708    #[doc = "* @revision: created in V2.3.1 "]
2709    #[doc = ""]
2710    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2711    #[rasn(delegate, size("1..=32", extensible))]
2712    pub struct ConfidenceLevels(pub SequenceOf<ConfidenceLevel>);
2713    #[doc = "* "]
2714    #[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 %."]
2715    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
2716    #[doc = " *"]
2717    #[doc = " * The value shall be set to: "]
2718    #[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,"]
2719    #[doc = " * - `4095` if the confidence value is greater than 40,94 metres,"]
2720    #[doc = " * - `4096` if the confidence value is not available."]
2721    #[doc = " *"]
2722    #[doc = " * @unit 0,01 m"]
2723    #[doc = " * @category: Basic information"]
2724    #[doc = " * @revision: Created in V2.1.1"]
2725    #[doc = ""]
2726    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2727    #[rasn(delegate, value("1..=4096"))]
2728    pub struct CoordinateConfidence(pub u16);
2729    #[doc = "* "]
2730    #[doc = " * This DE represents the Bravais-Pearson correlation value for each cell of a lower triangular correlation matrix."]
2731    #[doc = " *"]
2732    #[doc = " * The value shall be set to: "]
2733    #[doc = " * - `-100` in case of full negative correlation,"]
2734    #[doc = " * - `n` (`n > -100` and `n < 0`) if the correlation is negative and equal to n/100,"]
2735    #[doc = " * - `0` in case of no correlation,"]
2736    #[doc = " * - `n` (`n > 0` and `n < 100`) if the correlation is positive and equal to n/100,"]
2737    #[doc = " * - `100` in case of full positive correlation,"]
2738    #[doc = " * - `101` in case the correlation information is unavailable. "]
2739    #[doc = " *"]
2740    #[doc = " * @unit: the value is scaled by 100"]
2741    #[doc = " * @category: Basic information"]
2742    #[doc = " * @revision: Created in V2.1.1, corrected the value to n/100 on V2.4.1"]
2743    #[doc = ""]
2744    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2745    #[rasn(delegate, value("-100..=101"))]
2746    pub struct CorrelationCellValue(pub i8);
2747    #[doc = "*"]
2748    #[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."]
2749    #[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."]
2750    #[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"]
2751    #[doc = " * starting at 1 from the left."]
2752    #[doc = " *"]
2753    #[doc = " * @category: Sensing Information"]
2754    #[doc = " * @revision: Created in V2.1.1"]
2755    #[doc = ""]
2756    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2757    #[rasn(delegate, size("1..=13", extensible))]
2758    pub struct CorrelationColumn(pub SequenceOf<CorrelationCellValue>);
2759    #[doc = "* "]
2760    #[doc = " * This DE represents an ISO 3166-1 [25] country code encoded using ITA-2 encoding."]
2761    #[doc = " *"]
2762    #[doc = " * @category: Basic information"]
2763    #[doc = " * @revision: Created in V2.2.1 based on ISO 14816 [23]"]
2764    #[doc = ""]
2765    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2766    #[rasn(delegate)]
2767    pub struct CountryCode(pub FixedBitString<10usize>);
2768    #[doc = "*"]
2769    #[doc = " * This DF represents the curvature of the vehicle trajectory and the associated confidence value."]
2770    #[doc = " * The curvature detected by a vehicle represents the curvature of actual vehicle trajectory."]
2771    #[doc = " *"]
2772    #[doc = " * It shall include the following components: "]
2773    #[doc = " * "]
2774    #[doc = " * @field curvatureValue: Detected curvature of the vehicle trajectory."]
2775    #[doc = " * "]
2776    #[doc = " * @field curvatureConfidence: along with a confidence value of the curvature value with a predefined confidence level. "]
2777    #[doc = " * "]
2778    #[doc = " * @category: Vehicle information"]
2779    #[doc = " * @revision: Description revised in V2.1.1"]
2780    #[doc = " "]
2781    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2782    #[rasn(automatic_tags)]
2783    pub struct Curvature {
2784        #[rasn(identifier = "curvatureValue")]
2785        pub curvature_value: CurvatureValue,
2786        #[rasn(identifier = "curvatureConfidence")]
2787        pub curvature_confidence: CurvatureConfidence,
2788    }
2789    impl Curvature {
2790        pub fn new(
2791            curvature_value: CurvatureValue,
2792            curvature_confidence: CurvatureConfidence,
2793        ) -> Self {
2794            Self {
2795                curvature_value,
2796                curvature_confidence,
2797            }
2798        }
2799    }
2800    #[doc = "*"]
2801    #[doc = " * The DE describes whether the yaw rate is used to calculate the curvature for a curvature value."]
2802    #[doc = " * "]
2803    #[doc = " * The value shall be set to:"]
2804    #[doc = " * - 0 - `yawRateUsed`    - if the yaw rate is used,"]
2805    #[doc = " * - 1 - `yawRateNotUsed` - if the yaw rate is not used,"]
2806    #[doc = " * - 2 - `unavailable`    - if the information of curvature calculation mode is unknown."]
2807    #[doc = " *"]
2808    #[doc = " * @category: Vehicle information"]
2809    #[doc = " * @revision: V1.3.1"]
2810    #[doc = " "]
2811    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2812    #[rasn(enumerated)]
2813    #[non_exhaustive]
2814    pub enum CurvatureCalculationMode {
2815        yawRateUsed = 0,
2816        yawRateNotUsed = 1,
2817        unavailable = 2,
2818    }
2819    #[doc = "*"]
2820    #[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 %."]
2821    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
2822    #[doc = " * "]
2823    #[doc = " * The value shall be set to:"]
2824    #[doc = " * - 0 - `onePerMeter-0-00002` - if the confidence value is less than or equal to 0,00002 m-1,"]
2825    #[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,"]
2826    #[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,"]
2827    #[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,"]
2828    #[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,"]
2829    #[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,"]
2830    #[doc = " * - 6 - `outOfRange`          - if the confidence value is out of range, i.e. greater than 0,1 m-1,"]
2831    #[doc = " * - 7 - `unavailable`         - if the confidence value is not available."]
2832    #[doc = " * "]
2833    #[doc = " * @note:\tThe fact that a curvature value is received with confidence value set to `unavailable(7)` can be caused by"]
2834    #[doc = " * several reasons, such as:"]
2835    #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
2836    #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
2837    #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
2838    #[doc = " * In all 3 cases above, the curvature value may be valid and used by the application."]
2839    #[doc = " * "]
2840    #[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 "]
2841    #[doc = " * and therefore cannot be trusted. Such value is not useful for the application."]
2842    #[doc = " * "]
2843    #[doc = " * @category: Vehicle information"]
2844    #[doc = " * @revision: Description revised in V2.1.1"]
2845    #[doc = ""]
2846    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2847    #[rasn(enumerated)]
2848    pub enum CurvatureConfidence {
2849        #[rasn(identifier = "onePerMeter-0-00002")]
2850        onePerMeter_0_00002 = 0,
2851        #[rasn(identifier = "onePerMeter-0-0001")]
2852        onePerMeter_0_0001 = 1,
2853        #[rasn(identifier = "onePerMeter-0-0005")]
2854        onePerMeter_0_0005 = 2,
2855        #[rasn(identifier = "onePerMeter-0-002")]
2856        onePerMeter_0_002 = 3,
2857        #[rasn(identifier = "onePerMeter-0-01")]
2858        onePerMeter_0_01 = 4,
2859        #[rasn(identifier = "onePerMeter-0-1")]
2860        onePerMeter_0_1 = 5,
2861        outOfRange = 6,
2862        unavailable = 7,
2863    }
2864    #[doc = "*"]
2865    #[doc = " * This DE describes vehicle turning curve with the following information:"]
2866    #[doc = " * ```"]
2867    #[doc = " *     Value = 1 / Radius * 10000"]
2868    #[doc = " * ```"]
2869    #[doc = " * wherein radius is the vehicle turning curve radius in metres. "]
2870    #[doc = " * "]
2871    #[doc = " * Positive values indicate a turning curve to the left hand side of the driver."]
2872    #[doc = " * It corresponds to the vehicle coordinate system as defined in ISO 8855 [21]."]
2873    #[doc = " *"]
2874    #[doc = " * The value shall be set to:"]
2875    #[doc = " * - `-1023` for  values smaller than -1023,"]
2876    #[doc = " * - `n` (`n > -1023` and `n < 0`) for negative values equal to or less than `n`, and greater than `(n-1)`,"]
2877    #[doc = " * - `0` when the vehicle is moving straight,"]
2878    #[doc = " * - `n` (`n > 0` and `n < 1022`) for positive values equal to or less than `n`, and greater than `(n-1)`,"]
2879    #[doc = " * - `1022`, for values  greater than 1021,"]
2880    #[doc = " * - `1023`, if the information is not available."]
2881    #[doc = " * "]
2882    #[doc = " * @note: The present DE is limited to vehicle types as defined in ISO 8855 [21]."]
2883    #[doc = " * "]
2884    #[doc = " * @unit: 1 over 10 000 metres"]
2885    #[doc = " * @category: Vehicle information"]
2886    #[doc = " * @revision: description revised in V2.1.1 (the definition of value 1022 has changed slightly)"]
2887    #[doc = " "]
2888    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2889    #[rasn(delegate, value("-1023..=1023"))]
2890    pub struct CurvatureValue(pub i16);
2891    #[doc = "*"]
2892    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `dangerousEndOfQueue`. "]
2893    #[doc = " * "]
2894    #[doc = " * The value shall be set to:"]
2895    #[doc = " * - 0 - `unavailable`     - in case information on the type of dangerous queue is unavailable,"]
2896    #[doc = " * - 1 - `suddenEndOfQueue`- in case a sudden end of queue is detected, e.g. due to accident or obstacle,"]
2897    #[doc = " * - 2 - `queueOverHill`   - in case the dangerous end of queue is detected on the road hill,"]
2898    #[doc = " * - 3 - `queueAroundBend` - in case the dangerous end of queue is detected around the road bend,"]
2899    #[doc = " * - 4 - `queueInTunnel`   - in case queue is detected in tunnel,"]
2900    #[doc = " * - 5-255                 - reserved for future usage."]
2901    #[doc = " *"]
2902    #[doc = " * @category: Traffic information"]
2903    #[doc = " * @revision: V1.3.1"]
2904    #[doc = " "]
2905    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2906    #[rasn(delegate, value("0..=255"))]
2907    pub struct DangerousEndOfQueueSubCauseCode(pub u8);
2908    #[doc = "*"]
2909    #[doc = " * This DE indicates the type of the dangerous goods being carried by a heavy vehicle."]
2910    #[doc = " * The value is assigned according to `class` and `division` definitions of dangerous goods as specified in part II,"]
2911    #[doc = " * chapter 2.1.1.1 of European Agreement concerning the International Carriage of Dangerous Goods by Road [3]."]
2912    #[doc = " * "]
2913    #[doc = " * "]
2914    #[doc = " * @category Vehicle information"]
2915    #[doc = " * @revision: V1.3.1"]
2916    #[doc = " "]
2917    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
2918    #[rasn(enumerated)]
2919    pub enum DangerousGoodsBasic {
2920        explosives1 = 0,
2921        explosives2 = 1,
2922        explosives3 = 2,
2923        explosives4 = 3,
2924        explosives5 = 4,
2925        explosives6 = 5,
2926        flammableGases = 6,
2927        nonFlammableGases = 7,
2928        toxicGases = 8,
2929        flammableLiquids = 9,
2930        flammableSolids = 10,
2931        substancesLiableToSpontaneousCombustion = 11,
2932        substancesEmittingFlammableGasesUponContactWithWater = 12,
2933        oxidizingSubstances = 13,
2934        organicPeroxides = 14,
2935        toxicSubstances = 15,
2936        infectiousSubstances = 16,
2937        radioactiveMaterial = 17,
2938        corrosiveSubstances = 18,
2939        miscellaneousDangerousSubstances = 19,
2940    }
2941    #[doc = "*"]
2942    #[doc = " * This DF provides a description of dangerous goods being carried by a heavy vehicle."]
2943    #[doc = " *"]
2944    #[doc = " * It shall include the following components: "]
2945    #[doc = " * "]
2946    #[doc = " * @field dangerousGoodsType: Type of dangerous goods."]
2947    #[doc = " * "]
2948    #[doc = " * @field unNumber: a 4-digit number that identifies the substance of the dangerous goods as specified in"]
2949    #[doc = " * United Nations Recommendations on the Transport of Dangerous Goods - Model Regulations [4],"]
2950    #[doc = " * "]
2951    #[doc = " * @field elevatedTemperature: whether the carried dangerous goods are transported at high temperature."]
2952    #[doc = " * If yes, the value shall be set to TRUE,"]
2953    #[doc = " * "]
2954    #[doc = " * @field tunnelsRestricted: whether the heavy vehicle carrying dangerous goods is restricted to enter tunnels."]
2955    #[doc = " * If yes, the value shall be set to TRUE,"]
2956    #[doc = " * "]
2957    #[doc = " * @field limitedQuantity: whether the carried dangerous goods are packed with limited quantity."]
2958    #[doc = " * If yes, the value shall be set to TRUE,"]
2959    #[doc = " * "]
2960    #[doc = " * @field emergencyActionCode: physical signage placard at the vehicle that carries information on how an emergency"]
2961    #[doc = " * service should deal with an incident. This component is optional; it shall be present if the information is available."]
2962    #[doc = " * "]
2963    #[doc = " * @field phoneNumber: contact phone number of assistance service in case of incident or accident."]
2964    #[doc = " * This component is optional, it shall be present if the information is available."]
2965    #[doc = " * "]
2966    #[doc = " * @field companyName: name of company that manages the transportation of the dangerous goods."]
2967    #[doc = " * This component is optional; it shall be present if the information is available."]
2968    #[doc = " * "]
2969    #[doc = " * @category Vehicle information"]
2970    #[doc = " * @revision: V1.3.1"]
2971    #[doc = " "]
2972    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
2973    #[rasn(automatic_tags)]
2974    #[non_exhaustive]
2975    pub struct DangerousGoodsExtended {
2976        #[rasn(identifier = "dangerousGoodsType")]
2977        pub dangerous_goods_type: DangerousGoodsBasic,
2978        #[rasn(value("0..=9999"), identifier = "unNumber")]
2979        pub un_number: u16,
2980        #[rasn(identifier = "elevatedTemperature")]
2981        pub elevated_temperature: bool,
2982        #[rasn(identifier = "tunnelsRestricted")]
2983        pub tunnels_restricted: bool,
2984        #[rasn(identifier = "limitedQuantity")]
2985        pub limited_quantity: bool,
2986        #[rasn(size("1..=24"), identifier = "emergencyActionCode")]
2987        pub emergency_action_code: Option<Ia5String>,
2988        #[rasn(identifier = "phoneNumber")]
2989        pub phone_number: Option<PhoneNumber>,
2990        #[rasn(identifier = "companyName")]
2991        pub company_name: Option<Utf8String>,
2992    }
2993    impl DangerousGoodsExtended {
2994        pub fn new(
2995            dangerous_goods_type: DangerousGoodsBasic,
2996            un_number: u16,
2997            elevated_temperature: bool,
2998            tunnels_restricted: bool,
2999            limited_quantity: bool,
3000            emergency_action_code: Option<Ia5String>,
3001            phone_number: Option<PhoneNumber>,
3002            company_name: Option<Utf8String>,
3003        ) -> Self {
3004            Self {
3005                dangerous_goods_type,
3006                un_number,
3007                elevated_temperature,
3008                tunnels_restricted,
3009                limited_quantity,
3010                emergency_action_code,
3011                phone_number,
3012                company_name,
3013            }
3014        }
3015    }
3016    #[doc = "*"]
3017    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `dangerousSituation` "]
3018    #[doc = " * "]
3019    #[doc = " * The value shall be set to:"]
3020    #[doc = " * - 0 - `unavailable`                      - in case information on the type of dangerous situation is unavailable,"]
3021    #[doc = " * - 1 - `emergencyElectronicBrakeEngaged`  - in case emergency electronic brake is engaged,"]
3022    #[doc = " * - 2 - `preCrashSystemEngaged`            - in case pre-crash system is engaged,"]
3023    #[doc = " * - 3 - `espEngaged`                       - in case Electronic Stability Program (ESP) system is engaged,"]
3024    #[doc = " * - 4 - `absEngaged`                       - in case Anti-lock Braking System (ABS) is engaged,"]
3025    #[doc = " * - 5 - `aebEngaged`                       - in case Autonomous Emergency Braking (AEB) system is engaged,"]
3026    #[doc = " * - 6 - `brakeWarningEngaged`              - in case brake warning is engaged,"]
3027    #[doc = " * - 7 - `collisionRiskWarningEngaged`      - in case collision risk warning is engaged,"]
3028    #[doc = " * - 8 - `riskMitigationFunctionEngaged`    - in case the Risk Mitigation Function according to UNECE Regulation 79 is engaged,"]
3029    #[doc = " * - 9-255                                  - reserved for future usage."]
3030    #[doc = " *"]
3031    #[doc = " * @category: Traffic information"]
3032    #[doc = " * @revision: V1.3.1, value 8 assigned in V2.4.1"]
3033    #[doc = " "]
3034    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3035    #[rasn(delegate, value("0..=255"))]
3036    pub struct DangerousSituationSubCauseCode(pub u8);
3037    #[doc = "*"]
3038    #[doc = " * This DE represents an offset altitude with regards to a defined altitude value."]
3039    #[doc = " * It may be used to describe a geographical point with regards to a specific reference geographical position."]
3040    #[doc = " *"]
3041    #[doc = " * The value shall be set to:"]
3042    #[doc = " * - `-12 700` for values equal to or lower than -127 metres,"]
3043    #[doc = " * - `n` (`n > -12 700` and `n <= 0`) for altitude offset n x 0,01 metre below the reference position,"]
3044    #[doc = " * - `0` for no altitudinal offset,"]
3045    #[doc = " * - `n` (`n > 0` and `n < 12799`) for altitude offset n x 0,01 metre above the reference position,"]
3046    #[doc = " * - `12 799` for values equal to or greater than 127,99 metres,"]
3047    #[doc = " * - `12 800` when the information is unavailable."]
3048    #[doc = " *"]
3049    #[doc = " * @unit: 0,01 metre"]
3050    #[doc = " * @category: GeoReference information"]
3051    #[doc = " * @revision: editorial update in V2.1.1"]
3052    #[doc = " "]
3053    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3054    #[rasn(delegate, value("-12700..=12800"))]
3055    pub struct DeltaAltitude(pub i16);
3056    #[doc = "*"]
3057    #[doc = " * This DE represents an offset latitude with regards to a defined latitude value."]
3058    #[doc = " * It may be used to describe a geographical point with regards to a specific reference geographical position."]
3059    #[doc = " *"]
3060    #[doc = " * The value shall be set to:"]
3061    #[doc = " * - `n` (`n >= -131 071` and `n < 0`) for offset n x 10^-7 degree towards the south from the reference position,"]
3062    #[doc = " * - `0` for no latitudinal offset,"]
3063    #[doc = " * - `n` (`n > 0` and `n < 131 072`) for offset n x 10^-7 degree towards the north from the reference position,"]
3064    #[doc = " * - `131 072` when the information is unavailable."]
3065    #[doc = " *"]
3066    #[doc = " * @unit: 10^-7 degree"]
3067    #[doc = " * @category: GeoReference information"]
3068    #[doc = " * @revision: editorial update in V2.1.1"]
3069    #[doc = " "]
3070    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3071    #[rasn(delegate, value("-131071..=131072"))]
3072    pub struct DeltaLatitude(pub i32);
3073    #[doc = "*"]
3074    #[doc = " * This DE represents an offset longitude with regards to a defined longitude value."]
3075    #[doc = " * It may be used to describe a geographical point with regards to a specific reference geographical position."]
3076    #[doc = " *"]
3077    #[doc = " * The value shall be set to:"]
3078    #[doc = " * - `n` (`n >= -131 071` and `n < 0`) for offset n x 10^-7 degree towards the west from the reference position,"]
3079    #[doc = " * - `0` for no longitudinal offset,"]
3080    #[doc = " * - `n` (`n > 0` and `n < 131 072`) for offset n x 10^-7 degree towards the east from the reference position, "]
3081    #[doc = " * - `131 072` when the information is unavailable."]
3082    #[doc = " *"]
3083    #[doc = " * @unit: 10^-7 degree"]
3084    #[doc = " * @category: GeoReference information"]
3085    #[doc = " * @revision: editorial update in V2.1.1"]
3086    #[doc = " "]
3087    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3088    #[rasn(delegate, value("-131071..=131072"))]
3089    pub struct DeltaLongitude(pub i32);
3090    #[doc = "*"]
3091    #[doc = "* This DF defines a geographical point position as a 2 dimensional offset position to a geographical reference point."]
3092    #[doc = "*"]
3093    #[doc = "* It shall include the following components: "]
3094    #[doc = "*"]
3095    #[doc = "* @field deltaLatitude: A delta latitude offset with regards to the latitude value of the reference position."]
3096    #[doc = "*"]
3097    #[doc = "* @field deltaLongitude: A delta longitude offset with regards to the longitude value of the reference position."]
3098    #[doc = "*"]
3099    #[doc = "* @category: GeoReference information"]
3100    #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321"]
3101    #[doc = ""]
3102    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3103    #[rasn(automatic_tags)]
3104    pub struct DeltaPosition {
3105        #[rasn(identifier = "deltaLatitude")]
3106        pub delta_latitude: DeltaLatitude,
3107        #[rasn(identifier = "deltaLongitude")]
3108        pub delta_longitude: DeltaLongitude,
3109    }
3110    impl DeltaPosition {
3111        pub fn new(delta_latitude: DeltaLatitude, delta_longitude: DeltaLongitude) -> Self {
3112            Self {
3113                delta_latitude,
3114                delta_longitude,
3115            }
3116        }
3117    }
3118    #[doc = "*"]
3119    #[doc = "* This DF shall contain a list of @ref DeltaPosition."]
3120    #[doc = "*"]
3121    #[doc = "* @category: GeoReference information"]
3122    #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (DF DeltaPosition)"]
3123    #[doc = ""]
3124    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3125    #[rasn(delegate, size("1..=32", extensible))]
3126    pub struct DeltaPositions(pub SequenceOf<DeltaPosition>);
3127    #[doc = "*"]
3128    #[doc = " * This DF defines a geographical point position as a 3 dimensional offset position to a geographical reference point."]
3129    #[doc = " *"]
3130    #[doc = " * It shall include the following components: "]
3131    #[doc = " *"]
3132    #[doc = " * @field deltaLatitude: A delta latitude offset with regards to the latitude value of the reference position."]
3133    #[doc = " *"]
3134    #[doc = " * @field deltaLongitude: A delta longitude offset with regards to the longitude value of the reference position."]
3135    #[doc = " *"]
3136    #[doc = " * @field deltaAltitude: A delta altitude offset with regards to the altitude value of the reference position."]
3137    #[doc = " *"]
3138    #[doc = " * @category: GeoReference information"]
3139    #[doc = " * @revision:  V1.3.1"]
3140    #[doc = " "]
3141    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3142    #[rasn(automatic_tags)]
3143    pub struct DeltaReferencePosition {
3144        #[rasn(identifier = "deltaLatitude")]
3145        pub delta_latitude: DeltaLatitude,
3146        #[rasn(identifier = "deltaLongitude")]
3147        pub delta_longitude: DeltaLongitude,
3148        #[rasn(identifier = "deltaAltitude")]
3149        pub delta_altitude: DeltaAltitude,
3150    }
3151    impl DeltaReferencePosition {
3152        pub fn new(
3153            delta_latitude: DeltaLatitude,
3154            delta_longitude: DeltaLongitude,
3155            delta_altitude: DeltaAltitude,
3156        ) -> Self {
3157            Self {
3158                delta_latitude,
3159                delta_longitude,
3160                delta_altitude,
3161            }
3162        }
3163    }
3164    #[doc = "*"]
3165    #[doc = "* This DF shall contain a list of @ref DeltaReferencePosition."]
3166    #[doc = "*"]
3167    #[doc = "* @category: GeoReference information"]
3168    #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (DF DeltaReferencePositions)"]
3169    #[doc = ""]
3170    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3171    #[rasn(delegate, size("1..=32", extensible))]
3172    pub struct DeltaReferencePositions(pub SequenceOf<DeltaReferencePosition>);
3173    #[doc = "*"]
3174    #[doc = " * This DE represents a difference in time with respect to a reference time."]
3175    #[doc = " *"]
3176    #[doc = " * The value shall be set to:"]
3177    #[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,"]
3178    #[doc = " *"]
3179    #[doc = " * Example: a time interval between two consecutive message transmissions."]
3180    #[doc = " * "]
3181    #[doc = " * @unit: 0,001 s"]
3182    #[doc = " * @category: Basic information"]
3183    #[doc = " * @revision: Created in V2.1.1 from the DE TransmissionInterval in [2]"]
3184    #[doc = " "]
3185    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3186    #[rasn(delegate, value("1..=10000"))]
3187    pub struct DeltaTimeMilliSecondPositive(pub u16);
3188    #[doc = "* "]
3189    #[doc = " * This DE represents a signed difference in time with respect to a reference time."]
3190    #[doc = " *"]
3191    #[doc = " * The value shall be set to:"]
3192    #[doc = " * - `-2048` for time values equal to or less than -2,048 s,"]
3193    #[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,"]
3194    #[doc = " * - `2047` for time values greater than 2,046 s"]
3195    #[doc = " *"]
3196    #[doc = " * @unit: 0,001 s"]
3197    #[doc = " * @category: Basic information"]
3198    #[doc = " * @revision: Created in V2.1.1"]
3199    #[doc = ""]
3200    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3201    #[rasn(delegate, value("-2048..=2047"))]
3202    pub struct DeltaTimeMilliSecondSigned(pub i16);
3203    #[doc = "* "]
3204    #[doc = " * This DE represents a difference in time with respect to a reference time."]
3205    #[doc = " * It can be interpreted as the first 8 bits of a GenerationDeltaTime. To convert it to a @ref GenerationDeltaTime, "]
3206    #[doc = " * multiply by 256 (i.e. append a `00` byte)"]
3207    #[doc = " *"]
3208    #[doc = " * @unit: 256 * 0,001 s "]
3209    #[doc = " * @category: Basic information"]
3210    #[doc = " * @revision: Created in V2.1.1"]
3211    #[doc = " "]
3212    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3213    #[rasn(delegate, value("1..=255"))]
3214    pub struct DeltaTimeQuarterSecond(pub u8);
3215    #[doc = "* "]
3216    #[doc = " * This DE represents a  difference in time with respect to a reference time."]
3217    #[doc = " *"]
3218    #[doc = " * The value shall be set to:"]
3219    #[doc = " * - `-0` for a difference in time of 0 seconds. "]
3220    #[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,"]
3221    #[doc = " *"]
3222    #[doc = " * @unit: 1 s"]
3223    #[doc = " * @category: Basic information"]
3224    #[doc = " * @revision: Created in V2.1.1 from ValidityDuration"]
3225    #[doc = ""]
3226    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3227    #[rasn(delegate, value("0..=86400"))]
3228    pub struct DeltaTimeSecond(pub u32);
3229    #[doc = "*"]
3230    #[doc = " * This DE represents a difference in time with respect to a reference time."]
3231    #[doc = " *"]
3232    #[doc = " * The value shall be set to:"]
3233    #[doc = " * - `-0` for a difference in time of 0 seconds. "]
3234    #[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,"]
3235    #[doc = " *"]
3236    #[doc = " * @unit: 10 s"]
3237    #[doc = " * @category: Basic information"]
3238    #[doc = " * @revision: Created in V2.2.1"]
3239    #[doc = ""]
3240    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3241    #[rasn(delegate, value("0..=127"))]
3242    pub struct DeltaTimeTenSeconds(pub u8);
3243    #[doc = "* "]
3244    #[doc = " * This DE represents a difference in time with respect to a reference time."]
3245    #[doc = " *"]
3246    #[doc = " * The value shall be set to:"]
3247    #[doc = " * - `0` for a difference in time of 0 seconds. "]
3248    #[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,"]
3249    #[doc = " *"]
3250    #[doc = " * @unit: 0,1 s"]
3251    #[doc = " * @category: Basic information"]
3252    #[doc = " * @revision: Created in V2.1.1"]
3253    #[doc = ""]
3254    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3255    #[rasn(delegate, value("0..=127"))]
3256    pub struct DeltaTimeTenthOfSecond(pub u8);
3257    #[doc = "*"]
3258    #[doc = " * This DF represents a portion of digital map. It shall contain a list of waypoints @ref ReferencePosition."]
3259    #[doc = " * "]
3260    #[doc = " * @category: GeoReference information"]
3261    #[doc = " * @revision:  V1.3.1"]
3262    #[doc = " "]
3263    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3264    #[rasn(delegate, size("1..=256"))]
3265    pub struct DigitalMap(pub SequenceOf<ReferencePosition>);
3266    #[doc = "*"]
3267    #[doc = " * This DE indicates a direction with respect to a defined reference direction."]
3268    #[doc = " * Example: a reference direction may be implicitly defined by the definition of a geographical zone."]
3269    #[doc = " *"]
3270    #[doc = " * The value shall be set to:"]
3271    #[doc = " * - 0 - `sameDirection`     - to indicate the same direction as the reference direction,"]
3272    #[doc = " * - 1 - `oppositeDirection` - to indicate opposite direction as the reference direction,"]
3273    #[doc = " * - 2 - `bothDirections`    - to indicate both directions, i.e. the same and the opposite direction,"]
3274    #[doc = " * - 3 - `unavailable`       - to indicate that the information is unavailable."]
3275    #[doc = " *"]
3276    #[doc = " * @category: GeoReference information"]
3277    #[doc = " * @revision: Created in V2.1.1"]
3278    #[doc = " "]
3279    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3280    #[rasn(delegate, value("0..=3"))]
3281    pub struct Direction(pub u8);
3282    #[doc = "*"]
3283    #[doc = " * This DE indicates in which direction something is moving."]
3284    #[doc = " *"]
3285    #[doc = " * The value shall be set to:"]
3286    #[doc = " * - 0 - `forward`     - to indicate it is moving forward,"]
3287    #[doc = " * - 1 - `backwards`   - to indicate it is moving backwards,"]
3288    #[doc = " * - 2 - `unavailable` - to indicate that the information is unavailable."]
3289    #[doc = " *"]
3290    #[doc = " * @category: Kinematic information"]
3291    #[doc = " * @revision: editorial update in V2.1.1"]
3292    #[doc = " "]
3293    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3294    #[rasn(enumerated)]
3295    pub enum DriveDirection {
3296        forward = 0,
3297        backward = 1,
3298        unavailable = 2,
3299    }
3300    #[doc = "*"]
3301    #[doc = " * This DE indicates whether a driving lane is open to traffic."]
3302    #[doc = " * "]
3303    #[doc = " * A lane is counted from inside border of the road excluding the hard shoulder. The size of the bit string shall"]
3304    #[doc = " * correspond to the total number of the driving lanes in the carriageway."]
3305    #[doc = " * "]
3306    #[doc = " * The numbering is matched to @ref LanePosition."]
3307    #[doc = " * The bit `0` is used to indicate the innermost lane, bit `1` is used to indicate the second lane from inside border."]
3308    #[doc = " * "]
3309    #[doc = " * If a lane is closed to traffic, the corresponding bit shall be set to `1`. Otherwise, it shall be set to `0`."]
3310    #[doc = " * "]
3311    #[doc = " * @note: hard shoulder status is not provided by this DE but in @ref HardShoulderStatus."]
3312    #[doc = " * "]
3313    #[doc = " * @category: Traffic information"]
3314    #[doc = " * @revision: V1.3.1"]
3315    #[doc = " "]
3316    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3317    #[rasn(delegate, size("1..=13"))]
3318    pub struct DrivingLaneStatus(pub BitString);
3319    #[doc = "* "]
3320    #[doc = " * "]
3321    #[doc = " * This DF represents the shape of an elliptical area or right elliptical cylinder that is centred "]
3322    #[doc = " * on the shape's reference point defined outside of the context of this DF and oriented w.r.t. a  "]
3323    #[doc = " * cartesian coordinate system defined outside of the context of this DF. "]
3324    #[doc = " *"]
3325    #[doc = " * It shall include the following components: "]
3326    #[doc = " * "]
3327    #[doc = " * @field shapeReferencePoint: optional reference point which represents the centre of the ellipse, "]
3328    #[doc = " * relative to an externally specified reference position. If this component is absent, the "]
3329    #[doc = " * externally specified reference position represents the shape's reference point. "]
3330    #[doc = " *"]
3331    #[doc = " * @field semiMajorAxisLength: half length of the major axis of the ellipse located in the X-Y Plane."]
3332    #[doc = " * "]
3333    #[doc = " * @field semiMinorAxisLength: half length of the minor axis of the ellipse located in the X-Y Plane."]
3334    #[doc = " *"]
3335    #[doc = " * @field orientation: the optional orientation of the major axis of the ellipse, measured with "]
3336    #[doc = " * positive values turning around the z-axis using the right-hand rule, starting from the X-axis."]
3337    #[doc = " * If absent, the orientation is equal to the value zero. "]
3338    #[doc = " * "]
3339    #[doc = " * @field height: the optional height, present if the shape is a right elliptical cylinder extending "]
3340    #[doc = " * in the positive Z-axis."]
3341    #[doc = " *"]
3342    #[doc = " * @category: GeoReference information"]
3343    #[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"]
3344    #[doc = ""]
3345    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3346    #[rasn(automatic_tags)]
3347    pub struct EllipticalShape {
3348        #[rasn(identifier = "shapeReferencePoint")]
3349        pub shape_reference_point: Option<CartesianPosition3d>,
3350        #[rasn(identifier = "semiMajorAxisLength")]
3351        pub semi_major_axis_length: StandardLength12b,
3352        #[rasn(identifier = "semiMinorAxisLength")]
3353        pub semi_minor_axis_length: StandardLength12b,
3354        pub orientation: Option<CartesianAngleValue>,
3355        pub height: Option<StandardLength12b>,
3356    }
3357    impl EllipticalShape {
3358        pub fn new(
3359            shape_reference_point: Option<CartesianPosition3d>,
3360            semi_major_axis_length: StandardLength12b,
3361            semi_minor_axis_length: StandardLength12b,
3362            orientation: Option<CartesianAngleValue>,
3363            height: Option<StandardLength12b>,
3364        ) -> Self {
3365            Self {
3366                shape_reference_point,
3367                semi_major_axis_length,
3368                semi_minor_axis_length,
3369                orientation,
3370                height,
3371            }
3372        }
3373    }
3374    #[doc = "*"]
3375    #[doc = " * This DE indicates whether a vehicle (e.g. public transport vehicle, truck) is under the embarkation process."]
3376    #[doc = " * If that is the case, the value is *TRUE*, otherwise *FALSE*."]
3377    #[doc = " *"]
3378    #[doc = " * @category: Vehicle information"]
3379    #[doc = " * @revision: editorial update in V2.1.1"]
3380    #[doc = " "]
3381    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3382    #[rasn(delegate)]
3383    pub struct EmbarkationStatus(pub bool);
3384    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3385    #[rasn(delegate)]
3386    pub struct EmergencyPriority(pub FixedBitString<2usize>);
3387    #[doc = "*"]
3388    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode \"emergencyVehicleApproaching\". "]
3389    #[doc = " * "]
3390    #[doc = " * The value shall be set to:"]
3391    #[doc = " * - 0 - `unavailable`                   - in case further detailed information on the emergency vehicle approaching event "]
3392    #[doc = " *                                         is unavailable,"]
3393    #[doc = " * - 1 - `emergencyVehicleApproaching`   - in case an operating emergency vehicle is approaching,"]
3394    #[doc = " * - 2 - `prioritizedVehicleApproaching` - in case a prioritized vehicle is approaching,"]
3395    #[doc = " * - 3-255                               - reserved for future usage."]
3396    #[doc = " *"]
3397    #[doc = " * @category: Traffic information"]
3398    #[doc = " * @revision: V1.3.1"]
3399    #[doc = " "]
3400    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3401    #[rasn(delegate, value("0..=255"))]
3402    pub struct EmergencyVehicleApproachingSubCauseCode(pub u8);
3403    #[doc = "*"]
3404    #[doc = " * This DE indicated the type of energy being used and stored in vehicle."]
3405    #[doc = " *"]
3406    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
3407    #[doc = " * - 0 - `hydrogenStorage`       - when hydrogen is being used and stored in vehicle,"]
3408    #[doc = " * - 1 - `electricEnergyStorage` - when electric energy is being used and stored in vehicle,"]
3409    #[doc = " * - 2 - `liquidPropaneGas`      - when liquid Propane Gas (LPG) is being used and stored in vehicle,   "]
3410    #[doc = " * - 3 - `compressedNaturalGas ` - when compressedNaturalGas (CNG) is being used and stored in vehicle,"]
3411    #[doc = " * - 4 - `diesel`                - when diesel is being used and stored in vehicle,"]
3412    #[doc = " * - 5 - `gasoline`              - when gasoline is being used and stored in vehicle,"]
3413    #[doc = " * - 6 - `ammonia`               - when ammonia is being used and stored in vehicle."]
3414    #[doc = " *"]
3415    #[doc = " * - Otherwise, the corresponding bit shall be set to `0`."]
3416    #[doc = " *"]
3417    #[doc = " * @category: Vehicle information"]
3418    #[doc = " * @revision: editorial revision in V2.1.1 "]
3419    #[doc = " "]
3420    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3421    #[rasn(delegate)]
3422    pub struct EnergyStorageType(pub FixedBitString<7usize>);
3423    #[doc = "* "]
3424    #[doc = " * "]
3425    #[doc = " * This DF represents a vehicle category according to the UNECE/TRANS/WP.29/78/Rev.4 [16]."]
3426    #[doc = " * The following options are available:"]
3427    #[doc = " * "]
3428    #[doc = " * @field euVehicleCategoryL: indicates a vehicle in the L category."]
3429    #[doc = " *"]
3430    #[doc = " * @field euVehicleCategoryM: indicates a vehicle in the M category."]
3431    #[doc = " *"]
3432    #[doc = " * @field euVehicleCategoryN: indicates a vehicle in the N category."]
3433    #[doc = " *"]
3434    #[doc = " * @field euVehicleCategoryO: indicates a vehicle in the O category."]
3435    #[doc = " *"]
3436    #[doc = " * @field euVehicleCategoryT: indicates a vehicle in the T category."]
3437    #[doc = " *"]
3438    #[doc = " * @field euVehicleCategoryG: indicates a vehicle in the G category."]
3439    #[doc = " * "]
3440    #[doc = " * @category: Vehicle information"]
3441    #[doc = " * @revision: Created in V2.1.1"]
3442    #[doc = ""]
3443    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3444    #[rasn(choice, automatic_tags)]
3445    pub enum EuVehicleCategoryCode {
3446        euVehicleCategoryL(EuVehicleCategoryL),
3447        euVehicleCategoryM(EuVehicleCategoryM),
3448        euVehicleCategoryN(EuVehicleCategoryN),
3449        euVehicleCategoryO(EuVehicleCategoryO),
3450        euVehicleCategoryT(()),
3451        euVehicleCategoryG(()),
3452    }
3453    #[doc = "*"]
3454    #[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]."]
3455    #[doc = " *"]
3456    #[doc = " *"]
3457    #[doc = " * @category: Vehicle information"]
3458    #[doc = " * @revision: V2.1.1"]
3459    #[doc = " "]
3460    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3461    #[rasn(enumerated)]
3462    pub enum EuVehicleCategoryL {
3463        l1 = 0,
3464        l2 = 1,
3465        l3 = 2,
3466        l4 = 3,
3467        l5 = 4,
3468        l6 = 5,
3469        l7 = 6,
3470    }
3471    #[doc = "*"]
3472    #[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]."]
3473    #[doc = " *"]
3474    #[doc = " *"]
3475    #[doc = " * @category: Vehicle information"]
3476    #[doc = " * @revision: V2.1.1"]
3477    #[doc = " "]
3478    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3479    #[rasn(enumerated)]
3480    pub enum EuVehicleCategoryM {
3481        m1 = 0,
3482        m2 = 1,
3483        m3 = 2,
3484    }
3485    #[doc = "*"]
3486    #[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]."]
3487    #[doc = " *"]
3488    #[doc = " *"]
3489    #[doc = " * @category: Vehicle information"]
3490    #[doc = " * @revision: V2.1.1"]
3491    #[doc = " "]
3492    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3493    #[rasn(enumerated)]
3494    pub enum EuVehicleCategoryN {
3495        n1 = 0,
3496        n2 = 1,
3497        n3 = 2,
3498    }
3499    #[doc = "*"]
3500    #[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]."]
3501    #[doc = " *"]
3502    #[doc = " *"]
3503    #[doc = " * @category: Vehicle information"]
3504    #[doc = " * @revision: V2.1.1"]
3505    #[doc = " "]
3506    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3507    #[rasn(enumerated)]
3508    pub enum EuVehicleCategoryO {
3509        o1 = 0,
3510        o2 = 1,
3511        o3 = 2,
3512        o4 = 3,
3513    }
3514    #[doc = "* "]
3515    #[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."]
3516    #[doc = " *"]
3517    #[doc = " * It shall include the following components: "]
3518    #[doc = " *"]
3519    #[doc = " * @field zAngle: z-angle of object bounding box at the time of measurement, with the associated confidence."]
3520    #[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. "]
3521    #[doc = " * This extrinsic rotation shall be applied around the centre point of the object bounding box before all other rotations."]
3522    #[doc = " *"]
3523    #[doc = " * @field yAngle: optional y-angle of object bounding box at the time of measurement, with the associated confidence."]
3524    #[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. "]
3525    #[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."]
3526    #[doc = " *"]
3527    #[doc = " * @field xAngle: optional x-angle of object bounding box at the time of measurement, with the associated confidence."]
3528    #[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. "]
3529    #[doc = " * This extrinsic rotation shall be applied around the centre point of the object bounding box after all other rotations."]
3530    #[doc = " * "]
3531    #[doc = " * @category: Basic information"]
3532    #[doc = " * @revision: Created in V2.1.1"]
3533    #[doc = ""]
3534    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3535    #[rasn(automatic_tags)]
3536    pub struct EulerAnglesWithConfidence {
3537        #[rasn(identifier = "zAngle")]
3538        pub z_angle: CartesianAngle,
3539        #[rasn(identifier = "yAngle")]
3540        pub y_angle: Option<CartesianAngle>,
3541        #[rasn(identifier = "xAngle")]
3542        pub x_angle: Option<CartesianAngle>,
3543    }
3544    impl EulerAnglesWithConfidence {
3545        pub fn new(
3546            z_angle: CartesianAngle,
3547            y_angle: Option<CartesianAngle>,
3548            x_angle: Option<CartesianAngle>,
3549        ) -> Self {
3550            Self {
3551                z_angle,
3552                y_angle,
3553                x_angle,
3554            }
3555        }
3556    }
3557    #[doc = "*"]
3558    #[doc = " * The DF shall contain a list of @ref EventPoint.  "]
3559    #[doc = " *"]
3560    #[doc = " * The eventPosition of each @ref EventPoint is defined with respect to the previous @ref EventPoint in the list. "]
3561    #[doc = " * Except for the first @ref EventPoint which is defined with respect to a position outside of the context of this DF."]
3562    #[doc = " *"]
3563    #[doc = " * @category: GeoReference information, Traffic information"]
3564    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref EventZone instead. "]
3565    #[doc = " * @revision: Generalized the semantics in V2.1.1"]
3566    #[doc = " "]
3567    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3568    #[rasn(delegate, size("1..=23"))]
3569    pub struct EventHistory(pub SequenceOf<EventPoint>);
3570    #[doc = "*"]
3571    #[doc = " * This DF provides information related to an event at a defined position."]
3572    #[doc = " *"]
3573    #[doc = " * It shall include the following components: "]
3574    #[doc = " * "]
3575    #[doc = " * @field eventPosition: offset position of a detected event point to a defined position. "]
3576    #[doc = " * "]
3577    #[doc = " * @field eventDeltaTime: optional time travelled by the detecting ITS-S since the previous detected event point."]
3578    #[doc = " * "]
3579    #[doc = " * @field informationQuality: Information quality of the detection for this event point."]
3580    #[doc = " * "]
3581    #[doc = " * @category: GeoReference information, Traffic information"]
3582    #[doc = " * @revision: generalized the semantics in V2.1.1"]
3583    #[doc = " "]
3584    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3585    #[rasn(automatic_tags)]
3586    pub struct EventPoint {
3587        #[rasn(identifier = "eventPosition")]
3588        pub event_position: DeltaReferencePosition,
3589        #[rasn(identifier = "eventDeltaTime")]
3590        pub event_delta_time: Option<PathDeltaTime>,
3591        #[rasn(identifier = "informationQuality")]
3592        pub information_quality: InformationQuality,
3593    }
3594    impl EventPoint {
3595        pub fn new(
3596            event_position: DeltaReferencePosition,
3597            event_delta_time: Option<PathDeltaTime>,
3598            information_quality: InformationQuality,
3599        ) -> Self {
3600            Self {
3601                event_position,
3602                event_delta_time,
3603                information_quality,
3604            }
3605        }
3606    }
3607    #[doc = "*"]
3608    #[doc = " * The DF shall contain a list of @ref EventPoint, where all @ref EventPoint either contain the COMPONENT eventDeltaTime "]
3609    #[doc = " * or do not contain the COMPONENT eventDeltaTime.  "]
3610    #[doc = " *"]
3611    #[doc = " * The eventPosition of each @ref EventPoint is defined with respect to the previous @ref EventPoint in the list. "]
3612    #[doc = " * Except for the first @ref EventPoint which is defined with respect to a position outside of the context of this DF."]
3613    #[doc = " *"]
3614    #[doc = " * @category: GeoReference information, Traffic information"]
3615    #[doc = " * @revision: created in V2.1.1 based on EventHistory"]
3616    #[doc = " "]
3617    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3618    #[rasn(delegate)]
3619    pub struct EventZone(pub EventHistory);
3620    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3621    #[rasn(choice)]
3622    pub enum Ext1 {
3623        #[rasn(value("128..=16511"), tag(context, 0))]
3624        content(u16),
3625        #[rasn(tag(context, 1))]
3626        extension(Ext2),
3627    }
3628    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3629    #[rasn(choice)]
3630    pub enum Ext2 {
3631        #[rasn(value("16512..=2113663"), tag(context, 0))]
3632        content(u32),
3633        #[rasn(tag(context, 1))]
3634        extension(Ext3),
3635    }
3636    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3637    #[rasn(delegate, value("2113664..=270549119", extensible))]
3638    pub struct Ext3(pub Integer);
3639    #[doc = "*"]
3640    #[doc = " * This DE describes the status of the exterior light switches of a vehicle incl. VRU vehicles."]
3641    #[doc = " *"]
3642    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
3643    #[doc = " * - 0 - `lowBeamHeadlightsOn`    - when the low beam head light switch is on,"]
3644    #[doc = " * - 1 - `highBeamHeadlightsOn`   - when the high beam head light switch is on,"]
3645    #[doc = " * - 2 - `leftTurnSignalOn`       - when the left turnSignal switch is on,"]
3646    #[doc = " * - 3 - `rightTurnSignalOn`      - when the right turn signal switch is on,"]
3647    #[doc = " * - 4 - `daytimeRunningLightsOn` - when the daytime running light switch is on,"]
3648    #[doc = " * - 5 - `reverseLightOn`         - when the reverse light switch is on,"]
3649    #[doc = " * - 6 - `fogLightOn`             - when the tail fog light switch is on,"]
3650    #[doc = " * - 7 - `parkingLightsOn`        - when the parking light switch is on."]
3651    #[doc = " * "]
3652    #[doc = " * @note: The value of each bit indicates the state of the switch, which commands the corresponding light."]
3653    #[doc = " * The bit corresponding to a specific light is set to `1`, when the corresponding switch is turned on,"]
3654    #[doc = " * either manually by the driver or automatically by a vehicle system. The bit value does not indicate"]
3655    #[doc = " * if the corresponding lamps are alight or not."]
3656    #[doc = " * "]
3657    #[doc = " * If a vehicle is not equipped with a certain light or if the light switch status information is not available,"]
3658    #[doc = " * the corresponding bit shall be set to `0`."]
3659    #[doc = " * "]
3660    #[doc = " * As the bit value indicates only the state of the switch, the turn signal and hazard signal bit values shall not"]
3661    #[doc = " * alternate with the blinking interval."]
3662    #[doc = " * "]
3663    #[doc = " * For hazard indicator, the `leftTurnSignalOn (2)` and `rightTurnSignalOn (3)` shall be both set to `1`."]
3664    #[doc = " * "]
3665    #[doc = " * @category Vehicle information"]
3666    #[doc = " * @revision: Description revised in V2.1.1"]
3667    #[doc = " "]
3668    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3669    #[rasn(delegate)]
3670    pub struct ExteriorLights(pub FixedBitString<8usize>);
3671    #[doc = "*"]
3672    #[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."]
3673    #[doc = " *"]
3674    #[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 "]
3675    #[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 "]
3676    #[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, "]
3677    #[doc = " * where the dimensions of an object or the extension of an area is considered."]
3678    #[doc = " *"]
3679    #[doc = " * It shall include the following components: "]
3680    #[doc = " *"]
3681    #[doc = " * @field lanePositionBased: lane position information for a defined reference position."]
3682    #[doc = " * "]
3683    #[doc = " * @field mapBased: optional lane position information described in the context of a MAPEM as specified in ETSI TS 103 301 [15]. "]
3684    #[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 "]
3685    #[doc = " * (e.g. on an intersection): In this case it is used as a synonym to the mandatory component lanePositionBased. "]
3686    #[doc = " * "]
3687    #[doc = " * @field confidence: confidence information for expressing the probability that the object is located at the indicated lane.  "]
3688    #[doc = " * If the value of the component lanePositionBased is generated directly from the absolute reference position and reference topology information, "]
3689    #[doc = " * no sensor shall be indicated in the component usedDetectionInformation of the @ref MetaInformation."]
3690    #[doc = " *"]
3691    #[doc = " * @category: Road Topology information"]
3692    #[doc = " * @revision: newly created in V2.2.1. The previous DF GeneralizedLanePosition is now renamed to @ref LanePositionOptions. "]
3693    #[doc = " "]
3694    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3695    #[rasn(automatic_tags)]
3696    #[non_exhaustive]
3697    pub struct GeneralizedLanePosition {
3698        #[rasn(identifier = "lanePositionBased")]
3699        pub lane_position_based: LanePositionOptions,
3700        #[rasn(identifier = "mapBased")]
3701        pub map_based: Option<MapPosition>,
3702        pub confidence: MetaInformation,
3703    }
3704    impl GeneralizedLanePosition {
3705        pub fn new(
3706            lane_position_based: LanePositionOptions,
3707            map_based: Option<MapPosition>,
3708            confidence: MetaInformation,
3709        ) -> Self {
3710            Self {
3711                lane_position_based,
3712                map_based,
3713                confidence,
3714            }
3715        }
3716    }
3717    #[doc = "*"]
3718    #[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."]
3719    #[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."]
3720    #[doc = " *"]
3721    #[doc = " * @category: Road Topology information"]
3722    #[doc = " * @revision: Created in V2.2.1"]
3723    #[doc = " "]
3724    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3725    #[rasn(delegate, size("1..=4"))]
3726    pub struct GeneralizedLanePositions(pub SequenceOf<GeneralizedLanePosition>);
3727    #[doc = "*"]
3728    #[doc = " * This DE represents a timestamp based on TimestampIts modulo 65 536."]
3729    #[doc = " * This means that generationDeltaTime = TimestampIts mod 65 536."]
3730    #[doc = " *"]
3731    #[doc = " * @category: Basic information"]
3732    #[doc = " * @revision: Created in V2.1.1 based on ETSI TS 103 900 [1]"]
3733    #[doc = ""]
3734    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3735    #[rasn(delegate, value("0..=65535"))]
3736    pub struct GenerationDeltaTime(pub u16);
3737    #[doc = "* "]
3738    #[doc = " * This DF indicates a geographical position."]
3739    #[doc = " *"]
3740    #[doc = " * It shall include the following components: "]
3741    #[doc = " *"]
3742    #[doc = " * @field latitude: the latitude of the geographical position."]
3743    #[doc = " *"]
3744    #[doc = " * @field longitude: the longitude of the geographical position."]
3745    #[doc = " *"]
3746    #[doc = " * @field altitude: the altitude of the geographical position with default value unavailable."]
3747    #[doc = " *"]
3748    #[doc = ""]
3749    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3750    #[rasn(automatic_tags)]
3751    pub struct GeoPosition {
3752        pub latitude: Latitude,
3753        pub longitude: Longitude,
3754        #[rasn(default = "geo_position_altitude_default")]
3755        pub altitude: AltitudeValue,
3756    }
3757    impl GeoPosition {
3758        pub fn new(latitude: Latitude, longitude: Longitude, altitude: AltitudeValue) -> Self {
3759            Self {
3760                latitude,
3761                longitude,
3762                altitude,
3763            }
3764        }
3765    }
3766    fn geo_position_altitude_default() -> AltitudeValue {
3767        AltitudeValue(800001)
3768    }
3769    #[doc = "*"]
3770    #[doc = "* This DE indicates a geographical position with altitude."]
3771    #[doc = "*"]
3772    #[doc = "* It shall include the following components: "]
3773    #[doc = "*"]
3774    #[doc = "* @field latitude: the latitude of the geographical position."]
3775    #[doc = "*"]
3776    #[doc = "* @field longitude: the longitude of the geographical position."]
3777    #[doc = "*"]
3778    #[doc = "* @field altitude: the altitude of the geographical position."]
3779    #[doc = "*"]
3780    #[doc = "* @category: GeoReference information"]
3781    #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (DF AbsolutePositionWAltitude)"]
3782    #[doc = ""]
3783    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3784    #[rasn(automatic_tags)]
3785    pub struct GeoPositionWAltitude {
3786        pub latitude: Latitude,
3787        pub longitude: Longitude,
3788        pub altitude: Altitude,
3789    }
3790    impl GeoPositionWAltitude {
3791        pub fn new(latitude: Latitude, longitude: Longitude, altitude: Altitude) -> Self {
3792            Self {
3793                latitude,
3794                longitude,
3795                altitude,
3796            }
3797        }
3798    }
3799    #[doc = "*"]
3800    #[doc = "* This DF indicates a geographical position without altitude."]
3801    #[doc = "*"]
3802    #[doc = "* It shall include the following components: "]
3803    #[doc = "*"]
3804    #[doc = "* @field latitude: the latitude of the geographical position."]
3805    #[doc = "*"]
3806    #[doc = "* @field longitude: the longitude of the geographical position."]
3807    #[doc = "*"]
3808    #[doc = "* @category: GeoReference information"]
3809    #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (DF AbsolutePosition)"]
3810    #[doc = ""]
3811    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3812    #[rasn(automatic_tags)]
3813    pub struct GeoPositionWoAltitude {
3814        pub latitude: Latitude,
3815        pub longitude: Longitude,
3816    }
3817    impl GeoPositionWoAltitude {
3818        pub fn new(latitude: Latitude, longitude: Longitude) -> Self {
3819            Self {
3820                latitude,
3821                longitude,
3822            }
3823        }
3824    }
3825    #[doc = "*"]
3826    #[doc = "* This DF shall contain a list of @ref AbsolutePositionWAltitude."]
3827    #[doc = "*"]
3828    #[doc = "* @category: GeoReference information"]
3829    #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (DF AbsolutePositionsWAltitude)"]
3830    #[doc = ""]
3831    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3832    #[rasn(delegate, size("1..=8", extensible))]
3833    pub struct GeoPositionsWAltitude(pub SequenceOf<GeoPositionWAltitude>);
3834    #[doc = "*"]
3835    #[doc = "* This DF shall contain a list of @ref GeoPositionWoAltitude."]
3836    #[doc = "*"]
3837    #[doc = "* @category: GeoReference information"]
3838    #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321 (AbsolutePositions)"]
3839    #[doc = ""]
3840    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3841    #[rasn(delegate, size("1..=8", extensible))]
3842    pub struct GeoPositionsWoAltitude(pub SequenceOf<GeoPositionWoAltitude>);
3843    #[doc = "*"]
3844    #[doc = " * This DE indicates the current status of a hard shoulder: whether it is available for special usage"]
3845    #[doc = " * (e.g. for stopping or for driving) or closed for all vehicles."]
3846    #[doc = " * "]
3847    #[doc = " * The value shall be set to:"]
3848    #[doc = " * - 0 - `availableForStopping` - if the hard shoulder is available for stopping in e.g. emergency situations,"]
3849    #[doc = " * - 1 - `closed`               - if the hard shoulder is closed and cannot be occupied in any case,"]
3850    #[doc = " * - 2 - `availableForDriving`  - if the hard shoulder is available for regular driving."]
3851    #[doc = " *"]
3852    #[doc = " * @category: Traffic information"]
3853    #[doc = " * @revision: Description revised in V2.1.1"]
3854    #[doc = " "]
3855    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
3856    #[rasn(enumerated)]
3857    pub enum HardShoulderStatus {
3858        availableForStopping = 0,
3859        closed = 1,
3860        availableForDriving = 2,
3861    }
3862    #[doc = "*"]
3863    #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-AnimalOnTheRoad`."]
3864    #[doc = " * "]
3865    #[doc = " * The value shall be set to:"]
3866    #[doc = " * - 0 - `unavailable`          - in case further detailed information on the animal(s) on the road is unavailable,"]
3867    #[doc = " * - 1 - `wildAnimals`          - in case wild animals of unknown size are present on the road,"]
3868    #[doc = " * - 2 - `herdOfAnimals`        - in case a herd of animals is present on the road,"]
3869    #[doc = " * - 3 - `smallAnimals`         - in case small size animals of unknown type are present on the road,"]
3870    #[doc = " * - 4 - `largeAnimals`         - in case large size animals of unknown type are present on the road,"]
3871    #[doc = " * - 5 - `wildAnimalsSmall`     - in case small size wild animal(s) are present on the road,"]
3872    #[doc = " * - 6 - `wildAnimalsLarge`     - in case large size wild animal(s) are present on the road,"]
3873    #[doc = " * - 7 - `domesticAnimals`      - in case domestic animal(s) of unknown size are detected on the road,"]
3874    #[doc = " * - 8 - `domesticAnimalsSmall` - in case small size domestic animal(s) are present on the road,"]
3875    #[doc = " * - 9 - `domesticAnimalsLarge` - in case large size domestic animal(s) are present on the road."]
3876    #[doc = " * - 10-255                     - are reserved for future usage."]
3877    #[doc = " *"]
3878    #[doc = " * @category: Traffic information"]
3879    #[doc = " * @revision: V1.3.1, named values 5 to 9 added in V2.2.1 "]
3880    #[doc = " "]
3881    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3882    #[rasn(
3883        delegate,
3884        identifier = "HazardousLocation-AnimalOnTheRoadSubCauseCode",
3885        value("0..=255")
3886    )]
3887    pub struct HazardousLocationAnimalOnTheRoadSubCauseCode(pub u8);
3888    #[doc = "*"]
3889    #[doc = " * This DE represents the sub cause code of the @ref CauseCode  `hazardousLocation-DangerousCurve`."]
3890    #[doc = " * "]
3891    #[doc = " * The value shall be set to:"]
3892    #[doc = " * - 0 - `unavailable`                                        - in case further detailed information on the dangerous curve is unavailable,"]
3893    #[doc = " * - 1 - `dangerousLeftTurnCurve`                             - in case the dangerous curve is a left turn curve,"]
3894    #[doc = " * - 2 - `dangerousRightTurnCurve`                            - in case the dangerous curve is a right turn curve,"]
3895    #[doc = " * - 3 - `multipleCurvesStartingWithUnknownTurningDirection`  - in case of multiple curves for which the starting curve turning direction is not known,"]
3896    #[doc = " * - 4 - `multipleCurvesStartingWithLeftTurn`                 - in case of multiple curves starting with a left turn curve,"]
3897    #[doc = " * - 5 - `multipleCurvesStartingWithRightTurn`                - in case of multiple curves starting with a right turn curve."]
3898    #[doc = " * - 6-255                                                    - are reserved for future usage."]
3899    #[doc = " * "]
3900    #[doc = " * The definition of whether a curve is dangerous may vary according to region and according to vehicle types/mass"]
3901    #[doc = " * and vehicle speed driving on the curve. This definition is out of scope of the present document."]
3902    #[doc = " *"]
3903    #[doc = " * @category: Traffic information"]
3904    #[doc = " * @revision: V1.3.1"]
3905    #[doc = " "]
3906    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3907    #[rasn(
3908        delegate,
3909        identifier = "HazardousLocation-DangerousCurveSubCauseCode",
3910        value("0..=255")
3911    )]
3912    pub struct HazardousLocationDangerousCurveSubCauseCode(pub u8);
3913    #[doc = "*"]
3914    #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-ObstacleOnTheRoad`. "]
3915    #[doc = " * "]
3916    #[doc = " * The value shall be set to:"]
3917    #[doc = " * - 0 - `unavailable`                - in case further detailed information on the detected obstacle is unavailable,"]
3918    #[doc = " * - 1 - `shedLoad`                   - in case detected obstacle is large amount of obstacles (shedload),"]
3919    #[doc = " * - 2 - `partsOfVehicles`            - in case detected obstacles are parts of vehicles,"]
3920    #[doc = " * - 3 - `partsOfTyres`               - in case the detected obstacles are parts of tyres,"]
3921    #[doc = " * - 4 - `bigObjects`                 - in case the detected obstacles are big objects,"]
3922    #[doc = " * - 5 - `fallenTrees`                - in case the detected obstacles are fallen trees,"]
3923    #[doc = " * - 6 - `hubCaps`                    - in case the detected obstacles are hub caps,"]
3924    #[doc = " * - 7 - `waitingVehicles-deprecated` - deprecated since not representing an obstacle and already covered by StationaryVehicleSubCauseCode."]
3925    #[doc = " * - 8-255                - are reserved for future usage."]
3926    #[doc = " *"]
3927    #[doc = " * @category: Traffic information"]
3928    #[doc = " * @revision: V1.3.1, value 7 deprecated in V2.4.1"]
3929    #[doc = " "]
3930    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3931    #[rasn(
3932        delegate,
3933        identifier = "HazardousLocation-ObstacleOnTheRoadSubCauseCode",
3934        value("0..=255")
3935    )]
3936    pub struct HazardousLocationObstacleOnTheRoadSubCauseCode(pub u8);
3937    #[doc = "*"]
3938    #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-SurfaceCondition`. "]
3939    #[doc = " * "]
3940    #[doc = "The value shall be set to:"]
3941    #[doc = " * - 0  - `unavailable`                  - in case further detailed information on the road surface condition is unavailable,"]
3942    #[doc = " * - 1  - `rockfalls`                    - in case rock falls have fallen on the road surface,"]
3943    #[doc = " * - 2  - `earthquakeDamage-deprecated`  - deprecated since it is covered by 1 rockfalls and 4 subsidence,"]
3944    #[doc = " * - 3  - `sinkhole`                     - in case of a partial collapse of the road surface that creates a depression (hole) in the pavement,"]
3945    #[doc = " * - 4  - `subsidence`                   - in case road surface is damaged by subsidence,"]
3946    #[doc = " * - 5  - `snowDrifts-deprecated`        - deprecated since not representing a road damage,"]
3947    #[doc = " * - 6  - `stormDamage-deprecated`       - deprecated since not representing a road damage,"]
3948    #[doc = " * - 7  - `burstPipe-deprecated`         - deprecated since not representing a road damage,"]
3949    #[doc = " * - 8  - `lava           `              - in case road surface is damaged due to  lava on the road,"]
3950    #[doc = " * - 9  - `fallingIce-deprecated`        - deprecated since not representing a road damage,"]
3951    #[doc = " * - 10 - `fire`                         - in case there is fire on or near to the road surface,"]
3952    #[doc = " * - 11 - `flooding-deprecated`          - deprecated since not representing a road damage."]
3953    #[doc = " * - 12 - `wearAndTear`                  - in case the road surface is damaged by wear and tear."]
3954    #[doc = " * - 13-255                              - are reserved for future usage."]
3955    #[doc = " *"]
3956    #[doc = " * @category: Traffic information"]
3957    #[doc = " * @revision: V1.3.1, value 10 added in V2.1.1, value 11 added in V2.3.1, "]
3958    #[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"]
3959    #[doc = " "]
3960    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3961    #[rasn(
3962        delegate,
3963        identifier = "HazardousLocation-SurfaceConditionSubCauseCode",
3964        value("0..=255")
3965    )]
3966    pub struct HazardousLocationSurfaceConditionSubCauseCode(pub u8);
3967    #[doc = "*"]
3968    #[doc = " * This DF represents the Heading in a WGS84 co-ordinates system."]
3969    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
3970    #[doc = " *"]
3971    #[doc = " * It shall include the following components: "]
3972    #[doc = " * "]
3973    #[doc = " * @field headingValue: the heading value."]
3974    #[doc = " * "]
3975    #[doc = " * @field headingConfidence: the confidence value of the heading value with a predefined confidence level."]
3976    #[doc = " * "]
3977    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84Angle instead. "]
3978    #[doc = " * @category: Kinematic Information"]
3979    #[doc = " * @revision: Description revised in V2.1.1"]
3980    #[doc = " "]
3981    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
3982    #[rasn(automatic_tags)]
3983    pub struct Heading {
3984        #[rasn(identifier = "headingValue")]
3985        pub heading_value: HeadingValue,
3986        #[rasn(identifier = "headingConfidence")]
3987        pub heading_confidence: HeadingConfidence,
3988    }
3989    impl Heading {
3990        pub fn new(heading_value: HeadingValue, heading_confidence: HeadingConfidence) -> Self {
3991            Self {
3992                heading_value,
3993                heading_confidence,
3994            }
3995        }
3996    }
3997    #[doc = "*"]
3998    #[doc = " * This DF  provides  information  associated to heading  change indicators  such as  a  change  of  direction."]
3999    #[doc = " *"]
4000    #[doc = " * It shall include the following components: "]
4001    #[doc = " * "]
4002    #[doc = " * @field direction: the direction of heading change value."]
4003    #[doc = " * "]
4004    #[doc = " * @field actionDeltaTime: the period over which a direction change action is performed. "]
4005    #[doc = " * "]
4006    #[doc = " * @category: Kinematic Information"]
4007    #[doc = " * @revision: created in V2.1.1"]
4008    #[doc = " "]
4009    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4010    #[rasn(automatic_tags)]
4011    #[non_exhaustive]
4012    pub struct HeadingChangeIndication {
4013        pub direction: TurningDirection,
4014        #[rasn(identifier = "actionDeltaTime")]
4015        pub action_delta_time: DeltaTimeTenthOfSecond,
4016    }
4017    impl HeadingChangeIndication {
4018        pub fn new(direction: TurningDirection, action_delta_time: DeltaTimeTenthOfSecond) -> Self {
4019            Self {
4020                direction,
4021                action_delta_time,
4022            }
4023        }
4024    }
4025    #[doc = "*"]
4026    #[doc = " * This DE indicates the heading confidence value which represents the estimated absolute accuracy of a heading value with a confidence level of 95 %."]
4027    #[doc = " * "]
4028    #[doc = " * The value shall be set to:"]
4029    #[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,"]
4030    #[doc = " * - `126` if the confidence value is out of range, i.e. greater than 12,5 degrees,"]
4031    #[doc = " * - `127` if the confidence value information is not available."]
4032    #[doc = " * "]
4033    #[doc = " * @note:\tThe fact that a value is received with confidence value set to `unavailable(127)` can be caused by several reasons,"]
4034    #[doc = " * such as:"]
4035    #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
4036    #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
4037    #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
4038    #[doc = " * In all 3 cases above, the heading value may be valid and used by the application."]
4039    #[doc = " *"]
4040    #[doc = " * @note: If a heading value is received and its confidence value is set to `outOfRange(126)`, it means that the "]
4041    #[doc = " * heading value is not valid and therefore cannot be trusted. Such value is not useful for the application."]
4042    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84AngleConfidence instead. "]
4043    #[doc = " * "]
4044    #[doc = " * @unit: 0,1 degree"]
4045    #[doc = " * @category: GeoReference information"]
4046    #[doc = " * @revision: Description revised in V2.1.1"]
4047    #[doc = " "]
4048    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4049    #[rasn(delegate, value("1..=127"))]
4050    pub struct HeadingConfidence(pub u8);
4051    #[doc = "*"]
4052    #[doc = " * This DE represents the orientation of the horizontal velocity vector with regards to the WGS84 north."]
4053    #[doc = " * When the information is not available, the DE shall be set to 3 601. The value 3600 shall not be used."]
4054    #[doc = " *"]
4055    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84AngleValue instead. "]
4056    #[doc = " *"]
4057    #[doc = " * Unit: 0,1 degree"]
4058    #[doc = " * Categories: GeoReference information"]
4059    #[doc = " * @revision: Description revised in V2.1.1 (usage of value 3600 specified) "]
4060    #[doc = ""]
4061    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4062    #[rasn(delegate, value("0..=3601"))]
4063    pub struct HeadingValue(pub u16);
4064    #[doc = "*"]
4065    #[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"]
4066    #[doc = " * rear to front). "]
4067    #[doc = " *"]
4068    #[doc = " * The value shall be set to:"]
4069    #[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,"]
4070    #[doc = " * - `99` if the height is out of range, i.e. equal to or greater than 0,98 m,"]
4071    #[doc = " * - `100` if the height information is not available."]
4072    #[doc = " *"]
4073    #[doc = " * @unit 0,01 metre"]
4074    #[doc = " * @category Vehicle information"]
4075    #[doc = " * @revision: Description revised in V2.1.1 (the definition of 99 has changed slightly) "]
4076    #[doc = " "]
4077    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4078    #[rasn(delegate, value("1..=100"))]
4079    pub struct HeightLonCarr(pub u8);
4080    #[doc = "*"]
4081    #[doc = " * This DE represents the value of the sub cause code of the @ref CauseCode `humanPresenceOnTheRoad`."]
4082    #[doc = " * "]
4083    #[doc = " * The value shall be set to:"]
4084    #[doc = " * - 0 - `unavailable`                    - in case further detailed information abou the human presence on the road is unavailable,"]
4085    #[doc = " * - 1 - `childrenOnRoadway`              - in case children are present on the road,"]
4086    #[doc = " * - 2 - `cyclistOnRoadway`               - in case cyclist(s) are present on the road,"]
4087    #[doc = " * - 3 - `motorcyclistOnRoadway`          - in case motorcyclist(s) are present on the road,"]
4088    #[doc = " * - 4 - `pedestrian`                     - in case pedestrian(s) of any type are present on the road,"]
4089    #[doc = " * - 5 - `ordinary-pedestrian`            - in case pedestrian(s) to which no more-specific profile applies are present on the road,"]
4090    #[doc = " * - 6 - `road-worker`                    - in case pedestrian(s) with the role of a road worker applies are present on the road,"]
4091    #[doc = " * - 7 - `first-responder`                - in case pedestrian(s) with the role of a first responder applies are present on the road,  "]
4092    #[doc = " * - 8 - `lightVruVehicle                 - in case light vru vehicle(s) of any type are present on the road,"]
4093    #[doc = " * - 9 - `bicyclist `                     - in case cycle(s) and their bicyclist(s) are present on the road,"]
4094    #[doc = " * - 10 - `wheelchair-user`               - in case wheelchair(s) and their user(s) are present on the road,"]
4095    #[doc = " * - 11 - `horse-and-rider`               - in case horse(s) and rider(s) are present on the road,"]
4096    #[doc = " * - 12 - `rollerskater`                  - in case rolleskater(s) and skater(s) are present on the road,"]
4097    #[doc = " * - 13 - `e-scooter`                     - in case e-scooter(s) and rider(s) are present on the road,"]
4098    #[doc = " * - 14 - `personal-transporter`          - in case personal-transporter(s) and rider(s) are present on the road,"]
4099    #[doc = " * - 15 - `pedelec`                       - in case pedelec(s) and rider(s) are present on the road,"]
4100    #[doc = " * - 16 - `speed-pedelec`                 - in case speed-pedelec(s) and rider(s) are present on the road,"]
4101    #[doc = " * - 17 - `ptw`                           - in case powered-two-wheeler(s) of any type are present on the road,"]
4102    #[doc = " * - 18 - `moped`                         - in case moped(s) and rider(s) are present on the road,"]
4103    #[doc = " * - 19 - `motorcycle`                    - in case motorcycle(s) and rider(s) are present on the road,"]
4104    #[doc = " * - 20 - `motorcycle-and-sidecar-right`  - in case motorcycle(s) with sidecar(s) on the right and rider are present on the road,"]
4105    #[doc = " * - 21 - `motorcycle-and-sidecar-left`   - in case motorcycle(s) with sidecar(s) on the left and rider are present on the road."]
4106    #[doc = " * - 22-255                               - are reserved for future usage."]
4107    #[doc = " *"]
4108    #[doc = " * @category: Traffic information"]
4109    #[doc = " * @revision: editorial revision in V2.1.1, named values 4-21 added in V2.2.1"]
4110    #[doc = " "]
4111    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4112    #[rasn(delegate, value("0..=255"))]
4113    pub struct HumanPresenceOnTheRoadSubCauseCode(pub u8);
4114    #[doc = "*"]
4115    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode \"humanProblem\"."]
4116    #[doc = " * "]
4117    #[doc = " * The value shall be set to:"]
4118    #[doc = " * - 0 - `unavailable`        - in case further detailed information on human health problem is unavailable,"]
4119    #[doc = " * - 1 - `glycemiaProblem`    - in case human problem is due to glycaemia problem,"]
4120    #[doc = " * - 2 - `heartProblem`       - in case human problem is due to heart problem,"]
4121    #[doc = " * - 3 - `unresponsiveDriver` - in case an unresponsive driver is detected."]
4122    #[doc = " * - 3-255                    - reserved for future usage."]
4123    #[doc = " *"]
4124    #[doc = " * @category: Traffic information"]
4125    #[doc = " * @revision: V1.3.1, value 3 assigned in V2.4.1"]
4126    #[doc = " "]
4127    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4128    #[rasn(delegate, value("0..=255"))]
4129    pub struct HumanProblemSubCauseCode(pub u8);
4130    #[doc = "* "]
4131    #[doc = " * This DE is a general identifier."]
4132    #[doc = " * "]
4133    #[doc = " * @category: Basic information"]
4134    #[doc = " * @revision: Created in V2.1.1"]
4135    #[doc = ""]
4136    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4137    #[rasn(delegate, value("0..=255"))]
4138    pub struct Identifier1B(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..=65535"))]
4147    pub struct Identifier2B(pub u16);
4148    #[doc = "*"]
4149    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `impassability`"]
4150    #[doc = " * "]
4151    #[doc = " * The value shall be set to:"]
4152    #[doc = " * - 0 `unavailable`              - in case further detailed information about the unmanaged road blockage is unavailable,"]
4153    #[doc = " * - 1 `flooding          `       - in case the road is affected by flooding,"]
4154    #[doc = " * - 2 `dangerOfAvalanches`       - in case the road is at risk of being affected or blocked by avalanches,"]
4155    #[doc = " * - 3 `blastingOfAvalanches`     - in case there is an active blasting of avalanches on or near the road,"]
4156    #[doc = " * - 4 `landslips`                - in case the road is affected by landslips,"]
4157    #[doc = " * - 5 `chemicalSpillage`         - in case the road is affected by chemical spillage,"]
4158    #[doc = " * - 6 `winterClosure`            - in case the road is impassable due to a winter closure."]
4159    #[doc = " * - 7 `sinkhole`                 - in case the road is impassable due to large holes in the road surface."]
4160    #[doc = " * - 8 `earthquakeDamage`         - in case the road is obstructed or partially obstructed because of damage caused by an earthquake."]
4161    #[doc = " * - 9 `fallenTrees`              - in case the road is obstructed or partially obstructed by one or more fallen trees. "]
4162    #[doc = " * - 10 `rockfalls`               - in case the road is obstructed or partially obstructed due to fallen rocks."]
4163    #[doc = " * - 11 `sewerOverflow`           - in case the road is obstructed or partially obstructed by overflows from one or more sewers. "]
4164    #[doc = " * - 12 `stormDamage`             - in case the road is obstructed or partially obstructed by debris caused by strong winds."]
4165    #[doc = " * - 13 `subsidence`              - in case the road surface has sunken or collapsed in places."]
4166    #[doc = " * - 14 `burstPipe`               - in case the road surface has sunken or collapsed in places due to burst pipes."]
4167    #[doc = " * - 15 `burstWaterMain`          - in case the road is obstructed due to local flooding and/or subsidence. "]
4168    #[doc = " * - 16 `fallenPowerCables`       - in case the road is obstructed or partly obstructed by one or more fallen power cables."]
4169    #[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."]
4170    #[doc = " * - 15-255                       - are reserved for future usage."]
4171    #[doc = " *"]
4172    #[doc = " * @category: Traffic information"]
4173    #[doc = " * @revision: Created in V2.2.1"]
4174    #[doc = ""]
4175    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4176    #[rasn(delegate, value("0..=255"))]
4177    pub struct ImpassabilitySubCauseCode(pub u8);
4178    #[doc = "*"]
4179    #[doc = " * This DE represents the quality level of provided information."]
4180    #[doc = " * "]
4181    #[doc = " * The value shall be set to:"]
4182    #[doc = " * - `0` if the information is unavailable,"]
4183    #[doc = " * - `1` if the quality level is lowest,"]
4184    #[doc = " * - `n` (`n > 1` and `n < 7`) if the quality level is n, "]
4185    #[doc = " * - `7` if the quality level is highest."]
4186    #[doc = " *"]
4187    #[doc = " * @note: Definition of quality level is out of scope of the present document."]
4188    #[doc = " * @category: Basic information"]
4189    #[doc = " * @revision: Editorial update in V2.1.1"]
4190    #[doc = " "]
4191    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4192    #[rasn(delegate, value("0..=7"))]
4193    pub struct InformationQuality(pub u8);
4194    #[doc = "*"]
4195    #[doc = " * This DF represents a frequency channel "]
4196    #[doc = " *"]
4197    #[doc = " * It shall include the following components: "]
4198    #[doc = " *"]
4199    #[doc = " * @field centreFrequency: the centre frequency of the channel in 10^(exp+2) Hz (where exp is exponent)"]
4200    #[doc = " * "]
4201    #[doc = " * @field channelWidth: width of the channel in 10^exp Hz (where exp is exponent)"]
4202    #[doc = " *"]
4203    #[doc = " * @field exponent: exponent of the power of 10 used in the calculation of the components above."]
4204    #[doc = " *"]
4205    #[doc = " * @category: Communication information"]
4206    #[doc = " * @revision: created in V2.1.1"]
4207    #[doc = ""]
4208    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4209    #[rasn(automatic_tags)]
4210    pub struct InterferenceManagementChannel {
4211        #[rasn(value("1..=99999"), identifier = "centreFrequency")]
4212        pub centre_frequency: u32,
4213        #[rasn(value("0..=9999"), identifier = "channelWidth")]
4214        pub channel_width: u16,
4215        #[rasn(value("0..=15"))]
4216        pub exponent: u8,
4217    }
4218    impl InterferenceManagementChannel {
4219        pub fn new(centre_frequency: u32, channel_width: u16, exponent: u8) -> Self {
4220            Self {
4221                centre_frequency,
4222                channel_width,
4223                exponent,
4224            }
4225        }
4226    }
4227    #[doc = "*"]
4228    #[doc = " * This DF shall contain a list of up to 16 definitions containing interference management information, per affected frequency channels."]
4229    #[doc = " *  "]
4230    #[doc = " * @category: Communication information."]
4231    #[doc = " * @revision: created in V2.1.1"]
4232    #[doc = " "]
4233    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4234    #[rasn(delegate, size("1..=16", extensible))]
4235    pub struct InterferenceManagementInfo(pub SequenceOf<InterferenceManagementInfoPerChannel>);
4236    #[doc = "*"]
4237    #[doc = " * This DF contains interference management information for one affected frequency channel."]
4238    #[doc = " *"]
4239    #[doc = " * It shall include the following components: "]
4240    #[doc = " *"]
4241    #[doc = " * @field interferenceManagementChannel: frequency channel for which the zone should be applied interference management "]
4242    #[doc = " *"]
4243    #[doc = " * @field interferenceManagementZoneType: type of the interference management zone. "]
4244    #[doc = " *"]
4245    #[doc = " * @field interferenceManagementMitigationType: optional type of the mitigation to be used in the interference management zone. "]
4246    #[doc = " * In the case where no mitigation should be applied by the ITS-S, this is indicated by the field interferenceManagementMitigationType being absent."]
4247    #[doc = " *"]
4248    #[doc = " * @field expiryTime: optional time at which the validity of the interference management communication zone will expire. "]
4249    #[doc = " * This component is present when the interference management is temporarily valid"]
4250    #[doc = " *"]
4251    #[doc = " * @category: Communication information"]
4252    #[doc = " * @revision: created in V2.1.1"]
4253    #[doc = " "]
4254    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4255    #[rasn(automatic_tags)]
4256    #[non_exhaustive]
4257    pub struct InterferenceManagementInfoPerChannel {
4258        #[rasn(identifier = "interferenceManagementChannel")]
4259        pub interference_management_channel: InterferenceManagementChannel,
4260        #[rasn(identifier = "interferenceManagementZoneType")]
4261        pub interference_management_zone_type: InterferenceManagementZoneType,
4262        #[rasn(identifier = "interferenceManagementMitigationType")]
4263        pub interference_management_mitigation_type: Option<MitigationForTechnologies>,
4264        #[rasn(identifier = "expiryTime")]
4265        pub expiry_time: Option<TimestampIts>,
4266    }
4267    impl InterferenceManagementInfoPerChannel {
4268        pub fn new(
4269            interference_management_channel: InterferenceManagementChannel,
4270            interference_management_zone_type: InterferenceManagementZoneType,
4271            interference_management_mitigation_type: Option<MitigationForTechnologies>,
4272            expiry_time: Option<TimestampIts>,
4273        ) -> Self {
4274            Self {
4275                interference_management_channel,
4276                interference_management_zone_type,
4277                interference_management_mitigation_type,
4278                expiry_time,
4279            }
4280        }
4281    }
4282    #[doc = "*"]
4283    #[doc = " * "]
4284    #[doc = " * This DF represents a zone  inside which the ITS communication should be restricted in order to manage interference."]
4285    #[doc = " *"]
4286    #[doc = " * It shall include the following components: "]
4287    #[doc = " *"]
4288    #[doc = " * @field zoneDefinition: contains the geographical definition of the zone."]
4289    #[doc = " *"]
4290    #[doc = " * @field managementInfo: contains interference management information applicable in the zone defined in the component zoneDefinition."]
4291    #[doc = " *"]
4292    #[doc = " * @category: Communication information"]
4293    #[doc = " * @revision: created in V2.1.1"]
4294    #[doc = " "]
4295    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4296    #[rasn(automatic_tags)]
4297    pub struct InterferenceManagementZone {
4298        #[rasn(identifier = "zoneDefinition")]
4299        pub zone_definition: InterferenceManagementZoneDefinition,
4300        #[rasn(identifier = "managementInfo")]
4301        pub management_info: InterferenceManagementInfo,
4302    }
4303    impl InterferenceManagementZone {
4304        pub fn new(
4305            zone_definition: InterferenceManagementZoneDefinition,
4306            management_info: InterferenceManagementInfo,
4307        ) -> Self {
4308            Self {
4309                zone_definition,
4310                management_info,
4311            }
4312        }
4313    }
4314    #[doc = "*"]
4315    #[doc = " * This DF represents the geographical definition of the zone where band sharing occurs. "]
4316    #[doc = " *"]
4317    #[doc = " * It shall include the following components: "]
4318    #[doc = " *"]
4319    #[doc = " * @field interferenceManagementZoneLatitude: Latitude of the centre point of the interference management zone."]
4320    #[doc = " *"]
4321    #[doc = " * @field interferenceManagementZoneLongitude: Longitude of the centre point of the interference management zone."]
4322    #[doc = " *"]
4323    #[doc = " * @field interferenceManagementZoneId: optional identification of the interference management zone. "]
4324    #[doc = " *"]
4325    #[doc = " * @field interferenceManagementZoneShape: shape of the interference management zone placed at the centre point. "]
4326    #[doc = " *"]
4327    #[doc = " * @category: Communication information"]
4328    #[doc = " * @revision: created in V2.1.1"]
4329    #[doc = " "]
4330    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4331    #[rasn(automatic_tags)]
4332    #[non_exhaustive]
4333    pub struct InterferenceManagementZoneDefinition {
4334        #[rasn(identifier = "interferenceManagementZoneLatitude")]
4335        pub interference_management_zone_latitude: Latitude,
4336        #[rasn(identifier = "interferenceManagementZoneLongitude")]
4337        pub interference_management_zone_longitude: Longitude,
4338        #[rasn(identifier = "interferenceManagementZoneId")]
4339        pub interference_management_zone_id: Option<ProtectedZoneId>,
4340        #[rasn(value("0.."), identifier = "interferenceManagementZoneShape")]
4341        pub interference_management_zone_shape: Option<Shape>,
4342    }
4343    impl InterferenceManagementZoneDefinition {
4344        pub fn new(
4345            interference_management_zone_latitude: Latitude,
4346            interference_management_zone_longitude: Longitude,
4347            interference_management_zone_id: Option<ProtectedZoneId>,
4348            interference_management_zone_shape: Option<Shape>,
4349        ) -> Self {
4350            Self {
4351                interference_management_zone_latitude,
4352                interference_management_zone_longitude,
4353                interference_management_zone_id,
4354                interference_management_zone_shape,
4355            }
4356        }
4357    }
4358    #[doc = "* "]
4359    #[doc = " * This DE defines the type of an interference management zone, so that an ITS-S can "]
4360    #[doc = " * assert the actions to do while passing by such zone (e.g. reduce the transmit power in case of a DSRC tolling station)."]
4361    #[doc = " * It is an extension of the type @ref ProtectedZoneType."]
4362    #[doc = " *"]
4363    #[doc = " * The value shall be set to:"]
4364    #[doc = " * - 0 - `permanentCenDsrcTolling` - as specified in ETSI TS 102 792 [14],"]
4365    #[doc = " * - 1 - `temporaryCenDsrcTolling` - as specified in ETSI TS 102 792 [14],"]
4366    #[doc = " * - 2 - `unavailable`             - default value. Set to 2 for backwards compatibility with DSRC tolling,"]
4367    #[doc = " * - 3 - `urbanRail`               - as specified in ETSI TS 103 724 [13], clause 7,"]
4368    #[doc = " * - 4 - `satelliteStation`        - as specified in ETSI TS 103 724 [13], clause 7,"]
4369    #[doc = " * - 5 - `fixedLinks`              - as specified in ETSI TS 103 724 [13], clause 7."]
4370    #[doc = " *"]
4371    #[doc = " * @category: Communication information"]
4372    #[doc = " * @revision: Created in V2.1.1"]
4373    #[doc = " "]
4374    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
4375    #[rasn(enumerated)]
4376    #[non_exhaustive]
4377    pub enum InterferenceManagementZoneType {
4378        permanentCenDsrcTolling = 0,
4379        temporaryCenDsrcTolling = 1,
4380        unavailable = 2,
4381        urbanRail = 3,
4382        satelliteStation = 4,
4383        fixedLinks = 5,
4384    }
4385    #[doc = "*"]
4386    #[doc = " * This DF shall contain a list of up to 16 interference  management zones.  "]
4387    #[doc = " *"]
4388    #[doc = " * **EXAMPLE**: An interference management communication zone may be defined around a CEN DSRC road side equipment or an urban rail operational area."]
4389    #[doc = " * "]
4390    #[doc = " * @category: Communication information"]
4391    #[doc = " * @revision: created in V2.1.1"]
4392    #[doc = " "]
4393    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4394    #[rasn(delegate, size("1..=16", extensible))]
4395    pub struct InterferenceManagementZones(pub SequenceOf<InterferenceManagementZone>);
4396    #[doc = "*"]
4397    #[doc = " * This DF represents a unique id for an intersection, in accordance with ETSI TS 103 301 [15]."]
4398    #[doc = " *"]
4399    #[doc = " * It shall include the following components: "]
4400    #[doc = " *"]
4401    #[doc = " * @field region: the optional identifier of the entity that is responsible for the region in which the intersection is placed."]
4402    #[doc = " * It is the duty of that entity to guarantee that the @ref Id is unique within the region."]
4403    #[doc = " *"]
4404    #[doc = " * @field id: the identifier of the intersection"]
4405    #[doc = " *"]
4406    #[doc = " * @note: when the component region is present, the IntersectionReferenceId is guaranteed to be globally unique."]
4407    #[doc = " * @category: Road topology information"]
4408    #[doc = " * @revision: created in V2.1.1"]
4409    #[doc = " "]
4410    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4411    #[rasn(automatic_tags)]
4412    pub struct IntersectionReferenceId {
4413        pub region: Option<Identifier2B>,
4414        pub id: Identifier2B,
4415    }
4416    impl IntersectionReferenceId {
4417        pub fn new(region: Option<Identifier2B>, id: Identifier2B) -> Self {
4418            Self { region, id }
4419        }
4420    }
4421    #[doc = "*"]
4422    #[doc = " * This DE represents the vehicle type according to ISO 3833 [22]."]
4423    #[doc = " * A \"term No\" refers to the number of the corresponding term and its definition in ISO 3833."]
4424    #[doc = " *"]
4425    #[doc = " * The value shall be set to:"]
4426    #[doc = " * - 0\t- `passengerCar`              - term No 3.1.1"]
4427    #[doc = " * - 1\t- `saloon`                    - term No 3.1.1.1 (sedan)"]
4428    #[doc = " * - 2\t- `convertibleSaloon`         - term No 3.1.1.2"]
4429    #[doc = " * - 3\t- `pullmanSaloon`             - term No 3.1.1.3"]
4430    #[doc = " * - 4\t- `stationWagon`              - term No 3.1.1.4"]
4431    #[doc = " * - 5\t- `truckStationWagon`         - term No 3.1.1.4.1"]
4432    #[doc = " * - 6\t- `coupe`                     - term No 3.1.1.5 (coupe)"]
4433    #[doc = " * - 7\t- `convertible`               - term No 3.1.1.6 (open tourer, roadstar, spider)"]
4434    #[doc = " * - 8\t- `multipurposePassengerCar`  - term No 3.1.1.7"]
4435    #[doc = " * - 9\t- `forwardControlPassengerCar`- term No 3.1.1.8"]
4436    #[doc = " * - 10\t- `specialPassengerCar`       - term No 3.1.1.9"]
4437    #[doc = " * - 11\t- `bus`                       - term No 3.1.2"]
4438    #[doc = " * - 12\t- `minibus`                   - term No 3.1.2.1"]
4439    #[doc = " * - 13\t- `urbanBus`                  - term No 3.1.2.2"]
4440    #[doc = " * - 14\t- `interurbanCoach`           - term No 3.1.2.3"]
4441    #[doc = " * - 15\t- `longDistanceCoach`         - term No 3.1.2.4"]
4442    #[doc = " * - 16\t- `articulatedBus`            - term No 3.1.2.5"]
4443    #[doc = " * - 17\t- `trolleyBus\t`             - term No 3.1.2.6"]
4444    #[doc = " * - 18\t- `specialBus`                - term No 3.1.2.7"]
4445    #[doc = " * - 19\t- `commercialVehicle`         - term No 3.1.3"]
4446    #[doc = " * - 20\t- `specialCommercialVehicle`  - term No 3.1.3.1"]
4447    #[doc = " * - 21\t- `specialVehicle`            - term No 3.1.4"]
4448    #[doc = " * - 22\t- `trailingTowingVehicle`     - term No 3.1.5 (draw-bar tractor)"]
4449    #[doc = " * - 23\t- `semiTrailerTowingVehicle`  - term No 3.1.6 (fifth wheel tractor)"]
4450    #[doc = " * - 24\t- `trailer`                   - term No 3.2.1"]
4451    #[doc = " * - 25\t- `busTrailer`                - term No 3.2.1.1"]
4452    #[doc = " * - 26\t- `generalPurposeTrailer`     - term No 3.2.1.2"]
4453    #[doc = " * - 27\t- `caravan`                   - term No 3.2.1.3"]
4454    #[doc = " * - 28\t- `specialTrailer`            - term No 3.2.1.4"]
4455    #[doc = " * - 29\t- `semiTrailer`               - term No 3.2.2"]
4456    #[doc = " * - 30\t- `busSemiTrailer`            - term No 3.2.2.1"]
4457    #[doc = " * - 31\t- `generalPurposeSemiTrailer` - term No 3.2.2.2"]
4458    #[doc = " * - 32\t- `specialSemiTrailer`        - term No 3.2.2.3"]
4459    #[doc = " * - 33\t- `roadTrain`                 - term No 3.3.1"]
4460    #[doc = " * - 34\t- `passengerRoadTrain`        - term No 3.3.2"]
4461    #[doc = " * - 35\t- `articulatedRoadTrain`      - term No 3.3.3"]
4462    #[doc = " * - 36\t- `doubleRoadTrain`           - term No 3.3.4"]
4463    #[doc = " * - 37\t- `compositeRoadTrain`        - term No 3.3.5"]
4464    #[doc = " * - 38\t- `specialRoadTrain`          - term No 3.3.6"]
4465    #[doc = " * - 39\t- `moped`                     - term No 3.4"]
4466    #[doc = " * - 40\t- `motorCycle`                - term No 3.5"]
4467    #[doc = " * - 41-255                           - reserved for future use"]
4468    #[doc = " * "]
4469    #[doc = " * @category: Vehicle information"]
4470    #[doc = " * @revision: Created in V2.1.1"]
4471    #[doc = " "]
4472    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4473    #[rasn(delegate, value("0..=255"))]
4474    pub struct Iso3833VehicleType(pub u8);
4475    #[doc = "* "]
4476    #[doc = " * This DE represent the identifier of an organization according to the applicable registry."]
4477    #[doc = " *"]
4478    #[doc = " * @category: Basic information"]
4479    #[doc = " * @revision: Created in V2.2.1 based on ISO 14816 [23]"]
4480    #[doc = ""]
4481    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4482    #[rasn(delegate, value("0..=16383"))]
4483    pub struct IssuerIdentifier(pub u16);
4484    #[doc = "*"]
4485    #[doc = " * This DF shall contain  a list of waypoints @ref ReferencePosition."]
4486    #[doc = " *"]
4487    #[doc = " * @category: GeoReference information"]
4488    #[doc = " * @revision: Editorial update in V2.1.1"]
4489    #[doc = " "]
4490    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4491    #[rasn(delegate, size("1..=40"))]
4492    pub struct ItineraryPath(pub SequenceOf<ReferencePosition>);
4493    #[doc = "*"]
4494    #[doc = " * This DF represents a common message header for application and facilities layer messages."]
4495    #[doc = " * It is included at the beginning of an ITS message as the message header."]
4496    #[doc = " *"]
4497    #[doc = " * It shall include the following components: "]
4498    #[doc = " *"]
4499    #[doc = " * @field protocolVersion: version of the ITS message."]
4500    #[doc = " *"]
4501    #[doc = " * @field messageId: type of the ITS message."]
4502    #[doc = " *"]
4503    #[doc = " * @field stationId: the identifier of the ITS-S that generated the ITS message."]
4504    #[doc = " *"]
4505    #[doc = " * @category: Communication information"]
4506    #[doc = " * @revision:  update in V2.1.1: messageID and stationID changed to messageId and stationId; messageId is of type MessageId."]
4507    #[doc = " "]
4508    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4509    #[rasn(automatic_tags)]
4510    pub struct ItsPduHeader {
4511        #[rasn(identifier = "protocolVersion")]
4512        pub protocol_version: OrdinalNumber1B,
4513        #[rasn(identifier = "messageId")]
4514        pub message_id: MessageId,
4515        #[rasn(identifier = "stationId")]
4516        pub station_id: StationId,
4517    }
4518    impl ItsPduHeader {
4519        pub fn new(
4520            protocol_version: OrdinalNumber1B,
4521            message_id: MessageId,
4522            station_id: StationId,
4523        ) -> Self {
4524            Self {
4525                protocol_version,
4526                message_id,
4527                station_id,
4528            }
4529        }
4530    }
4531    #[doc = "* "]
4532    #[doc = " * This DE represents the identifier of the IVIM."]
4533    #[doc = " *"]
4534    #[doc = " * @category: Basic information"]
4535    #[doc = " * @revision: Created in V2.2.1 based on ETSI TS 103 301 [15]"]
4536    #[doc = ""]
4537    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4538    #[rasn(delegate, value("1..=32767", extensible))]
4539    pub struct IviIdentificationNumber(pub Integer);
4540    #[doc = "*"]
4541    #[doc = " * This DF provides the reference to the information contained in a IVIM according to ETSI TS 103 301 [15]. "]
4542    #[doc = " *"]
4543    #[doc = " * It shall include the following components: "]
4544    #[doc = " * "]
4545    #[doc = " * @field serviceProviderId: identifier of the organization that provided the IVIM."]
4546    #[doc = " *"]
4547    #[doc = " * @field iviIdentificationNumber: identifier of the IVIM, as assigned by the organization identified in serviceProviderId."]
4548    #[doc = " *"]
4549    #[doc = " * @category: Communication information"]
4550    #[doc = " * @revision: Created in V2.2.1"]
4551    #[doc = " "]
4552    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4553    #[rasn(automatic_tags)]
4554    pub struct IvimReference {
4555        #[rasn(identifier = "serviceProviderId")]
4556        pub service_provider_id: Provider,
4557        #[rasn(identifier = "iviIdentificationNumber")]
4558        pub ivi_identification_number: IviIdentificationNumber,
4559    }
4560    impl IvimReference {
4561        pub fn new(
4562            service_provider_id: Provider,
4563            ivi_identification_number: IviIdentificationNumber,
4564        ) -> Self {
4565            Self {
4566                service_provider_id,
4567                ivi_identification_number,
4568            }
4569        }
4570    }
4571    #[doc = "*"]
4572    #[doc = " * This DF shall contain a list of @ref IvimReference."]
4573    #[doc = " *"]
4574    #[doc = " * @category: Communication information"]
4575    #[doc = " * @revision: Created in V2.2.1"]
4576    #[doc = ""]
4577    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4578    #[rasn(delegate, size("1..=8", extensible))]
4579    pub struct IvimReferences(pub SequenceOf<IvimReference>);
4580    #[doc = "*"]
4581    #[doc = " * This DE indicates a transversal position on the carriageway at a specific longitudinal position, in resolution of lanes of the carriageway. "]
4582    #[doc = " *"]
4583    #[doc = " * For right-hand traffic roads, the value shall be set to:"]
4584    #[doc = " * - `-1` if the position is off, i.e. besides the road,"]
4585    #[doc = " * - `0` if the position is on the inner hard shoulder, i.e. the hard should adjacent to the leftmost lane,"]
4586    #[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,"]
4587    #[doc = " * - `14` if the position is on the outer hard shoulder, i.e. the hard should adjacent to rightmost lane (if present)."]
4588    #[doc = " *"]
4589    #[doc = " * For left-hand traffic roads, the value shall be set to:"]
4590    #[doc = " * - `-1` if the position is off, i.e. besides the road,"]
4591    #[doc = " * - `0` if the position is on the inner hard shoulder, i.e. the hard should adjacent to the rightmost lane,"]
4592    #[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,"]
4593    #[doc = " * - `14` if the position is on the outer hard shoulder, i.e. the hard should adjacent to leftmost lane (if present)."]
4594    #[doc = " *"]
4595    #[doc = " *  @note: in practice this means that the position is counted from \"inside\" to \"outside\" no matter which traffic practice is used."]
4596    #[doc = " *"]
4597    #[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. "]
4598    #[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), "]
4599    #[doc = " * the position is counted from the legal (i.e. optical) separation between traffic directions (horizontal marking). "]
4600    #[doc = " *"]
4601    #[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:"]
4602    #[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 "]
4603    #[doc = " *   imaginary separation between traffic directions is on the border between the even number of lanes N/2."]
4604    #[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. "]
4605    #[doc = " *   The remaining middle lane is assigned to both traffic directions as innermost lane."]
4606    #[doc = " *"]
4607    #[doc = " * @category: Road topology information"]
4608    #[doc = " * @revision: Description of the legal separation of carriageways added in V2.2.1"]
4609    #[doc = ""]
4610    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4611    #[rasn(delegate, value("-1..=14"))]
4612    pub struct LanePosition(pub i8);
4613    #[doc = "*"]
4614    #[doc = " * This DF indicates a transversal position in resolution of lanes and other associated details."]
4615    #[doc = " *"]
4616    #[doc = " * It shall include the following components: "]
4617    #[doc = " * "]
4618    #[doc = " * @field transversalPosition: the transversal position."]
4619    #[doc = " * "]
4620    #[doc = " * @field laneType: the type of the lane identified in the component transversalPosition. By default set to `traffic`."]
4621    #[doc = " *"]
4622    #[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."]
4623    #[doc = " *"]
4624    #[doc = " * @category Road topology information"]
4625    #[doc = " * @revision: direction added in V2.2.1"]
4626    #[doc = " "]
4627    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4628    #[rasn(automatic_tags)]
4629    #[non_exhaustive]
4630    pub struct LanePositionAndType {
4631        #[rasn(identifier = "transversalPosition")]
4632        pub transversal_position: LanePosition,
4633        #[rasn(
4634            default = "lane_position_and_type_lane_type_default",
4635            identifier = "laneType"
4636        )]
4637        pub lane_type: LaneType,
4638        #[rasn(default = "lane_position_and_type_direction_default")]
4639        pub direction: Direction,
4640    }
4641    impl LanePositionAndType {
4642        pub fn new(
4643            transversal_position: LanePosition,
4644            lane_type: LaneType,
4645            direction: Direction,
4646        ) -> Self {
4647            Self {
4648                transversal_position,
4649                lane_type,
4650                direction,
4651            }
4652        }
4653    }
4654    fn lane_position_and_type_lane_type_default() -> LaneType {
4655        LaneType(0)
4656    }
4657    fn lane_position_and_type_direction_default() -> Direction {
4658        Direction(0)
4659    }
4660    #[doc = "*"]
4661    #[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. "]
4662    #[doc = " * A lane position is a transversal position on the carriageway at a specific longitudinal position, in resolution of lanes of the carriageway."]
4663    #[doc = " *"]
4664    #[doc = " * The following options are available:"]
4665    #[doc = " *"]
4666    #[doc = " * @field simplelanePosition: a single lane position without any additional context information."]
4667    #[doc = " *"]
4668    #[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 "]
4669    #[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)."]
4670    #[doc = " * "]
4671    #[doc = " * @field detailedlanePosition: a single lane position with additional lane details."]
4672    #[doc = " * "]
4673    #[doc = " * @field lanePositionWithLateralDetails: a single lane position with additional details and the lateral position within the lane."]
4674    #[doc = " *"]
4675    #[doc = " * @field trafficIslandPosition: a position on a traffic island, i.e. between two lanes. "]
4676    #[doc = " *"]
4677    #[doc = " * @category: Road Topology information"]
4678    #[doc = " * @revision: Created in V2.2.1 from the DF GeneralizedLanePosition of V2.1.1. "]
4679    #[doc = " "]
4680    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4681    #[rasn(choice, automatic_tags)]
4682    #[non_exhaustive]
4683    pub enum LanePositionOptions {
4684        simplelanePosition(LanePosition),
4685        simpleLaneType(LaneType),
4686        detailedlanePosition(LanePositionAndType),
4687        lanePositionWithLateralDetails(LanePositionWithLateralDetails),
4688        trafficIslandPosition(TrafficIslandPosition),
4689    }
4690    #[doc = "*"]
4691    #[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."]
4692    #[doc = " *"]
4693    #[doc = " * It shall additionally include the following components: "]
4694    #[doc = " *"]
4695    #[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."]
4696    #[doc = " *"]
4697    #[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."]
4698    #[doc = " * "]
4699    #[doc = " * @category: Road Topology information"]
4700    #[doc = " * @revision: Created in V2.2.1"]
4701    #[doc = " "]
4702    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4703    #[rasn(automatic_tags)]
4704    #[non_exhaustive]
4705    pub struct LanePositionWithLateralDetails {
4706        #[rasn(identifier = "distanceToLeftBorder")]
4707        pub distance_to_left_border: StandardLength9b,
4708        #[rasn(identifier = "distanceToRightBorder")]
4709        pub distance_to_right_border: StandardLength9b,
4710        #[rasn(identifier = "transversalPosition")]
4711        pub transversal_position: LanePosition,
4712        #[rasn(
4713            default = "lane_position_with_lateral_details_lane_type_default",
4714            identifier = "laneType"
4715        )]
4716        pub lane_type: LaneType,
4717        #[rasn(default = "lane_position_with_lateral_details_direction_default")]
4718        pub direction: Direction,
4719    }
4720    impl LanePositionWithLateralDetails {
4721        pub fn new(
4722            distance_to_left_border: StandardLength9b,
4723            distance_to_right_border: StandardLength9b,
4724            transversal_position: LanePosition,
4725            lane_type: LaneType,
4726            direction: Direction,
4727        ) -> Self {
4728            Self {
4729                distance_to_left_border,
4730                distance_to_right_border,
4731                transversal_position,
4732                lane_type,
4733                direction,
4734            }
4735        }
4736    }
4737    fn lane_position_with_lateral_details_lane_type_default() -> LaneType {
4738        LaneType(0)
4739    }
4740    fn lane_position_with_lateral_details_direction_default() -> Direction {
4741        Direction(0)
4742    }
4743    #[doc = "*"]
4744    #[doc = " * This DE represents the type of a lane. "]
4745    #[doc = " * "]
4746    #[doc = " * The value shall be set to:"]
4747    #[doc = " * - 0\t- `traffic`            - Lane dedicated to the movement of vehicles,"]
4748    #[doc = " * - 1\t- `through`            - Lane dedicated to the movement of vehicles travelling ahead and not turning,"]
4749    #[doc = " * - 2\t- `reversible`         - Lane where the direction of traffic can be changed to match the peak flow,"]
4750    #[doc = " * - 3\t- `acceleration`\t   - Lane that allows vehicles entering a road to accelerate to the speed of through traffic before merging with it,"]
4751    #[doc = " * - 4\t- `deceleration`       - Lane that allows vehicles exiting a road to decelerate before leaving it,"]
4752    #[doc = " * - 5\t- `leftHandTurning`    - Lane reserved for slowing down and making a left turn, so as not to disrupt traffic,"]
4753    #[doc = " * - 6\t- `rightHandTurning`   - Lane reserved for slowing down and making a right turn so as not to disrupt traffic,"]
4754    #[doc = " * - 7\t- `dedicatedVehicle`   - Lane dedicated to movement of motor vehicles with specific characteristics, such as heavy goods vehicles, etc., "]
4755    #[doc = " * - 8\t- `bus`                - Lane dedicated to movement of buses providing public transport,"]
4756    #[doc = " * - 9\t- `taxi`               - Lane dedicated to movement of taxis,"]
4757    #[doc = " * - 10\t- `hov`                - Carpooling lane or high occupancy vehicle lane,"]
4758    #[doc = " * - 11\t- `hot`                - High occupancy vehicle lanes that is allowed to be used without meeting the occupancy criteria by paying a toll,"]
4759    #[doc = " * - 12\t- `pedestrian`         - Lanes dedicated to pedestrians such as pedestrian sidewalk paths,"]
4760    #[doc = " * - 13\t- `cycleLane`\t       - Lane dedicated to exclusive or preferred use by bicycles,"]
4761    #[doc = " * - 14\t- `median`             - Lane not dedicated to movement of vehicles but representing a median / central reservation  such as the central median, "]
4762    #[doc = "                                 separating the two directional carriageways of the highway,"]
4763    #[doc = " * - 15\t- `striping`\t       - Lane not dedicated to movement of vehicles but covered with roadway markings,"]
4764    #[doc = " * - 16\t- `trackedVehicle`     - Lane dedicated to movement of trains, trams and trolleys,"]
4765    #[doc = " * - 17\t- `parking`            - Lanes dedicated to vehicles parking, stopping and loading lanes,"]
4766    #[doc = " * - 18\t- `emergency`          - Lane dedicated to vehicles in breakdown or to emergency vehicles also called hard shoulder,"]
4767    #[doc = " * - 19\t- `verge`              - Lane representing the verge, i.e. a narrow strip of grass or plants and sometimes also trees located between "]
4768    #[doc = "                                 the road surface edge and the boundary of a road,"]
4769    #[doc = " * - 20\t`minimumRiskManoeuvre` - Lane dedicated to automated vehicles making a minimum risk manoeuvre,"]
4770    #[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."]
4771    #[doc = " * - values 22 to 30             reserved for future use. "]
4772    #[doc = " *"]
4773    #[doc = " * @category: Road topology information"]
4774    #[doc = " * @revision: Created in V2.1.1, named value 21 added in V2.2.1"]
4775    #[doc = ""]
4776    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4777    #[rasn(delegate, value("0..=31"))]
4778    pub struct LaneType(pub u8);
4779    #[doc = "*"]
4780    #[doc = " * This DE represents the width of a lane measured at a defined position."]
4781    #[doc = " *"]
4782    #[doc = " * The value shall be set to:"]
4783    #[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,"]
4784    #[doc = " * - `1022` if the lane width is out of range, i.e. greater than 10,21 m,"]
4785    #[doc = " * - `1023` if the lane width information is not available."]
4786    #[doc = " *"]
4787    #[doc = " * The value 0 shall not be used."]
4788    #[doc = " *"]
4789    #[doc = " * @unit: 0,01 metre"]
4790    #[doc = " * @category: Road topology information"]
4791    #[doc = " * @revision: Created in V2.1.1"]
4792    #[doc = " "]
4793    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4794    #[rasn(delegate, value("0..=1023"))]
4795    pub struct LaneWidth(pub u16);
4796    #[doc = "*"]
4797    #[doc = " * This DF indicates the vehicle acceleration at lateral direction and the confidence value of the lateral acceleration."]
4798    #[doc = " *"]
4799    #[doc = " * It shall include the following components: "]
4800    #[doc = " * "]
4801    #[doc = " * @field lateralAccelerationValue: lateral acceleration value at a point in time."]
4802    #[doc = " * "]
4803    #[doc = " * @field lateralAccelerationConfidence: confidence value of the lateral acceleration value."]
4804    #[doc = " *"]
4805    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead."]
4806    #[doc = " * @category Vehicle information"]
4807    #[doc = " * @revision: Description revised in V2.1.1"]
4808    #[doc = " "]
4809    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4810    #[rasn(automatic_tags)]
4811    pub struct LateralAcceleration {
4812        #[rasn(identifier = "lateralAccelerationValue")]
4813        pub lateral_acceleration_value: LateralAccelerationValue,
4814        #[rasn(identifier = "lateralAccelerationConfidence")]
4815        pub lateral_acceleration_confidence: AccelerationConfidence,
4816    }
4817    impl LateralAcceleration {
4818        pub fn new(
4819            lateral_acceleration_value: LateralAccelerationValue,
4820            lateral_acceleration_confidence: AccelerationConfidence,
4821        ) -> Self {
4822            Self {
4823                lateral_acceleration_value,
4824                lateral_acceleration_confidence,
4825            }
4826        }
4827    }
4828    #[doc = "*"]
4829    #[doc = " * This DE represents the vehicle acceleration at lateral direction in the centre of the mass of the empty vehicle."]
4830    #[doc = " * It corresponds to the vehicle coordinate system as specified in ISO 8855 [21]."]
4831    #[doc = " *"]
4832    #[doc = " * The value shall be set to:"]
4833    #[doc = " * - `-160` for acceleration values equal to or less than -16 m/s^2,"]
4834    #[doc = " * - `n` (`n > -160` and `n <= 0`) to indicate that the vehicle is accelerating towards the right side with regards to the vehicle orientation "]
4835    #[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,"]
4836    #[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 "]
4837    #[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,"]
4838    #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
4839    #[doc = " * - `161` when the data is unavailable."]
4840    #[doc = " *"]
4841    #[doc = " * @note: the empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
4842    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationValue instead."]
4843    #[doc = " *  "]
4844    #[doc = " * @unit: 0,1 m/s^2"]
4845    #[doc = " * @category: Vehicle information"]
4846    #[doc = " * @revision: Description updated in V2.1.1 (the meaning of 160 has changed slightly). "]
4847    #[doc = " "]
4848    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4849    #[rasn(delegate, value("-160..=161"))]
4850    pub struct LateralAccelerationValue(pub i16);
4851    #[doc = "*"]
4852    #[doc = " * This DE represents the absolute geographical latitude in a WGS84 coordinate system, providing a range of 90 degrees in north or"]
4853    #[doc = " * in south hemisphere."]
4854    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
4855    #[doc = " *"]
4856    #[doc = " * The value shall be set to:"]
4857    #[doc = " * - `n` (`n >= -900 000 000` and `n < 0`) x 10^-7 degree, i.e. negative values for latitudes south of the Equator,"]
4858    #[doc = " * - `0` is used for the latitude of the equator,"]
4859    #[doc = " * - `n` (`n > 0` and `n < 900 000 001`) x 10^-7 degree, i.e. positive values for latitudes north of the Equator,"]
4860    #[doc = " * - `900 000 001` when the information is unavailable."]
4861    #[doc = " *"]
4862    #[doc = " * @unit: 10^-7 degree"]
4863    #[doc = " * @category: GeoReference information"]
4864    #[doc = " * @revision: Editorial update in V2.1.1"]
4865    #[doc = " "]
4866    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4867    #[rasn(delegate, value("-900000000..=900000001"))]
4868    pub struct Latitude(pub i32);
4869    #[doc = "*"]
4870    #[doc = " * This DE indicates the status of light bar and any sort of audible alarm system besides the horn."]
4871    #[doc = " * This includes various common sirens as well as backup up beepers and other slow speed manoeuvring alerts."]
4872    #[doc = " *"]
4873    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
4874    #[doc = " * - 0 - `lightBarActivated`      - when the light bar is activated,"]
4875    #[doc = " * - 1 - `sirenActivated`         - when the siren is activated."]
4876    #[doc = " *"]
4877    #[doc = " * Otherwise, it shall be set to 0."]
4878    #[doc = " *"]
4879    #[doc = " * @category Vehicle information"]
4880    #[doc = " * @revision: Editorial update in V2.1.1"]
4881    #[doc = " "]
4882    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4883    #[rasn(delegate)]
4884    pub struct LightBarSirenInUse(pub FixedBitString<2usize>);
4885    #[doc = "*"]
4886    #[doc = " * This DE represents the absolute geographical longitude in a WGS84 coordinate system, providing a range of 180 degrees"]
4887    #[doc = " * to the east or to the west of the prime meridian."]
4888    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
4889    #[doc = " *"]
4890    #[doc = " * The value shall be set to:"]
4891    #[doc = " * - `n` (`n > -1 800 000 000` and `n < 0`) x 10^-7 degree, i.e. negative values for longitudes to the west,"]
4892    #[doc = " * - `0` to indicate the prime meridian,"]
4893    #[doc = " * - `n` (`n > 0` and `n < 1 800 000 001`) x 10^-7 degree, i.e. positive values for longitudes to the east,"]
4894    #[doc = " * - `1 800 000 001` when the information is unavailable."]
4895    #[doc = " *"]
4896    #[doc = " * The value -1 800 000 000 shall not be used. "]
4897    #[doc = " * "]
4898    #[doc = " * @unit: 10^-7 degree"]
4899    #[doc = " * @category: GeoReference information"]
4900    #[doc = " * @revision: Description revised in V2.1.1"]
4901    #[doc = " "]
4902    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4903    #[rasn(delegate, value("-1800000000..=1800000001"))]
4904    pub struct Longitude(pub i32);
4905    #[doc = "*"]
4906    #[doc = " * This DF indicates the vehicle acceleration at longitudinal direction and the confidence value of the longitudinal acceleration."]
4907    #[doc = " *"]
4908    #[doc = " * It shall include the following components: "]
4909    #[doc = " *"]
4910    #[doc = " * @field longitudinalAccelerationValue: longitudinal acceleration value at a point in time."]
4911    #[doc = ""]
4912    #[doc = " * @field longitudinalAccelerationConfidence: confidence value of the longitudinal acceleration value."]
4913    #[doc = " *"]
4914    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead. "]
4915    #[doc = " * @category: Vehicle information"]
4916    #[doc = " * @revision: V1.3.1"]
4917    #[doc = " "]
4918    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4919    #[rasn(automatic_tags)]
4920    pub struct LongitudinalAcceleration {
4921        #[rasn(identifier = "longitudinalAccelerationValue")]
4922        pub longitudinal_acceleration_value: LongitudinalAccelerationValue,
4923        #[rasn(identifier = "longitudinalAccelerationConfidence")]
4924        pub longitudinal_acceleration_confidence: AccelerationConfidence,
4925    }
4926    impl LongitudinalAcceleration {
4927        pub fn new(
4928            longitudinal_acceleration_value: LongitudinalAccelerationValue,
4929            longitudinal_acceleration_confidence: AccelerationConfidence,
4930        ) -> Self {
4931            Self {
4932                longitudinal_acceleration_value,
4933                longitudinal_acceleration_confidence,
4934            }
4935        }
4936    }
4937    #[doc = "*"]
4938    #[doc = " * This DE represents the vehicle acceleration at longitudinal direction in the centre of the mass of the empty vehicle."]
4939    #[doc = " * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11."]
4940    #[doc = " *"]
4941    #[doc = " * The value shall be set to:"]
4942    #[doc = " * - `-160` for acceleration values equal to or less than -16 m/s^2,"]
4943    #[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"]
4944    #[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,"]
4945    #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
4946    #[doc = " * - `161` when the data is unavailable. "]
4947    #[doc = " * "]
4948    #[doc = " * This acceleration is along the tangent plane of the road surface and does not include gravity components."]
4949    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationValue instead."]
4950    #[doc = " * "]
4951    #[doc = " * @note: The empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
4952    #[doc = " * @unit: 0,1 m/s^2"]
4953    #[doc = " * @category: Vehicle information"]
4954    #[doc = " * @revision: description revised in V2.1.1 (the meaning of 160 has changed slightly). T"]
4955    #[doc = " "]
4956    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4957    #[rasn(delegate, value("-160..=161"))]
4958    pub struct LongitudinalAccelerationValue(pub i16);
4959    #[doc = "* "]
4960    #[doc = " * This DF represents the estimated position along the longitudinal extension of a carriageway or lane. "]
4961    #[doc = " *"]
4962    #[doc = " * It shall include the following components: "]
4963    #[doc = " *"]
4964    #[doc = " * @field  longitudinalLanePositionValue: the mean value of the longitudinal position along the carriageway or lane w.r.t. an externally defined start position."]
4965    #[doc = " *"]
4966    #[doc = " * @field  longitudinalLanePositionConfidence: The confidence value associated to the value."]
4967    #[doc = " *"]
4968    #[doc = " * @category: Road topology information"]
4969    #[doc = " * @revision: created in V2.1.1, description revised in V2.2.1"]
4970    #[doc = " "]
4971    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
4972    #[rasn(automatic_tags)]
4973    pub struct LongitudinalLanePosition {
4974        #[rasn(identifier = "longitudinalLanePositionValue")]
4975        pub longitudinal_lane_position_value: LongitudinalLanePositionValue,
4976        #[rasn(identifier = "longitudinalLanePositionConfidence")]
4977        pub longitudinal_lane_position_confidence: LongitudinalLanePositionConfidence,
4978    }
4979    impl LongitudinalLanePosition {
4980        pub fn new(
4981            longitudinal_lane_position_value: LongitudinalLanePositionValue,
4982            longitudinal_lane_position_confidence: LongitudinalLanePositionConfidence,
4983        ) -> Self {
4984            Self {
4985                longitudinal_lane_position_value,
4986                longitudinal_lane_position_confidence,
4987            }
4988        }
4989    }
4990    #[doc = "* "]
4991    #[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 %."]
4992    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
4993    #[doc = " *"]
4994    #[doc = " * The value shall be set to:"]
4995    #[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,"]
4996    #[doc = " * - `1 022` if the confidence value is out of range i.e. greater than 102,1 m,"]
4997    #[doc = " * - `1 023` if the confidence value is unavailable."]
4998    #[doc = " *"]
4999    #[doc = " * @unit 0,1 metre"]
5000    #[doc = " * @category: GeoReference information"]
5001    #[doc = " * @revision: Created in V2.1.1"]
5002    #[doc = ""]
5003    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5004    #[rasn(delegate, value("0..=1023"))]
5005    pub struct LongitudinalLanePositionConfidence(pub u16);
5006    #[doc = "* "]
5007    #[doc = " * This DE represents the longitudinal offset of a map-matched position along a matched lane, beginning from the lane's starting point."]
5008    #[doc = " * "]
5009    #[doc = " * The value shall be set to:"]
5010    #[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,"]
5011    #[doc = " * - `32 766` if the longitudinal offset is out of range, i.e. greater than 3276,5 m,"]
5012    #[doc = " * - `32 767` if the longitudinal offset information is not available. "]
5013    #[doc = " *"]
5014    #[doc = " * @unit 0,1 metre"]
5015    #[doc = " * @category: GeoReference information"]
5016    #[doc = " * @revision: Created in V2.1.1"]
5017    #[doc = ""]
5018    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5019    #[rasn(delegate, value("0..=32767"))]
5020    pub struct LongitudinalLanePositionValue(pub u16);
5021    #[doc = "* "]
5022    #[doc = " * This DF shall contain a list of a lower triangular positive semi-definite matrices."]
5023    #[doc = " *"]
5024    #[doc = " * @category: Sensing information"]
5025    #[doc = " * @revision: Created in V2.1.1"]
5026    #[doc = ""]
5027    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5028    #[rasn(delegate, size("1..=4"))]
5029    pub struct LowerTriangularPositiveSemidefiniteMatrices(
5030        pub SequenceOf<LowerTriangularPositiveSemidefiniteMatrix>,
5031    );
5032    #[doc = "* "]
5033    #[doc = " * This DF represents a lower triangular positive semi-definite matrix. "]
5034    #[doc = " *"]
5035    #[doc = " * It shall include the following components: "]
5036    #[doc = " *"]
5037    #[doc = " * @field componentsIncludedIntheMatrix: the indication of which components of a @ref PerceivedObject are included in the matrix. "]
5038    #[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\"."]
5039    #[doc = " *"]
5040    #[doc = " * @field matrix: the list of cells of the lower triangular positive semi-definite matrix ordered by columns and by rows. "]
5041    #[doc = " *"]
5042    #[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."]
5043    #[doc = " * These components shall be included in the order or their appearance in componentsIncludedIntheMatrix."]
5044    #[doc = " * Each column \"i\" of the lowerTriangularCorrelationMatrixColumns contains k-(i-1) values."]
5045    #[doc = " *"]
5046    #[doc = " * @category: Sensing information"]
5047    #[doc = " * @revision: Created in V2.1.1"]
5048    #[doc = ""]
5049    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5050    #[rasn(automatic_tags)]
5051    pub struct LowerTriangularPositiveSemidefiniteMatrix {
5052        #[rasn(identifier = "componentsIncludedIntheMatrix")]
5053        pub components_included_inthe_matrix: MatrixIncludedComponents,
5054        pub matrix: LowerTriangularPositiveSemidefiniteMatrixColumns,
5055    }
5056    impl LowerTriangularPositiveSemidefiniteMatrix {
5057        pub fn new(
5058            components_included_inthe_matrix: MatrixIncludedComponents,
5059            matrix: LowerTriangularPositiveSemidefiniteMatrixColumns,
5060        ) -> Self {
5061            Self {
5062                components_included_inthe_matrix,
5063                matrix,
5064            }
5065        }
5066    }
5067    #[doc = "* "]
5068    #[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."]
5069    #[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."]
5070    #[doc = " *"]
5071    #[doc = " * @category: Sensing information"]
5072    #[doc = " * @revision: Created in V2.1.1, extension indicator added in V2.2.1"]
5073    #[doc = ""]
5074    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5075    #[rasn(delegate, size("1..=13", extensible))]
5076    pub struct LowerTriangularPositiveSemidefiniteMatrixColumns(pub SequenceOf<CorrelationColumn>);
5077    #[doc = "*"]
5078    #[doc = " * This DF indicates a position on a topology description transmitted in a MAPEM according to ETSI TS 103 301 [15]."]
5079    #[doc = " *"]
5080    #[doc = " * It shall include the following components: "]
5081    #[doc = " * "]
5082    #[doc = " * @field mapReference: optionally identifies the MAPEM containing the topology information."]
5083    #[doc = " * It is absent if the MAPEM topology is known from the context."]
5084    #[doc = " * "]
5085    #[doc = " * @field laneId: optionally identifies the lane in the road segment or intersection topology on which the position is located."]
5086    #[doc = " *"]
5087    #[doc = " * @field connectionId: optionally identifies the connection inside the conflict area of an intersection, i.e. it identifies a trajectory for travelling through the"]
5088    #[doc = " * conflict area of an intersection which connects e.g an ingress with an egress lane."]
5089    #[doc = " *"]
5090    #[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."]
5091    #[doc = " * "]
5092    #[doc = " * @category: Road topology information"]
5093    #[doc = " * @revision: Created in V2.1.1, definition of longitudinalLanePosition amended in V2.2.1"]
5094    #[doc = " "]
5095    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5096    #[rasn(automatic_tags)]
5097    #[non_exhaustive]
5098    pub struct MapPosition {
5099        #[rasn(identifier = "mapReference")]
5100        pub map_reference: Option<MapReference>,
5101        #[rasn(identifier = "laneId")]
5102        pub lane_id: Option<Identifier1B>,
5103        #[rasn(identifier = "connectionId")]
5104        pub connection_id: Option<Identifier1B>,
5105        #[rasn(identifier = "longitudinalLanePosition")]
5106        pub longitudinal_lane_position: Option<LongitudinalLanePosition>,
5107    }
5108    impl MapPosition {
5109        pub fn new(
5110            map_reference: Option<MapReference>,
5111            lane_id: Option<Identifier1B>,
5112            connection_id: Option<Identifier1B>,
5113            longitudinal_lane_position: Option<LongitudinalLanePosition>,
5114        ) -> Self {
5115            Self {
5116                map_reference,
5117                lane_id,
5118                connection_id,
5119                longitudinal_lane_position,
5120            }
5121        }
5122    }
5123    #[doc = "*"]
5124    #[doc = " * This DF provides the reference to the information contained in a MAPEM according to ETSI TS 103 301 [15]. "]
5125    #[doc = " *"]
5126    #[doc = " * The following options are provided:"]
5127    #[doc = " * "]
5128    #[doc = " * @field roadsegment: option that identifies the description of a road segment contained in a MAPEM."]
5129    #[doc = " * "]
5130    #[doc = " * @field intersection: option that identifies the description of an intersection contained in a MAPEM."]
5131    #[doc = " *"]
5132    #[doc = " * @category: Road topology information"]
5133    #[doc = " * @revision: Created in V2.1.1"]
5134    #[doc = " "]
5135    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5136    #[rasn(choice, automatic_tags)]
5137    pub enum MapReference {
5138        roadsegment(RoadSegmentReferenceId),
5139        intersection(IntersectionReferenceId),
5140    }
5141    #[doc = "*"]
5142    #[doc = " * This DF shall contain a list of @ref MapReference."]
5143    #[doc = " *"]
5144    #[doc = " * @category: Road topology information"]
5145    #[doc = " * @revision: Created in V2.2.1"]
5146    #[doc = ""]
5147    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5148    #[rasn(delegate, size("1..=8", extensible))]
5149    pub struct MapReferences(pub SequenceOf<MapReference>);
5150    #[doc = "* "]
5151    #[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. "]
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..=16", extensible))]
5158    pub struct MapemConfiguration(pub SequenceOf<MapemElementReference>);
5159    #[doc = "* "]
5160    #[doc = " * This DF provides references to MAPEM connections using a list of @ref Identifier1B."]
5161    #[doc = " * Note: connections are  allowed �maneuvers� (e.g. an ingress / egress relation) on an intersection."]
5162    #[doc = " *"]
5163    #[doc = " * @category: Road topology information"]
5164    #[doc = " * @revision: Created in V2.2.1"]
5165    #[doc = ""]
5166    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5167    #[rasn(delegate, size("1..=8", extensible))]
5168    pub struct MapemConnectionList(pub SequenceOf<Identifier1B>);
5169    #[doc = "* "]
5170    #[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. "]
5171    #[doc = " * "]
5172    #[doc = " * It shall include the following components: "]
5173    #[doc = " * "]
5174    #[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."]
5175    #[doc = " * "]
5176    #[doc = " * @field laneIds: the optional list of the identifiers of the lanes to be referenced. "]
5177    #[doc = " * "]
5178    #[doc = " * @field connectionIds: the optional list of the identifiers of the connections to be referenced. "]
5179    #[doc = " *"]
5180    #[doc = " * @category: Road topology information"]
5181    #[doc = " * @revision: Created in V2.2.1"]
5182    #[doc = ""]
5183    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5184    #[rasn(automatic_tags)]
5185    #[non_exhaustive]
5186    pub struct MapemElementReference {
5187        #[rasn(identifier = "mapReference")]
5188        pub map_reference: Option<MapReference>,
5189        #[rasn(identifier = "laneIds")]
5190        pub lane_ids: Option<MapemLaneList>,
5191        #[rasn(identifier = "connectionIds")]
5192        pub connection_ids: Option<MapemConnectionList>,
5193    }
5194    impl MapemElementReference {
5195        pub fn new(
5196            map_reference: Option<MapReference>,
5197            lane_ids: Option<MapemLaneList>,
5198            connection_ids: Option<MapemConnectionList>,
5199        ) -> Self {
5200            Self {
5201                map_reference,
5202                lane_ids,
5203                connection_ids,
5204            }
5205        }
5206    }
5207    #[doc = "* "]
5208    #[doc = " * This DF provides references to MAPEM lanes using a list of @ref Identifier1B."]
5209    #[doc = " *"]
5210    #[doc = " * @category: Road topology information"]
5211    #[doc = " * @revision: Created in 2.2.1"]
5212    #[doc = ""]
5213    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5214    #[rasn(delegate, size("1..=8", extensible))]
5215    pub struct MapemLaneList(pub SequenceOf<Identifier1B>);
5216    #[doc = "*"]
5217    #[doc = " * This DE indicates the components of an @ref PerceivedObject that are included in the @ref LowerTriangularPositiveSemidefiniteMatrix."]
5218    #[doc = " *"]
5219    #[doc = " * The corresponding bit shall be set to 1 if the component is included:"]
5220    #[doc = " * - 0 - `xCoordinate`                   - when the component xCoordinate of the component @ref CartesianPosition3dWithConfidence is included,"]
5221    #[doc = " * - 1 - `yCoordinate`                   - when the component yCoordinate of the component @ref CartesianPosition3dWithConfidence is included,   "]
5222    #[doc = " * - 2 - `zCoordinate`                   - when the component zCoordinate of the component @ref CartesianPosition3dWithConfidence is included, "]
5223    #[doc = " * - 3 - `xVelocityOrVelocityMagnitude`  - when the component xVelocity of the component @ref VelocityCartesian or the component VelocityMagnitude of the component @ref VelocityPolarWithZ is included,   "]
5224    #[doc = " * - 4 - `yVelocityOrVelocityDirection`  - when the component yVelocity of the component @ref VelocityCartesian or the component VelocityDirection of the component @ref VelocityPolarWithZ is included,   "]
5225    #[doc = " * - 5 - `zVelocity`                     - when the component zVelocity of the component @ref VelocityCartesian or of the component @ref VelocityPolarWithZ is included,"]
5226    #[doc = " * - 6 - `xAccelOrAccelMagnitude`        - when the component xAcceleration of the component @ref AccelerationCartesian or the component AccelerationMagnitude of the component @ref AccelerationPolarWithZ is included,  "]
5227    #[doc = " * - 7 - `yAccelOrAccelDirection`        - when the component yAcceleration of the component @ref AccelerationCartesian or the component AccelerationDirection of the component @ref AccelerationPolarWithZ is included,   "]
5228    #[doc = " * - 8 - `zAcceleration`                 - when the component zAcceleration of the component @ref AccelerationCartesian or of the component @ref AccelerationPolarWithZ is included,"]
5229    #[doc = " * - 9 - `zAngle`                        - when the component zAngle is included,"]
5230    #[doc = " * - 10 - `yAngle`                       - when the component yAngle is included,   "]
5231    #[doc = " * - 11 - `xAngle`                       - when the component xAngle is included,   "]
5232    #[doc = " * - 12 - `zAngularVelocity`             - when the component zAngularVelocity is included.   "]
5233    #[doc = " *"]
5234    #[doc = " * Otherwise, it shall be set to 0."]
5235    #[doc = " *"]
5236    #[doc = " * @category: Sensing information"]
5237    #[doc = " * @revision: Created in V2.1.1"]
5238    #[doc = " "]
5239    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5240    #[rasn(delegate, size("13", extensible))]
5241    pub struct MatrixIncludedComponents(pub BitString);
5242    #[doc = "* "]
5243    #[doc = " * This DE represents the type of facility layer message."]
5244    #[doc = " *"]
5245    #[doc = " *  The value shall be set to:"]
5246    #[doc = " *\t- 1  - `denm`              - for Decentralized Environmental Notification Message (DENM) as specified in ETSI EN 302 637-3 [2],"]
5247    #[doc = " *  - 2  - `cam`               - for Cooperative Awareness Message (CAM) as specified in ETSI EN 302 637-2 [1],"]
5248    #[doc = " *  - 3  - `poim`              - for Point of Interest Message as specified in ETSI TS 103 916 [9],"]
5249    #[doc = " *  - 4  - `spatem`            - for Signal Phase And Timing Extended Message (SPATEM) as specified in ETSI TS 103 301 [15],"]
5250    #[doc = " *  - 5  - `mapem`             - for MAP Extended Message (MAPEM) as specified in ETSI TS 103 301 [15],"]
5251    #[doc = " *  - 6  - `ivim`              - for in Vehicle Information Message (IVIM) as specified in ETSI TS 103 301 [15],"]
5252    #[doc = " *  - 7  - `rfu1`              - reserved for future usage,"]
5253    #[doc = " *  - 8  - `rfu2`              - reserved for future usage,"]
5254    #[doc = " *  - 9  - `srem`              - for Signal Request Extended Message as specified in ETSI TS 103 301 [15],"]
5255    #[doc = " *  - 10 - `ssem`              - for Signal request Status Extended Message as specified in ETSI TS 103 301 [15],"]
5256    #[doc = " *  - 11 - `evcsn`             - for Electrical Vehicle Charging Spot Notification message as specified in ETSI TS 101 556-1 [9],"]
5257    #[doc = " *  - 12 - `saem`              - for Services Announcement Extended Message as specified in ETSI EN 302 890-1 [17],"]
5258    #[doc = " *  - 13 - `rtcmem`            - for Radio Technical Commission for Maritime Services Extended Message (RTCMEM) as specified in ETSI TS 103 301 [15],"]
5259    #[doc = " *  - 14 - `cpm`               - for Collective Perception Message (CPM) as specified in ETSI TS 103 324 [10], "]
5260    #[doc = " *  - 15 - `imzm`              - for Interference Management Zone Message (IMZM) as specified in ETSI TS 103 724 [13],"]
5261    #[doc = " *  - 16 - `vam`               - for Vulnerable Road User Awareness Message as specified in ETSI TS 130 300-3 [12], "]
5262    #[doc = " *  - 17 - `dsm`               - reserved for Diagnosis, logging and Status Message,"]
5263    #[doc = " *  - 18 - `mim`               - for Marshalling Infrastructure Message as specified in ETSI TS TS 103 882 [11],"]
5264    #[doc = " *  - 19 - `mvm`               - for Marshalling Vehicle Message as specified in ETSI TS TS 103 882 [11],"]
5265    #[doc = " *  - 20 - `mcm`               - reserved for Manoeuvre Coordination Message,"]
5266    #[doc = " *  - 21 - `pim`               - reserved for Parking Information Message, "]
5267    #[doc = " *  - 22-255                   - reserved for future usage."]
5268    #[doc = " *"]
5269    #[doc = " * @category: Communication information"]
5270    #[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, "]
5271    #[doc = "              value 21 assigned in V2.4.1"]
5272    #[doc = " "]
5273    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5274    #[rasn(delegate, value("0..=255"))]
5275    pub struct MessageId(pub u8);
5276    #[doc = "*"]
5277    #[doc = " * This DF indicates a message rate."]
5278    #[doc = " *"]
5279    #[doc = " * @field mantissa: indicates the mantissa."]
5280    #[doc = " *"]
5281    #[doc = " * @field exponent: indicates the exponent."]
5282    #[doc = " *"]
5283    #[doc = " * The specified message rate is: mantissa*(10^exponent) "]
5284    #[doc = " *"]
5285    #[doc = " * @unit: Hz"]
5286    #[doc = " * @category: Communication information"]
5287    #[doc = " * @revision: Created in V2.1.1"]
5288    #[doc = " "]
5289    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5290    #[rasn(automatic_tags)]
5291    pub struct MessageRateHz {
5292        #[rasn(value("1..=100"))]
5293        pub mantissa: u8,
5294        #[rasn(value("-5..=2"))]
5295        pub exponent: i8,
5296    }
5297    impl MessageRateHz {
5298        pub fn new(mantissa: u8, exponent: i8) -> Self {
5299            Self { mantissa, exponent }
5300        }
5301    }
5302    #[doc = "*"]
5303    #[doc = " * This DF provides information about a message with respect to the segmentation process on facility layer at the sender."]
5304    #[doc = " *"]
5305    #[doc = " * It shall include the following components: "]
5306    #[doc = " * "]
5307    #[doc = " * @field totalMsgNo: indicates the total number of messages that have been assembled on the transmitter side to encode the information "]
5308    #[doc = " * during the same messsage generation process."]
5309    #[doc = " *"]
5310    #[doc = " * @field thisMsgNo: indicates the position of the message within of the total set of messages generated during the same message generation process."]
5311    #[doc = " *"]
5312    #[doc = " * @category: Communication information"]
5313    #[doc = " * @revision: Created in V2.1.1, description revised in V2.2.1"]
5314    #[doc = " "]
5315    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5316    #[rasn(automatic_tags)]
5317    pub struct MessageSegmentationInfo {
5318        #[rasn(identifier = "totalMsgNo")]
5319        pub total_msg_no: CardinalNumber3b,
5320        #[rasn(identifier = "thisMsgNo")]
5321        pub this_msg_no: OrdinalNumber3b,
5322    }
5323    impl MessageSegmentationInfo {
5324        pub fn new(total_msg_no: CardinalNumber3b, this_msg_no: OrdinalNumber3b) -> Self {
5325            Self {
5326                total_msg_no,
5327                this_msg_no,
5328            }
5329        }
5330    }
5331    #[doc = "* "]
5332    #[doc = " * This DF provides information about the source of and confidence in information."]
5333    #[doc = " *"]
5334    #[doc = " * It shall include the following components: "]
5335    #[doc = " * "]
5336    #[doc = " * @field usedDetectionInformation: the type of sensor(s) that is used to provide the detection information."]
5337    #[doc = " * "]
5338    #[doc = " * @field usedStoredInformation: the type of source of the stored information. "]
5339    #[doc = " *"]
5340    #[doc = " * @field confidenceValue: an optional confidence value associated to the information. "]
5341    #[doc = " * "]
5342    #[doc = " * @category: Basic information"]
5343    #[doc = " * @revision: Created in V2.2.1"]
5344    #[doc = ""]
5345    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5346    #[rasn(automatic_tags)]
5347    #[non_exhaustive]
5348    pub struct MetaInformation {
5349        #[rasn(identifier = "usedDetectionInformation")]
5350        pub used_detection_information: SensorTypes,
5351        #[rasn(identifier = "usedStoredInformation")]
5352        pub used_stored_information: StoredInformationType,
5353        #[rasn(identifier = "confidenceValue")]
5354        pub confidence_value: Option<ConfidenceLevel>,
5355    }
5356    impl MetaInformation {
5357        pub fn new(
5358            used_detection_information: SensorTypes,
5359            used_stored_information: StoredInformationType,
5360            confidence_value: Option<ConfidenceLevel>,
5361        ) -> Self {
5362            Self {
5363                used_detection_information,
5364                used_stored_information,
5365                confidence_value,
5366            }
5367        }
5368    }
5369    #[doc = "*"]
5370    #[doc = " * This DF shall contain a list of @ref MitigationPerTechnologyClass."]
5371    #[doc = " *"]
5372    #[doc = " * @category: Communication information"]
5373    #[doc = " * @revision: Created in V2.1.1"]
5374    #[doc = ""]
5375    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5376    #[rasn(delegate, size("1..=8"))]
5377    pub struct MitigationForTechnologies(pub SequenceOf<MitigationPerTechnologyClass>);
5378    #[doc = "*"]
5379    #[doc = " * This DF represents a set of mitigation parameters for a specific technology, as specified in ETSI TS 103 724 [24], clause 7."]
5380    #[doc = " *"]
5381    #[doc = " * It shall include the following components: "]
5382    #[doc = " *"]
5383    #[doc = " * @field accessTechnologyClass:  channel access technology to which this mitigation is intended to be applied."]
5384    #[doc = " *"]
5385    #[doc = " * @field lowDutyCycle: duty cycle limit."]
5386    #[doc = " * @unit: 0,01 % steps"]
5387    #[doc = " *"]
5388    #[doc = " * @field powerReduction: the delta value of power to be reduced."]
5389    #[doc = " * @unit: dB"]
5390    #[doc = " *"]
5391    #[doc = " * @field dmcToffLimit: idle time limit as defined in ETSI TS 103 175 [19]."]
5392    #[doc = " * @unit: ms"]
5393    #[doc = " *"]
5394    #[doc = " * @field dmcTonLimit: Transmission duration limit, as defined in ETSI EN 302 571 [20]."]
5395    #[doc = " * @unit: ms"]
5396    #[doc = " *"]
5397    #[doc = " * @note: All parameters are optional, as they may not apply to some of the technologies or"]
5398    #[doc = " * interference management zone types. Specification details are in ETSI TS 103 724 [24], clause 7. "]
5399    #[doc = " *"]
5400    #[doc = " * @category: Communication information"]
5401    #[doc = " * @revision: Created in V2.1.1"]
5402    #[doc = " "]
5403    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5404    #[rasn(automatic_tags)]
5405    #[non_exhaustive]
5406    pub struct MitigationPerTechnologyClass {
5407        #[rasn(identifier = "accessTechnologyClass")]
5408        pub access_technology_class: AccessTechnologyClass,
5409        #[rasn(value("0..=10000"), identifier = "lowDutyCycle")]
5410        pub low_duty_cycle: Option<u16>,
5411        #[rasn(value("0..=30"), identifier = "powerReduction")]
5412        pub power_reduction: Option<u8>,
5413        #[rasn(value("0..=1200"), identifier = "dmcToffLimit")]
5414        pub dmc_toff_limit: Option<u16>,
5415        #[rasn(value("0..=20"), identifier = "dmcTonLimit")]
5416        pub dmc_ton_limit: Option<u8>,
5417    }
5418    impl MitigationPerTechnologyClass {
5419        pub fn new(
5420            access_technology_class: AccessTechnologyClass,
5421            low_duty_cycle: Option<u16>,
5422            power_reduction: Option<u8>,
5423            dmc_toff_limit: Option<u16>,
5424            dmc_ton_limit: Option<u8>,
5425        ) -> Self {
5426            Self {
5427                access_technology_class,
5428                low_duty_cycle,
5429                power_reduction,
5430                dmc_toff_limit,
5431                dmc_ton_limit,
5432            }
5433        }
5434    }
5435    #[doc = "*"]
5436    #[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. "]
5437    #[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."]
5438    #[doc = " *"]
5439    #[doc = " * The value shall be set to:"]
5440    #[doc = " * - `tenth`      - to indicate a factor of 0,1,        "]
5441    #[doc = " * - `half`       - to indicate a factor of 0,5,        "]
5442    #[doc = " * - `two`        - to indicate a factor of 2,        "]
5443    #[doc = " * - `three`      - to indicate a factor of 3,        "]
5444    #[doc = " * - `five`       - to indicate a factor of 5,        "]
5445    #[doc = " * - `tenth`      - to indicate a factor of 10,        "]
5446    #[doc = " * - `fifthy`     - to indicate a factor of 50,        "]
5447    #[doc = " * - `hundred`    - to indicate a factor of 100,        "]
5448    #[doc = " *"]
5449    #[doc = " * @category: Basic information"]
5450    #[doc = " * @revision: Created in V2.4.1"]
5451    #[doc = " "]
5452    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5453    #[rasn(enumerated)]
5454    #[non_exhaustive]
5455    pub enum MultiplicativeFactor {
5456        tenth = 0,
5457        half = 1,
5458        two = 2,
5459        three = 3,
5460        five = 4,
5461        ten = 5,
5462        fifty = 6,
5463        hundred = 7,
5464    }
5465    #[doc = "*"]
5466    #[doc = " * This DE represents the number of occupants in a vehicle."]
5467    #[doc = " *"]
5468    #[doc = " * The value shall be set to:"]
5469    #[doc = " * - `n` (`n >= 0` and `n < 126`) for the number n of occupants,"]
5470    #[doc = " * - `126` for values equal to or higher than 125,"]
5471    #[doc = " * - `127` if information is not available."]
5472    #[doc = " *"]
5473    #[doc = " * @unit: 1 person"]
5474    #[doc = " * @category: Vehicle information"]
5475    #[doc = " * @revision: Editorial update in V2.1.1"]
5476    #[doc = " "]
5477    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5478    #[rasn(delegate, value("0..=127"))]
5479    pub struct NumberOfOccupants(pub u8);
5480    #[doc = "* "]
5481    #[doc = " * This DF indicates both the class and associated subclass that best describes an object."]
5482    #[doc = " *"]
5483    #[doc = " * The following options are available:"]
5484    #[doc = " *"]
5485    #[doc = " * @field vehicleSubClass: the object is a road vehicle and the specific subclass is specified."]
5486    #[doc = " *"]
5487    #[doc = " * @field vruSubClass: the object is a VRU and the specific subclass is specified."]
5488    #[doc = " *"]
5489    #[doc = " * @field groupSubClass: the object is a VRU group or cluster and the cluster information is specified."]
5490    #[doc = " *"]
5491    #[doc = " * @field otherSubClass: the object is of a different type than the above and the specific subclass is specified."]
5492    #[doc = " *"]
5493    #[doc = " * @category: Sensing information"]
5494    #[doc = " * @revision: Created in V2.1.1"]
5495    #[doc = " "]
5496    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5497    #[rasn(choice, automatic_tags)]
5498    #[non_exhaustive]
5499    pub enum ObjectClass {
5500        #[rasn(value("0..=14"))]
5501        vehicleSubClass(TrafficParticipantType),
5502        vruSubClass(VruProfileAndSubprofile),
5503        #[rasn(value("0.."))]
5504        groupSubClass(VruClusterInformation),
5505        otherSubClass(OtherSubClass),
5506    }
5507    #[doc = "* "]
5508    #[doc = " * This DF shall contain a list of object classes."]
5509    #[doc = " *"]
5510    #[doc = " * @category: Sensing information"]
5511    #[doc = " * @revision: Created in V2.1.1"]
5512    #[doc = ""]
5513    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5514    #[rasn(delegate, size("1..=8"))]
5515    pub struct ObjectClassDescription(pub SequenceOf<ObjectClassWithConfidence>);
5516    #[doc = "* "]
5517    #[doc = " * This DF represents the classification of a detected object together with a confidence level."]
5518    #[doc = " *"]
5519    #[doc = " * It shall include the following components: "]
5520    #[doc = " *"]
5521    #[doc = " * @field objectClass: the class of the object."]
5522    #[doc = " *"]
5523    #[doc = " * @field Confidence: the associated confidence level."]
5524    #[doc = " *"]
5525    #[doc = " * @category: Sensing information"]
5526    #[doc = " * @revision: Created in V2.1.1"]
5527    #[doc = ""]
5528    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5529    #[rasn(automatic_tags)]
5530    pub struct ObjectClassWithConfidence {
5531        #[rasn(identifier = "objectClass")]
5532        pub object_class: ObjectClass,
5533        pub confidence: ConfidenceLevel,
5534    }
5535    impl ObjectClassWithConfidence {
5536        pub fn new(object_class: ObjectClass, confidence: ConfidenceLevel) -> Self {
5537            Self {
5538                object_class,
5539                confidence,
5540            }
5541        }
5542    }
5543    #[doc = "* "]
5544    #[doc = " * This DF represents a dimension of an object together with a confidence value."]
5545    #[doc = " *"]
5546    #[doc = " * It shall include the following components: "]
5547    #[doc = " * "]
5548    #[doc = " * @field value: the object dimension value which can be estimated as the mean of the current distribution."]
5549    #[doc = " *"]
5550    #[doc = " * @field confidence: the associated confidence value."]
5551    #[doc = " *"]
5552    #[doc = " * @category: Sensing information"]
5553    #[doc = " * @revision: Created in V2.1.1"]
5554    #[doc = ""]
5555    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5556    #[rasn(automatic_tags)]
5557    pub struct ObjectDimension {
5558        pub value: ObjectDimensionValue,
5559        pub confidence: ObjectDimensionConfidence,
5560    }
5561    impl ObjectDimension {
5562        pub fn new(value: ObjectDimensionValue, confidence: ObjectDimensionConfidence) -> Self {
5563            Self { value, confidence }
5564        }
5565    }
5566    #[doc = "* "]
5567    #[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 %."]
5568    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
5569    #[doc = " *"]
5570    #[doc = " * The value shall be set to:"]
5571    #[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,"]
5572    #[doc = " * - `31` if the confidence value is out of range i.e. greater than 3,0 m,"]
5573    #[doc = " * - `32` if the confidence value is unavailable."]
5574    #[doc = " *"]
5575    #[doc = " * @unit 0,1 m"]
5576    #[doc = " * @category: Sensing information"]
5577    #[doc = " * @revision: Created in V2.1.1 "]
5578    #[doc = ""]
5579    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5580    #[rasn(delegate, value("1..=32"))]
5581    pub struct ObjectDimensionConfidence(pub u8);
5582    #[doc = "* "]
5583    #[doc = " * This DE represents a single dimension of an object."]
5584    #[doc = " *"]
5585    #[doc = " * The value shall be set to:"]
5586    #[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,"]
5587    #[doc = " * - `255` if the dimension is out of range i.e. greater than 25,4 m,"]
5588    #[doc = " * - `256` if the dimension is unavailable."]
5589    #[doc = " *"]
5590    #[doc = " * @unit 0,1 m"]
5591    #[doc = " * @category: Basic information"]
5592    #[doc = " * @revision: Created in V2.1.1, corrected the wording in V2.4.1 "]
5593    #[doc = ""]
5594    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5595    #[rasn(delegate, value("1..=256"))]
5596    pub struct ObjectDimensionValue(pub u16);
5597    #[doc = "*"]
5598    #[doc = " * This DE indicates the face or part of a face of a solid object."]
5599    #[doc = " *"]
5600    #[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:"]
5601    #[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,"]
5602    #[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,"]
5603    #[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. "]
5604    #[doc = " *"]
5605    #[doc = " * Note: It is permissible to derive the required object dimensions and orientation from models to provide a best guess."]
5606    #[doc = " * "]
5607    #[doc = " * @category: Basic information"]
5608    #[doc = " * @revision: V2.1.1"]
5609    #[doc = ""]
5610    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
5611    #[rasn(enumerated)]
5612    pub enum ObjectFace {
5613        front = 0,
5614        sideLeftFront = 1,
5615        sideLeftBack = 2,
5616        sideRightFront = 3,
5617        sideRightBack = 4,
5618        back = 5,
5619    }
5620    #[doc = "* "]
5621    #[doc = " * This DE represents a single-value indication about the overall information quality of a perceived object."]
5622    #[doc = " * "]
5623    #[doc = " * The value shall be set to:  "]
5624    #[doc = " * - `0`                        : if there is no confidence in detected object, e.g. for \"ghost\"-objects or if confidence could not be computed,"]
5625    #[doc = " * - `n` (`n > 0` and `n < 15`) : for the applicable confidence value,"]
5626    #[doc = " * - `15`                       : if there is full confidence in the detected Object."]
5627    #[doc = " * "]
5628    #[doc = " * @unit n/a"]
5629    #[doc = " * @category: Sensing information"]
5630    #[doc = " * @revision: Created in V2.1.1 "]
5631    #[doc = ""]
5632    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5633    #[rasn(delegate, value("0..=15"))]
5634    pub struct ObjectPerceptionQuality(pub u8);
5635    #[doc = "*"]
5636    #[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. "]
5637    #[doc = " *"]
5638    #[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, "]
5639    #[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 "]
5640    #[doc = " * probability that exactly all the provided lanes are occupied. "]
5641    #[doc = " *"]
5642    #[doc = " * It shall include the following components: "]
5643    #[doc = " *"]
5644    #[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. "]
5645    #[doc = " * Lanes that are partially occupied can be described using the component lanePositionWithLateralDetails of @ref  Options, with the following constraints: "]
5646    #[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 "]
5647    #[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 , "]
5648    #[doc = " * and/or the last entry shall contain the component distanceToRightBorder > 0; the respective other components of these entries shall be set to 0."]
5649    #[doc = " * "]
5650    #[doc = " * @field mapBased: optional lane information described in the context of a MAPEM as specified in ETSI TS 103 301 [15]. "]
5651    #[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 "]
5652    #[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. "]
5653    #[doc = " *"]
5654    #[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 "]
5655    #[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."]
5656    #[doc = " *"]
5657    #[doc = " * @category: Road Topology information"]
5658    #[doc = " * @revision: Created in V2.2.1"]
5659    #[doc = " "]
5660    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5661    #[rasn(automatic_tags)]
5662    #[non_exhaustive]
5663    pub struct OccupiedLanesWithConfidence {
5664        #[rasn(size("1..=4"), identifier = "lanePositionBased")]
5665        pub lane_position_based: SequenceOf<LanePositionOptions>,
5666        #[rasn(size("1..=4"), identifier = "mapBased")]
5667        pub map_based: Option<SequenceOf<MapPosition>>,
5668        pub confidence: MetaInformation,
5669    }
5670    impl OccupiedLanesWithConfidence {
5671        pub fn new(
5672            lane_position_based: SequenceOf<LanePositionOptions>,
5673            map_based: Option<SequenceOf<MapPosition>>,
5674            confidence: MetaInformation,
5675        ) -> Self {
5676            Self {
5677                lane_position_based,
5678                map_based,
5679                confidence,
5680            }
5681        }
5682    }
5683    #[doc = "*"]
5684    #[doc = " * This DE represents a time period to describe the opening days and hours of a Point of Interest."]
5685    #[doc = " * (for example local commerce)."]
5686    #[doc = " *"]
5687    #[doc = " * @category: Basic information"]
5688    #[doc = " * @revision: V1.3.1"]
5689    #[doc = " "]
5690    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5691    #[rasn(delegate)]
5692    pub struct OpeningDaysHours(pub Utf8String);
5693    #[doc = "*"]
5694    #[doc = " * The DE represents an ordinal number that indicates the position of an element in a set. "]
5695    #[doc = " * "]
5696    #[doc = " * @category: Basic information"]
5697    #[doc = " * @revision: Created in V2.1.1"]
5698    #[doc = ""]
5699    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5700    #[rasn(delegate, value("0..=255"))]
5701    pub struct OrdinalNumber1B(pub u8);
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("1..=8"))]
5710    pub struct OrdinalNumber3b(pub u8);
5711    #[doc = "* "]
5712    #[doc = " * This DE indicates the subclass of a detected object for @ref ObjectClass \"otherSubclass\"."]
5713    #[doc = " *"]
5714    #[doc = " * The value shall be set to:"]
5715    #[doc = " * - `0` - unknown          - if the subclass is unknown."]
5716    #[doc = " * - `1` - singleObject     - if the object is a single object."]
5717    #[doc = " * - `2` - multipleObjects  - if the object is a group of multiple objects."]
5718    #[doc = " * - `3` - bulkMaterial     - if the object is a bulk material."]
5719    #[doc = " *"]
5720    #[doc = " * @category: Sensing information"]
5721    #[doc = " * @revision: Created in V2.1.1"]
5722    #[doc = " "]
5723    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5724    #[rasn(delegate, value("0..=255"))]
5725    pub struct OtherSubClass(pub u8);
5726    #[doc = "* "]
5727    #[doc = " * This DE indicates the arrangement of parking space in a parking area."]
5728    #[doc = " *"]
5729    #[doc = " * The value shall be set to:"]
5730    #[doc = " * - `0` to indicate that the parking spaces are arranged in a line and parallel to a road or curb,"]
5731    #[doc = " * - `1` to indicate that the parking spaces are arranged side-by-side and diagonally to a curb,"]
5732    #[doc = " * - `2` to indicate that the parking spaces are arranged side-by-side and perpendicularly to a curb,"]
5733    #[doc = " * - `3` to indicate that the parking spaces are arranged so that vehicles form a queue,"]
5734    #[doc = " * - `4` to indicate that the parking spaces are arranged in a mixed fashion, "]
5735    #[doc = " * - 5-7 - reserved for future usage. "]
5736    #[doc = " *"]
5737    #[doc = " * @category: Road topology information"]
5738    #[doc = " * @revision: Created in V2.3.1"]
5739    #[doc = ""]
5740    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5741    #[rasn(delegate, value("0..=7"))]
5742    pub struct ParkingAreaArrangementType(pub u8);
5743    #[doc = "* "]
5744    #[doc = " * This DF indicates the allowed type of occupancy of a parking space/area in terms of time and/or usage."]
5745    #[doc = " *"]
5746    #[doc = " * The following options are available:"]
5747    #[doc = " * "]
5748    #[doc = " * @field unknown: indicates that the allowed type of occupancy is unknown."]
5749    #[doc = " *"]
5750    #[doc = " * @field unlimitedOccupancy: indicates that it can be occupied without limits."]
5751    #[doc = " *"]
5752    #[doc = " * @field onlyWhileCharging: indicates that it can be occupied only while charging an electric vehicle."]
5753    #[doc = " *"]
5754    #[doc = " * @field limitedDuration: indicates that it can be occupied for a limited and indicated duration in minutes."]
5755    #[doc = " *"]
5756    #[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."]
5757    #[doc = " *"]
5758    #[doc = " * @field parkingAllowedUntil: indicates that it can be occupied only until an indicated moment in time."]
5759    #[doc = " *"]
5760    #[doc = " * @field forcedParkingUntil: indicates that it can be occupied and departure is possible only after an indicated moment in time."]
5761    #[doc = " *"]
5762    #[doc = " * @category: Road Topology information"]
5763    #[doc = " * @revision: Created in V2.3.1 "]
5764    #[doc = ""]
5765    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5766    #[rasn(choice, automatic_tags)]
5767    #[non_exhaustive]
5768    pub enum ParkingOccupancyInfo {
5769        unknown(()),
5770        unlimitedOccupancy(()),
5771        onlyWhileCharging(()),
5772        limitedDuration(Integer),
5773        onlyWhileChargingLimitedDuration(Integer),
5774        parkingAllowedUntil(TimestampIts),
5775        forcedParkingUntil(TimestampIts),
5776    }
5777    #[doc = "* "]
5778    #[doc = " * This DE indicates the type of a reservation of a parking space/area."]
5779    #[doc = " *"]
5780    #[doc = " * The value shall be set to:"]
5781    #[doc = " * - `0` to indicate that it is reserved to disabled persons,"]
5782    #[doc = " * - `1` to indicate that it is reserved to pregnant women,"]
5783    #[doc = " * - `2` to indicate that it is reserved to women,"]
5784    #[doc = " * - `3` to indicate that it is reserved to parents with small children,"]
5785    #[doc = " * - `4` to indicate that it is reserved for loading and unloading of goods,"]
5786    #[doc = " * - `5` to indicate that it is reserved for manual charging of electric vehicles,"]
5787    #[doc = " * - `6` to indicate that it is reserved for automated charging of electric vehicles,"]
5788    #[doc = " * - `7` to indicate that it is reserved for vehicles carrying out refrigerated transport of goods,"]
5789    #[doc = " * - `8` to indicate that it is reserved for VIPs,"]
5790    #[doc = " * - `9` to indicate that it is reserved for pre-booked reservations only,"]
5791    #[doc = " * - `10` to indicate that it is not reserved and can still be reserved,"]
5792    #[doc = " * - `11` to indicate that a reservation type is not applicable, i.e. that it cannot be reserved,"]
5793    #[doc = " * - `12` to indicate that it reserved for drop-off and pick-up of vehicles for automated valet parking,"]
5794    #[doc = " * - `13` to indicate that it is reserved for vehicles with a permit,"]
5795    #[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 "]
5796    #[doc = "          when all official marked parking spaces to which it blocks the access (if any), are already occupied at the moment of arrival."]
5797    #[doc = " * - 15-31  - reserved for future usage. "]
5798    #[doc = " *"]
5799    #[doc = " * @category: Road topology information"]
5800    #[doc = " * @revision: Created in V2.3.1, value 14 assigned in V2.4.1."]
5801    #[doc = ""]
5802    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5803    #[rasn(delegate, value("0..=31"))]
5804    pub struct ParkingReservationType(pub u8);
5805    #[doc = "*"]
5806    #[doc = " * This DF provides basic information about the parking capabilities and availabilities of a single parking space. "]
5807    #[doc = " *"]
5808    #[doc = " * It shall include the following components: "]
5809    #[doc = " *"]
5810    #[doc = " * @field id: the unqiue identifier of the parking space within the parking area."]
5811    #[doc = " *"]
5812    #[doc = " * @field location: the optional location of the geometrical center of the parking space w.r.t. the location of the parking area."]
5813    #[doc = " *"]
5814    #[doc = " * @field status: the actual status of the parking space."]
5815    #[doc = " *"]
5816    #[doc = " * @category: Road Topology information"]
5817    #[doc = " * @revision: Created in V2.3.1 "]
5818    #[doc = ""]
5819    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5820    #[rasn(automatic_tags)]
5821    pub struct ParkingSpaceBasic {
5822        pub id: Identifier2B,
5823        pub location: Option<DeltaReferencePosition>,
5824        pub status: ParkingSpaceStatus,
5825    }
5826    impl ParkingSpaceBasic {
5827        pub fn new(
5828            id: Identifier2B,
5829            location: Option<DeltaReferencePosition>,
5830            status: ParkingSpaceStatus,
5831        ) -> Self {
5832            Self {
5833                id,
5834                location,
5835                status,
5836            }
5837        }
5838    }
5839    #[doc = "*"]
5840    #[doc = " * This DF provides detailed information about the parking capabilities and availabilities of a single parking space. "]
5841    #[doc = " * "]
5842    #[doc = " * It is an extension of @ref ParkingSpaceBasic and it shall additionally include the following additional components: "]
5843    #[doc = " *"]
5844    #[doc = " * @field arrangementType: the optional arrangement of the parking space w.r.t. other spaces."]
5845    #[doc = " * This is component, if present, overrides the common arrangementType defined in the @ref ParkingArea."]
5846    #[doc = " *"]
5847    #[doc = " * @field boundary: the optional physical boundary of the parking space as a polygon w.r.t. the location of the parking space."]
5848    #[doc = " *"]
5849    #[doc = " * @field orientation: the optional orientation of the parking space."]
5850    #[doc = " * This is component, if present, overrides the common orientation defined in the @ref ParkingArea."]
5851    #[doc = " *"]
5852    #[doc = " * @field occupancyRule: the occupancy rule applicable to the parking space."]
5853    #[doc = " *"]
5854    #[doc = " * @field chargingStationId: the optional identitfier of a charging station that serves the parking space."]
5855    #[doc = " *"]
5856    #[doc = " * @field accessViaLane: the optional identifier of a lane that provides access to the parking space."]
5857    #[doc = " *"]
5858    #[doc = " * @field accessViaParkingSpaces: the optional identifier(s) of a parking spaces that provide access to the parking space."]
5859    #[doc = " * "]
5860    #[doc = " * @field reservationType: the optional parking reservation type(s) associated to the parking space."]
5861    #[doc = " * This is component, if present, overrides the common reservationType defined in the @ref ParkingArea."]
5862    #[doc = " *"]
5863    #[doc = " * @category: Road Topology information"]
5864    #[doc = " * @revision: Created in V2.3.1 "]
5865    #[doc = ""]
5866    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5867    #[rasn(automatic_tags)]
5868    #[non_exhaustive]
5869    pub struct ParkingSpaceDetailed {
5870        #[rasn(identifier = "arrangementType")]
5871        pub arrangement_type: Option<ParkingAreaArrangementType>,
5872        pub boundary: Option<DeltaPositions>,
5873        pub orientation: Option<Wgs84Angle>,
5874        #[rasn(identifier = "occupancyRule")]
5875        pub occupancy_rule: ParkingOccupancyInfo,
5876        #[rasn(identifier = "chargingStationId")]
5877        pub charging_station_id: Option<Identifier2B>,
5878        #[rasn(identifier = "accessViaLane")]
5879        pub access_via_lane: Option<Identifier2B>,
5880        #[rasn(size("0..=7"), identifier = "accessViaParkingSpaces")]
5881        pub access_via_parking_spaces: Option<SequenceOf<Identifier2B>>,
5882        #[rasn(size("1..=4", extensible), identifier = "reservationType")]
5883        pub reservation_type: Option<SequenceOf<ParkingReservationType>>,
5884        pub id: Identifier2B,
5885        pub location: Option<DeltaReferencePosition>,
5886        pub status: ParkingSpaceStatus,
5887    }
5888    impl ParkingSpaceDetailed {
5889        pub fn new(
5890            arrangement_type: Option<ParkingAreaArrangementType>,
5891            boundary: Option<DeltaPositions>,
5892            orientation: Option<Wgs84Angle>,
5893            occupancy_rule: ParkingOccupancyInfo,
5894            charging_station_id: Option<Identifier2B>,
5895            access_via_lane: Option<Identifier2B>,
5896            access_via_parking_spaces: Option<SequenceOf<Identifier2B>>,
5897            reservation_type: Option<SequenceOf<ParkingReservationType>>,
5898            id: Identifier2B,
5899            location: Option<DeltaReferencePosition>,
5900            status: ParkingSpaceStatus,
5901        ) -> Self {
5902            Self {
5903                arrangement_type,
5904                boundary,
5905                orientation,
5906                occupancy_rule,
5907                charging_station_id,
5908                access_via_lane,
5909                access_via_parking_spaces,
5910                reservation_type,
5911                id,
5912                location,
5913                status,
5914            }
5915        }
5916    }
5917    #[doc = "* "]
5918    #[doc = " * This DF indicates the status of parking space."]
5919    #[doc = " *"]
5920    #[doc = " * The following options are available:"]
5921    #[doc = " * "]
5922    #[doc = " * @field unknown: indicates that the status is unknown."]
5923    #[doc = " *"]
5924    #[doc = " * @field free: indicates that the parking space is free and hence available to be used."]
5925    #[doc = " *"]
5926    #[doc = " * @field freeUntil: indicates that the parking space is free to be used until an indicated moment in time."]
5927    #[doc = " *"]
5928    #[doc = " * @field fullyOccupied: indicates that the parking space is interely occupied."]
5929    #[doc = " *"]
5930    #[doc = " * @field partiallyOccupied: indicates that the parking space that allows parking of multiple vehicles is occupied by an indicated percentage."]
5931    #[doc = " *"]
5932    #[doc = " * @field occupiedUntil: indicates that the parking space is entirely occupied until an indicated moment in time."]
5933    #[doc = " *"]
5934    #[doc = " * @field reservedUntil: indicates that the parking space is reserved (but not necessarily occupied) until an indicated moment in time."]
5935    #[doc = " *"]
5936    #[doc = " * @field accessBlocked: indicates that the parking space cannot accessed, e.g. due to obstructing vehicles."]
5937    #[doc = " *"]
5938    #[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, "]
5939    #[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."]
5940    #[doc = " *"]
5941    #[doc = " * @category: Road Topology information"]
5942    #[doc = " * @revision: Created in V2.3.1 "]
5943    #[doc = ""]
5944    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5945    #[rasn(choice, automatic_tags)]
5946    #[non_exhaustive]
5947    pub enum ParkingSpaceStatus {
5948        unknown(()),
5949        free(()),
5950        freeUntil(TimestampIts),
5951        fullyOccupied(()),
5952        #[rasn(value("0..=100"))]
5953        partiallyOccupied(u8),
5954        occupiedUntil(TimestampIts),
5955        reservedUntil(TimestampIts),
5956        accessBlocked(()),
5957        retrictedUsage(()),
5958    }
5959    #[doc = "*"]
5960    #[doc = " * This DF represents a path with a set of path points."]
5961    #[doc = " * It shall contain up to `40` @ref PathPoint. "]
5962    #[doc = " * "]
5963    #[doc = " * The first PathPoint presents an offset delta position with regards to an external reference position."]
5964    #[doc = " * Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
5965    #[doc = " *"]
5966    #[doc = " * @category: GeoReference information, Vehicle information"]
5967    #[doc = " * @revision: created in V2.1.1 based on PathHistory"]
5968    #[doc = " "]
5969    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5970    #[rasn(delegate, size("0..=40"))]
5971    pub struct Path(pub SequenceOf<PathPoint>);
5972    #[doc = "*"]
5973    #[doc = " * This DE represents the recorded or estimated travel time between a position and a predefined reference position. "]
5974    #[doc = " *"]
5975    #[doc = " * @unit 0,01 second"]
5976    #[doc = " * @category: Basic information"]
5977    #[doc = " * @revision: V1.3.1"]
5978    #[doc = " "]
5979    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5980    #[rasn(delegate, value("1..=65535", extensible))]
5981    pub struct PathDeltaTime(pub Integer);
5982    #[doc = "*"]
5983    #[doc = " * This DF represents estimated/predicted travel time between a position and a predefined reference position. "]
5984    #[doc = " *"]
5985    #[doc = " * the following options are available:"]
5986    #[doc = " * "]
5987    #[doc = " * @field deltaTimeHighPrecision: delta time with precision of 0,1 s."]
5988    #[doc = " *"]
5989    #[doc = " * @field deltaTimeBigRange: delta time with precision of 10 s."]
5990    #[doc = " *"]
5991    #[doc = " * @field deltaTimeMidRange: delta time with precision of 1 s."]
5992    #[doc = " *"]
5993    #[doc = " * @category: Basic information"]
5994    #[doc = " * @revision: Created in V2.2.1, added deltaTimeMidRange extension in V2.3.1"]
5995    #[doc = " "]
5996    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
5997    #[rasn(choice, automatic_tags)]
5998    #[non_exhaustive]
5999    pub enum PathDeltaTimeChoice {
6000        deltaTimeHighPrecision(DeltaTimeTenthOfSecond),
6001        deltaTimeBigRange(DeltaTimeTenSeconds),
6002        #[rasn(extension_addition)]
6003        deltaTimeMidRange(DeltaTimeSecond),
6004    }
6005    #[doc = "* "]
6006    #[doc = " * This DF represents a path towards a specific point specified in the @ref EventZone."]
6007    #[doc = " *"]
6008    #[doc = " * It shall include the following components: "]
6009    #[doc = " * "]
6010    #[doc = " * @field pointOfEventZone: the ordinal number of the point within the DF EventZone, i.e. within the list of EventPoints."]
6011    #[doc = " *"]
6012    #[doc = " * @field path: the associated path towards the point specified in pointOfEventZone."]
6013    #[doc = " * The first PathPoint presents an offset delta position with regards to the position of that pointOfEventZone."]
6014    #[doc = " *"]
6015    #[doc = " * @category: GeoReference information"]
6016    #[doc = " * @revision: Created in V2.2.1"]
6017    #[doc = ""]
6018    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6019    #[rasn(automatic_tags)]
6020    pub struct PathExtended {
6021        #[rasn(value("1..=23"), identifier = "pointOfEventZone")]
6022        pub point_of_event_zone: u8,
6023        pub path: Path,
6024    }
6025    impl PathExtended {
6026        pub fn new(point_of_event_zone: u8, path: Path) -> Self {
6027            Self {
6028                point_of_event_zone,
6029                path,
6030            }
6031        }
6032    }
6033    #[doc = "*"]
6034    #[doc = " * This DF represents a path history with a set of path points."]
6035    #[doc = " * It shall contain up to `40` @ref PathPoint. "]
6036    #[doc = " * "]
6037    #[doc = " * The first PathPoint presents an offset delta position with regards to an external reference position."]
6038    #[doc = " * Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
6039    #[doc = " *"]
6040    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref Path instead."]
6041    #[doc = " * @category: GeoReference information, Vehicle information"]
6042    #[doc = " * @revision: semantics updated in V2.1.1, size corrected to 0..40 in V2.2.1"]
6043    #[doc = " "]
6044    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6045    #[rasn(delegate, size("0..=40"))]
6046    pub struct PathHistory(pub SequenceOf<PathPoint>);
6047    #[doc = "* "]
6048    #[doc = " * This DE indicates an ordinal number that represents the position of a component in the list of @ref Traces or @ref TracesExtended. "]
6049    #[doc = " *"]
6050    #[doc = " * The value shall be set to:"]
6051    #[doc = " * - `0` - noPath  - if no path is identified"]
6052    #[doc = " * - `1..7`        - for instances 1..7 of @ref Traces "]
6053    #[doc = " * - `8..14`       - for instances 1..7 of @ref TracesExtended. "]
6054    #[doc = " *"]
6055    #[doc = " * @category: Road topology information"]
6056    #[doc = " * @revision: Created in V2.2.1"]
6057    #[doc = ""]
6058    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6059    #[rasn(delegate, value("0..=14"))]
6060    pub struct PathId(pub u8);
6061    #[doc = "*"]
6062    #[doc = " * This DF defines an offset waypoint position within a path."]
6063    #[doc = " *"]
6064    #[doc = " * It shall include the following components: "]
6065    #[doc = " *"]
6066    #[doc = " * @field pathPosition: The waypoint position defined as an offset position with regards to a pre-defined reference position. "]
6067    #[doc = " *"]
6068    #[doc = " * @field pathDeltaTime: The optional travel time separated from a waypoint to the predefined reference position."]
6069    #[doc = " *"]
6070    #[doc = " * @category GeoReference information"]
6071    #[doc = " * @revision: semantics updated in V2.1.1"]
6072    #[doc = " "]
6073    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6074    #[rasn(automatic_tags)]
6075    pub struct PathPoint {
6076        #[rasn(identifier = "pathPosition")]
6077        pub path_position: DeltaReferencePosition,
6078        #[rasn(identifier = "pathDeltaTime")]
6079        pub path_delta_time: Option<PathDeltaTime>,
6080    }
6081    impl PathPoint {
6082        pub fn new(
6083            path_position: DeltaReferencePosition,
6084            path_delta_time: Option<PathDeltaTime>,
6085        ) -> Self {
6086            Self {
6087                path_position,
6088                path_delta_time,
6089            }
6090        }
6091    }
6092    #[doc = "*"]
6093    #[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."]
6094    #[doc = " *"]
6095    #[doc = " * It shall include the following components: "]
6096    #[doc = " *"]
6097    #[doc = " * @field deltaLatitude: the offset latitude with regards to a pre-defined reference position. "]
6098    #[doc = " *"]
6099    #[doc = " * @field deltaLongitude: the offset longitude with regards to a pre-defined reference position. "]
6100    #[doc = " * "]
6101    #[doc = " * @field horizontalPositionConfidence: the optional confidence value associated to the horizontal geographical position."]
6102    #[doc = " *"]
6103    #[doc = " * @field deltaAltitude: the optional offset altitude with regards to a pre-defined reference position, with default value unavailable. "]
6104    #[doc = " *"]
6105    #[doc = " * @field altitudeConfidence: the optional confidence value associated to the altitude value of the geographical position, with default value unavailable."]
6106    #[doc = " * "]
6107    #[doc = " * @field pathDeltaTime: the optional travel time to the waypoint from the predefined reference position."]
6108    #[doc = ""]
6109    #[doc = " * @field symmetricAreaOffset: the optional symmetric offset to generate a shape, see Annex D for details."]
6110    #[doc = " *  "]
6111    #[doc = " * @field asymmetricAreaOffset: the optional asymmetric offset to generate a shape, see Annex D for details. "]
6112    #[doc = " *"]
6113    #[doc = " * @category GeoReference information"]
6114    #[doc = " * @revision: Created in V2.1.1, type of pathDeltaTime changed and optionality added, fields symmetricAreaOffset and asymmetricAreaOffset added in V2.2.1"]
6115    #[doc = " "]
6116    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6117    #[rasn(automatic_tags)]
6118    #[non_exhaustive]
6119    pub struct PathPointPredicted {
6120        #[rasn(identifier = "deltaLatitude")]
6121        pub delta_latitude: DeltaLatitude,
6122        #[rasn(identifier = "deltaLongitude")]
6123        pub delta_longitude: DeltaLongitude,
6124        #[rasn(identifier = "horizontalPositionConfidence")]
6125        pub horizontal_position_confidence: Option<PosConfidenceEllipse>,
6126        #[rasn(
6127            default = "path_point_predicted_delta_altitude_default",
6128            identifier = "deltaAltitude"
6129        )]
6130        pub delta_altitude: DeltaAltitude,
6131        #[rasn(
6132            default = "path_point_predicted_altitude_confidence_default",
6133            identifier = "altitudeConfidence"
6134        )]
6135        pub altitude_confidence: AltitudeConfidence,
6136        #[rasn(identifier = "pathDeltaTime")]
6137        pub path_delta_time: Option<PathDeltaTimeChoice>,
6138        #[rasn(identifier = "symmetricAreaOffset")]
6139        pub symmetric_area_offset: Option<StandardLength9b>,
6140        #[rasn(identifier = "asymmetricAreaOffset")]
6141        pub asymmetric_area_offset: Option<StandardLength9b>,
6142    }
6143    impl PathPointPredicted {
6144        pub fn new(
6145            delta_latitude: DeltaLatitude,
6146            delta_longitude: DeltaLongitude,
6147            horizontal_position_confidence: Option<PosConfidenceEllipse>,
6148            delta_altitude: DeltaAltitude,
6149            altitude_confidence: AltitudeConfidence,
6150            path_delta_time: Option<PathDeltaTimeChoice>,
6151            symmetric_area_offset: Option<StandardLength9b>,
6152            asymmetric_area_offset: Option<StandardLength9b>,
6153        ) -> Self {
6154            Self {
6155                delta_latitude,
6156                delta_longitude,
6157                horizontal_position_confidence,
6158                delta_altitude,
6159                altitude_confidence,
6160                path_delta_time,
6161                symmetric_area_offset,
6162                asymmetric_area_offset,
6163            }
6164        }
6165    }
6166    fn path_point_predicted_delta_altitude_default() -> DeltaAltitude {
6167        DeltaAltitude(12800)
6168    }
6169    fn path_point_predicted_altitude_confidence_default() -> AltitudeConfidence {
6170        AltitudeConfidence::unavailable
6171    }
6172    #[doc = "*"]
6173    #[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. "]
6174    #[doc = " * It shall contain up to `16` @ref PathPointPredicted. "]
6175    #[doc = " * "]
6176    #[doc = " * The first PathPoint presents an offset delta position with regards to an external reference position."]
6177    #[doc = " * Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
6178    #[doc = " *"]
6179    #[doc = " * @category: GeoReference information"]
6180    #[doc = " * @revision: created in V2.1.1 , size constraint changed to SIZE(1..16, ...) in V2.2.1, size extended in V2.3.1"]
6181    #[doc = " "]
6182    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6183    #[rasn(delegate, size("1..=16", extensible))]
6184    pub struct PathPredicted(pub SequenceOf<PathPointPredicted>);
6185    #[doc = "* "]
6186    #[doc = " * This DF represents a predicted path, predicted trajectory or predicted path zone together with usage information and a prediction confidence."]
6187    #[doc = " *"]
6188    #[doc = " * It shall include the following components: "]
6189    #[doc = " *"]
6190    #[doc = " * @field pathPredicted: the predicted path (pathDeltaTime ABSENT) or trajectory (pathDeltaTime PRESENT) and/or the path zone (symmetricAreaOffset PRESENT)."]
6191    #[doc = " *"]
6192    #[doc = " * @field usageIndication: an indication of how the predicted path will be used. "]
6193    #[doc = " *"]
6194    #[doc = " * @field confidenceLevel: the confidence that the path/trajectory in pathPredicted will occur as predicted."]
6195    #[doc = " *"]
6196    #[doc = " * @category: GeoReference information"]
6197    #[doc = " * @revision: created in V2.2.1 "]
6198    #[doc = " "]
6199    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6200    #[rasn(automatic_tags)]
6201    #[non_exhaustive]
6202    pub struct PathPredicted2 {
6203        #[rasn(value("0.."), identifier = "pathPredicted")]
6204        pub path_predicted: PathPredicted,
6205        #[rasn(identifier = "usageIndication")]
6206        pub usage_indication: UsageIndication,
6207        #[rasn(identifier = "confidenceLevel")]
6208        pub confidence_level: ConfidenceLevel,
6209    }
6210    impl PathPredicted2 {
6211        pub fn new(
6212            path_predicted: PathPredicted,
6213            usage_indication: UsageIndication,
6214            confidence_level: ConfidenceLevel,
6215        ) -> Self {
6216            Self {
6217                path_predicted,
6218                usage_indication,
6219                confidence_level,
6220            }
6221        }
6222    }
6223    #[doc = "*"]
6224    #[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."]
6225    #[doc = " * It shall contain up to `16` @ref PathPredicted2. "]
6226    #[doc = " * "]
6227    #[doc = " * @category: GeoReference information"]
6228    #[doc = " * @revision: V2.2.1"]
6229    #[doc = " "]
6230    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6231    #[rasn(delegate, size("1..=16", extensible))]
6232    pub struct PathPredictedList(pub SequenceOf<PathPredicted2>);
6233    #[doc = "* "]
6234    #[doc = " * This DF represents a list of references to the components of a @ref Traces or @ref TracesExtended DF using the @ref PathId. "]
6235    #[doc = " *"]
6236    #[doc = " * @category: Road topology information"]
6237    #[doc = " * @revision: Created in V2.2.1"]
6238    #[doc = ""]
6239    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6240    #[rasn(delegate, size("1..=14"))]
6241    pub struct PathReferences(pub SequenceOf<PathId>);
6242    #[doc = "*"]
6243    #[doc = " * This DE represents the position of a vehicle pedal (e.g. brake or accelerator pedal)."]
6244    #[doc = " *"]
6245    #[doc = " * @unit: 10%"]
6246    #[doc = " * @category: Vehicle information"]
6247    #[doc = " * @revision: Created in V2.3.1"]
6248    #[doc = ""]
6249    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6250    #[rasn(delegate, value("0..=11"))]
6251    pub struct PedalPositionValue(pub u8);
6252    #[doc = "*"]
6253    #[doc = " * This DE contains information about the status of a vehicle pedal."]
6254    #[doc = " *"]
6255    #[doc = " * It shall include the following components: "]
6256    #[doc = " *"]
6257    #[doc = " * @field pedalPositionValue: information about the pedal position. "]
6258    #[doc = " *"]
6259    #[doc = " * @category: vehicle information"]
6260    #[doc = " * @revision: created in V2.3.1"]
6261    #[doc = " "]
6262    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6263    #[rasn(automatic_tags)]
6264    #[non_exhaustive]
6265    pub struct PedalStatus {
6266        #[rasn(identifier = "pedalPositionValue")]
6267        pub pedal_position_value: PedalPositionValue,
6268    }
6269    impl PedalStatus {
6270        pub fn new(pedal_position_value: PedalPositionValue) -> Self {
6271            Self {
6272                pedal_position_value,
6273            }
6274        }
6275    }
6276    #[doc = "* "]
6277    #[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."]
6278    #[doc = " * "]
6279    #[doc = " * It shall include the following components: "]
6280    #[doc = " *"]
6281    #[doc = " * @field objectId: optional identifier assigned to a detected object."]
6282    #[doc = " *"]
6283    #[doc = " * @field measurementDeltaTime: the time difference from a reference time to the time of the  measurement of the object. "]
6284    #[doc = " * Negative values indicate that the provided object state refers to a point in time before the reference time."]
6285    #[doc = " *"]
6286    #[doc = " * @field position: the position of the geometric centre of the object's bounding box within the pre-defined coordinate system."]
6287    #[doc = " *"]
6288    #[doc = " * @field velocity: the velocity vector of the object within the pre-defined coordinate system."]
6289    #[doc = " *"]
6290    #[doc = " * @field acceleration: the acceleration vector of the object within the pre-defined coordinate system."]
6291    #[doc = " *"]
6292    #[doc = " * @field angles: optional Euler angles of the object bounding box at the time of measurement. "]
6293    #[doc = " * "]
6294    #[doc = " * @field zAngularVelocity: optional angular velocity of the object around the z-axis at the time of measurement."]
6295    #[doc = " * The angular velocity is measured with positive values considering the object orientation turning around the z-axis using the right-hand rule."]
6296    #[doc = " *"]
6297    #[doc = " * @field lowerTriangularCorrelationMatrices: optional set of lower triangular correlation matrices for selected components of the provided kinematic state and attitude vector."]
6298    #[doc = " *"]
6299    #[doc = " * @field objectDimensionZ: optional z-dimension of object bounding box. "]
6300    #[doc = " * This dimension shall be measured along the direction of the z-axis after all the rotations have been applied. "]
6301    #[doc = " *"]
6302    #[doc = " * @field objectDimensionY: optional y-dimension of the object bounding box. "]
6303    #[doc = " * This dimension shall be measured along the direction of the y-axis after all the rotations have been applied. "]
6304    #[doc = " *"]
6305    #[doc = " * @field objectDimensionX: optional x-dimension of object bounding box."]
6306    #[doc = " * This dimension shall be measured along the direction of the x-axis after all the rotations have been applied."]
6307    #[doc = " * "]
6308    #[doc = " * @field objectAge: optional age of the detected and described object, i.e. the difference in time between the moment "]
6309    #[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."]
6310    #[doc = " *"]
6311    #[doc = " * @field objectPerceptionQuality: optional confidence associated to the object. "]
6312    #[doc = " *"]
6313    #[doc = " * @field sensorIdList: optional list of sensor-IDs which provided the measurement data. "]
6314    #[doc = " *"]
6315    #[doc = " * @field classification: optional classification of the described object"]
6316    #[doc = " *"]
6317    #[doc = " * @field matchedPosition: optional map-matched position of an object."]
6318    #[doc = " *"]
6319    #[doc = " * @category Sensing information"]
6320    #[doc = " * @revision: created in V2.1.1"]
6321    #[doc = " "]
6322    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6323    #[rasn(automatic_tags)]
6324    #[non_exhaustive]
6325    pub struct PerceivedObject {
6326        #[rasn(identifier = "objectId")]
6327        pub object_id: Option<Identifier2B>,
6328        #[rasn(identifier = "measurementDeltaTime")]
6329        pub measurement_delta_time: DeltaTimeMilliSecondSigned,
6330        pub position: CartesianPosition3dWithConfidence,
6331        pub velocity: Option<Velocity3dWithConfidence>,
6332        pub acceleration: Option<Acceleration3dWithConfidence>,
6333        pub angles: Option<EulerAnglesWithConfidence>,
6334        #[rasn(identifier = "zAngularVelocity")]
6335        pub z_angular_velocity: Option<CartesianAngularVelocityComponent>,
6336        #[rasn(identifier = "lowerTriangularCorrelationMatrices")]
6337        pub lower_triangular_correlation_matrices:
6338            Option<LowerTriangularPositiveSemidefiniteMatrices>,
6339        #[rasn(identifier = "objectDimensionZ")]
6340        pub object_dimension_z: Option<ObjectDimension>,
6341        #[rasn(identifier = "objectDimensionY")]
6342        pub object_dimension_y: Option<ObjectDimension>,
6343        #[rasn(identifier = "objectDimensionX")]
6344        pub object_dimension_x: Option<ObjectDimension>,
6345        #[rasn(value("0..=2047"), identifier = "objectAge")]
6346        pub object_age: Option<DeltaTimeMilliSecondSigned>,
6347        #[rasn(identifier = "objectPerceptionQuality")]
6348        pub object_perception_quality: Option<ObjectPerceptionQuality>,
6349        #[rasn(identifier = "sensorIdList")]
6350        pub sensor_id_list: Option<SequenceOfIdentifier1B>,
6351        pub classification: Option<ObjectClassDescription>,
6352        #[rasn(identifier = "mapPosition")]
6353        pub map_position: Option<MapPosition>,
6354    }
6355    impl PerceivedObject {
6356        pub fn new(
6357            object_id: Option<Identifier2B>,
6358            measurement_delta_time: DeltaTimeMilliSecondSigned,
6359            position: CartesianPosition3dWithConfidence,
6360            velocity: Option<Velocity3dWithConfidence>,
6361            acceleration: Option<Acceleration3dWithConfidence>,
6362            angles: Option<EulerAnglesWithConfidence>,
6363            z_angular_velocity: Option<CartesianAngularVelocityComponent>,
6364            lower_triangular_correlation_matrices: Option<
6365                LowerTriangularPositiveSemidefiniteMatrices,
6366            >,
6367            object_dimension_z: Option<ObjectDimension>,
6368            object_dimension_y: Option<ObjectDimension>,
6369            object_dimension_x: Option<ObjectDimension>,
6370            object_age: Option<DeltaTimeMilliSecondSigned>,
6371            object_perception_quality: Option<ObjectPerceptionQuality>,
6372            sensor_id_list: Option<SequenceOfIdentifier1B>,
6373            classification: Option<ObjectClassDescription>,
6374            map_position: Option<MapPosition>,
6375        ) -> Self {
6376            Self {
6377                object_id,
6378                measurement_delta_time,
6379                position,
6380                velocity,
6381                acceleration,
6382                angles,
6383                z_angular_velocity,
6384                lower_triangular_correlation_matrices,
6385                object_dimension_z,
6386                object_dimension_y,
6387                object_dimension_x,
6388                object_age,
6389                object_perception_quality,
6390                sensor_id_list,
6391                classification,
6392                map_position,
6393            }
6394        }
6395    }
6396    #[doc = "*"]
6397    #[doc = " * This DE denotes the ability of an ITS-S to provide information fullfilling additional requirements."]
6398    #[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 "]
6399    #[doc = " * and should be subject to profiling."]
6400    #[doc = " * "]
6401    #[doc = " *  The value shall be set to:"]
6402    #[doc = " * - `0` if  the performance class is unknown,"]
6403    #[doc = " * - `1` for performance class A,"]
6404    #[doc = " * - `2` for performance class B,"]
6405    #[doc = " * -  3-7 reserved for future use."]
6406    #[doc = " *"]
6407    #[doc = " * @category: Vehicle information"]
6408    #[doc = " * @revision: Editorial update in V2.1.1, description changed in V2.3.1"]
6409    #[doc = " "]
6410    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6411    #[rasn(delegate, value("0..=7"))]
6412    pub struct PerformanceClass(pub u8);
6413    #[doc = "*"]
6414    #[doc = " * This DE represents a telephone number"]
6415    #[doc = " * "]
6416    #[doc = " * @category: Basic information"]
6417    #[doc = " * @revision: V1.3.1"]
6418    #[doc = " "]
6419    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6420    #[rasn(delegate, size("1..=16"))]
6421    pub struct PhoneNumber(pub NumericString);
6422    #[doc = "*"]
6423    #[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."]
6424    #[doc = "*"]
6425    #[doc = "* The following options are available:"]
6426    #[doc = "* "]
6427    #[doc = "* @field deltaPositions: an ordered sequence of delta geographical positions with respect to the previous position, with latitude and longitude,"]
6428    #[doc = "* with the first instance referring to the reference position and with the order implicitly defining a direction associated with the polygonal line."]
6429    #[doc = "*"]
6430    #[doc = "* @field deltaPositionsWithAltitude:  an ordered sequence of delta geographical positions with respect to the previous position, with latitude, longitude and altitude,"]
6431    #[doc = "* with the first instance referring to the reference position and with the order implicitly defining a direction associated with the polygonal line."]
6432    #[doc = "*"]
6433    #[doc = "* @field absolutePositions: a sequence of absolute geographical positions, with latitude and longitude."]
6434    #[doc = "*"]
6435    #[doc = "* @field absolutePositionsWithAltitude: a sequence of absolute geographical positions, with latitude, longitude and altitude."]
6436    #[doc = "*"]
6437    #[doc = "* @category: GeoReference information"]
6438    #[doc = "* @revision: created in V2.3.1 based on ISO TS 19321"]
6439    #[doc = ""]
6440    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6441    #[rasn(choice, automatic_tags)]
6442    #[non_exhaustive]
6443    pub enum PolygonalLine {
6444        deltaPositions(DeltaPositions),
6445        deltaPositionsWithAltitude(DeltaReferencePositions),
6446        absolutePositions(GeoPositionsWoAltitude),
6447        absolutePositionsWithAltitude(GeoPositionsWAltitude),
6448    }
6449    #[doc = "* "]
6450    #[doc = " * This DF represents the shape of a polygonal area or of a right prism."]
6451    #[doc = " *"]
6452    #[doc = " * It shall include the following components: "]
6453    #[doc = " *"]
6454    #[doc = " * @field shapeReferencePoint: the optional reference point used for the definition of the shape, relative to an externally specified reference position. "]
6455    #[doc = " * If this component is absent, the externally specified reference position represents the shape's reference point. "]
6456    #[doc = " *"]
6457    #[doc = " * @field polygon: the polygonal area represented by a list of minimum `3` to maximum `16` @ref CartesianPosition3d."]
6458    #[doc = " * All nodes of the polygon shall be considered relative to the shape's reference point."]
6459    #[doc = " *"]
6460    #[doc = " * @field height: the optional height, present if the shape is a right prism extending in the positive z-axis."]
6461    #[doc = " * "]
6462    #[doc = " * @category GeoReference information"]
6463    #[doc = " * @revision: created in V2.1.1"]
6464    #[doc = " *"]
6465    #[doc = " "]
6466    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6467    #[rasn(automatic_tags)]
6468    pub struct PolygonalShape {
6469        #[rasn(identifier = "shapeReferencePoint")]
6470        pub shape_reference_point: Option<CartesianPosition3d>,
6471        #[rasn(size("3..=16", extensible))]
6472        pub polygon: SequenceOfCartesianPosition3d,
6473        pub height: Option<StandardLength12b>,
6474    }
6475    impl PolygonalShape {
6476        pub fn new(
6477            shape_reference_point: Option<CartesianPosition3d>,
6478            polygon: SequenceOfCartesianPosition3d,
6479            height: Option<StandardLength12b>,
6480        ) -> Self {
6481            Self {
6482                shape_reference_point,
6483                polygon,
6484                height,
6485            }
6486        }
6487    }
6488    #[doc = "*"]
6489    #[doc = " * This DE indicates the perpendicular distance from the centre of mass of an empty load vehicle to the front line of"]
6490    #[doc = " * the vehicle bounding box of the empty load vehicle."]
6491    #[doc = " *"]
6492    #[doc = " * The value shall be set to:"]
6493    #[doc = " * - `n` (`n > 0` and `n < 62`) for any aplicable value n between 0,1 metre and 6,2 metres, "]
6494    #[doc = " * - `62` for values equal to or higher than 6.1 metres,"]
6495    #[doc = " * - `63`  if the information is unavailable."]
6496    #[doc = " * "]
6497    #[doc = " * @note:\tThe empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
6498    #[doc = " *"]
6499    #[doc = " * @unit 0,1 metre "]
6500    #[doc = " * @category Vehicle information"]
6501    #[doc = " * @revision: description revised in V2.1.1 (the meaning of 62 has changed slightly) "]
6502    #[doc = " "]
6503    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6504    #[rasn(delegate, value("1..=63"))]
6505    pub struct PosCentMass(pub u8);
6506    #[doc = "*"]
6507    #[doc = " * This DF indicates the horizontal position confidence ellipse which represents the estimated accuracy with a "]
6508    #[doc = " * confidence level of 95  %. The centre of the ellipse shape corresponds to the reference"]
6509    #[doc = " * position point for which the position accuracy is evaluated."]
6510    #[doc = " *"]
6511    #[doc = " * It shall include the following components: "]
6512    #[doc = " *"]
6513    #[doc = " * @field semiMajorConfidence: half of length of the major axis, i.e. distance between the centre point"]
6514    #[doc = " * and major axis point of the position accuracy ellipse. "]
6515    #[doc = " *"]
6516    #[doc = " * @field semiMinorConfidence: half of length of the minor axis, i.e. distance between the centre point"]
6517    #[doc = " * and minor axis point of the position accuracy ellipse. "]
6518    #[doc = " *"]
6519    #[doc = " * @field semiMajorOrientation: orientation direction of the ellipse major axis of the position accuracy"]
6520    #[doc = " * ellipse with regards to the WGS84 north. "]
6521    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
6522    #[doc = " *"]
6523    #[doc = " *"]
6524    #[doc = " * @category GeoReference information"]
6525    #[doc = " * @revision: V1.3.1"]
6526    #[doc = " "]
6527    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6528    #[rasn(automatic_tags)]
6529    pub struct PosConfidenceEllipse {
6530        #[rasn(identifier = "semiMajorConfidence")]
6531        pub semi_major_confidence: SemiAxisLength,
6532        #[rasn(identifier = "semiMinorConfidence")]
6533        pub semi_minor_confidence: SemiAxisLength,
6534        #[rasn(identifier = "semiMajorOrientation")]
6535        pub semi_major_orientation: HeadingValue,
6536    }
6537    impl PosConfidenceEllipse {
6538        pub fn new(
6539            semi_major_confidence: SemiAxisLength,
6540            semi_minor_confidence: SemiAxisLength,
6541            semi_major_orientation: HeadingValue,
6542        ) -> Self {
6543            Self {
6544                semi_major_confidence,
6545                semi_minor_confidence,
6546                semi_major_orientation,
6547            }
6548        }
6549    }
6550    #[doc = "*"]
6551    #[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."]
6552    #[doc = " *"]
6553    #[doc = " * The value shall be set to:"]
6554    #[doc = " * - `n` (`n > 0` and `n < 19`) for any aplicable value between 0,1 metre and 1,9 metres,"]
6555    #[doc = " * - `19` for values equal to or higher than 1.8 metres,"]
6556    #[doc = " * - `20` if the information is unavailable."]
6557    #[doc = " *"]
6558    #[doc = " * @category: Vehicle information"]
6559    #[doc = " * @unit 0,1 metre"]
6560    #[doc = " * @revision: description revised in V2.1.1 (the meaning of 19 has changed slightly) "]
6561    #[doc = " "]
6562    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6563    #[rasn(delegate, value("1..=20"))]
6564    pub struct PosFrontAx(pub u8);
6565    #[doc = "*"]
6566    #[doc = " * This DE represents the distance from the centre of vehicle front bumper to the right or left longitudinal carrier of vehicle."]
6567    #[doc = " * The left/right carrier refers to the left/right as seen from a passenger sitting in the vehicle."]
6568    #[doc = " *"]
6569    #[doc = " * The value shall be set to:"]
6570    #[doc = " * - `n` (`n > 0` and `n < 126`) for any aplicable value between 0,01 metre and 1,26 metres, "]
6571    #[doc = " * - `126` for values equal to or higher than 1.25 metres,"]
6572    #[doc = " * - `127` if the information is unavailable."]
6573    #[doc = " *"]
6574    #[doc = " * @unit 0,01 metre "]
6575    #[doc = " * @category Vehicle information"]
6576    #[doc = " * @revision: description revised in V2.1.1 (the meaning of 126 has changed slightly) "]
6577    #[doc = " "]
6578    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6579    #[rasn(delegate, value("1..=127"))]
6580    pub struct PosLonCarr(pub u8);
6581    #[doc = "*"]
6582    #[doc = " * This DE represents the perpendicular inter-distance of neighbouring pillar axis of vehicle starting from the"]
6583    #[doc = " * middle point of the front line of the vehicle bounding box."]
6584    #[doc = " *"]
6585    #[doc = " * The value shall be set to:"]
6586    #[doc = " * - `n` (`n > 0` and `n < 29`) for any aplicable value between 0,1 metre and 2,9 metres, "]
6587    #[doc = " * - `29` for values equal to or greater than 2.8 metres,"]
6588    #[doc = " * - `30` if the information is unavailable."]
6589    #[doc = " * "]
6590    #[doc = " * @unit 0,1 metre "]
6591    #[doc = " * @category Vehicle information"]
6592    #[doc = " * @revision: description revised in V2.1.1 (the meaning of 29 has changed slightly) "]
6593    #[doc = " "]
6594    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6595    #[rasn(delegate, value("1..=30"))]
6596    pub struct PosPillar(pub u8);
6597    #[doc = "* "]
6598    #[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, "]
6599    #[doc = " * in direction of an externally defined reference direction."]
6600    #[doc = " * "]
6601    #[doc = " * The value shall be set to:"]
6602    #[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,"]
6603    #[doc = " * - `0` if the position is at the starting point,"]
6604    #[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,"]
6605    #[doc = " * - `8 190` if the position is out of range, i.e. equal to or greater than 8 189 m,"]
6606    #[doc = " * - `8 191` if the position information is not available. "]
6607    #[doc = " *"]
6608    #[doc = " * @unit 1 metre"]
6609    #[doc = " * @category: GeoReference information"]
6610    #[doc = " * @revision: Created in V2.2.1"]
6611    #[doc = " "]
6612    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6613    #[rasn(delegate, value("-8190..=8191"))]
6614    pub struct Position1d(pub i16);
6615    #[doc = "*"]
6616    #[doc = " * This DF indicates the horizontal position confidence ellipse which represents the estimated accuracy with a "]
6617    #[doc = " * confidence level of 95 %. The centre of the ellipse shape corresponds to the reference"]
6618    #[doc = " * position point for which the position accuracy is evaluated."]
6619    #[doc = " *"]
6620    #[doc = " * It shall include the following components: "]
6621    #[doc = " *"]
6622    #[doc = " * @field semiMajorAxisLength: half of length of the major axis, i.e. distance between the centre point"]
6623    #[doc = " * and major axis point of the position accuracy ellipse. "]
6624    #[doc = " *"]
6625    #[doc = " * @field semiMinorAxisLength: half of length of the minor axis, i.e. distance between the centre point"]
6626    #[doc = " * and minor axis point of the position accuracy ellipse. "]
6627    #[doc = " *"]
6628    #[doc = " * @field semiMajorAxisOrientation: orientation direction of the ellipse major axis of the position accuracy"]
6629    #[doc = " * ellipse with regards to the WGS84 north. "]
6630    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
6631    #[doc = " *"]
6632    #[doc = " * @category GeoReference information"]
6633    #[doc = " * @revision: created in V2.1.1 based on @ref PosConfidenceEllipse"]
6634    #[doc = " "]
6635    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6636    #[rasn(automatic_tags)]
6637    pub struct PositionConfidenceEllipse {
6638        #[rasn(identifier = "semiMajorAxisLength")]
6639        pub semi_major_axis_length: SemiAxisLength,
6640        #[rasn(identifier = "semiMinorAxisLength")]
6641        pub semi_minor_axis_length: SemiAxisLength,
6642        #[rasn(identifier = "semiMajorAxisOrientation")]
6643        pub semi_major_axis_orientation: Wgs84AngleValue,
6644    }
6645    impl PositionConfidenceEllipse {
6646        pub fn new(
6647            semi_major_axis_length: SemiAxisLength,
6648            semi_minor_axis_length: SemiAxisLength,
6649            semi_major_axis_orientation: Wgs84AngleValue,
6650        ) -> Self {
6651            Self {
6652                semi_major_axis_length,
6653                semi_minor_axis_length,
6654                semi_major_axis_orientation,
6655            }
6656        }
6657    }
6658    #[doc = "*"]
6659    #[doc = " * This DE indicates whether a passenger seat is occupied or whether the occupation status is detectable or not."]
6660    #[doc = " * "]
6661    #[doc = " * The number of row in vehicle seats layout is counted in rows from the driver row backwards from front to the rear"]
6662    #[doc = " * of the vehicle."]
6663    #[doc = " * The left side seat of a row refers to the left hand side seen from vehicle rear to front."]
6664    #[doc = " * Additionally, a bit is reserved for each seat row, to indicate if the seat occupation of a row is detectable or not,"]
6665    #[doc = " * i.e. `row1NotDetectable (3)`, `row2NotDetectable(8)`, `row3NotDetectable(13)` and `row4NotDetectable(18)`."]
6666    #[doc = " * Finally, a bit is reserved for each row seat to indicate if the seat row is present or not in the vehicle,"]
6667    #[doc = " * i.e. `row1NotPresent (4)`, `row2NotPresent (9)`, `row3NotPresent(14)`, `row4NotPresent(19)`."]
6668    #[doc = " * "]
6669    #[doc = " * When a seat is detected to be occupied, the corresponding seat occupation bit shall be set to `1`."]
6670    #[doc = " * For example, when the row 1 left seat is occupied, `row1LeftOccupied(0)` bit shall be set to `1`."]
6671    #[doc = " * When a seat is detected to be not occupied, the corresponding seat occupation bit shall be set to `0`."]
6672    #[doc = " * Otherwise, the value of seat occupation bit shall be set according to the following conditions:"]
6673    #[doc = " * - If the seat occupation of a seat row is not detectable, the corresponding bit shall be set to `1`."]
6674    #[doc = " *   When any seat row not detectable bit is set to `1`, all corresponding seat occupation bits of the same row"]
6675    #[doc = " *   shall be set to `1`."]
6676    #[doc = " * - If the seat row is not present, the corresponding not present bit of the same row shall be set to `1`."]
6677    #[doc = " *   When any of the seat row not present bit is set to `1`, the corresponding not detectable bit for that row"]
6678    #[doc = " *   shall be set to `1`, and all the corresponding seat occupation bits in that row shall be set to `0`."]
6679    #[doc = " * "]
6680    #[doc = " * @category: Vehicle information"]
6681    #[doc = " * @revision: V1.3.1"]
6682    #[doc = " "]
6683    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6684    #[rasn(delegate)]
6685    pub struct PositionOfOccupants(pub FixedBitString<20usize>);
6686    #[doc = "*"]
6687    #[doc = " * This DF shall contain a list of distances @ref PosPillar that refer to the perpendicular distance between centre of vehicle front bumper"]
6688    #[doc = " * and vehicle pillar A, between neighbour pillars until the last pillar of the vehicle."]
6689    #[doc = " *"]
6690    #[doc = " * Vehicle pillars refer to the vertical or near vertical support of vehicle,"]
6691    #[doc = " * designated respectively as the A, B, C or D and other pillars moving in side profile view from the front to rear."]
6692    #[doc = " * "]
6693    #[doc = " * The first value of the DF refers to the perpendicular distance from the centre of vehicle front bumper to "]
6694    #[doc = " * vehicle A pillar. The second value refers to the perpendicular distance from the centre position of A pillar"]
6695    #[doc = " * to the B pillar of vehicle and so on until the last pillar."]
6696    #[doc = " *"]
6697    #[doc = " * @category: Vehicle information"]
6698    #[doc = " * @revision: V1.3.1"]
6699    #[doc = " "]
6700    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6701    #[rasn(delegate, size("1..=3", extensible))]
6702    pub struct PositionOfPillars(pub SequenceOf<PosPillar>);
6703    #[doc = "*"]
6704    #[doc = " * This DE indicates the positioning technology being used to estimate a geographical position."]
6705    #[doc = " *"]
6706    #[doc = " * The value shall be set to:"]
6707    #[doc = " * - 0 `noPositioningSolution`  - no positioning solution used,"]
6708    #[doc = " * - 1 `sGNSS`                  - Global Navigation Satellite System used,"]
6709    #[doc = " * - 2 `dGNSS`                  - Differential GNSS used,"]
6710    #[doc = " * - 3 `sGNSSplusDR`            - GNSS and dead reckoning used,"]
6711    #[doc = " * - 4 `dGNSSplusDR`            - Differential GNSS and dead reckoning used,"]
6712    #[doc = " * - 5 `dR`                     - dead reckoning used,"]
6713    #[doc = " * - 6 `manuallyByOperator`     - position set manually by a human operator."]
6714    #[doc = " *"]
6715    #[doc = " * @category: GeoReference information"]
6716    #[doc = " * @revision: V1.3.1, extension with value 6 added in V2.2.1"]
6717    #[doc = " "]
6718    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6719    #[rasn(enumerated)]
6720    #[non_exhaustive]
6721    pub enum PositioningSolutionType {
6722        noPositioningSolution = 0,
6723        sGNSS = 1,
6724        dGNSS = 2,
6725        sGNSSplusDR = 3,
6726        dGNSSplusDR = 4,
6727        dR = 5,
6728        #[rasn(extension_addition)]
6729        manuallyByOperator = 6,
6730    }
6731    #[doc = "*"]
6732    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `postCrash` ."]
6733    #[doc = " * "]
6734    #[doc = " * The value shall be set to:"]
6735    #[doc = " * - 0 `unavailable`                                               - in case further detailed information on post crash event is unavailable,"]
6736    #[doc = " * - 1 `accidentWithoutECallTriggered`                             - in case no eCall has been triggered for an accident,"]
6737    #[doc = " * - 2 `accidentWithECallManuallyTriggered`                        - in case eCall has been manually triggered and transmitted to eCall back end,"]
6738    #[doc = " * - 3 `accidentWithECallAutomaticallyTriggered`                   - in case eCall has been automatically triggered and transmitted to eCall back end,"]
6739    #[doc = " * - 4 `accidentWithECallTriggeredWithoutAccessToCellularNetwork`  - in case eCall has been triggered but cellular network is not accessible from triggering vehicle."]
6740    #[doc = " * - 5-255                                                         - are reserved for future usage."]
6741    #[doc = " *"]
6742    #[doc = " * @category: Traffic information"]
6743    #[doc = " * @revision: V1.3.1"]
6744    #[doc = " "]
6745    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6746    #[rasn(delegate, value("0..=255"))]
6747    pub struct PostCrashSubCauseCode(pub u8);
6748    #[doc = "*"]
6749    #[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.  "]
6750    #[doc = "* "]
6751    #[doc = "* The following values are specified:"]
6752    #[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,"]
6753    #[doc = "* - `2000` if the amount of rain falling is greater than 199.9 mm/h, "]
6754    #[doc = "* - `2001` if the information is not available."]
6755    #[doc = "*"]
6756    #[doc = "* @unit: 0,1 mm/h "]
6757    #[doc = "* @category: Basic Information"]
6758    #[doc = "* @revision: created in V2.1.1"]
6759    #[doc = ""]
6760    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6761    #[rasn(delegate, value("1..=2001"))]
6762    pub struct PrecipitationIntensity(pub u16);
6763    #[doc = "*"]
6764    #[doc = " * This DF describes a zone of protection inside which the ITS communication should be restricted."]
6765    #[doc = " *"]
6766    #[doc = " * It shall include the following components: "]
6767    #[doc = " * "]
6768    #[doc = " * @field protectedZoneType: type of the protected zone. "]
6769    #[doc = " * "]
6770    #[doc = " * @field expiryTime: optional time at which the validity of the protected communication zone will expire."]
6771    #[doc = " * "]
6772    #[doc = " * @field protectedZoneLatitude: latitude of the centre point of the protected communication zone."]
6773    #[doc = " * "]
6774    #[doc = " * @field protectedZoneLongitude: longitude of the centre point of the protected communication zone."]
6775    #[doc = " * "]
6776    #[doc = " * @field protectedZoneRadius: optional radius of the protected communication zone in metres."]
6777    #[doc = " * "]
6778    #[doc = " * @field protectedZoneId: the optional ID of the protected communication zone."]
6779    #[doc = " * "]
6780    #[doc = " * @note: A protected communication zone may be defined around a CEN DSRC road side equipment."]
6781    #[doc = " * "]
6782    #[doc = " * @category: Infrastructure information, Communication information"]
6783    #[doc = " * @revision: revised in V2.1.1 (changed protectedZoneID to protectedZoneId)"]
6784    #[doc = " "]
6785    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6786    #[rasn(automatic_tags)]
6787    #[non_exhaustive]
6788    pub struct ProtectedCommunicationZone {
6789        #[rasn(identifier = "protectedZoneType")]
6790        pub protected_zone_type: ProtectedZoneType,
6791        #[rasn(identifier = "expiryTime")]
6792        pub expiry_time: Option<TimestampIts>,
6793        #[rasn(identifier = "protectedZoneLatitude")]
6794        pub protected_zone_latitude: Latitude,
6795        #[rasn(identifier = "protectedZoneLongitude")]
6796        pub protected_zone_longitude: Longitude,
6797        #[rasn(identifier = "protectedZoneRadius")]
6798        pub protected_zone_radius: Option<ProtectedZoneRadius>,
6799        #[rasn(identifier = "protectedZoneId")]
6800        pub protected_zone_id: Option<ProtectedZoneId>,
6801    }
6802    impl ProtectedCommunicationZone {
6803        pub fn new(
6804            protected_zone_type: ProtectedZoneType,
6805            expiry_time: Option<TimestampIts>,
6806            protected_zone_latitude: Latitude,
6807            protected_zone_longitude: Longitude,
6808            protected_zone_radius: Option<ProtectedZoneRadius>,
6809            protected_zone_id: Option<ProtectedZoneId>,
6810        ) -> Self {
6811            Self {
6812                protected_zone_type,
6813                expiry_time,
6814                protected_zone_latitude,
6815                protected_zone_longitude,
6816                protected_zone_radius,
6817                protected_zone_id,
6818            }
6819        }
6820    }
6821    #[doc = "*"]
6822    #[doc = " * This DF shall contain a list of @ref ProtectedCommunicationZone provided by a road side ITS-S (Road Side Unit RSU)."]
6823    #[doc = " *"]
6824    #[doc = " * It may provide up to 16 protected communication zones information."]
6825    #[doc = " *"]
6826    #[doc = " * @category: Infrastructure information, Communication information"]
6827    #[doc = " * @revision: V1.3.1"]
6828    #[doc = " "]
6829    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6830    #[rasn(delegate, size("1..=16"))]
6831    pub struct ProtectedCommunicationZonesRSU(pub SequenceOf<ProtectedCommunicationZone>);
6832    #[doc = "*"]
6833    #[doc = " * This DE represents the indentifier of a protected communication zone."]
6834    #[doc = " * "]
6835    #[doc = " * "]
6836    #[doc = " * @category: Infrastructure information, Communication information"]
6837    #[doc = " * @revision: Revision in V2.1.1 (changed name from ProtectedZoneID to ProtectedZoneId)"]
6838    #[doc = " "]
6839    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6840    #[rasn(delegate, value("0..=134217727"))]
6841    pub struct ProtectedZoneId(pub u32);
6842    #[doc = "*"]
6843    #[doc = " * This DE represents the radius of a protected communication zone. "]
6844    #[doc = " * "]
6845    #[doc = " * "]
6846    #[doc = " * @unit: metre"]
6847    #[doc = " * @category: Infrastructure information, Communication information"]
6848    #[doc = " * @revision: V1.3.1"]
6849    #[doc = " "]
6850    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6851    #[rasn(delegate, value("1..=255", extensible))]
6852    pub struct ProtectedZoneRadius(pub Integer);
6853    #[doc = "*"]
6854    #[doc = " * This DE indicates the type of a protected communication zone, so that an ITS-S is aware of the actions to do"]
6855    #[doc = " * while passing by such zone (e.g. reduce the transmit power in case of a DSRC tolling station)."]
6856    #[doc = " * "]
6857    #[doc = " * The protected zone type is defined in ETSI TS 102 792 [14]."]
6858    #[doc = " * "]
6859    #[doc = " * "]
6860    #[doc = " * @category: Communication information"]
6861    #[doc = " * @revision: V1.3.1"]
6862    #[doc = " "]
6863    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
6864    #[rasn(enumerated)]
6865    #[non_exhaustive]
6866    pub enum ProtectedZoneType {
6867        permanentCenDsrcTolling = 0,
6868        #[rasn(extension_addition)]
6869        temporaryCenDsrcTolling = 1,
6870    }
6871    #[doc = "*"]
6872    #[doc = " * This DF identifies an organization."]
6873    #[doc = " *"]
6874    #[doc = " * It shall include the following components: "]
6875    #[doc = " * "]
6876    #[doc = " * @field countryCode: represents the country code that identifies the country of the national registration administrator for issuers according to ISO 14816."]
6877    #[doc = " *"]
6878    #[doc = " * @field providerIdentifier: identifies the organization according to the national ISO 14816 register for issuers."]
6879    #[doc = " *"]
6880    #[doc = " * @note: See https://www.itsstandards.eu/registries/register-of-nra-i-cs1/ for a list of national registration administrators and their respective registers"]
6881    #[doc = " * "]
6882    #[doc = " * @category: Communication information"]
6883    #[doc = " * @revision: Created in V2.2.1 based on ISO 17573-3 [24]"]
6884    #[doc = " "]
6885    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6886    #[rasn(automatic_tags)]
6887    pub struct Provider {
6888        #[rasn(identifier = "countryCode")]
6889        pub country_code: CountryCode,
6890        #[rasn(identifier = "providerIdentifier")]
6891        pub provider_identifier: IssuerIdentifier,
6892    }
6893    impl Provider {
6894        pub fn new(country_code: CountryCode, provider_identifier: IssuerIdentifier) -> Self {
6895            Self {
6896                country_code,
6897                provider_identifier,
6898            }
6899        }
6900    }
6901    #[doc = "*"]
6902    #[doc = " * This DF represents activation data for real-time systems designed for operations control, traffic light priorities, track switches, barriers, etc."]
6903    #[doc = " * using a range of activation devices equipped in public transport vehicles."]
6904    #[doc = " *"]
6905    #[doc = " * The activation of the corresponding equipment is triggered by the approach or passage of a public transport"]
6906    #[doc = " * vehicle at a certain point (e.g. a beacon)."]
6907    #[doc = " *"]
6908    #[doc = " * @field ptActivationType: type of activation. "]
6909    #[doc = " *"]
6910    #[doc = " * @field ptActicationData: data of activation. "]
6911    #[doc = " *"]
6912    #[doc = " * Today there are different payload variants defined for public transport activation-data. The R09.x is one of"]
6913    #[doc = " * the industry standard used by public transport vehicles (e.g. buses, trams) in Europe (e.g. Germany Austria)"]
6914    #[doc = " * for controlling traffic lights, barriers, bollards, etc. This DF shall include information like route, course,"]
6915    #[doc = " * destination, priority, etc."]
6916    #[doc = " * "]
6917    #[doc = " * The R09.x content is defined in VDV recommendation 420 [7]. It includes following information:"]
6918    #[doc = " * - Priority Request Information (pre-request, request, ready to start)"]
6919    #[doc = " * - End of Prioritization procedure"]
6920    #[doc = " * - Priority request direction"]
6921    #[doc = " * - Public Transport line number"]
6922    #[doc = " * - Priority of public transport"]
6923    #[doc = " * - Route line identifier of the public transport"]
6924    #[doc = " * - Route number identification"]
6925    #[doc = " * - Destination of public transport vehicle"]
6926    #[doc = " *"]
6927    #[doc = " * Other countries may use different message sets defined by the local administration."]
6928    #[doc = " * @category: Vehicle information"]
6929    #[doc = " * @revision: V1.3.1"]
6930    #[doc = " "]
6931    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6932    #[rasn(automatic_tags)]
6933    pub struct PtActivation {
6934        #[rasn(identifier = "ptActivationType")]
6935        pub pt_activation_type: PtActivationType,
6936        #[rasn(identifier = "ptActivationData")]
6937        pub pt_activation_data: PtActivationData,
6938    }
6939    impl PtActivation {
6940        pub fn new(
6941            pt_activation_type: PtActivationType,
6942            pt_activation_data: PtActivationData,
6943        ) -> Self {
6944            Self {
6945                pt_activation_type,
6946                pt_activation_data,
6947            }
6948        }
6949    }
6950    #[doc = "*"]
6951    #[doc = " * This DE is used for various tasks in the public transportation environment, especially for controlling traffic"]
6952    #[doc = " * signal systems to prioritize and speed up public transportation in urban area (e.g. intersection \"_bottlenecks_\")."]
6953    #[doc = " * The traffic lights may be controlled by an approaching bus or tram automatically. This permits \"_In Time_\" activation"]
6954    #[doc = " * of the green phase, will enable the individual traffic to clear a potential traffic jam in advance. Thereby the"]
6955    #[doc = " * approaching bus or tram may pass an intersection with activated green light without slowing down the speed due to"]
6956    #[doc = " * traffic congestion. Other usage of the DE is the provision of information like the public transport line number"]
6957    #[doc = " * or the schedule delay of a public transport vehicle."]
6958    #[doc = " * "]
6959    #[doc = " * @category: Vehicle information"]
6960    #[doc = " * @revision: V1.3.1"]
6961    #[doc = " "]
6962    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6963    #[rasn(delegate, size("1..=20"))]
6964    pub struct PtActivationData(pub OctetString);
6965    #[doc = "*"]
6966    #[doc = " * This DE indicates a certain coding type of the PtActivationData data."]
6967    #[doc = " *"]
6968    #[doc = " * The folowing value are specified:"]
6969    #[doc = " * - 0 `undefinedCodingType`  : undefined coding type,"]
6970    #[doc = " * - 1 `r09-16CodingType`     : coding of PtActivationData conform to VDV recommendation 420 [7],"]
6971    #[doc = " * - 2 `vdv-50149CodingType`  : coding of PtActivationData based on VDV recommendation 420 [7]."]
6972    #[doc = " * - 3 - 255                  : reserved for alternative and future use."]
6973    #[doc = " * "]
6974    #[doc = " * @category: Vehicle information "]
6975    #[doc = " * @revision: V1.3.1"]
6976    #[doc = " "]
6977    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
6978    #[rasn(delegate, value("0..=255"))]
6979    pub struct PtActivationType(pub u8);
6980    #[doc = "*"]
6981    #[doc = " * This DF describes a radial shape. The circular or spherical sector is constructed by sweeping      "]
6982    #[doc = " * the provided range about the reference position specified outside of the context of this DF or "]
6983    #[doc = " * about the optional shapeReferencePoint. The range is swept between a horizontal start and a "]
6984    #[doc = " * horizontal end angle in the X-Y plane of a cartesian coordinate system specified outside of the "]
6985    #[doc = " * context of this DF, in a right-hand positive angular direction w.r.t. the x-axis. "]
6986    #[doc = " * A vertical opening angle in the X-Z plane may optionally be provided in a right-hand positive "]
6987    #[doc = " * angular direction w.r.t. the x-axis. "]
6988    #[doc = " *"]
6989    #[doc = " * It shall include the following components:"]
6990    #[doc = " * "]
6991    #[doc = " * @field shapeReferencePoint: the optional reference point used for the definition of the shape, "]
6992    #[doc = " * relative to an externally specified reference position. If this component is absent, the  "]
6993    #[doc = " * externally specified reference position represents the shape's reference point. "]
6994    #[doc = " *"]
6995    #[doc = " * @field range: the radial range of the shape from the shape's reference point. "]
6996    #[doc = " *"]
6997    #[doc = " * @field horizontalOpeningAngleStart: the start of the shape's horizontal opening angle. "]
6998    #[doc = " *"]
6999    #[doc = " * @field horizontalOpeningAngleEnd: the end of the shape's horizontal opening angle. "]
7000    #[doc = " *"]
7001    #[doc = " * @field verticalOpeningAngleStart: optional start of the shape's vertical opening angle. "]
7002    #[doc = " *"]
7003    #[doc = " * @field verticalOpeningAngleEnd: optional end of the shape's vertical opening angle. "]
7004    #[doc = " *"]
7005    #[doc = " * @category GeoReference information"]
7006    #[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"]
7007    #[doc = ""]
7008    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7009    #[rasn(automatic_tags)]
7010    pub struct RadialShape {
7011        #[rasn(identifier = "shapeReferencePoint")]
7012        pub shape_reference_point: Option<CartesianPosition3d>,
7013        pub range: StandardLength12b,
7014        #[rasn(identifier = "horizontalOpeningAngleStart")]
7015        pub horizontal_opening_angle_start: CartesianAngleValue,
7016        #[rasn(identifier = "horizontalOpeningAngleEnd")]
7017        pub horizontal_opening_angle_end: CartesianAngleValue,
7018        #[rasn(identifier = "verticalOpeningAngleStart")]
7019        pub vertical_opening_angle_start: Option<CartesianAngleValue>,
7020        #[rasn(identifier = "verticalOpeningAngleEnd")]
7021        pub vertical_opening_angle_end: Option<CartesianAngleValue>,
7022    }
7023    impl RadialShape {
7024        pub fn new(
7025            shape_reference_point: Option<CartesianPosition3d>,
7026            range: StandardLength12b,
7027            horizontal_opening_angle_start: CartesianAngleValue,
7028            horizontal_opening_angle_end: CartesianAngleValue,
7029            vertical_opening_angle_start: Option<CartesianAngleValue>,
7030            vertical_opening_angle_end: Option<CartesianAngleValue>,
7031        ) -> Self {
7032            Self {
7033                shape_reference_point,
7034                range,
7035                horizontal_opening_angle_start,
7036                horizontal_opening_angle_end,
7037                vertical_opening_angle_start,
7038                vertical_opening_angle_end,
7039            }
7040        }
7041    }
7042    #[doc = "*"]
7043    #[doc = " * This DF describes radial shape details. The circular sector or cone is"]
7044    #[doc = " * constructed by sweeping the provided range about the position specified outside of the  "]
7045    #[doc = " * context of this DF. The range is swept between a horizontal start and a horizontal end angle in "]
7046    #[doc = " * the X-Y plane of a right-hand cartesian coordinate system specified outside of the context of "]
7047    #[doc = " * this DF, in positive angular direction w.r.t. the x-axis. A vertical opening angle in the X-Z "]
7048    #[doc = " * plane may optionally be provided in positive angular direction w.r.t. the x-axis."]
7049    #[doc = " * "]
7050    #[doc = " * It shall include the following components:"]
7051    #[doc = " * "]
7052    #[doc = " * @field range: the radial range of the sensor from the reference point or sensor point offset. "]
7053    #[doc = " *"]
7054    #[doc = " * @field horizontalOpeningAngleStart:  the start of the shape's horizontal opening angle."]
7055    #[doc = " *"]
7056    #[doc = " * @field horizontalOpeningAngleEnd: the end of the shape's horizontal opening angle. "]
7057    #[doc = " *"]
7058    #[doc = " * @field verticalOpeningAngleStart: optional start of the shape's vertical opening angle. "]
7059    #[doc = " *"]
7060    #[doc = " * @field verticalOpeningAngleEnd: optional end of the shape's vertical opening angle. "]
7061    #[doc = " *"]
7062    #[doc = " * @category: Georeference information"]
7063    #[doc = " * @revision: created in V2.1.1, description revised and constraint added in V2.2.1"]
7064    #[doc = " "]
7065    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7066    #[rasn(automatic_tags)]
7067    pub struct RadialShapeDetails {
7068        pub range: StandardLength12b,
7069        #[rasn(identifier = "horizontalOpeningAngleStart")]
7070        pub horizontal_opening_angle_start: CartesianAngleValue,
7071        #[rasn(identifier = "horizontalOpeningAngleEnd")]
7072        pub horizontal_opening_angle_end: CartesianAngleValue,
7073        #[rasn(identifier = "verticalOpeningAngleStart")]
7074        pub vertical_opening_angle_start: Option<CartesianAngleValue>,
7075        #[rasn(identifier = "verticalOpeningAngleEnd")]
7076        pub vertical_opening_angle_end: Option<CartesianAngleValue>,
7077    }
7078    impl RadialShapeDetails {
7079        pub fn new(
7080            range: StandardLength12b,
7081            horizontal_opening_angle_start: CartesianAngleValue,
7082            horizontal_opening_angle_end: CartesianAngleValue,
7083            vertical_opening_angle_start: Option<CartesianAngleValue>,
7084            vertical_opening_angle_end: Option<CartesianAngleValue>,
7085        ) -> Self {
7086            Self {
7087                range,
7088                horizontal_opening_angle_start,
7089                horizontal_opening_angle_end,
7090                vertical_opening_angle_start,
7091                vertical_opening_angle_end,
7092            }
7093        }
7094    }
7095    #[doc = "*"]
7096    #[doc = " * This DF describes a list of radial shapes positioned w.r.t. to an offset position defined  "]
7097    #[doc = " * relative to a reference position specified outside of the context of this DF and oriented w.r.t.  "]
7098    #[doc = " * a cartesian coordinate system specified outside of the context of this DF. "]
7099    #[doc = " *"]
7100    #[doc = " * It shall include the following components:"]
7101    #[doc = " *"]
7102    #[doc = " * @field refPointId: the identification of the reference point in case of a sensor mounted to trailer. Defaults to ITS ReferencePoint (0)."]
7103    #[doc = " * "]
7104    #[doc = " * @field xCoordinate: the x-coordinate of the offset position."]
7105    #[doc = " *"]
7106    #[doc = " * @field yCoordinate: the y-coordinate of the offset position."]
7107    #[doc = " *"]
7108    #[doc = " * @field zCoordinate: the optional z-coordinate of the offset position."]
7109    #[doc = " *"]
7110    #[doc = " * @field radialShapesList: the list of radial shape details."]
7111    #[doc = " *"]
7112    #[doc = " * @category: Georeference information"]
7113    #[doc = " * @revision: created in V2.1.1, description revised in V2.2.1"]
7114    #[doc = " "]
7115    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7116    #[rasn(automatic_tags)]
7117    pub struct RadialShapes {
7118        #[rasn(identifier = "refPointId")]
7119        pub ref_point_id: Identifier1B,
7120        #[rasn(identifier = "xCoordinate")]
7121        pub x_coordinate: CartesianCoordinateSmall,
7122        #[rasn(identifier = "yCoordinate")]
7123        pub y_coordinate: CartesianCoordinateSmall,
7124        #[rasn(identifier = "zCoordinate")]
7125        pub z_coordinate: Option<CartesianCoordinateSmall>,
7126        #[rasn(identifier = "radialShapesList")]
7127        pub radial_shapes_list: RadialShapesList,
7128    }
7129    impl RadialShapes {
7130        pub fn new(
7131            ref_point_id: Identifier1B,
7132            x_coordinate: CartesianCoordinateSmall,
7133            y_coordinate: CartesianCoordinateSmall,
7134            z_coordinate: Option<CartesianCoordinateSmall>,
7135            radial_shapes_list: RadialShapesList,
7136        ) -> Self {
7137            Self {
7138                ref_point_id,
7139                x_coordinate,
7140                y_coordinate,
7141                z_coordinate,
7142                radial_shapes_list,
7143            }
7144        }
7145    }
7146    #[doc = "* "]
7147    #[doc = " * The DF contains a list of @ref RadialShapeDetails."]
7148    #[doc = " *"]
7149    #[doc = " * @category: Georeference information"]
7150    #[doc = " * @revision: created in V2.1.1"]
7151    #[doc = " "]
7152    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7153    #[rasn(delegate, size("1..=16", extensible))]
7154    pub struct RadialShapesList(pub SequenceOf<RadialShapeDetails>);
7155    #[doc = "*"]
7156    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `railwayLevelCrossing` ."]
7157    #[doc = " * "]
7158    #[doc = " * The value shall be set to:"]
7159    #[doc = " * - 0 `unavailable`                   - in case no further detailed information on the railway level crossing status is available,"]
7160    #[doc = " * - 1 `doNotCrossAbnormalSituation`   - in case when something wrong is detected by equation or sensors of the railway level crossing, "]
7161    #[doc = "                                         including level crossing is closed for too long (e.g. more than 10 minutes long ; default value),"]
7162    #[doc = " * - 2 `closed`                        - in case the crossing is closed or closing (barriers down),"]
7163    #[doc = " * - 3 `unguarded`                     - in case the level crossing is unguarded (i.e a Saint Andrew cross level crossing without detection of train),"]
7164    #[doc = " * - 4 `nominal`                       - in case the barriers are up and/or the warning systems are off,"]
7165    #[doc = " * - 5 `trainApproaching`              - in case a train is approaching and the railway level crossing is without barriers."]
7166    #[doc = " * - 6-255: reserved for future usage."]
7167    #[doc = " *"]
7168    #[doc = " * @category: Traffic information"]
7169    #[doc = " * @revision: V1.3.1, description of value 2 and 4 changed and value 5 added in V2.3.1"]
7170    #[doc = " "]
7171    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7172    #[rasn(delegate, value("0..=255"))]
7173    pub struct RailwayLevelCrossingSubCauseCode(pub u8);
7174    #[doc = "* "]
7175    #[doc = " * This DF represents the shape of a rectangular area or a right rectangular prism that is centred "]
7176    #[doc = " * on a reference position defined outside of the context of this DF and oriented w.r.t. a cartesian    "]
7177    #[doc = " * coordinate system defined outside of the context of this DF. "]
7178    #[doc = " *"]
7179    #[doc = " * It shall include the following components: "]
7180    #[doc = " * "]
7181    #[doc = " * @field shapeReferencePoint: represents an optional offset point which the rectangle is centred on with "]
7182    #[doc = " * respect to the reference position. If this component is absent, the externally specified  "]
7183    #[doc = " * reference position represents the shape's reference point. "]
7184    #[doc = " *"]
7185    #[doc = " * @field semiLength: represents half the length of the rectangle located in the X-Y Plane."]
7186    #[doc = " * "]
7187    #[doc = " * @field semiBreadth: represents half the breadth of the rectangle located in the X-Y Plane."]
7188    #[doc = " *"]
7189    #[doc = " * @field orientation: represents the optional orientation of the longer side of the rectangle, "]
7190    #[doc = " * measured with positive values turning around the Z-axis using the right-hand rule, starting from"]
7191    #[doc = " * the X-axis. If absent, the orientation is equal to the value zero."]
7192    #[doc = " *"]
7193    #[doc = " * @field height: represents the optional height, present if the shape is a right rectangular prism "]
7194    #[doc = " * with height extending in the positive Z-axis."]
7195    #[doc = " *"]
7196    #[doc = " * @category GeoReference information"]
7197    #[doc = " * @revision: created in V2.1.1, centerPoint renamed to shapeReferencePoint, the type of the field orientation changed "]
7198    #[doc = " *            and description revised in V2.2.1, added sentence on absence in V2.4.1"]
7199    #[doc = " "]
7200    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7201    #[rasn(automatic_tags)]
7202    pub struct RectangularShape {
7203        #[rasn(identifier = "shapeReferencePoint")]
7204        pub shape_reference_point: Option<CartesianPosition3d>,
7205        #[rasn(identifier = "semiLength")]
7206        pub semi_length: StandardLength12b,
7207        #[rasn(identifier = "semiBreadth")]
7208        pub semi_breadth: StandardLength12b,
7209        pub orientation: Option<CartesianAngleValue>,
7210        pub height: Option<StandardLength12b>,
7211    }
7212    impl RectangularShape {
7213        pub fn new(
7214            shape_reference_point: Option<CartesianPosition3d>,
7215            semi_length: StandardLength12b,
7216            semi_breadth: StandardLength12b,
7217            orientation: Option<CartesianAngleValue>,
7218            height: Option<StandardLength12b>,
7219        ) -> Self {
7220            Self {
7221                shape_reference_point,
7222                semi_length,
7223                semi_breadth,
7224                orientation,
7225                height,
7226            }
7227        }
7228    }
7229    #[doc = "*"]
7230    #[doc = " * A position within a geographic coordinate system together with a confidence ellipse. "]
7231    #[doc = " *"]
7232    #[doc = " * It shall include the following components: "]
7233    #[doc = " *"]
7234    #[doc = " * @field latitude: the latitude of the geographical point."]
7235    #[doc = " *"]
7236    #[doc = " * @field longitude: the longitude of the geographical point."]
7237    #[doc = " *"]
7238    #[doc = " * @field positionConfidenceEllipse: the confidence ellipse associated to the geographical position."]
7239    #[doc = " *"]
7240    #[doc = " * @field altitude: the altitude and an altitude accuracy of the geographical point."]
7241    #[doc = " *"]
7242    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref ReferencePositionWithConfidence instead. "]
7243    #[doc = " * @category: GeoReference information"]
7244    #[doc = " * @revision: description updated in V2.1.1"]
7245    #[doc = " "]
7246    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7247    #[rasn(automatic_tags)]
7248    pub struct ReferencePosition {
7249        pub latitude: Latitude,
7250        pub longitude: Longitude,
7251        #[rasn(identifier = "positionConfidenceEllipse")]
7252        pub position_confidence_ellipse: PosConfidenceEllipse,
7253        pub altitude: Altitude,
7254    }
7255    impl ReferencePosition {
7256        pub fn new(
7257            latitude: Latitude,
7258            longitude: Longitude,
7259            position_confidence_ellipse: PosConfidenceEllipse,
7260            altitude: Altitude,
7261        ) -> Self {
7262            Self {
7263                latitude,
7264                longitude,
7265                position_confidence_ellipse,
7266                altitude,
7267            }
7268        }
7269    }
7270    #[doc = "*"]
7271    #[doc = " * A position within a geographic coordinate system together with a confidence ellipse. "]
7272    #[doc = " *"]
7273    #[doc = " * It shall include the following components: "]
7274    #[doc = " *"]
7275    #[doc = " * @field latitude: the latitude of the geographical point."]
7276    #[doc = " *"]
7277    #[doc = " * @field longitude: the longitude of the geographical point."]
7278    #[doc = " *"]
7279    #[doc = " * @field positionConfidenceEllipse: the confidence ellipse associated to the geographical position."]
7280    #[doc = " *"]
7281    #[doc = " * @field altitude: the altitude and an altitude accuracy of the geographical point."]
7282    #[doc = " *"]
7283    #[doc = " * @category: GeoReference information"]
7284    #[doc = " * @revision: created in V2.1.1 based on @ref ReferencePosition but using @ref PositionConfidenceEllipse."]
7285    #[doc = " "]
7286    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7287    #[rasn(automatic_tags)]
7288    pub struct ReferencePositionWithConfidence {
7289        pub latitude: Latitude,
7290        pub longitude: Longitude,
7291        #[rasn(identifier = "positionConfidenceEllipse")]
7292        pub position_confidence_ellipse: PositionConfidenceEllipse,
7293        pub altitude: Altitude,
7294    }
7295    impl ReferencePositionWithConfidence {
7296        pub fn new(
7297            latitude: Latitude,
7298            longitude: Longitude,
7299            position_confidence_ellipse: PositionConfidenceEllipse,
7300            altitude: Altitude,
7301        ) -> Self {
7302            Self {
7303                latitude,
7304                longitude,
7305                position_confidence_ellipse,
7306                altitude,
7307            }
7308        }
7309    }
7310    #[doc = "*"]
7311    #[doc = " * This DE describes a distance of relevance for information indicated in a message."]
7312    #[doc = " *"]
7313    #[doc = " * The value shall be set to:"]
7314    #[doc = " * - 0 `lessThan50m`   - for distances below 50 m,"]
7315    #[doc = " * - 1 `lessThan100m`  - for distances below 100 m, "]
7316    #[doc = " * - 2 `lessThan200m`  - for distances below 200 m, "]
7317    #[doc = " * - 3 `lessThan500m`  - for distances below 300 m, "]
7318    #[doc = " * - 4 `lessThan1000m` - for distances below 1 000 m, "]
7319    #[doc = " * - 5 `lessThan5km`   - for distances below 5 000 m, "]
7320    #[doc = " * - 6 `lessThan10km`  - for distances below 10 000 m, "]
7321    #[doc = " * - 7 `over10km`      - for distances over 10 000 m. "]
7322    #[doc = " * "]
7323    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref StandardLength3b instead. "]
7324    #[doc = " *"]
7325    #[doc = " * @category: GeoReference information"]
7326    #[doc = " * @revision: Editorial update in V2.1.1"]
7327    #[doc = " "]
7328    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7329    #[rasn(enumerated)]
7330    pub enum RelevanceDistance {
7331        lessThan50m = 0,
7332        lessThan100m = 1,
7333        lessThan200m = 2,
7334        lessThan500m = 3,
7335        lessThan1000m = 4,
7336        lessThan5km = 5,
7337        lessThan10km = 6,
7338        over10km = 7,
7339    }
7340    #[doc = "*"]
7341    #[doc = " * This DE indicates a traffic direction that is relevant to information indicated in a message."]
7342    #[doc = " * "]
7343    #[doc = " * The value shall be set to:"]
7344    #[doc = " * - 0 `allTrafficDirections` - for all traffic directions, "]
7345    #[doc = " * - 1 `upstreamTraffic`      - for upstream traffic, "]
7346    #[doc = " * - 2 `downstreamTraffic`    - for downstream traffic, "]
7347    #[doc = " * - 3 `oppositeTraffic`      - for traffic in the opposite direction. "]
7348    #[doc = " *"]
7349    #[doc = " * The terms `upstream`, `downstream` and `oppositeTraffic` are relative to the event position."]
7350    #[doc = " *"]
7351    #[doc = " * @note: Upstream traffic corresponds to the incoming traffic towards the event position,"]
7352    #[doc = " * and downstream traffic to the departing traffic away from the event position."]
7353    #[doc = " *"]
7354    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrafficDirection instead. "]
7355    #[doc = " *"]
7356    #[doc = " * @category: GeoReference information"]
7357    #[doc = " * @revision: Editorial update in V2.1.1"]
7358    #[doc = " "]
7359    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7360    #[rasn(enumerated)]
7361    pub enum RelevanceTrafficDirection {
7362        allTrafficDirections = 0,
7363        upstreamTraffic = 1,
7364        downstreamTraffic = 2,
7365        oppositeTraffic = 3,
7366    }
7367    #[doc = "*"]
7368    #[doc = " * This DE indicates whether an ITS message is transmitted as request from ITS-S or a response transmitted from"]
7369    #[doc = " * ITS-S after receiving request from other ITS-Ss."]
7370    #[doc = " *"]
7371    #[doc = " * The value shall be set to:"]
7372    #[doc = " * - 0 `request`  - for a request message, "]
7373    #[doc = " * - 1 `response` - for a response message.  "]
7374    #[doc = " *"]
7375    #[doc = " * @category Communication information"]
7376    #[doc = " * @revision: Editorial update in V2.1.1"]
7377    #[doc = " "]
7378    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7379    #[rasn(enumerated)]
7380    pub enum RequestResponseIndication {
7381        request = 0,
7382        response = 1,
7383    }
7384    #[doc = "*"]
7385    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `RescueRecoveryAndMaintenanceWorkInProgressSubCauseCode` "]
7386    #[doc = " * "]
7387    #[doc = " * The value shall be set to:"]
7388    #[doc = " * - 0 `unavailable`                         - in case further detailed information on rescue and recovery work is unavailable,"]
7389    #[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,"]
7390    #[doc = " * - 2 `rescueHelicopterLanding`             - in case rescue helicopter is landing,"]
7391    #[doc = " * - 3 `policeActivityOngoing`               - in case police activity is ongoing (only to be used if a more specific sub cause than (1) is needed),"]
7392    #[doc = " * - 4 `medicalEmergencyOngoing`             - in case medical emergency recovery is ongoing (only to be used if a more specific sub cause than (1) is needed),"]
7393    #[doc = " * - 5 `childAbductionInProgress-deprecated` - deprecated,"]
7394    #[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,"]
7395    #[doc = " * - 7 `rescueAndRecoveryVehicle`            - in case technical rescue work is ongoing by rescue and recovery vehicles."]
7396    #[doc = " * - 8-255: reserved for future usage."]
7397    #[doc = ""]
7398    #[doc = " *"]
7399    #[doc = " * @category: Traffic information"]
7400    #[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"]
7401    #[doc = " "]
7402    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7403    #[rasn(delegate, value("0..=255"))]
7404    pub struct RescueRecoveryAndMaintenanceWorkInProgressSubCauseCode(pub u8);
7405    #[doc = "*"]
7406    #[doc = " * This DF shall contain a list of @ref StationType. to which a certain traffic restriction, e.g. the speed limit, applies."]
7407    #[doc = " * "]
7408    #[doc = " * @category: Infrastructure information, Traffic information"]
7409    #[doc = " * @revision: V1.3.1"]
7410    #[doc = " "]
7411    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7412    #[rasn(delegate, size("1..=3", extensible))]
7413    pub struct RestrictedTypes(pub SequenceOf<StationType>);
7414    #[doc = "* "]
7415    #[doc = " * This DF provides configuration information about a road section."]
7416    #[doc = " *"]
7417    #[doc = " * It shall include the following components: "]
7418    #[doc = " *"]
7419    #[doc = " * @field roadSectionDefinition: the topological definition of the road section for which the information in the other components applies throughout its entire length."]
7420    #[doc = " * "]
7421    #[doc = " * @field roadType: the optional type of road on which the section is located."]
7422    #[doc = " * "]
7423    #[doc = " * @field laneConfiguration: the optional configuration of the road section in terms of basic information per lane."]
7424    #[doc = " *"]
7425    #[doc = " * @field mapemConfiguration: the optional configuration of the road section in terms of MAPEM lanes or connections."]
7426    #[doc = " *"]
7427    #[doc = " * @category: Road topology information"]
7428    #[doc = " * @revision: Created in V2.2.1"]
7429    #[doc = ""]
7430    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7431    #[rasn(automatic_tags)]
7432    #[non_exhaustive]
7433    pub struct RoadConfigurationSection {
7434        #[rasn(identifier = "roadSectionDefinition")]
7435        pub road_section_definition: RoadSectionDefinition,
7436        #[rasn(identifier = "roadType")]
7437        pub road_type: Option<RoadType>,
7438        #[rasn(identifier = "laneConfiguration")]
7439        pub lane_configuration: Option<BasicLaneConfiguration>,
7440        #[rasn(identifier = "mapemConfiguration")]
7441        pub mapem_configuration: Option<MapemConfiguration>,
7442    }
7443    impl RoadConfigurationSection {
7444        pub fn new(
7445            road_section_definition: RoadSectionDefinition,
7446            road_type: Option<RoadType>,
7447            lane_configuration: Option<BasicLaneConfiguration>,
7448            mapem_configuration: Option<MapemConfiguration>,
7449        ) -> Self {
7450            Self {
7451                road_section_definition,
7452                road_type,
7453                lane_configuration,
7454                mapem_configuration,
7455            }
7456        }
7457    }
7458    #[doc = "*"]
7459    #[doc = " * This DF shall contain a list of @ref RoadConfigurationSection."]
7460    #[doc = " * "]
7461    #[doc = " * @category: Road Topology information"]
7462    #[doc = " * @revision: Created in V2.2.1"]
7463    #[doc = " "]
7464    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7465    #[rasn(delegate, size("1..=8", extensible))]
7466    pub struct RoadConfigurationSectionList(pub SequenceOf<RoadConfigurationSection>);
7467    #[doc = "* "]
7468    #[doc = " * This DF provides the basic topological definition of a road section."]
7469    #[doc = " *"]
7470    #[doc = " * It shall include the following components: "]
7471    #[doc = " * "]
7472    #[doc = " * @field startingPointSection: the position of the starting point of the section. "]
7473    #[doc = " * "]
7474    #[doc = " * @field lengthOfSection: the optional length of the section along the road profile (i.e. including curves)."]
7475    #[doc = " * "]
7476    #[doc = " * @field endingPointSection: the optional position of the ending point of the section. "]
7477    #[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."]
7478    #[doc = " *"]
7479    #[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. "]
7480    #[doc = " * "]
7481    #[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. "]
7482    #[doc = " *"]
7483    #[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). "]
7484    #[doc = " * "]
7485    #[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."]
7486    #[doc = " *"]
7487    #[doc = " * @category: Road topology information"]
7488    #[doc = " * @revision: Created in V2.2.1"]
7489    #[doc = ""]
7490    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7491    #[rasn(automatic_tags)]
7492    #[non_exhaustive]
7493    pub struct RoadSectionDefinition {
7494        #[rasn(identifier = "startingPointSection")]
7495        pub starting_point_section: GeoPosition,
7496        #[rasn(identifier = "lengthOfSection")]
7497        pub length_of_section: Option<StandardLength2B>,
7498        #[rasn(identifier = "endingPointSection")]
7499        pub ending_point_section: Option<GeoPosition>,
7500        #[rasn(identifier = "connectedPaths")]
7501        pub connected_paths: PathReferences,
7502        #[rasn(identifier = "includedPaths")]
7503        pub included_paths: PathReferences,
7504        #[rasn(identifier = "isEventZoneIncluded")]
7505        pub is_event_zone_included: bool,
7506        #[rasn(identifier = "isEventZoneConnected")]
7507        pub is_event_zone_connected: bool,
7508    }
7509    impl RoadSectionDefinition {
7510        pub fn new(
7511            starting_point_section: GeoPosition,
7512            length_of_section: Option<StandardLength2B>,
7513            ending_point_section: Option<GeoPosition>,
7514            connected_paths: PathReferences,
7515            included_paths: PathReferences,
7516            is_event_zone_included: bool,
7517            is_event_zone_connected: bool,
7518        ) -> Self {
7519            Self {
7520                starting_point_section,
7521                length_of_section,
7522                ending_point_section,
7523                connected_paths,
7524                included_paths,
7525                is_event_zone_included,
7526                is_event_zone_connected,
7527            }
7528        }
7529    }
7530    #[doc = "* "]
7531    #[doc = " * This DE indicates an ordinal number that represents the position of a component in the list @ref RoadConfigurationSectionList. "]
7532    #[doc = " *"]
7533    #[doc = " * The value shall be set to:"]
7534    #[doc = " * - `0`     - if no road section is identified"]
7535    #[doc = " * - `1..8`  - for instances 1..8 of @ref RoadConfigurationSectionList "]
7536    #[doc = " *"]
7537    #[doc = " * @category: Road topology information"]
7538    #[doc = " * @revision: Created in V2.2.1"]
7539    #[doc = " "]
7540    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7541    #[rasn(delegate, value("0..=8", extensible))]
7542    pub struct RoadSectionId(pub Integer);
7543    #[doc = "*"]
7544    #[doc = " * This DF represents a unique id for a road segment"]
7545    #[doc = " *"]
7546    #[doc = " * It shall include the following components: "]
7547    #[doc = " *"]
7548    #[doc = " * @field region: the optional identifier of the entity that is responsible for the region in which the road segment is placed."]
7549    #[doc = " * It is the duty of that entity to guarantee that the @ref Id is unique within the region."]
7550    #[doc = " *"]
7551    #[doc = " * @field id: the identifier of the road segment."]
7552    #[doc = " *"]
7553    #[doc = " * @note: when the component region is present, the RoadSegmentReferenceId is guaranteed to be globally unique."]
7554    #[doc = " * @category: GeoReference information"]
7555    #[doc = " * @revision: created in V2.1.1"]
7556    #[doc = " "]
7557    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7558    #[rasn(automatic_tags)]
7559    pub struct RoadSegmentReferenceId {
7560        pub region: Option<Identifier2B>,
7561        pub id: Identifier2B,
7562    }
7563    impl RoadSegmentReferenceId {
7564        pub fn new(region: Option<Identifier2B>, id: Identifier2B) -> Self {
7565            Self { region, id }
7566        }
7567    }
7568    #[doc = "*"]
7569    #[doc = " * This DE indicates the type of a road segment."]
7570    #[doc = " * "]
7571    #[doc = " * The value shall be set to:"]
7572    #[doc = " * - 0 `urban-NoStructuralSeparationToOppositeLanes`       - for an urban road with no structural separation between lanes carrying traffic in opposite directions,"]
7573    #[doc = " * - 1 `urban-WithStructuralSeparationToOppositeLanes`     - for an urban road with structural separation between lanes carrying traffic in opposite directions,"]
7574    #[doc = " * - 2 `nonUrban-NoStructuralSeparationToOppositeLanes`    - for an non urban road with no structural separation between lanes carrying traffic in opposite directions,"]
7575    #[doc = " * - 3 `nonUrban-WithStructuralSeparationToOppositeLanes`  - for an non urban road with structural separation between lanes carrying traffic in opposite directions."]
7576    #[doc = " *"]
7577    #[doc = " * @category: Road Topology Information"]
7578    #[doc = " * @revision: Editorial update in V2.1.1"]
7579    #[doc = " "]
7580    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7581    #[rasn(enumerated)]
7582    pub enum RoadType {
7583        #[rasn(identifier = "urban-NoStructuralSeparationToOppositeLanes")]
7584        urban_NoStructuralSeparationToOppositeLanes = 0,
7585        #[rasn(identifier = "urban-WithStructuralSeparationToOppositeLanes")]
7586        urban_WithStructuralSeparationToOppositeLanes = 1,
7587        #[rasn(identifier = "nonUrban-NoStructuralSeparationToOppositeLanes")]
7588        nonUrban_NoStructuralSeparationToOppositeLanes = 2,
7589        #[rasn(identifier = "nonUrban-WithStructuralSeparationToOppositeLanes")]
7590        nonUrban_WithStructuralSeparationToOppositeLanes = 3,
7591    }
7592    #[doc = "*"]
7593    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `roadworks`."]
7594    #[doc = " * "]
7595    #[doc = "The value shall be set to:"]
7596    #[doc = " * - 0 `unavailable`                 - in case further detailed information on roadworks is unavailable,"]
7597    #[doc = " * - 1 `roadOrCarriagewayClosure`    - in case roadworks are ongoing which comprise the closure of the entire road or of one entire carriageway,"]
7598    #[doc = " * - 2 `roadMarkingWork-deprecated`  - deprecated since covered by 3 or 4,"]
7599    #[doc = " * - 3 `movingLaneClosure`           - in case moving roadworks are ongoing, which comprise the closure of a lane,"]
7600    #[doc = " * - 4 `stationaryLaneClosure`       - in case stationary roadworks are ongoing, which comprise the closure of one or multiple lanes but not of the carriageway/road,"]
7601    #[doc = " * - 5 `streetCleaning-deprecated`   - deprecated since not pertinent to roadworks and already covered by SlowVehicleSubCauseCode,"]
7602    #[doc = " * - 6 `winterService-deprecated`    - deprecated since not pertinent to roadworks and already covered by SlowVehicleSubCauseCode,"]
7603    #[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, "]
7604    #[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, "]
7605    #[doc = " * - 9 `dismantlingPhase`            - in case the work zone is being dismantled after finished works, which comprised the closure of one or multiple lanes "]
7606    #[doc = "                                       but the carriageway/road was not closed,"]
7607    #[doc = " * - 10 `carriagewayCrossover`       - in case the work zone includes lanes that are re-directed to another carriageway. "]
7608    #[doc = " * - 11-255                          - are reserved for future usage."]
7609    #[doc = " *"]
7610    #[doc = " * @category: Traffic information"]
7611    #[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"]
7612    #[doc = " "]
7613    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7614    #[rasn(delegate, value("0..=255"))]
7615    pub struct RoadworksSubCauseCode(pub u8);
7616    #[doc = "*"]
7617    #[doc = " * This DE indicates the driving automation level as defined in SAE J3016 [26]."]
7618    #[doc = " *"]
7619    #[doc = " * @category: Vehicle information"]
7620    #[doc = " * @revision: created in V2.3.1"]
7621    #[doc = ""]
7622    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7623    #[rasn(delegate, value("0..=5"))]
7624    pub struct SaeAutomationLevel(pub u8);
7625    #[doc = "*"]
7626    #[doc = " * This DF provides the safe distance indication of a traffic participant with other traffic participant(s)."]
7627    #[doc = " *"]
7628    #[doc = " * It shall include the following components: "]
7629    #[doc = " * "]
7630    #[doc = " * @field subjectStation: optionally indicates one \"other\" traffic participant identified by its ITS-S."]
7631    #[doc = " *  "]
7632    #[doc = " * @field safeDistanceIndicator: indicates whether the distance between the ego ITS-S and the traffic participant(s) is safe."]
7633    #[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. "]
7634    #[doc = " *"]
7635    #[doc = " * @field timeToCollision: optionally indicated the time-to-collision calculated as sqrt(LaDi^2 + LoDi^2 + VDi^2/relative speed "]
7636    #[doc = " * and represented in  the  nearest 100  ms. This component may be present only if subjectStation is present. "]
7637    #[doc = " *"]
7638    #[doc = " * @note: the abbreviations used are Lateral Distance (LaD),  Longitudinal Distance (LoD) and Vertical Distance (VD) "]
7639    #[doc = " * and their respective  thresholds, Minimum  Safe  Lateral  Distance (MSLaD), Minimum  Safe  Longitudinal Distance  (MSLoD),  and  Minimum  Safe Vertical Distance (MSVD)."]
7640    #[doc = " *"]
7641    #[doc = " * @category: Traffic information, Kinematic information"]
7642    #[doc = " * @revision: created in V2.1.1"]
7643    #[doc = " "]
7644    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7645    #[rasn(automatic_tags)]
7646    #[non_exhaustive]
7647    pub struct SafeDistanceIndication {
7648        #[rasn(identifier = "subjectStation")]
7649        pub subject_station: Option<StationId>,
7650        #[rasn(identifier = "safeDistanceIndicator")]
7651        pub safe_distance_indicator: SafeDistanceIndicator,
7652        #[rasn(identifier = "timeToCollision")]
7653        pub time_to_collision: Option<DeltaTimeTenthOfSecond>,
7654    }
7655    impl SafeDistanceIndication {
7656        pub fn new(
7657            subject_station: Option<StationId>,
7658            safe_distance_indicator: SafeDistanceIndicator,
7659            time_to_collision: Option<DeltaTimeTenthOfSecond>,
7660        ) -> Self {
7661            Self {
7662                subject_station,
7663                safe_distance_indicator,
7664                time_to_collision,
7665            }
7666        }
7667    }
7668    #[doc = "*"]
7669    #[doc = " * This DE indicates if a distance is safe. "]
7670    #[doc = " *"]
7671    #[doc = " * The value shall be set to:"]
7672    #[doc = " * -  `FALSE`  if  the triple  {LaD,  LoD, VD} < {MSLaD, MSLoD, MSVD} is simultaneously  satisfied with confidence level of  90 % or  more, "]
7673    #[doc = " * -  `TRUE` otherwise. "]
7674    #[doc = " *"]
7675    #[doc = " * @note: the abbreviations used are Lateral Distance (LaD),  Longitudinal Distance (LoD) and Vertical Distance (VD) "]
7676    #[doc = " * and their respective  thresholds, Minimum  Safe  Lateral  Distance (MSLaD), Minimum  Safe  Longitudinal Distance  (MSLoD),  and  Minimum  Safe Vertical Distance (MSVD)."]
7677    #[doc = " *"]
7678    #[doc = " * @category: Traffic information, Kinematic information"]
7679    #[doc = " * @revision: Created in V2.1.1"]
7680    #[doc = ""]
7681    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
7682    #[rasn(delegate)]
7683    pub struct SafeDistanceIndicator(pub bool);
7684    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7685    #[rasn(delegate, value("0..=4095"))]
7686    pub struct SemiAxisLength(pub u16);
7687    #[doc = "* "]
7688    #[doc = " * This DE indicates the type of sensor."]
7689    #[doc = " * "]
7690    #[doc = " * The value shall be set to:"]
7691    #[doc = " * - 0  `undefined`         - in case the sensor type is undefined, "]
7692    #[doc = " * - 1  `radar`             - in case the sensor is a radar,"]
7693    #[doc = " * - 2  `lidar`             - in case the sensor is a lidar,"]
7694    #[doc = " * - 3  `monovideo`         - in case the sensor is mono video,"]
7695    #[doc = " * - 4  `stereovision`      - in case the sensor is stereo vision,"]
7696    #[doc = " * - 5  `nightvision`       - in case the sensor supports night vision, using e.g. infrared illumination or thermal imaging,"]
7697    #[doc = " * - 6  `ultrasonic`        - in case the sensor is ultrasonic,"]
7698    #[doc = " * - 7  `pmd`               - in case the sensor is photonic mixing device,"]
7699    #[doc = " * - 8  `inductionLoop`     - in case the sensor is an induction loop,"]
7700    #[doc = " * - 9  `sphericalCamera`   - in case the sensor is a spherical camera,"]
7701    #[doc = " * - 10 `uwb`               - in case the sensor is ultra wide band,"]
7702    #[doc = " * - 11 `acoustic`          - in case the sensor is acoustic,"]
7703    #[doc = " * - 12 `localAggregation`  - in case the information is provided by a system that aggregates information from different local sensors. Aggregation may include fusion,"]
7704    #[doc = " * - 13 `itsAggregation`    - in case the information is provided by a system that aggregates information from other received ITS messages,"]
7705    #[doc = " * - 14 `rfid`              - in case the sensor is radio frequency identification using a passive or active (e.g. Bluetooth, W-LAN) technology. "]
7706    #[doc = " * - 15-31                  - are reserved for future usage."]
7707    #[doc = " *"]
7708    #[doc = " * @category: Sensing Information"]
7709    #[doc = " * @revision: created in V2.1.1, description of value 5 changed and value 14 added in V2.3.1"]
7710    #[doc = ""]
7711    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7712    #[rasn(delegate, value("0..=31"))]
7713    pub struct SensorType(pub u8);
7714    #[doc = "* "]
7715    #[doc = " * This DE indicates the type of sensor(s)."]
7716    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
7717    #[doc = " * "]
7718    #[doc = " * - 0  `undefined`         - in case the sensor type is undefined. "]
7719    #[doc = " * - 1  `radar`             - in case the sensor is a radar,"]
7720    #[doc = " * - 2  `lidar`             - in case the sensor is a lidar,"]
7721    #[doc = " * - 3  `monovideo`         - in case the sensor is mono video,"]
7722    #[doc = " * - 4  `stereovision`      - in case the sensor is stereo vision,"]
7723    #[doc = " * - 5  `nightvision`       - in case the sensor supports night vision, using e.g. infrared illumination or thermal imaging,"]
7724    #[doc = " * - 6  `ultrasonic`        - in case the sensor is ultrasonic,"]
7725    #[doc = " * - 7  `pmd`               - in case the sensor is photonic mixing device,"]
7726    #[doc = " * - 8  `inductionLoop`     - in case the sensor is an induction loop,"]
7727    #[doc = " * - 9  `sphericalCamera`   - in case the sensor is a spherical camera,"]
7728    #[doc = " * - 10 `uwb`               - in case the sensor is ultra wide band,"]
7729    #[doc = " * - 11 `acoustic`          - in case the sensor is acoustic,"]
7730    #[doc = " * - 12 `localAggregation`  - in case the information is provided by a system that aggregates information from different local sensors. Aggregation may include fusion,"]
7731    #[doc = " * - 13 `itsAggregation`    - in case the information is provided by a system that aggregates information from other received ITS messages,"]
7732    #[doc = " * - 14 `rfid`              - in case the sensor is radio frequency identification using a passive or active (e.g. Bluetooth, W-LAN) technology. "]
7733    #[doc = " * - 15                     - reserved for future usage."]
7734    #[doc = " * "]
7735    #[doc = " * @note: If all bits are set to 0, then no sensor type is used"]
7736    #[doc = " *"]
7737    #[doc = " * @category: Sensing Information"]
7738    #[doc = " * @revision: created in V2.2.1, description of value 5 changed and value 14 added in V2.3.1"]
7739    #[doc = ""]
7740    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7741    #[rasn(delegate, size("16", extensible))]
7742    pub struct SensorTypes(pub BitString);
7743    #[doc = "*"]
7744    #[doc = " * This DE represents a sequence number."]
7745    #[doc = " * "]
7746    #[doc = " * @category: Basic information"]
7747    #[doc = " * @revision: V1.3.1"]
7748    #[doc = " "]
7749    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7750    #[rasn(delegate, value("0..=65535"))]
7751    pub struct SequenceNumber(pub u16);
7752    #[doc = "* "]
7753    #[doc = " * This DF shall contain a list of DF @ref CartesianPosition3d."]
7754    #[doc = " * "]
7755    #[doc = " * @category: GeoReference information"]
7756    #[doc = " * @revision: created in V2.1.1"]
7757    #[doc = " "]
7758    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7759    #[rasn(delegate, size("1..=16", extensible))]
7760    pub struct SequenceOfCartesianPosition3d(pub SequenceOf<CartesianPosition3d>);
7761    #[doc = "* "]
7762    #[doc = " * The DF contains a list of DE @ref Identifier1B."]
7763    #[doc = " *"]
7764    #[doc = " * @category: Basic 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..=128", extensible))]
7769    pub struct SequenceOfIdentifier1B(pub SequenceOf<Identifier1B>);
7770    #[doc = "*"]
7771    #[doc = " * The DF contains a list of DF @ref SafeDistanceIndication."]
7772    #[doc = " *"]
7773    #[doc = " * @category: Traffic information, Kinematic 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..=8", extensible))]
7778    pub struct SequenceOfSafeDistanceIndication(pub SequenceOf<SafeDistanceIndication>);
7779    #[doc = "*"]
7780    #[doc = " * The DF shall contain a list of DF @ref TrajectoryInterceptionIndication."]
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 SequenceOfTrajectoryInterceptionIndication(
7788        pub SequenceOf<TrajectoryInterceptionIndication>,
7789    );
7790    #[doc = "*"]
7791    #[doc = " * This DF provides the definition of a geographical area or volume, based on different options."]
7792    #[doc = " *"]
7793    #[doc = " * It is a choice of the following components: "]
7794    #[doc = " *"]
7795    #[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."]
7796    #[doc = " *"]
7797    #[doc = " * @field circular: definition of an area of circular shape or a right circular cylinder."]
7798    #[doc = " *"]
7799    #[doc = " * @field polygonal: definition of an area of polygonal shape or a right prism."]
7800    #[doc = " *"]
7801    #[doc = " * @field elliptical: definition of an area of elliptical shape or a right elliptical cylinder."]
7802    #[doc = " *"]
7803    #[doc = " * @field radial: definition of a radial shape."]
7804    #[doc = " *"]
7805    #[doc = " * @field radialList: definition of list of radial shapes."]
7806    #[doc = " *"]
7807    #[doc = " * @category: GeoReference information"]
7808    #[doc = " * @revision: Created in V2.1.1"]
7809    #[doc = " "]
7810    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7811    #[rasn(choice, automatic_tags)]
7812    #[non_exhaustive]
7813    pub enum Shape {
7814        rectangular(RectangularShape),
7815        circular(CircularShape),
7816        polygonal(PolygonalShape),
7817        elliptical(EllipticalShape),
7818        radial(RadialShape),
7819        radialShapes(RadialShapes),
7820    }
7821    #[doc = "*"]
7822    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `signalViolation`."]
7823    #[doc = " * "]
7824    #[doc = " * The value shall be set to:"]
7825    #[doc = " * - 0 `unavailable`               - in case further detailed information on signal violation event is unavailable,"]
7826    #[doc = " * - 1 `stopSignViolation`         - in case a stop sign violation is detected,"]
7827    #[doc = " * - 2 `trafficLightViolation`     - in case a traffic light violation is detected,"]
7828    #[doc = " * - 3 `turningRegulationViolation`- in case a turning regulation violation is detected."]
7829    #[doc = " * - 4-255                         - are reserved for future usage."]
7830    #[doc = " *"]
7831    #[doc = " * @category: Traffic information"]
7832    #[doc = " * @revision: V1.3.1"]
7833    #[doc = " "]
7834    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7835    #[rasn(delegate, value("0..=255"))]
7836    pub struct SignalViolationSubCauseCode(pub u8);
7837    #[doc = "*"]
7838    #[doc = " * This DE represents the sub cause codes of the @ref CauseCode \"slowVehicle\"."]
7839    #[doc = " * "]
7840    #[doc = " * The value shall be set to:"]
7841    #[doc = " * - 0 `unavailable`                            - in case further detailed information on slow vehicle driving event is unavailable,"]
7842    #[doc = " * - 1 `maintenanceVehicle`                     - in case of a slow driving maintenance vehicle on the road (incl. winter maintenance without detailed status),"]
7843    #[doc = " * - 2 `vehiclesSlowingToLookAtAccident`        - in case vehicle is temporally slowing down to look at accident, spot, etc.,"]
7844    #[doc = " * - 3 `abnormalLoad`                           - in case an abnormal loaded vehicle is driving slowly on the road,"]
7845    #[doc = " * - 4 `abnormalWideLoad`                       - in case an abnormal wide load vehicle is driving slowly on the road,"]
7846    #[doc = " * - 5 `convoy`                                 - in case of slow driving convoy on the road,"]
7847    #[doc = " * - 6 `winterMaintenanceSnowplough             - in case of slow driving snow plough on the road,"]
7848    #[doc = " * - 7 `deicing-deprecated`                     - deprecated since covered by 8 `winterMaintenanceAdhesionImprovement`,"]
7849    #[doc = " * - 8 `winterMaintenanceAdhesionImprovement`   - in case of a slow driving winter maintenance vehicle applying measures to improve the driving conditions "]
7850    #[doc = "                                                  and adhesion on winter roads, including improving grip (by applying sand or grit), de-icing (by applying salt or brine),"]
7851    #[doc = "                                                  or anti-icing (by applying brine to prevent buildup of ice and snow). "]
7852    #[doc = " * - 9-255                                      - are reserved for future usage."]
7853    #[doc = " * "]
7854    #[doc = " * @category: Traffic information"]
7855    #[doc = " * @revision: V1.3.1, value 7 deprecated and name of 6 and 8 changed and semantics of 8 refined in V2.4.1"]
7856    #[doc = " "]
7857    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7858    #[rasn(delegate, value("0..=255"))]
7859    pub struct SlowVehicleSubCauseCode(pub u8);
7860    #[doc = "*"]
7861    #[doc = " * The DE indicates if a vehicle is carrying goods in the special transport conditions."]
7862    #[doc = " *"]
7863    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
7864    #[doc = " * - 0 `heavyLoad`        - the vehicle is carrying goods with heavy load,"]
7865    #[doc = " * - 1 `excessWidth`      - the vehicle is carrying goods in excess of width,"]
7866    #[doc = " * - 2 `excessLength`     - the vehicle is carrying goods in excess of length,"]
7867    #[doc = " * - 3 `excessHeight`     - the vehicle is carrying goods in excess of height."]
7868    #[doc = " *"]
7869    #[doc = " * Otherwise, the corresponding bit shall be set to 0."]
7870    #[doc = " * @category Vehicle information"]
7871    #[doc = " * @revision: Description revised in V2.1.1"]
7872    #[doc = " "]
7873    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7874    #[rasn(delegate)]
7875    pub struct SpecialTransportType(pub FixedBitString<4usize>);
7876    #[doc = "*"]
7877    #[doc = " * This DF represents the speed and associated confidence value."]
7878    #[doc = " *"]
7879    #[doc = " * It shall include the following components: "]
7880    #[doc = " * "]
7881    #[doc = " * @field speedValue: the speed value."]
7882    #[doc = " * "]
7883    #[doc = " * @field speedConfidence: the confidence value of the speed value."]
7884    #[doc = " *"]
7885    #[doc = " * @category: Kinematic information"]
7886    #[doc = " * @revision: V1.3.1"]
7887    #[doc = " "]
7888    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7889    #[rasn(automatic_tags)]
7890    pub struct Speed {
7891        #[rasn(identifier = "speedValue")]
7892        pub speed_value: SpeedValue,
7893        #[rasn(identifier = "speedConfidence")]
7894        pub speed_confidence: SpeedConfidence,
7895    }
7896    impl Speed {
7897        pub fn new(speed_value: SpeedValue, speed_confidence: SpeedConfidence) -> Self {
7898            Self {
7899                speed_value,
7900                speed_confidence,
7901            }
7902        }
7903    }
7904    #[doc = "*"]
7905    #[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 %."]
7906    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
7907    #[doc = " * "]
7908    #[doc = " * The value shall be set to:"]
7909    #[doc = " * - `n` (`n > 0` and `n < 126`) if the confidence value is equal to or less than n * 0,01 m/s."]
7910    #[doc = " * - `126` if the confidence value is out of range, i.e. greater than 1,25 m/s,"]
7911    #[doc = " * - `127` if the confidence value information is not available."]
7912    #[doc = " *  "]
7913    #[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:"]
7914    #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
7915    #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
7916    #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
7917    #[doc = " * In all 3 cases above, the speed value may be valid and used by the application."]
7918    #[doc = " * "]
7919    #[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 "]
7920    #[doc = " * and therefore cannot be trusted. Such is not useful for the application."]
7921    #[doc = " *"]
7922    #[doc = " * @unit: 0,01 m/s"]
7923    #[doc = " * @category: Vehicle information"]
7924    #[doc = " * @revision: Description revised in V2.1.1 "]
7925    #[doc = " "]
7926    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7927    #[rasn(delegate, value("1..=127"))]
7928    pub struct SpeedConfidence(pub u8);
7929    #[doc = "*"]
7930    #[doc = " * This DE represents a speed limitation applied to a geographical position, a road section or a geographical region."]
7931    #[doc = " * "]
7932    #[doc = " * @unit: km/h"]
7933    #[doc = " * @category: Infrastructure information, Traffic information"]
7934    #[doc = " * @revision: V1.3.1"]
7935    #[doc = " "]
7936    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7937    #[rasn(delegate, value("1..=255"))]
7938    pub struct SpeedLimit(pub u8);
7939    #[doc = "*"]
7940    #[doc = " * This DE represents a speed value, i.e. the magnitude of the velocity-vector. "]
7941    #[doc = " *"]
7942    #[doc = " * The value shall be set to:"]
7943    #[doc = " * - `0` in a standstill situation."]
7944    #[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,"]
7945    #[doc = " * - `16 382` for speed values greater than 163,81 m/s,"]
7946    #[doc = " * - `16 383` if the speed accuracy information is not available."]
7947    #[doc = " * "]
7948    #[doc = " * @note: the definition of standstill is out of scope of the present document."]
7949    #[doc = " *"]
7950    #[doc = " * @unit: 0,01 m/s"]
7951    #[doc = " * @category: Kinematic information"]
7952    #[doc = " * @revision: Description revised in V2.1.1 (the meaning of 16382 has changed slightly) "]
7953    #[doc = ""]
7954    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7955    #[rasn(delegate, value("0..=16383"))]
7956    pub struct SpeedValue(pub u16);
7957    #[doc = "*"]
7958    #[doc = " * This DF  provides the  indication of  change in stability."]
7959    #[doc = " *"]
7960    #[doc = " * It shall include the following components: "]
7961    #[doc = " * "]
7962    #[doc = " * @field lossProbability: the probability of stability loss. "]
7963    #[doc = " * "]
7964    #[doc = " * @field actionDeltaTime: the period over which the the probability of stability loss is estimated. "]
7965    #[doc = " *"]
7966    #[doc = " * @category: Kinematic information"]
7967    #[doc = " * @revision: V2.1.1"]
7968    #[doc = " "]
7969    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
7970    #[rasn(automatic_tags)]
7971    #[non_exhaustive]
7972    pub struct StabilityChangeIndication {
7973        #[rasn(identifier = "lossProbability")]
7974        pub loss_probability: StabilityLossProbability,
7975        #[rasn(identifier = "actionDeltaTime")]
7976        pub action_delta_time: DeltaTimeTenthOfSecond,
7977    }
7978    impl StabilityChangeIndication {
7979        pub fn new(
7980            loss_probability: StabilityLossProbability,
7981            action_delta_time: DeltaTimeTenthOfSecond,
7982        ) -> Self {
7983            Self {
7984                loss_probability,
7985                action_delta_time,
7986            }
7987        }
7988    }
7989    #[doc = "*"]
7990    #[doc = " * This DE indicates the estimated probability of a stability level and conversely also the probability of a stability loss."]
7991    #[doc = " *"]
7992    #[doc = " * The value shall be set to:"]
7993    #[doc = " * - `0` to indicate an estimated probability of a loss of stability of 0 %, i.e. \"stable\", "]
7994    #[doc = " * - `n` (`n > 0` and `n < 50`) to indicate the actual stability level,"]
7995    #[doc = " * - `50` to indicate a estimated probability of a loss of stability of 100 %, i.e. \"total loss of stability\","]
7996    #[doc = " * - the values between 51 and 62 are reserved for future use,"]
7997    #[doc = " * - `63`: this value indicates that the information is unavailable."]
7998    #[doc = " *"]
7999    #[doc = " * @unit: 2 %"]
8000    #[doc = " * @category: Kinematic information"]
8001    #[doc = " * @revision: Created in V2.1.1"]
8002    #[doc = " "]
8003    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8004    #[rasn(delegate, value("0..=63"))]
8005    pub struct StabilityLossProbability(pub u8);
8006    #[doc = "*"]
8007    #[doc = " * The DE represents length as a measure of distance between points or as a dimension of an object or shape. "]
8008    #[doc = " *"]
8009    #[doc = " * @unit: 0,1 metre"]
8010    #[doc = " * @category: Basic information"]
8011    #[doc = " * @revision: Created in V2.1.1"]
8012    #[doc = " "]
8013    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8014    #[rasn(delegate, value("0..=4095"))]
8015    pub struct StandardLength12b(pub u16);
8016    #[doc = "*"]
8017    #[doc = " * The DE represents length as a measure of distance between points or as a dimension of an object. "]
8018    #[doc = " *"]
8019    #[doc = " * @unit: 0,1 metre"]
8020    #[doc = " * @category: Basic information"]
8021    #[doc = " * @revision: Created in V2.1.1"]
8022    #[doc = " "]
8023    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8024    #[rasn(delegate, value("0..=255"))]
8025    pub struct StandardLength1B(pub u8);
8026    #[doc = "*"]
8027    #[doc = " * The DE represents length as a measure of distance between points or as a dimension of an object.  "]
8028    #[doc = " *"]
8029    #[doc = " * @unit: 0,1 metre"]
8030    #[doc = " * @category: Basic information"]
8031    #[doc = " * @revision: Created in V2.1.1"]
8032    #[doc = " "]
8033    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8034    #[rasn(delegate, value("0..=65535"))]
8035    pub struct StandardLength2B(pub u16);
8036    #[doc = "*"]
8037    #[doc = " * The DE represents length as a measure of distance between points. "]
8038    #[doc = " *"]
8039    #[doc = " * The value shall be set to:"]
8040    #[doc = " * - 0 `lessThan50m`   - for distances below 50 m, "]
8041    #[doc = " * - 1 `lessThan100m`  - for distances below 100 m,"]
8042    #[doc = " * - 2 `lessThan200m`  - for distances below 200 m, "]
8043    #[doc = " * - 3 `lessThan500m`  - for distances below 300 m, "]
8044    #[doc = " * - 4 `lessThan1000m` - for distances below 1 000 m,"]
8045    #[doc = " * - 5 `lessThan5km`   - for distances below 5 000 m, "]
8046    #[doc = " * - 6 `lessThan10km`  - for distances below 10 000 m, "]
8047    #[doc = " * - 7 `over10km`      - for distances over 10 000 m."]
8048    #[doc = " *"]
8049    #[doc = " * @category: GeoReference information"]
8050    #[doc = " * @revision: Created in V2.1.1 from RelevanceDistance"]
8051    #[doc = " "]
8052    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8053    #[rasn(enumerated)]
8054    pub enum StandardLength3b {
8055        lessThan50m = 0,
8056        lessThan100m = 1,
8057        lessThan200m = 2,
8058        lessThan500m = 3,
8059        lessThan1000m = 4,
8060        lessThan5km = 5,
8061        lessThan10km = 6,
8062        over10km = 7,
8063    }
8064    #[doc = "*"]
8065    #[doc = " * The DE represents length as a measure of distance between points or as a dimension of an object. "]
8066    #[doc = " *"]
8067    #[doc = " * @unit: 0,1 metre"]
8068    #[doc = " * @category: Basic information"]
8069    #[doc = " * @revision: Created in V2.1.1"]
8070    #[doc = " "]
8071    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8072    #[rasn(delegate, value("0..=511"))]
8073    pub struct StandardLength9b(pub u16);
8074    #[doc = "*"]
8075    #[doc = " * This DE represents the identifier of an ITS-S."]
8076    #[doc = " * The ITS-S ID may be a pseudonym. It may change over space and/or over time."]
8077    #[doc = " *"]
8078    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref StationId instead."]
8079    #[doc = " * @category: Basic information"]
8080    #[doc = " * @revision: V1.3.1"]
8081    #[doc = " "]
8082    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8083    #[rasn(delegate, value("0..=4294967295"))]
8084    pub struct StationID(pub u32);
8085    #[doc = "*"]
8086    #[doc = " * This DE represents the identifier of an ITS-S."]
8087    #[doc = " * The ITS-S ID may be a pseudonym. It may change over space and/or over time."]
8088    #[doc = " *"]
8089    #[doc = " * @category: Basic information"]
8090    #[doc = " * @revision: Created in V2.1.1 based on @ref StationID"]
8091    #[doc = " "]
8092    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8093    #[rasn(delegate, value("0..=4294967295"))]
8094    pub struct StationId(pub u32);
8095    #[doc = "*"]
8096    #[doc = " * This DE represents the type of technical context the ITS-S is integrated in."]
8097    #[doc = " * The station type depends on the integration environment of ITS-S into vehicle, mobile devices or at infrastructure."]
8098    #[doc = " * "]
8099    #[doc = " * The value shall be set to the corresponding value of the integration environment of DE TrafficParticipantType"]
8100    #[doc = " * "]
8101    #[doc = " * @category: Communication information."]
8102    #[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."]
8103    #[doc = " "]
8104    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8105    #[rasn(delegate)]
8106    pub struct StationType(pub TrafficParticipantType);
8107    #[doc = "*"]
8108    #[doc = " * This DE indicates the duration in minutes since which something is stationary."]
8109    #[doc = " * "]
8110    #[doc = " * The value shall be set to:"]
8111    #[doc = " * - 0 `lessThan1Minute`         - for being stationary since less than 1 minute, "]
8112    #[doc = " * - 1 `lessThan2Minutes`        - for being stationary since less than 2 minute and for equal to or more than 1 minute,"]
8113    #[doc = " * - 2 `lessThan15Minutes`       - for being stationary since less than 15 minutes and for equal to or more than 1 minute,"]
8114    #[doc = " * - 3 `equalOrGreater15Minutes` - for being stationary since equal to or more than 15 minutes."]
8115    #[doc = " *"]
8116    #[doc = " * @category: Kinematic information"]
8117    #[doc = " * @revision: Created in V2.1.1"]
8118    #[doc = " "]
8119    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8120    #[rasn(enumerated)]
8121    pub enum StationarySince {
8122        lessThan1Minute = 0,
8123        lessThan2Minutes = 1,
8124        lessThan15Minutes = 2,
8125        equalOrGreater15Minutes = 3,
8126    }
8127    #[doc = "*"]
8128    #[doc = " * This DE provides the value of the sub cause codes of the @ref CauseCode \"stationaryVehicle\". "]
8129    #[doc = " * "]
8130    #[doc = " * The value shall be set to:"]
8131    #[doc = " * - 0 `unavailable`             - in case further detailed information on stationary vehicle is unavailable,"]
8132    #[doc = " * - 1 `humanProblem-deprecated` - deprecated since covered by DE HumanProblemSubCauseCode,"]
8133    #[doc = " * - 2 `vehicleBreakdown`        - in case stationary vehicle is due to vehicle break down,"]
8134    #[doc = " * - 3 `postCrash`               - in case stationary vehicle is caused by collision,"]
8135    #[doc = " * - 4 `publicTransportStop`     - in case public transport vehicle is stationary at bus stop,"]
8136    #[doc = " * - 5 `carryingDangerousGoods`  - in case the stationary vehicle is carrying dangerous goods,"]
8137    #[doc = " * - 6 `vehicleOnFire`           - in case of vehicle on fire."]
8138    #[doc = " * - 7-255 reserved for future usage."]
8139    #[doc = " *"]
8140    #[doc = " * @category: Traffic information"]
8141    #[doc = " * @revision: V1.3.1, value 6 added in V2.1.1, value 1 deprecated in V2.4.1"]
8142    #[doc = " "]
8143    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8144    #[rasn(delegate, value("0..=255"))]
8145    pub struct StationaryVehicleSubCauseCode(pub u8);
8146    #[doc = "*"]
8147    #[doc = " * This DF represents the steering wheel angle of the vehicle at certain point in time."]
8148    #[doc = " *"]
8149    #[doc = " * It shall include the following components: "]
8150    #[doc = " * "]
8151    #[doc = " * @field steeringWheelAngleValue: steering wheel angle value."]
8152    #[doc = " * "]
8153    #[doc = " * @field steeringWheelAngleConfidence: confidence value of the steering wheel angle value."]
8154    #[doc = " * "]
8155    #[doc = " * @category: Vehicle information"]
8156    #[doc = " * @revision: Created in V2.1.1"]
8157    #[doc = " "]
8158    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8159    #[rasn(automatic_tags)]
8160    pub struct SteeringWheelAngle {
8161        #[rasn(identifier = "steeringWheelAngleValue")]
8162        pub steering_wheel_angle_value: SteeringWheelAngleValue,
8163        #[rasn(identifier = "steeringWheelAngleConfidence")]
8164        pub steering_wheel_angle_confidence: SteeringWheelAngleConfidence,
8165    }
8166    impl SteeringWheelAngle {
8167        pub fn new(
8168            steering_wheel_angle_value: SteeringWheelAngleValue,
8169            steering_wheel_angle_confidence: SteeringWheelAngleConfidence,
8170        ) -> Self {
8171            Self {
8172                steering_wheel_angle_value,
8173                steering_wheel_angle_confidence,
8174            }
8175        }
8176    }
8177    #[doc = "*"]
8178    #[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 %."]
8179    #[doc = " * "]
8180    #[doc = " * The value shall be set to:"]
8181    #[doc = " * - `n` (`n > 0` and `n < 126`) if the confidence value is equal to or less than n x 1,5 degrees,"]
8182    #[doc = " * - `126` if the confidence value is out of range, i.e. greater than 187,5 degrees,"]
8183    #[doc = " * - `127` if the confidence value is not available."]
8184    #[doc = " * "]
8185    #[doc = " * @note: The fact that a steering wheel angle value is received with confidence value set to `unavailable(127)`"]
8186    #[doc = " * can be caused by several reasons, such as:"]
8187    #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
8188    #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
8189    #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
8190    #[doc = " * In all 3 cases above, the steering wheel angle value may be valid and used by the application."]
8191    #[doc = " * "]
8192    #[doc = " * If a steering wheel angle value is received and its confidence value is set to `outOfRange(126)`,"]
8193    #[doc = " * it means that the steering wheel angle value is not valid and therefore cannot be trusted."]
8194    #[doc = " * Such value is not useful for the application."]
8195    #[doc = " * "]
8196    #[doc = " * @unit: 1,5 degree"]
8197    #[doc = " * @category: Vehicle Information"]
8198    #[doc = " * @revision: Description revised in V2.1.1"]
8199    #[doc = ""]
8200    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8201    #[rasn(delegate, value("1..=127"))]
8202    pub struct SteeringWheelAngleConfidence(pub u8);
8203    #[doc = "*"]
8204    #[doc = " * This DE represents the steering wheel angle of the vehicle at certain point in time."]
8205    #[doc = " * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11."]
8206    #[doc = " * "]
8207    #[doc = " * The value shall be set to:"]
8208    #[doc = " * - `-511` if the steering wheel angle is equal to or greater than 511 x 1,5 degrees = 766,5 degrees to the right,"]
8209    #[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, "]
8210    #[doc = "      turning clockwise (i.e. to the right),"]
8211    #[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, "]
8212    #[doc = "      turning counter-clockwise (i.e. to the left),"]
8213    #[doc = " * - `511` if the steering wheel angle is greater than 510 x 1,5 degrees = 765 degrees to the left,"]
8214    #[doc = " * - `512` if information is not available."]
8215    #[doc = " *"]
8216    #[doc = " * @unit: 1,5 degree"]
8217    #[doc = " * @revision: Description revised in V2.1.1 (meaning of value 511 has changed slightly)."]
8218    #[doc = " "]
8219    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8220    #[rasn(delegate, value("-511..=512"))]
8221    pub struct SteeringWheelAngleValue(pub i16);
8222    #[doc = "* "]
8223    #[doc = " * This DE indicates the type of stored information."]
8224    #[doc = " *"]
8225    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
8226    #[doc = " * "]
8227    #[doc = " * - `0` undefined        - in case the stored information type is undefined. "]
8228    #[doc = " * - `1` staticDb         - in case the stored information type is a static database."]
8229    #[doc = " * - `2` dynamicDb        - in case the stored information type is a dynamic database"]
8230    #[doc = " * - `3` realTimeDb       - in case the stored information type is a real time updated database."]
8231    #[doc = " * - `4` map              - in case the stored information type is a road topology map."]
8232    #[doc = " * - Bits 5 to 7          - are reserved for future use."]
8233    #[doc = " *"]
8234    #[doc = " * @note: If all bits are set to 0, then no stored information type is used"]
8235    #[doc = " *"]
8236    #[doc = " * @category: Basic Information"]
8237    #[doc = " * @revision: created in V2.2.1"]
8238    #[doc = ""]
8239    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8240    #[rasn(delegate, size("8", extensible))]
8241    pub struct StoredInformationType(pub BitString);
8242    #[doc = "*"]
8243    #[doc = " * This DE indicates the generic sub cause of a detected event."]
8244    #[doc = " * "]
8245    #[doc = " * @note: The sub cause code value assignment varies based on value of @ref CauseCode."]
8246    #[doc = " *"]
8247    #[doc = " * @category: Traffic information"]
8248    #[doc = " * @revision: Description revised in V2.1.1 (this is  the generic sub cause type)"]
8249    #[doc = " "]
8250    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8251    #[rasn(delegate, value("0..=255"))]
8252    pub struct SubCauseCodeType(pub u8);
8253    #[doc = "*"]
8254    #[doc = " * This DE indicates a temperature value."]
8255    #[doc = ""]
8256    #[doc = " * The value shall be set to:"]
8257    #[doc = " * - `-60` for temperature equal to or less than -60 degrees C,"]
8258    #[doc = " * - `n` (`n > -60` and `n < 67`) for the actual temperature n in degrees C,"]
8259    #[doc = " * - `67` for temperature equal to or greater than 67 degrees C."]
8260    #[doc = " * "]
8261    #[doc = " * @unit: degrees Celsius"]
8262    #[doc = " * @category: Basic information"]
8263    #[doc = " * @revision: Editorial update in V2.1.1"]
8264    #[doc = " "]
8265    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8266    #[rasn(delegate, value("-60..=67"))]
8267    pub struct Temperature(pub i8);
8268    #[doc = "*"]
8269    #[doc = " * This DE represents the number of elapsed (TAI) milliseconds since the ITS Epoch. "]
8270    #[doc = " * The ITS epoch is `00:00:00.000 UTC, 1 January 2004`."]
8271    #[doc = " * \"Elapsed\" means that the true number of milliseconds is continuously counted without interruption,"]
8272    #[doc = " *  i.e. it is not altered by leap seconds, which occur in UTC."]
8273    #[doc = " * "]
8274    #[doc = " * @note: International Atomic Time (TAI) is the time reference coordinate on the basis of the readings of atomic clocks, "]
8275    #[doc = " * operated in accordance with the definition of the second, the unit of time of the International System of Units. "]
8276    #[doc = " * TAI is a continuous time scale. UTC has discontinuities, as it is occasionally adjusted by leap seconds. "]
8277    #[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, "]
8278    #[doc = " * further 5 leap seconds have been inserted in UTC."]
8279    #[doc = " * "]
8280    #[doc = " * EXAMPLE: The value for TimestampIts for 1 January 2007 00:00:00.000 UTC is `94 694 401 000` milliseconds,"]
8281    #[doc = " * which includes one leap second insertion since the ITS epoch."]
8282    #[doc = " * @unit: 0,001 s"]
8283    #[doc = " * @category: Basic information"]
8284    #[doc = " * @revision: Description revised in in V2.1.1"]
8285    #[doc = " "]
8286    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8287    #[rasn(delegate, value("0..=4398046511103"))]
8288    pub struct TimestampIts(pub u64);
8289    #[doc = "*"]
8290    #[doc = " * This DF represents one or more paths using @ref Path."]
8291    #[doc = " * "]
8292    #[doc = " * @category: GeoReference information"]
8293    #[doc = " * @revision: Description revised in V2.1.1. Is is now based on Path and not on PathHistory"]
8294    #[doc = " "]
8295    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8296    #[rasn(delegate, size("1..=7"))]
8297    pub struct Traces(pub SequenceOf<Path>);
8298    #[doc = "*"]
8299    #[doc = " * This DF represents one or more paths using @ref PathExtended."]
8300    #[doc = " * "]
8301    #[doc = " * @category: GeoReference information"]
8302    #[doc = " * @revision: Created in V2.2.1"]
8303    #[doc = " "]
8304    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8305    #[rasn(delegate, size("1..=7"))]
8306    pub struct TracesExtended(pub SequenceOf<PathExtended>);
8307    #[doc = "*"]
8308    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `trafficCondition`. "]
8309    #[doc = " * "]
8310    #[doc = " * The value shall be set to:"]
8311    #[doc = " * - 0 `unavailable`                  - in case further detailed information on the traffic condition is unavailable,"]
8312    #[doc = " * - 1 `increasedVolumeOfTraffic`     - in case the type of traffic condition is increased traffic volume,"]
8313    #[doc = " * - 2 `trafficJamSlowlyIncreasing`   - in case the type of traffic condition is a traffic jam which volume is increasing slowly,"]
8314    #[doc = " * - 3 `trafficJamIncreasing`         - in case the type of traffic condition is a traffic jam which volume is increasing,"]
8315    #[doc = " * - 4 `trafficJamStronglyIncreasing` - in case the type of traffic condition is a traffic jam which volume is strongly increasing,"]
8316    #[doc = " * - 5 `trafficJam`         `         - in case the type of traffic condition is a traffic jam and no further detailed information about its volume is available,"]
8317    #[doc = " * - 6 `trafficJamSlightlyDecreasing` - in case the type of traffic condition is a traffic jam which volume is decreasing slowly,"]
8318    #[doc = " * - 7 `trafficJamDecreasing`         - in case the type of traffic condition is a traffic jam which volume is decreasing,"]
8319    #[doc = " * - 8 `trafficJamStronglyDecreasing` - in case the type of traffic condition is a traffic jam which volume is decreasing rapidly,"]
8320    #[doc = " * - 9 `trafficJamStable`             - in case the traffic condition is a traffic jam with stable volume,"]
8321    #[doc = " * - 10-255: reserved for future usage."]
8322    #[doc = " *"]
8323    #[doc = " * @category: Traffic information"]
8324    #[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"]
8325    #[doc = " "]
8326    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8327    #[rasn(delegate, value("0..=255"))]
8328    pub struct TrafficConditionSubCauseCode(pub u8);
8329    #[doc = "*"]
8330    #[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."]
8331    #[doc = " * "]
8332    #[doc = " * The value shall be set to:"]
8333    #[doc = " * - 0 `allTrafficDirections`                                    - for all directions of traffic, "]
8334    #[doc = " * - 1 `sameAsReferenceDirection-upstreamOfReferencePosition`    - for the direction of traffic according to the reference direction, and the portion of traffic upstream of the reference position, "]
8335    #[doc = " * - 2 `sameAsReferenceDirection-downstreamOfReferencePosition`  - for the direction of traffic according to the reference direction, and the portion of traffic downstream of the reference position, "]
8336    #[doc = " * - 3 `oppositeToReferenceDirection`                            - for the direction of traffic opposite to the reference direction. "]
8337    #[doc = " *"]
8338    #[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."]
8339    #[doc = " * @category: GeoReference information"]
8340    #[doc = " * @revision: Created in V2.1.1 from RelevanceTrafficDirection, description and naming of values changed in V2.2.1"]
8341    #[doc = " *"]
8342    #[doc = " "]
8343    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8344    #[rasn(enumerated)]
8345    pub enum TrafficDirection {
8346        allTrafficDirections = 0,
8347        #[rasn(identifier = "sameAsReferenceDirection-upstreamOfReferencePosition")]
8348        sameAsReferenceDirection_upstreamOfReferencePosition = 1,
8349        #[rasn(identifier = "sameAsReferenceDirection-downstreamOfReferencePosition")]
8350        sameAsReferenceDirection_downstreamOfReferencePosition = 2,
8351        oppositeToReferenceDirection = 3,
8352    }
8353    #[doc = "*"]
8354    #[doc = " * Ths DF represents the a position on a traffic island between two lanes. "]
8355    #[doc = " *"]
8356    #[doc = " * It shall include the following components: "]
8357    #[doc = " *"]
8358    #[doc = " * @field oneSide: represents one lane."]
8359    #[doc = " * "]
8360    #[doc = " * @field otherSide: represents the other lane."]
8361    #[doc = " * "]
8362    #[doc = " * @category: Road Topology information"]
8363    #[doc = " * @revision: Created in V2.1.1"]
8364    #[doc = " "]
8365    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8366    #[rasn(automatic_tags)]
8367    #[non_exhaustive]
8368    pub struct TrafficIslandPosition {
8369        #[rasn(identifier = "oneSide")]
8370        pub one_side: LanePositionAndType,
8371        #[rasn(identifier = "otherSide")]
8372        pub other_side: LanePositionAndType,
8373    }
8374    impl TrafficIslandPosition {
8375        pub fn new(one_side: LanePositionAndType, other_side: LanePositionAndType) -> Self {
8376            Self {
8377                one_side,
8378                other_side,
8379            }
8380        }
8381    }
8382    #[doc = "*"]
8383    #[doc = " * This DE represents the type of a traffic participant."]
8384    #[doc = " * "]
8385    #[doc = " * The value shall be set to:"]
8386    #[doc = " * - 0 `unknown`          - information about traffic participant is not provided,"]
8387    #[doc = " * - 1 `pedestrian`       - human being not using a mechanical device for their trip (VRU profile 1),"]
8388    #[doc = " * - 2 `cyclist`          - non-motorized unicycles, bicycles , tricycles, quadracycles (VRU profile 2),"]
8389    #[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),"]
8390    #[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),"]
8391    #[doc = " * - 5 `passengerCar`     - small passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class M1,"]
8392    #[doc = " * - 6 `bus`              - large passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class M2, M3,"]
8393    #[doc = " * - 7 `lightTruck`       - light Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class N1,"]
8394    #[doc = " * - 8 `heavyTruck`       - Heavy Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class N2 and N3,"]
8395    #[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,"]
8396    #[doc = " * - 10 `specialVehicles` - vehicles which have special purposes other than the above (e.g. moving road works vehicle),"]
8397    #[doc = " * - 11 `tram`            - vehicle which runs on tracks along public streets,"]
8398    #[doc = " * - 12 `lightVruVehicle` - human being traveling on light vehicle, incl. possible use of roller skates or skateboards (VRU profile 2),"]
8399    #[doc = " * - 13 `animal`          - animal presenting a safety risk to other road users e.g. domesticated dog in a city or horse (VRU Profile 4),"]
8400    #[doc = " * - 14 `agricultural`    - agricultural and forestry vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class T,"]
8401    #[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, "]
8402    #[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),"]
8403    #[doc = " * - 16-255               - are reserved for future usage."]
8404    #[doc = " * "]
8405    #[doc = " * @category: Communication information."]
8406    #[doc = " * @revision: Created in V2.1.1 based on StationType, Changed name and definition of value 15 in V2.4.1 "]
8407    #[doc = " "]
8408    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8409    #[rasn(delegate, value("0..=255"))]
8410    pub struct TrafficParticipantType(pub u8);
8411    #[doc = "*"]
8412    #[doc = " * This DE indicates traffic rules that apply to vehicles at a certain position."]
8413    #[doc = " *"]
8414    #[doc = " * The value shall be set to:"]
8415    #[doc = " * - `0` - if overtaking is prohibited for all vehicles,"]
8416    #[doc = " * - `1` - if overtaking is prohibited for trucks,"]
8417    #[doc = " * - `2` - if vehicles should pass to the right lane,"]
8418    #[doc = " * - `3` - if vehicles should pass to the left lane."]
8419    #[doc = " * - `4` - if vehicles should pass to the left or right lane."]
8420    #[doc = " *"]
8421    #[doc = " * @category: Infrastructure information, Traffic information"]
8422    #[doc = " * @revision: Editorial update in V2.1.1"]
8423    #[doc = " "]
8424    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8425    #[rasn(enumerated)]
8426    #[non_exhaustive]
8427    pub enum TrafficRule {
8428        noPassing = 0,
8429        noPassingForTrucks = 1,
8430        passToRight = 2,
8431        passToLeft = 3,
8432        #[rasn(extension_addition)]
8433        passToLeftOrRight = 4,
8434    }
8435    #[doc = "* "]
8436    #[doc = " * This DF provides detailed information about an attached trailer."]
8437    #[doc = " *"]
8438    #[doc = " * It shall include the following components: "]
8439    #[doc = " *"]
8440    #[doc = " * @field refPointId: identifier of the reference point of the trailer."]
8441    #[doc = " *"]
8442    #[doc = " * @field hitchPointOffset: optional position of the hitch point in negative x-direction (according to ISO 8855) from the"]
8443    #[doc = " * vehicle Reference Point."]
8444    #[doc = " *"]
8445    #[doc = " * @field frontOverhang: optional length of the trailer overhang in the positive x direction (according to ISO 8855) from the"]
8446    #[doc = " * trailer Reference Point indicated by the refPointID. The value defaults to 0 in case the trailer"]
8447    #[doc = " * is not overhanging to the front with respect to the trailer reference point."]
8448    #[doc = " *"]
8449    #[doc = " * @field rearOverhang: optional length of the trailer overhang in the negative x direction (according to ISO 8855) from the"]
8450    #[doc = " * trailer Reference Point indicated by the refPointID."]
8451    #[doc = " *"]
8452    #[doc = " * @field trailerWidth: optional width of the trailer."]
8453    #[doc = " *"]
8454    #[doc = " * @field hitchAngle: optional Value and confidence value of the angle between the trailer orientation (corresponding to the x"]
8455    #[doc = " * direction of the ISO 8855 [21] coordinate system centered on the trailer) and the direction of"]
8456    #[doc = " * the segment having as end points the reference point of the trailer and the reference point of"]
8457    #[doc = " * the pulling vehicle, which can be another trailer or a vehicle looking on the horizontal plane"]
8458    #[doc = " * xy, described in the local Cartesian coordinate system of the trailer. The"]
8459    #[doc = " * angle is measured with negative values considering the trailer orientation turning clockwise"]
8460    #[doc = " * starting from the segment direction. The angle value accuracy is provided with the"]
8461    #[doc = " * confidence level of 95 %."]
8462    #[doc = " *"]
8463    #[doc = " * @category: Vehicle information"]
8464    #[doc = " * @revision: Created in V2.1.1"]
8465    #[doc = ""]
8466    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8467    #[rasn(automatic_tags)]
8468    #[non_exhaustive]
8469    pub struct TrailerData {
8470        #[rasn(identifier = "refPointId")]
8471        pub ref_point_id: Identifier1B,
8472        #[rasn(identifier = "hitchPointOffset")]
8473        pub hitch_point_offset: StandardLength1B,
8474        #[rasn(identifier = "frontOverhang")]
8475        pub front_overhang: Option<StandardLength1B>,
8476        #[rasn(identifier = "rearOverhang")]
8477        pub rear_overhang: Option<StandardLength1B>,
8478        #[rasn(identifier = "trailerWidth")]
8479        pub trailer_width: Option<VehicleWidth>,
8480        #[rasn(identifier = "hitchAngle")]
8481        pub hitch_angle: CartesianAngle,
8482    }
8483    impl TrailerData {
8484        pub fn new(
8485            ref_point_id: Identifier1B,
8486            hitch_point_offset: StandardLength1B,
8487            front_overhang: Option<StandardLength1B>,
8488            rear_overhang: Option<StandardLength1B>,
8489            trailer_width: Option<VehicleWidth>,
8490            hitch_angle: CartesianAngle,
8491        ) -> Self {
8492            Self {
8493                ref_point_id,
8494                hitch_point_offset,
8495                front_overhang,
8496                rear_overhang,
8497                trailer_width,
8498                hitch_angle,
8499            }
8500        }
8501    }
8502    #[doc = "*"]
8503    #[doc = " * This DE provides information about the presence of a trailer. "]
8504    #[doc = " *"]
8505    #[doc = " * The value shall be set to:"]
8506    #[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."]
8507    #[doc = " * - 1 `trailerPresentWithKnownLength`   - to indicate that a trailer has been detected as present and the length is included in the vehicle length value."]
8508    #[doc = " * - 2 `trailerPresentWithUnknownLength` - to indicate that a trailer has been detected as present and the length is not included in the vehicle length value."]
8509    #[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."]
8510    #[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 "]
8511    #[doc = " *                                         nor the detection of trailer presence/absence is possible."]
8512    #[doc = " * "]
8513    #[doc = " * @category: Vehicle information"]
8514    #[doc = " * @revision: Created in V2.1.1 based on VehicleLengthConfidenceIndication"]
8515    #[doc = ""]
8516    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8517    #[rasn(enumerated)]
8518    pub enum TrailerPresenceInformation {
8519        noTrailerPresent = 0,
8520        trailerPresentWithKnownLength = 1,
8521        trailerPresentWithUnknownLength = 2,
8522        trailerPresenceIsUnknown = 3,
8523        unavailable = 4,
8524    }
8525    #[doc = "*"]
8526    #[doc = " * This DE  defines  the  confidence level of the trajectoryInterceptionProbability."]
8527    #[doc = " *"]
8528    #[doc = " * The value shall be set to:"]
8529    #[doc = " * - `0` - to indicate confidence level less than 50 %,"]
8530    #[doc = " * - `1` - to indicate confidence level greater than or equal to 50 % and less than 70 %,"]
8531    #[doc = " * - `2` - to indicate confidence level greater than or equal to 70 % and less than 90 %,"]
8532    #[doc = " * - `3` - to indicate confidence level greater than or equal to 90%."]
8533    #[doc = " * "]
8534    #[doc = " * @category: Kinematic information"]
8535    #[doc = " * @revision: Created in V2.1.1"]
8536    #[doc = " "]
8537    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8538    #[rasn(delegate, value("0..=3"))]
8539    pub struct TrajectoryInterceptionConfidence(pub u8);
8540    #[doc = "*"]
8541    #[doc = " * This DF  provides the trajectory  interception  indication  of  ego-VRU  ITS-S  with another ITS-Ss. "]
8542    #[doc = " *"]
8543    #[doc = " * It shall include the following components: "]
8544    #[doc = " * "]
8545    #[doc = " * @field subjectStation: indicates the subject station."]
8546    #[doc = " * "]
8547    #[doc = " * @field trajectoryInterceptionProbability: indicates the propbability of the interception of the subject station trajectory "]
8548    #[doc = " * with the trajectory of the station indicated in the component subjectStation."]
8549    #[doc = " *"]
8550    #[doc = " * @field trajectoryInterceptionConfidence: indicates the confidence of interception of the subject station trajectory "]
8551    #[doc = " * with the trajectory of the station indicated in the component subjectStation."]
8552    #[doc = " * "]
8553    #[doc = " * @category: Vehicle information"]
8554    #[doc = " * @revision: Created in V2.1.1"]
8555    #[doc = " "]
8556    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8557    #[rasn(automatic_tags)]
8558    #[non_exhaustive]
8559    pub struct TrajectoryInterceptionIndication {
8560        #[rasn(identifier = "subjectStation")]
8561        pub subject_station: Option<StationId>,
8562        #[rasn(identifier = "trajectoryInterceptionProbability")]
8563        pub trajectory_interception_probability: TrajectoryInterceptionProbability,
8564        #[rasn(identifier = "trajectoryInterceptionConfidence")]
8565        pub trajectory_interception_confidence: Option<TrajectoryInterceptionConfidence>,
8566    }
8567    impl TrajectoryInterceptionIndication {
8568        pub fn new(
8569            subject_station: Option<StationId>,
8570            trajectory_interception_probability: TrajectoryInterceptionProbability,
8571            trajectory_interception_confidence: Option<TrajectoryInterceptionConfidence>,
8572        ) -> Self {
8573            Self {
8574                subject_station,
8575                trajectory_interception_probability,
8576                trajectory_interception_confidence,
8577            }
8578        }
8579    }
8580    #[doc = "*"]
8581    #[doc = " * This  DE  defines  the  probability  that the ego trajectory  intercepts  with any  other object's  trajectory  on the  road. "]
8582    #[doc = " * "]
8583    #[doc = " * The value shall be set to:"]
8584    #[doc = " * - `n` (`n >= 0` and `n <= 50`) to indicate the actual probability,"]
8585    #[doc = " * - the values between 51 and 62 are reserved,"]
8586    #[doc = " * - `63`: to indicate that the information is unavailable. "]
8587    #[doc = " *"]
8588    #[doc = " * @unit: 2 %"]
8589    #[doc = " * @category: Kinematic information"]
8590    #[doc = " * @revision: Created in V2.1.1"]
8591    #[doc = " "]
8592    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8593    #[rasn(delegate, value("0..=63"))]
8594    pub struct TrajectoryInterceptionProbability(pub u8);
8595    #[doc = "*"]
8596    #[doc = " * This DE represents the time interval between two consecutive message transmissions."]
8597    #[doc = " * "]
8598    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref DeltaTimeMilliSecondPos instead."]
8599    #[doc = " * @unit: 0,001 s"]
8600    #[doc = " * @category: Basic information"]
8601    #[doc = " * @revision: V1.3.1"]
8602    #[doc = " "]
8603    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8604    #[rasn(delegate, value("1..=10000"))]
8605    pub struct TransmissionInterval(pub u16);
8606    #[doc = "*"]
8607    #[doc = " * This DE provides the turning direction. "]
8608    #[doc = " * "]
8609    #[doc = " * The value shall be set to:"]
8610    #[doc = " * - `left`  for turning to te left."]
8611    #[doc = " * - `right` for turing to the right."]
8612    #[doc = " *"]
8613    #[doc = " * @category: Kinematic information"]
8614    #[doc = " * @revision: Created in V2.1.1"]
8615    #[doc = " "]
8616    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8617    #[rasn(enumerated)]
8618    pub enum TurningDirection {
8619        left = 0,
8620        right = 1,
8621    }
8622    #[doc = "*"]
8623    #[doc = " * This DE represents the smallest circular turn (i.e. U-turn) that the vehicle is capable of making."]
8624    #[doc = " *"]
8625    #[doc = " * The value shall be set to:"]
8626    #[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,"]
8627    #[doc = " * - `254` to indicate that the turning radius is  greater than 253 x 0,4 metre = 101.2 metres,"]
8628    #[doc = " * - `255` to indicate that the information is unavailable."]
8629    #[doc = " * "]
8630    #[doc = " * For vehicle with tracker, the turning radius applies to the vehicle only."]
8631    #[doc = " *"]
8632    #[doc = " * @category: Vehicle information"]
8633    #[doc = " * @unit 0,4 metre"]
8634    #[doc = " * @revision: Description revised V2.1.1 (the meaning of 254 has changed slightly)"]
8635    #[doc = " "]
8636    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8637    #[rasn(delegate, value("1..=255"))]
8638    pub struct TurningRadius(pub u8);
8639    #[doc = "*"]
8640    #[doc = " * This DE represents an indication of how a certain path or area will be used. "]
8641    #[doc = " * "]
8642    #[doc = " * The value shall be set to:"]
8643    #[doc = " * - 0  - ` noIndication `     - in case it will remain free to be used,"]
8644    #[doc = " * - 1  - ` specialUse `       - in case it will be physically blocked by special use,"]
8645    #[doc = " * - 2  - ` rescueOperation`   - in case it is intended to be used for rescue operations,"]
8646    #[doc = " * - 3  - ` railroad `         - in case it is intended to be used for rail traffic,"]
8647    #[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.),"]
8648    #[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),"]
8649    #[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),"]
8650    #[doc = " * - 7  - ` navigation `       - in case it is intended to be used for driving with an active navigation system."]
8651    #[doc = " *"]
8652    #[doc = " * @category: Basic information"]
8653    #[doc = " * @revision: Created in V2.2.1, extension 3-7 added in V2.3.1"]
8654    #[doc = " "]
8655    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8656    #[rasn(enumerated)]
8657    #[non_exhaustive]
8658    pub enum UsageIndication {
8659        noIndication = 0,
8660        specialUse = 1,
8661        rescueOperation = 2,
8662        #[rasn(extension_addition)]
8663        railroad = 3,
8664        #[rasn(extension_addition)]
8665        fixedRoute = 4,
8666        #[rasn(extension_addition)]
8667        restrictedRoute = 5,
8668        #[rasn(extension_addition)]
8669        adasAd = 6,
8670        #[rasn(extension_addition)]
8671        navigation = 7,
8672    }
8673    #[doc = "*"]
8674    #[doc = " * This DE represents the Vehicle Descriptor Section (VDS). The values are assigned according to ISO 3779 [6]."]
8675    #[doc = " * "]
8676    #[doc = " * @category: Vehicle information"]
8677    #[doc = " * @revision: V1.3.1"]
8678    #[doc = " "]
8679    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8680    #[rasn(delegate, size("6"))]
8681    pub struct VDS(pub Ia5String);
8682    #[doc = "* "]
8683    #[doc = " * This DE represents the duration of a traffic event validity. "]
8684    #[doc = " *"]
8685    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref DeltaTimeSecond instead."]
8686    #[doc = " * @unit: 1 s"]
8687    #[doc = " * @category: Basic information"]
8688    #[doc = " * @revision: V1.3.1"]
8689    #[doc = ""]
8690    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8691    #[rasn(delegate, value("0..=86400"))]
8692    pub struct ValidityDuration(pub u32);
8693    #[doc = "*"]
8694    #[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. "]
8695    #[doc = " *"]
8696    #[doc = " * @category: Basic information"]
8697    #[doc = " * @revision: Created in V2.1.1"]
8698    #[doc = " "]
8699    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8700    #[rasn(choice)]
8701    pub enum VarLengthNumber {
8702        #[rasn(value("0..=127"), tag(context, 0))]
8703        content(u8),
8704        #[rasn(tag(context, 1))]
8705        extension(Ext1),
8706    }
8707    #[doc = "*"]
8708    #[doc = " * This DE represents the value of the sub cause codes of the @ref CauseCode `vehicleBreakdown`. "]
8709    #[doc = " * "]
8710    #[doc = " * The value shall be set to:"]
8711    #[doc = " * - 0 `unavailable`              - in case further detailed information on cause of vehicle break down is unavailable,"]
8712    #[doc = " * - 1 `lackOfFuel`               - in case vehicle break down is due to lack of fuel,"]
8713    #[doc = " * - 2 `lackOfBatteryPower`       - in case vehicle break down is caused by lack of battery power,"]
8714    #[doc = " * - 3 `engineProblem`            - in case vehicle break down is caused by an engine problem,"]
8715    #[doc = " * - 4 `transmissionProblem`      - in case vehicle break down is caused by transmission problem,"]
8716    #[doc = " * - 5 `engineCoolingProblem`     - in case vehicle break down is caused by an engine cooling problem,"]
8717    #[doc = " * - 6 `brakingSystemProblem`     - in case vehicle break down is caused by a braking system problem,"]
8718    #[doc = " * - 7 `steeringProblem`          - in case vehicle break down is caused by a steering problem,"]
8719    #[doc = " * - 8 `tyrePuncture-deprecated`  - deprecated since covered by `tyrePressureProblem`,"]
8720    #[doc = " * - 9 `tyrePressureProblem`      - in case low tyre pressure in detected,"]
8721    #[doc = " * - 10 `vehicleOnFire`           - in case the vehicle is on fire."]
8722    #[doc = " * - 11-255                       - are reserved for future usage."]
8723    #[doc = " *"]
8724    #[doc = " * @category: Traffic information"]
8725    #[doc = " * @revision: V1.3.1, value 10 assigned in V2.1.1, value 8 deprecated in V2.4.1"]
8726    #[doc = " "]
8727    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8728    #[rasn(delegate, value("0..=255"))]
8729    pub struct VehicleBreakdownSubCauseCode(pub u8);
8730    #[doc = "* "]
8731    #[doc = " * This DE represents the height of the vehicle, measured from the ground to the highest point, excluding any antennas."]
8732    #[doc = " * In case vehicles are equipped with adjustable ride heights, camper shells, and any other"]
8733    #[doc = " * equipment which may result in varying height, the largest possible height shall be used."]
8734    #[doc = " *"]
8735    #[doc = " * The value shall be set to:"]
8736    #[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,"]
8737    #[doc = " * - `127` indicates that the vehicle width is greater than 6,3 metres,"]
8738    #[doc = " * - `128` indicates that the information in unavailable."]
8739    #[doc = " *"]
8740    #[doc = " * @unit: 0,05 metre "]
8741    #[doc = " * @category: Vehicle information"]
8742    #[doc = " * @revision: created in V2.1.1"]
8743    #[doc = ""]
8744    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8745    #[rasn(delegate, value("1..=128"))]
8746    pub struct VehicleHeight(pub u8);
8747    #[doc = "* "]
8748    #[doc = " * This DE represents the height of the vehicle, measured from the ground to the highest point, excluding any antennas."]
8749    #[doc = " * In case vehicles are equipped with adjustable ride heights, camper shells, and any other"]
8750    #[doc = " * equipment which may result in varying height, the largest possible height shall be used."]
8751    #[doc = ""]
8752    #[doc = " * The value shall be set to:"]
8753    #[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,"]
8754    #[doc = " * - `61` indicates that the vehicle height is greater than 6,0 metres,"]
8755    #[doc = " * - `62` indicates that the information in unavailable."]
8756    #[doc = " * "]
8757    #[doc = " * @unit: 0,1 metre"]
8758    #[doc = " * @category: Vehicle information "]
8759    #[doc = " * @revision: created in V2.3.1 based on VehicleHeight but better aligned in unit and range with VehicleWidth."]
8760    #[doc = " "]
8761    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8762    #[rasn(delegate, value("1..=62"))]
8763    pub struct VehicleHeight2(pub u8);
8764    #[doc = "*"]
8765    #[doc = " * This DF provides information related to the identification of a vehicle."]
8766    #[doc = " *"]
8767    #[doc = " * It shall include the following components: "]
8768    #[doc = " * "]
8769    #[doc = " * @field wMInumber: World Manufacturer Identifier (WMI) code."]
8770    #[doc = " * "]
8771    #[doc = " * @field vDS: Vehicle Descriptor Section (VDS). "]
8772    #[doc = " * "]
8773    #[doc = " * @category: Vehicle information"]
8774    #[doc = " * @revision: V1.3.1"]
8775    #[doc = " "]
8776    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8777    #[rasn(automatic_tags)]
8778    #[non_exhaustive]
8779    pub struct VehicleIdentification {
8780        #[rasn(identifier = "wMInumber")]
8781        pub w_minumber: Option<WMInumber>,
8782        #[rasn(identifier = "vDS")]
8783        pub v_ds: Option<VDS>,
8784    }
8785    impl VehicleIdentification {
8786        pub fn new(w_minumber: Option<WMInumber>, v_ds: Option<VDS>) -> Self {
8787            Self { w_minumber, v_ds }
8788        }
8789    }
8790    #[doc = "*"]
8791    #[doc = " * This DF represents the length of vehicle and accuracy indication information."]
8792    #[doc = " *"]
8793    #[doc = " * It shall include the following components: "]
8794    #[doc = " * "]
8795    #[doc = " * @field vehicleLengthValue: length of vehicle. "]
8796    #[doc = " * "]
8797    #[doc = " * @field vehicleLengthConfidenceIndication: indication of the length value confidence."]
8798    #[doc = " * "]
8799    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref VehicleLengthV2 instead."]
8800    #[doc = " * @category: Vehicle information"]
8801    #[doc = " * @revision: V1.3.1"]
8802    #[doc = " "]
8803    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8804    #[rasn(automatic_tags)]
8805    pub struct VehicleLength {
8806        #[rasn(identifier = "vehicleLengthValue")]
8807        pub vehicle_length_value: VehicleLengthValue,
8808        #[rasn(identifier = "vehicleLengthConfidenceIndication")]
8809        pub vehicle_length_confidence_indication: VehicleLengthConfidenceIndication,
8810    }
8811    impl VehicleLength {
8812        pub fn new(
8813            vehicle_length_value: VehicleLengthValue,
8814            vehicle_length_confidence_indication: VehicleLengthConfidenceIndication,
8815        ) -> Self {
8816            Self {
8817                vehicle_length_value,
8818                vehicle_length_confidence_indication,
8819            }
8820        }
8821    }
8822    #[doc = "*"]
8823    #[doc = " * This DE provides information about the presence of a trailer. "]
8824    #[doc = " *"]
8825    #[doc = " * The value shall be set to:"]
8826    #[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,"]
8827    #[doc = " * - 1 `trailerPresentWithKnownLength`   - to indicate that a trailer has been detected as present and the length is  included in the vehicle length value,"]
8828    #[doc = " * - 2 `trailerPresentWithUnknownLength` - to indicate that a trailer has been detected as present and the length is not included in the vehicle length value,"]
8829    #[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,"]
8830    #[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, "]
8831    #[doc = " *                                        nor the detection of trailer presence/absence is possible."]
8832    #[doc = " * "]
8833    #[doc = " * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrailerPresenceInformation instead. "]
8834    #[doc = " * @category: Vehicle information"]
8835    #[doc = " * @revision: Description revised in V2.1.1"]
8836    #[doc = ""]
8837    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8838    #[rasn(enumerated)]
8839    pub enum VehicleLengthConfidenceIndication {
8840        noTrailerPresent = 0,
8841        trailerPresentWithKnownLength = 1,
8842        trailerPresentWithUnknownLength = 2,
8843        trailerPresenceIsUnknown = 3,
8844        unavailable = 4,
8845    }
8846    #[doc = "*"]
8847    #[doc = " * This DF represents the length of vehicle and accuracy indication information."]
8848    #[doc = " *"]
8849    #[doc = " * It shall include the following components: "]
8850    #[doc = " * "]
8851    #[doc = " * @field vehicleLengthValue: length of vehicle. "]
8852    #[doc = " * "]
8853    #[doc = " * @field trailerPresenceInformation: information about the trailer presence."]
8854    #[doc = " * "]
8855    #[doc = " * @category: Vehicle information"]
8856    #[doc = " * @revision: created in V2.1.1 based on @ref VehicleLength but using @ref TrailerPresenceInformation."]
8857    #[doc = " "]
8858    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8859    #[rasn(automatic_tags)]
8860    pub struct VehicleLengthV2 {
8861        #[rasn(identifier = "vehicleLengthValue")]
8862        pub vehicle_length_value: VehicleLengthValue,
8863        #[rasn(identifier = "trailerPresenceInformation")]
8864        pub trailer_presence_information: TrailerPresenceInformation,
8865    }
8866    impl VehicleLengthV2 {
8867        pub fn new(
8868            vehicle_length_value: VehicleLengthValue,
8869            trailer_presence_information: TrailerPresenceInformation,
8870        ) -> Self {
8871            Self {
8872                vehicle_length_value,
8873                trailer_presence_information,
8874            }
8875        }
8876    }
8877    #[doc = "*"]
8878    #[doc = " * This DE represents the length of a vehicle."]
8879    #[doc = " *"]
8880    #[doc = " * The value shall be set to:"]
8881    #[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,"]
8882    #[doc = " * - `1 022` to indicate that the vehicle length is greater than 102.1 metres,"]
8883    #[doc = " * - `1 023` to indicate that the information in unavailable."]
8884    #[doc = " * "]
8885    #[doc = " * "]
8886    #[doc = " * @unit: 0,1 metre"]
8887    #[doc = " * @category: Vehicle information"]
8888    #[doc = " * @revision: Description updated in V2.1.1 (the meaning of 1 022 has changed slightly)."]
8889    #[doc = " "]
8890    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8891    #[rasn(delegate, value("1..=1023"))]
8892    pub struct VehicleLengthValue(pub u16);
8893    #[doc = "*"]
8894    #[doc = " * This DE represents the mass of an empty loaded vehicle."]
8895    #[doc = " *"]
8896    #[doc = " * The value shall be set to: "]
8897    #[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,"]
8898    #[doc = " * - `1 023` indicates that the vehicle mass is greater than 102 200 000 g,"]
8899    #[doc = " * - `1 024` indicates  the vehicle mass information is unavailable."]
8900    #[doc = " * "]
8901    #[doc = " * @note:\tThe empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
8902    #[doc = " * "]
8903    #[doc = " * @unit: 10^5 gramm"]
8904    #[doc = " * @category: Vehicle information"]
8905    #[doc = " * @revision: Description updated in V2.1.1 (the meaning of 1 023 has changed slightly)."]
8906    #[doc = ""]
8907    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8908    #[rasn(delegate, value("1..=1024"))]
8909    pub struct VehicleMass(pub u16);
8910    #[doc = "*"]
8911    #[doc = " * This DF provides information about the status of the vehicle´s movement control mechanisms. "]
8912    #[doc = " *"]
8913    #[doc = " * It shall include the following components: "]
8914    #[doc = " *"]
8915    #[doc = " * @field accelerationPedalStatus: information about the status of the acceleration pedal. "]
8916    #[doc = " * "]
8917    #[doc = " * @field brakePedalPostionStatus information about the status of the brake pedal. "]
8918    #[doc = " *"]
8919    #[doc = " * @field saeAutomationLevel: optional information about the level of driving automation. "]
8920    #[doc = " *"]
8921    #[doc = " * @field automationControl: optional information about the controlling mechanism for lateral, or combined lateral and longitudinal movement."]
8922    #[doc = " *"]
8923    #[doc = " * @field accelerationControl: optional information about the controlling mechanism for longitudinal movement. "]
8924    #[doc = " *"]
8925    #[doc = " * @field accelerationControlExtension: optional extended information about the controlling mechanism for longitudinal movement. "]
8926    #[doc = " *"]
8927    #[doc = " * @category: Vehicle information"]
8928    #[doc = " * @revision: created in V2.3.1"]
8929    #[doc = " "]
8930    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
8931    #[rasn(automatic_tags)]
8932    #[non_exhaustive]
8933    pub struct VehicleMovementControl {
8934        #[rasn(identifier = "accelerationPedalStatus")]
8935        pub acceleration_pedal_status: PedalStatus,
8936        #[rasn(identifier = "brakePedalStatus")]
8937        pub brake_pedal_status: PedalStatus,
8938        #[rasn(identifier = "saeAutomationLevel")]
8939        pub sae_automation_level: Option<SaeAutomationLevel>,
8940        #[rasn(identifier = "automationControl")]
8941        pub automation_control: Option<AutomationControl>,
8942        #[rasn(identifier = "accelerationControl")]
8943        pub acceleration_control: Option<AccelerationControl>,
8944        #[rasn(identifier = "accelerationControlExtension")]
8945        pub acceleration_control_extension: Option<AccelerationControlExtension>,
8946    }
8947    impl VehicleMovementControl {
8948        pub fn new(
8949            acceleration_pedal_status: PedalStatus,
8950            brake_pedal_status: PedalStatus,
8951            sae_automation_level: Option<SaeAutomationLevel>,
8952            automation_control: Option<AutomationControl>,
8953            acceleration_control: Option<AccelerationControl>,
8954            acceleration_control_extension: Option<AccelerationControlExtension>,
8955        ) -> Self {
8956            Self {
8957                acceleration_pedal_status,
8958                brake_pedal_status,
8959                sae_automation_level,
8960                automation_control,
8961                acceleration_control,
8962                acceleration_control_extension,
8963            }
8964        }
8965    }
8966    #[doc = "*"]
8967    #[doc = " * This DE indicates the role played by a vehicle at a point in time."]
8968    #[doc = " *"]
8969    #[doc = " * The value shall be set to:"]
8970    #[doc = " * - 0 `default`          - to indicate the default vehicle role as indicated by the vehicle type,"]
8971    #[doc = " * - 1 `publicTransport`  - to indicate that the vehicle is used to operate public transport service,"]
8972    #[doc = " * - 2 `specialTransport` - to indicate that the vehicle is used for special transport purpose, e.g. oversized trucks,"]
8973    #[doc = " * - 3 `dangerousGoods`   - to indicate that the vehicle is used for dangerous goods transportation,"]
8974    #[doc = " * - 4 `roadWork`         - to indicate that the vehicle is used to realize roadwork or road maintenance mission,"]
8975    #[doc = " * - 5 `rescue`           - to indicate that the vehicle is used for rescue purpose in case of an accident, e.g. as a towing service,"]
8976    #[doc = " * - 6 `emergency`        - to indicate that the vehicle is used for emergency mission, e.g. ambulance, fire brigade,"]
8977    #[doc = " * - 7 `safetyCar`        - to indicate that the vehicle is used for public safety, e.g. patrol,"]
8978    #[doc = " * - 8 `agriculture`      - to indicate that the vehicle is used for agriculture, e.g. farm tractor, "]
8979    #[doc = " * - 9 `commercial`       - to indicate that the vehicle is used for transportation of commercial goods,"]
8980    #[doc = " * - 10 `military`        - to indicate that the vehicle is used for military purpose, "]
8981    #[doc = " * - 11 `roadOperator`    - to indicate that the vehicle is used in road operator missions,"]
8982    #[doc = " * - 12 `taxi`            - to indicate that the vehicle is used to provide an authorized taxi service,"]
8983    #[doc = " * - 13 `uvar`            - to indicate that the vehicle is authorized to enter a zone according to the applicable Urban Vehicle Access Restrictions."]
8984    #[doc = " * - 14 `rfu1`            - is reserved for future usage."]
8985    #[doc = " * - 15 `rfu2`            - is reserved for future usage."]
8986    #[doc = " * "]
8987    #[doc = " * @category: Vehicle Information"]
8988    #[doc = " * @revision: Description updated in V2.1.1 (removed reference to CEN/TS 16157-3), value 13 assigned in V2.2.1"]
8989    #[doc = " "]
8990    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
8991    #[rasn(enumerated)]
8992    pub enum VehicleRole {
8993        default = 0,
8994        publicTransport = 1,
8995        specialTransport = 2,
8996        dangerousGoods = 3,
8997        roadWork = 4,
8998        rescue = 5,
8999        emergency = 6,
9000        safetyCar = 7,
9001        agriculture = 8,
9002        commercial = 9,
9003        military = 10,
9004        roadOperator = 11,
9005        taxi = 12,
9006        uvar = 13,
9007        rfu1 = 14,
9008        rfu2 = 15,
9009    }
9010    #[doc = "*"]
9011    #[doc = " * This DE represents the width of a vehicle, excluding side mirrors and possible similar extensions."]
9012    #[doc = ""]
9013    #[doc = " * The value shall be set to:"]
9014    #[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,"]
9015    #[doc = " * - `61` indicates that the vehicle width is greater than 6,0 metres,"]
9016    #[doc = " * - `62` indicates that the information in unavailable."]
9017    #[doc = " * "]
9018    #[doc = " * @unit: 0,1 metre"]
9019    #[doc = " * @category: Vehicle information "]
9020    #[doc = " * @revision: Description updated in V2.1.1 (the meaning of 61 has changed slightly)."]
9021    #[doc = " "]
9022    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9023    #[rasn(delegate, value("1..=62"))]
9024    pub struct VehicleWidth(pub u8);
9025    #[doc = "*"]
9026    #[doc = " * This DF represents a velocity vector with associated confidence value."]
9027    #[doc = " *"]
9028    #[doc = " * The following options are available:"]
9029    #[doc = " * "]
9030    #[doc = " * @field polarVelocity: the representation of the velocity vector in a polar or cylindrical coordinate system. "]
9031    #[doc = " * "]
9032    #[doc = " * @field cartesianVelocity: the representation of the velocity vector in a cartesian coordinate system."]
9033    #[doc = " * "]
9034    #[doc = " * @category: Kinematic information"]
9035    #[doc = " * @revision: Created in V2.1.1"]
9036    #[doc = " "]
9037    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9038    #[rasn(choice, automatic_tags)]
9039    pub enum Velocity3dWithConfidence {
9040        polarVelocity(VelocityPolarWithZ),
9041        cartesianVelocity(VelocityCartesian),
9042    }
9043    #[doc = "*"]
9044    #[doc = " * This DF represents a velocity vector in a cartesian coordinate system."]
9045    #[doc = " "]
9046    #[doc = " * It shall include the following components: "]
9047    #[doc = " * "]
9048    #[doc = " * @field xVelocity: the x component of the velocity vector with the associated confidence value."]
9049    #[doc = " * "]
9050    #[doc = " * @field yVelocity: the y component of the velocity vector with the associated confidence value."]
9051    #[doc = " *"]
9052    #[doc = " * @field zVelocity: the optional z component of the velocity vector with the associated confidence value."]
9053    #[doc = " * "]
9054    #[doc = " * @category: Kinematic information"]
9055    #[doc = " * @revision: Created in V2.1.1"]
9056    #[doc = " "]
9057    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9058    #[rasn(automatic_tags)]
9059    pub struct VelocityCartesian {
9060        #[rasn(identifier = "xVelocity")]
9061        pub x_velocity: VelocityComponent,
9062        #[rasn(identifier = "yVelocity")]
9063        pub y_velocity: VelocityComponent,
9064        #[rasn(identifier = "zVelocity")]
9065        pub z_velocity: Option<VelocityComponent>,
9066    }
9067    impl VelocityCartesian {
9068        pub fn new(
9069            x_velocity: VelocityComponent,
9070            y_velocity: VelocityComponent,
9071            z_velocity: Option<VelocityComponent>,
9072        ) -> Self {
9073            Self {
9074                x_velocity,
9075                y_velocity,
9076                z_velocity,
9077            }
9078        }
9079    }
9080    #[doc = "*"]
9081    #[doc = " * This DF represents a component of the velocity vector and the associated confidence value."]
9082    #[doc = " *"]
9083    #[doc = " * It shall include the following components: "]
9084    #[doc = " * "]
9085    #[doc = " * @field value: the value of the component."]
9086    #[doc = " * "]
9087    #[doc = " * @field confidence: the confidence value of the value."]
9088    #[doc = " *"]
9089    #[doc = " * @category: Kinematic information"]
9090    #[doc = " * @revision: V2.1.1"]
9091    #[doc = " "]
9092    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9093    #[rasn(automatic_tags)]
9094    pub struct VelocityComponent {
9095        pub value: VelocityComponentValue,
9096        pub confidence: SpeedConfidence,
9097    }
9098    impl VelocityComponent {
9099        pub fn new(value: VelocityComponentValue, confidence: SpeedConfidence) -> Self {
9100            Self { value, confidence }
9101        }
9102    }
9103    #[doc = "* "]
9104    #[doc = " * This DE represents the value of a velocity component in a defined coordinate system."]
9105    #[doc = " *"]
9106    #[doc = " * The value shall be set to:"]
9107    #[doc = " * - `-16 383` if the velocity is equal to or smaller than -163,83 m/s,"]
9108    #[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,"]
9109    #[doc = " * - `16 382` for velocity values equal to or greater than 163,81 m/s,"]
9110    #[doc = " * - `16 383` if the velocity information is not available."]
9111    #[doc = " * "]
9112    #[doc = " * @unit: 0,01 m/s"]
9113    #[doc = " * @category: Kinematic information"]
9114    #[doc = " * @revision: Created in V2.1.1"]
9115    #[doc = ""]
9116    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9117    #[rasn(delegate, value("-16383..=16383"))]
9118    pub struct VelocityComponentValue(pub i16);
9119    #[doc = "*"]
9120    #[doc = " * This DF represents a velocity vector in a polar or cylindrical coordinate system."]
9121    #[doc = " *"]
9122    #[doc = " * It shall include the following components: "]
9123    #[doc = " * "]
9124    #[doc = " * @field velocityMagnitude: magnitude of the velocity vector on the reference plane, with the associated confidence value."]
9125    #[doc = " * "]
9126    #[doc = " * @field velocityDirection: polar angle of the velocity vector on the reference plane, with the associated confidence value."]
9127    #[doc = " *"]
9128    #[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."]
9129    #[doc = " * "]
9130    #[doc = " * @category: Kinematic information"]
9131    #[doc = " * @revision: Created in V2.1.1"]
9132    #[doc = " "]
9133    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9134    #[rasn(automatic_tags)]
9135    pub struct VelocityPolarWithZ {
9136        #[rasn(identifier = "velocityMagnitude")]
9137        pub velocity_magnitude: Speed,
9138        #[rasn(identifier = "velocityDirection")]
9139        pub velocity_direction: CartesianAngle,
9140        #[rasn(identifier = "zVelocity")]
9141        pub z_velocity: Option<VelocityComponent>,
9142    }
9143    impl VelocityPolarWithZ {
9144        pub fn new(
9145            velocity_magnitude: Speed,
9146            velocity_direction: CartesianAngle,
9147            z_velocity: Option<VelocityComponent>,
9148        ) -> Self {
9149            Self {
9150                velocity_magnitude,
9151                velocity_direction,
9152                z_velocity,
9153            }
9154        }
9155    }
9156    #[doc = " four and more octets length"]
9157    #[doc = "*"]
9158    #[doc = " * This DF indicates the vehicle acceleration at vertical direction and the associated confidence value."]
9159    #[doc = " *"]
9160    #[doc = " * It shall include the following components: "]
9161    #[doc = " * "]
9162    #[doc = " * @field verticalAccelerationValue: vertical acceleration value at a point in time."]
9163    #[doc = " * "]
9164    #[doc = " * @field verticalAccelerationConfidence: confidence value of the vertical acceleration value with a predefined confidence level."]
9165    #[doc = " * "]
9166    #[doc = " * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead."]
9167    #[doc = " * @category Vehicle information"]
9168    #[doc = " * @revision: Description revised in V2.1.1"]
9169    #[doc = " "]
9170    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9171    #[rasn(automatic_tags)]
9172    pub struct VerticalAcceleration {
9173        #[rasn(identifier = "verticalAccelerationValue")]
9174        pub vertical_acceleration_value: VerticalAccelerationValue,
9175        #[rasn(identifier = "verticalAccelerationConfidence")]
9176        pub vertical_acceleration_confidence: AccelerationConfidence,
9177    }
9178    impl VerticalAcceleration {
9179        pub fn new(
9180            vertical_acceleration_value: VerticalAccelerationValue,
9181            vertical_acceleration_confidence: AccelerationConfidence,
9182        ) -> Self {
9183            Self {
9184                vertical_acceleration_value,
9185                vertical_acceleration_confidence,
9186            }
9187        }
9188    }
9189    #[doc = "*"]
9190    #[doc = " * This DE represents the vehicle acceleration at vertical direction in the centre of the mass of the empty vehicle."]
9191    #[doc = " * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11."]
9192    #[doc = " *"]
9193    #[doc = " * The value shall be set to:"]
9194    #[doc = " * - `-160` for acceleration values equal to or less than -16 m/s^2,"]
9195    #[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,"]
9196    #[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,"]
9197    #[doc = " * - `160` for acceleration values greater than 15,9 m/s^2,"]
9198    #[doc = " * - `161` when the data is unavailable."]
9199    #[doc = " * "]
9200    #[doc = " * @note: The empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
9201    #[doc = " *"]
9202    #[doc = " * @category: Vehicle information"]
9203    #[doc = " * @unit: 0,1 m/s^2"]
9204    #[doc = " * @revision: Desciption updated in V2.1.1 (the meaning of 160 has changed slightly)."]
9205    #[doc = " *  "]
9206    #[doc = ""]
9207    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9208    #[rasn(delegate, value("-160..=161"))]
9209    pub struct VerticalAccelerationValue(pub i16);
9210    #[doc = "* "]
9211    #[doc = " * This DF provides information about a VRU cluster."]
9212    #[doc = " *"]
9213    #[doc = " * It shall include the following components: "]
9214    #[doc = " *"]
9215    #[doc = " * @field clusterId: optional identifier of a VRU cluster."]
9216    #[doc = " *"]
9217    #[doc = " * @field clusterBoundingBoxShape: optionally indicates the shape of the cluster bounding box, per default inside an East-North-Up coordinate system "]
9218    #[doc = " * centered around a reference point defined outside of the context of this DF."]
9219    #[doc = " *"]
9220    #[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) ."]
9221    #[doc = " *"]
9222    #[doc = " * @field clusterProfiles: optionally identifies all the VRU profile types that are estimated to be within the cluster."]
9223    #[doc = " * if this component is absent it means that the information is unavailable. "]
9224    #[doc = " *"]
9225    #[doc = " * @category: VRU information"]
9226    #[doc = " * @revision: Created in V2.1.1, description revised in V2.2.1"]
9227    #[doc = ""]
9228    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9229    #[rasn(automatic_tags)]
9230    #[non_exhaustive]
9231    pub struct VruClusterInformation {
9232        #[rasn(identifier = "clusterId")]
9233        pub cluster_id: Option<Identifier1B>,
9234        #[rasn(value("0.."), identifier = "clusterBoundingBoxShape")]
9235        pub cluster_bounding_box_shape: Option<Shape>,
9236        #[rasn(identifier = "clusterCardinalitySize")]
9237        pub cluster_cardinality_size: CardinalNumber1B,
9238        #[rasn(identifier = "clusterProfiles")]
9239        pub cluster_profiles: Option<VruClusterProfiles>,
9240    }
9241    impl VruClusterInformation {
9242        pub fn new(
9243            cluster_id: Option<Identifier1B>,
9244            cluster_bounding_box_shape: Option<Shape>,
9245            cluster_cardinality_size: CardinalNumber1B,
9246            cluster_profiles: Option<VruClusterProfiles>,
9247        ) -> Self {
9248            Self {
9249                cluster_id,
9250                cluster_bounding_box_shape,
9251                cluster_cardinality_size,
9252                cluster_profiles,
9253            }
9254        }
9255    }
9256    #[doc = "* "]
9257    #[doc = " * This DE Identifies all the VRU profile types within a cluster."]
9258    #[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)."]
9259    #[doc = " * "]
9260    #[doc = " * The corresponding bit shall be set to 1 under the following conditions:"]
9261    #[doc = " * - 0 `pedestrian`  - indicates that the VRU cluster contains at least one pedestrian VRU,"]
9262    #[doc = " * - 1 `bicycle`     - indicates that the VRU cluster contains at least one bicycle VRU member,"]
9263    #[doc = " * - 2 `motorcyclist`- indicates that the VRU cluster contains at least one motorcycle VRU member,"]
9264    #[doc = " * - 3 `animal`      - indicates that the VRU cluster contains at least one animal VRU member."]
9265    #[doc = " * "]
9266    #[doc = " * Otherwise, the corresponding bit shall be set to 0."]
9267    #[doc = " *"]
9268    #[doc = " * @category: VRU information"]
9269    #[doc = " * @revision: Created in V2.1.1"]
9270    #[doc = ""]
9271    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9272    #[rasn(delegate)]
9273    pub struct VruClusterProfiles(pub FixedBitString<4usize>);
9274    #[doc = "*"]
9275    #[doc = " * This DE represents the possible usage conditions of the VRU device."]
9276    #[doc = ""]
9277    #[doc = " * - The value shall be set to:"]
9278    #[doc = " * - 0 `unavailable`      - to indicate that the usage conditions are unavailable,"]
9279    #[doc = " * - 1 `other`            - to indicate that the VRU device is in a state not defined below,"]
9280    #[doc = " * - 2 `idle`             - to indicate that the human is currently not interacting with the device,"]
9281    #[doc = " * - 3 `listeningToAudio` - to indicate that any audio source other than calling is in use,"]
9282    #[doc = " * - 4 `typing`           - to indicate that the human is texting or performaing any other manual input activity,"]
9283    #[doc = " * - 5 `calling`          - to indicate that the VRU device is currently receiving a call,"]
9284    #[doc = " * - 6 `playingGames`     - to indicate that the human is playing games,"]
9285    #[doc = " * - 7 `reading`          - to indicate that the human is reading on the VRU device,"]
9286    #[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."]
9287    #[doc = " * - value 9 to 15        - are reserved for future usage. "]
9288    #[doc = " *"]
9289    #[doc = " * @category: VRU information"]
9290    #[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"]
9291    #[doc = " "]
9292    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9293    #[rasn(delegate, value("0..=15"))]
9294    pub struct VruDeviceUsage(pub u8);
9295    #[doc = "*"]
9296    #[doc = " * This DE represents the possible VRU environment conditions."]
9297    #[doc = " *"]
9298    #[doc = " * - The value shall be set to:"]
9299    #[doc = " * - 0 `unavailable`            - to indicate that the information on the type of environment is unavailable,"]
9300    #[doc = " * - 1 `intersectionCrossing`   - to indicate that the VRU is on an intersection or crossing,"]
9301    #[doc = " * - 2 `zebraCrossing`          - to indicate that the VRU is on a  zebra crossing (crosswalk),"]
9302    #[doc = " * - 3 `sidewalk`               - to indicate that the VRU is on a sidewalk,"]
9303    #[doc = " * - 4 `onVehicleRoad`          - to indicate that the VRU is on a traffic lane,"]
9304    #[doc = " * - 5 `protectedGeographicArea`- to indicate that the VRU is in a protected area."]
9305    #[doc = " * - value 6 to 15              - are reserved for future usage. "]
9306    #[doc = " *"]
9307    #[doc = " * @category: VRU information"]
9308    #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1 and range changed from 0..255 to 0..15"]
9309    #[doc = " "]
9310    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9311    #[rasn(delegate, value("0..=15"))]
9312    pub struct VruEnvironment(pub u8);
9313    #[doc = "*"]
9314    #[doc = " * This DF represents the status of the exterior light switches of a VRU."]
9315    #[doc = " * This DF is an extension of the vehicular DE @ref ExteriorLights."]
9316    #[doc = " *"]
9317    #[doc = " * It shall include the following components: "]
9318    #[doc = " * "]
9319    #[doc = " * @field vehicular:  represents the status of the exterior light switches of a road vehicle."]
9320    #[doc = " * "]
9321    #[doc = " * @field vruSpecific: represents the status of the exterior light switches of a VRU."]
9322    #[doc = " *"]
9323    #[doc = " * @category: VRU information"]
9324    #[doc = " * @revision: created in V2.1.1"]
9325    #[doc = " "]
9326    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9327    #[rasn(automatic_tags)]
9328    #[non_exhaustive]
9329    pub struct VruExteriorLights {
9330        pub vehicular: ExteriorLights,
9331        #[rasn(identifier = "vruSpecific")]
9332        pub vru_specific: VruSpecificExteriorLights,
9333    }
9334    impl VruExteriorLights {
9335        pub fn new(vehicular: ExteriorLights, vru_specific: VruSpecificExteriorLights) -> Self {
9336            Self {
9337                vehicular,
9338                vru_specific,
9339            }
9340        }
9341    }
9342    #[doc = "*"]
9343    #[doc = " *  This DE indicates the status of the possible human control over a VRU vehicle."]
9344    #[doc = " *"]
9345    #[doc = " * The value shall be set to:"]
9346    #[doc = " * - 0 `unavailable`                 - to indicate that the information is unavailable,"]
9347    #[doc = " * - 1 `braking`                     - to indicate that the VRU is braking,"]
9348    #[doc = " * - 2 `hardBraking`                 - to indicate that the VRU is braking hard,"]
9349    #[doc = " * - 3 `stopPedaling`                - to indicate that the VRU stopped pedaling,"]
9350    #[doc = " * - 4 `brakingAndStopPedaling`      - to indicate that the VRU stopped pedaling an is braking,"]
9351    #[doc = " * - 5 `hardBrakingAndStopPedaling`  - to indicate that the VRU stopped pedaling an is braking hard,"]
9352    #[doc = " * - 6 `noReaction`                  - to indicate that the VRU is not changing its behavior."]
9353    #[doc = " * - 7 to 15                         - are reserved for future usage. "]
9354    #[doc = " *"]
9355    #[doc = " * @category: VRU information"]
9356    #[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"]
9357    #[doc = " "]
9358    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9359    #[rasn(delegate, value("0..=15"))]
9360    pub struct VruMovementControl(pub u8);
9361    #[doc = "*"]
9362    #[doc = " * This DF indicates the profile of a VRU including sub-profile information"]
9363    #[doc = " * It identifies four options corresponding to the four types of VRU profiles specified in ETSI TS 103 300-2 [18]:"]
9364    #[doc = " *"]
9365    #[doc = " * @field pedestrian: VRU Profile 1 - Pedestrian."]
9366    #[doc = " *"]
9367    #[doc = " * @field bicyclistAndLightVruVehicle: VRU Profile  2 - Bicyclist."]
9368    #[doc = " *"]
9369    #[doc = " * @field motorcyclist: VRU Profile 3  - Motorcyclist."]
9370    #[doc = " *"]
9371    #[doc = " * @field animal: VRU Profile  4 -  Animal."]
9372    #[doc = " *"]
9373    #[doc = " * @category: VRU information"]
9374    #[doc = " * @revision: Created in V2.1.1"]
9375    #[doc = " "]
9376    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9377    #[rasn(choice, automatic_tags)]
9378    #[non_exhaustive]
9379    pub enum VruProfileAndSubprofile {
9380        pedestrian(VruSubProfilePedestrian),
9381        bicyclistAndLightVruVehicle(VruSubProfileBicyclist),
9382        motorcyclist(VruSubProfileMotorcyclist),
9383        animal(VruSubProfileAnimal),
9384    }
9385    #[doc = "*"]
9386    #[doc = " * This DE indicates the approximate size of a VRU including the VRU vehicle used."]
9387    #[doc = " * "]
9388    #[doc = " * The value shall be set to:"]
9389    #[doc = " * - 0 `unavailable`    - to indicate that there is no matched size class or due to privacy reasons in profile 1, "]
9390    #[doc = " * - 1 `low`            - to indicate that the VRU size class is low depending on the VRU profile,"]
9391    #[doc = " * - 2 `medium`         - to indicate that the VRU size class is medium depending on the VRU profile,"]
9392    #[doc = " * - 3 `high`           - to indicate that the VRU size class is high depending on the VRU profile."]
9393    #[doc = " * - 4 to 15            - are reserved for future usage. "]
9394    #[doc = " *"]
9395    #[doc = " * @category: VRU information"]
9396    #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
9397    #[doc = " "]
9398    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9399    #[rasn(delegate, value("0..=15"))]
9400    pub struct VruSizeClass(pub u8);
9401    #[doc = "*"]
9402    #[doc = " * This DE describes the status of the exterior light switches of a VRU."]
9403    #[doc = " *"]
9404    #[doc = " * The value of each bit indicates the state of the switch, which commands the corresponding light. "]
9405    #[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 "]
9406    #[doc = " * or automatically by a vehicle or VRU system: "]
9407    #[doc = " * - 0 `unavailable`     - indicates no information available, "]
9408    #[doc = " * - 1 `backFlashLight ` - indicates the status of the back flash light,"]
9409    #[doc = " * - 2 `helmetLight`     - indicates the status of the helmet light,"]
9410    #[doc = " * - 3 `armLight`        - indicates the status of the arm light,"]
9411    #[doc = " * - 4 `legLight`        - indicates the status of the leg light,"]
9412    #[doc = " * - 5 `wheelLight`      - indicates the status of the wheel light. "]
9413    #[doc = " * - Bits 6 to 8         - are reserved for future use. "]
9414    #[doc = " * The bit values do not indicate if the corresponding lamps are alight or not."]
9415    #[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."]
9416    #[doc = " *"]
9417    #[doc = " * @category: VRU information"]
9418    #[doc = " * @revision: Created in V2.1.1"]
9419    #[doc = " "]
9420    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9421    #[rasn(delegate)]
9422    pub struct VruSpecificExteriorLights(pub FixedBitString<8usize>);
9423    #[doc = "*"]
9424    #[doc = " * This DE indicates the profile of an animal"]
9425    #[doc = " * "]
9426    #[doc = " * The value shall be set to:"]
9427    #[doc = " * - 0 `unavailable`     - to indicate that the information  is unavailable,"]
9428    #[doc = " * - 1 `wild-animal`     - to indicate a animal living in the wildness, "]
9429    #[doc = " * - 2 `farm-animal`     - to indicate an animal beloning to a farm,"]
9430    #[doc = " * - 3 `service-animal`  - to indicate an animal that supports a human being."]
9431    #[doc = " * - 4 to 15             - are reserved for future usage. "]
9432    #[doc = " *"]
9433    #[doc = " * @category: VRU information"]
9434    #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
9435    #[doc = " "]
9436    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9437    #[rasn(delegate, value("0..=15"))]
9438    pub struct VruSubProfileAnimal(pub u8);
9439    #[doc = "*"]
9440    #[doc = " * This DE indicates the profile of a VRU and its light VRU vehicle / mounted animal. "]
9441    #[doc = " *"]
9442    #[doc = " * The value shall be set to:"]
9443    #[doc = " * - 0 `unavailable`           - to indicate that the information  is unavailable,"]
9444    #[doc = " * - 1 `bicyclist `            - to indicate a cycle and bicyclist to which no more-specific profile applies, "]
9445    #[doc = " * - 2 `wheelchair-user`       - to indicate a wheelchair and its user,"]
9446    #[doc = " * - 3 `horse-and-rider`       - to indicate a horse and rider,"]
9447    #[doc = " * - 4 `rollerskater`          - to indicate a roller-skater and skater,"]
9448    #[doc = " * - 5 `e-scooter`             - to indicate an e-scooter and rider,"]
9449    #[doc = " * - 6 `personal-transporter`  - to indicate a personal-transporter and rider,"]
9450    #[doc = " * - 7 `pedelec`               - to indicate a pedelec and rider to which no more-specific profile applies,"]
9451    #[doc = " * - 8 `speed-pedelec`         - to indicate a speed-pedelec and rider."]
9452    #[doc = " * - 9 `roadbike`              - to indicate a road bicycle (or road pedelec) and rider,"]
9453    #[doc = " * - 10 `childrensbike`        - to indicate a children´s bicycle (or children´s pedelec) and rider,"]
9454    #[doc = " * - 11 `racebike`             - to indicate a race bicycle (according to local applicable regulations) and rider. "]
9455    #[doc = " * - 12 to 15                  - are reserved for future usage. "]
9456    #[doc = " *"]
9457    #[doc = " * @category: VRU information"]
9458    #[doc = " * @revision: Created in V2.1.1, values 9 and 10 assigned in V2.2.1, value 11 assigned in V2.4.1"]
9459    #[doc = " "]
9460    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9461    #[rasn(delegate, value("0..=15"))]
9462    pub struct VruSubProfileBicyclist(pub u8);
9463    #[doc = "*"]
9464    #[doc = " * This DE indicates the profile of a motorcyclist and corresponding vehicle."]
9465    #[doc = " * "]
9466    #[doc = " * The value shall be set to:"]
9467    #[doc = " * - 0 `unavailable `                  - to indicate that the information  is unavailable,"]
9468    #[doc = " * - 1 `moped`                         - to indicate a moped and rider,"]
9469    #[doc = " * - 2 `motorcycle`                    - to indicate a motorcycle and rider,"]
9470    #[doc = " * - 3 `motorcycle-and-sidecar-right`  - to indicate a motorcycle with sidecar on the right and rider,"]
9471    #[doc = " * - 4 `motorcycle-and-sidecar-left`   - to indicate  a motorcycle with sidecar on the left and rider."]
9472    #[doc = " * - 5 to 15                           - are reserved for future usage. "]
9473    #[doc = " *"]
9474    #[doc = " * @category: VRU information"]
9475    #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
9476    #[doc = " "]
9477    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9478    #[rasn(delegate, value("0..=15"))]
9479    pub struct VruSubProfileMotorcyclist(pub u8);
9480    #[doc = "*"]
9481    #[doc = " * This DE indicates the profile of a pedestrian."]
9482    #[doc = " * "]
9483    #[doc = " * The value shall be set to:"]
9484    #[doc = " * - 0 `unavailable`             - to indicate that the information on is unavailable,"]
9485    #[doc = " * - 1 `ordinary-pedestrian`     - to indicate a pedestrian to which no more-specific profile applies,"]
9486    #[doc = " * - 2 `road-worker`             - to indicate a pedestrian with the role of a road worker,"]
9487    #[doc = " * - 3 `first-responder`         - to indicate a pedestrian with the role of a first responder."]
9488    #[doc = " * - value 4 to 15               - are reserved for future usage. "]
9489    #[doc = " *"]
9490    #[doc = " * @category: VRU information"]
9491    #[doc = " * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
9492    #[doc = " "]
9493    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9494    #[rasn(delegate, value("0..=15"))]
9495    pub struct VruSubProfilePedestrian(pub u8);
9496    #[doc = "*"]
9497    #[doc = " * This DE represents the World Manufacturer Identifier (WMI). The values are assigned according to ISO 3779 [6]."]
9498    #[doc = " * "]
9499    #[doc = " *"]
9500    #[doc = " * @category: Vehicle information"]
9501    #[doc = " * @revision: V1.3.1"]
9502    #[doc = " "]
9503    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9504    #[rasn(delegate, size("1..=3"))]
9505    pub struct WMInumber(pub Ia5String);
9506    #[doc = "* "]
9507    #[doc = " * This DF represents an angular component along with a confidence value in the WGS84 coordinate system."]
9508    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
9509    #[doc = " *"]
9510    #[doc = " * It shall include the following components: "]
9511    #[doc = " *"]
9512    #[doc = " * @field value: the angle value, which can be estimated as the mean of the current distribution."]
9513    #[doc = " *"]
9514    #[doc = " * @field confidence: the confidence value associated to the angle value."]
9515    #[doc = " *"]
9516    #[doc = " * @category: GeoReference information"]
9517    #[doc = " * @revision: Created in V2.1.1"]
9518    #[doc = ""]
9519    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9520    #[rasn(automatic_tags)]
9521    pub struct Wgs84Angle {
9522        pub value: Wgs84AngleValue,
9523        pub confidence: Wgs84AngleConfidence,
9524    }
9525    impl Wgs84Angle {
9526        pub fn new(value: Wgs84AngleValue, confidence: Wgs84AngleConfidence) -> Self {
9527            Self { value, confidence }
9528        }
9529    }
9530    #[doc = "* "]
9531    #[doc = " * This DE indicates the angle confidence value which represents the estimated accuracy of an angle value with a default confidence level of 95 %."]
9532    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
9533    #[doc = " * "]
9534    #[doc = " * The value shall be set to:"]
9535    #[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,"]
9536    #[doc = " * - `126` if the confidence value is out of range, i.e. greater than 12,5 degrees,"]
9537    #[doc = " * - `127` if the confidence value is not available."]
9538    #[doc = " *"]
9539    #[doc = " *"]
9540    #[doc = " * @unit 0,1 degrees"]
9541    #[doc = " * @category: GeoReference Information"]
9542    #[doc = " * @revision: Created in V2.1.1"]
9543    #[doc = ""]
9544    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9545    #[rasn(delegate, value("1..=127"))]
9546    pub struct Wgs84AngleConfidence(pub u8);
9547    #[doc = "* "]
9548    #[doc = " * This DE represents an angle value in degrees described in the WGS84 reference system with respect to the WGS84 north."]
9549    #[doc = " * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
9550    #[doc = " * When the information is not available, the DE shall be set to 3 601. The value 3600 shall not be used."]
9551    #[doc = " *"]
9552    #[doc = " * @unit 0,1 degrees"]
9553    #[doc = " * @category: GeoReference Information"]
9554    #[doc = " * @revision: Created in V2.1.1"]
9555    #[doc = ""]
9556    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9557    #[rasn(delegate, value("0..=3601"))]
9558    pub struct Wgs84AngleValue(pub u16);
9559    #[doc = "*"]
9560    #[doc = " * This DE indicates the perpendicular distance between front and rear axle of the wheel base of vehicle."]
9561    #[doc = " *"]
9562    #[doc = " * The value shall be set to:"]
9563    #[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,"]
9564    #[doc = " * - `126` indicates that the wheel base distance is equal to or greater than 12,5 metres,"]
9565    #[doc = " * - `127` indicates that the information is unavailable."]
9566    #[doc = " *"]
9567    #[doc = " * @unit 0,1 metre"]
9568    #[doc = " * @category: Vehicle information"]
9569    #[doc = " * @revision: Created in V2.1.1"]
9570    #[doc = " "]
9571    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9572    #[rasn(delegate, value("1..=127"))]
9573    pub struct WheelBaseVehicle(pub u8);
9574    #[doc = "*"]
9575    #[doc = " * This DE indicates the actual status of the front wipers of the vehicle. "]
9576    #[doc = " *"]
9577    #[doc = " * The value shall be set to:"]
9578    #[doc = " * - 0 `unavailable`   - to indicate that the information is unavailable,"]
9579    #[doc = " * - 1 `off`           - to indicate that the wipers are switched off,"]
9580    #[doc = " * - 2 `intermittent`  - to indicate that the wipers are moving intermittently,"]
9581    #[doc = " * - 3 `low`           - to indicate that the wipers are moving at low speed,"]
9582    #[doc = " * - 4 `high`          - to indicate that the wipers are moving at high speed,"]
9583    #[doc = " * - values 5 to 7      - are reserved for future usage. "]
9584    #[doc = " *"]
9585    #[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. "]
9586    #[doc = " * @category: Vehicle information "]
9587    #[doc = " * @revision: created in V2.3.1"]
9588    #[doc = " "]
9589    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9590    #[rasn(delegate, value("0..=7"))]
9591    pub struct WiperStatus(pub u8);
9592    #[doc = "*"]
9593    #[doc = " * This DE represents the sub cause codes of the @ref CauseCode `wrongWayDriving` ."]
9594    #[doc = " * "]
9595    #[doc = " * The value shall be set to:"]
9596    #[doc = " * - 0 `unavailable`           - in case further detailed information on wrong way driving event is unavailable,"]
9597    #[doc = " * - 1 `wrongLane-deprecated`   - deprecated since not pertinent to wrong way driving,"]
9598    #[doc = " * - 2 `wrongDirection`        - in case vehicle is driving in a direction that it is not allowed,"]
9599    #[doc = " * - 3-255                     - reserved for future usage."]
9600    #[doc = " * "]
9601    #[doc = " * @category: Traffic information"]
9602    #[doc = " * @revision: V1.3.1, value 1 deprecated in V2.4.1"]
9603    #[doc = " "]
9604    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9605    #[rasn(delegate, value("0..=255"))]
9606    pub struct WrongWayDrivingSubCauseCode(pub u8);
9607    #[doc = "*"]
9608    #[doc = " * This DF represents a yaw rate of vehicle at a point in time."]
9609    #[doc = " *"]
9610    #[doc = " * It shall include the following components: "]
9611    #[doc = " * "]
9612    #[doc = " * @field yawRateValue: yaw rate value at a point in time."]
9613    #[doc = " * "]
9614    #[doc = " * @field yawRateConfidence: confidence value associated to the yaw rate value."]
9615    #[doc = " * "]
9616    #[doc = " * @category: Vehicle Information"]
9617    #[doc = " * @revision: V1.3.1"]
9618    #[doc = " "]
9619    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9620    #[rasn(automatic_tags)]
9621    pub struct YawRate {
9622        #[rasn(identifier = "yawRateValue")]
9623        pub yaw_rate_value: YawRateValue,
9624        #[rasn(identifier = "yawRateConfidence")]
9625        pub yaw_rate_confidence: YawRateConfidence,
9626    }
9627    impl YawRate {
9628        pub fn new(yaw_rate_value: YawRateValue, yaw_rate_confidence: YawRateConfidence) -> Self {
9629            Self {
9630                yaw_rate_value,
9631                yaw_rate_confidence,
9632            }
9633        }
9634    }
9635    #[doc = "*"]
9636    #[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 %."]
9637    #[doc = " * If required, the confidence level can be defined by the corresponding standards applying this DE."]
9638    #[doc = " * "]
9639    #[doc = " * The value shall be set to:"]
9640    #[doc = " * - `0` if the confidence value is equal to or less than 0,01 degree/second,"]
9641    #[doc = " * - `1` if the confidence value is equal to or less than 0,05 degrees/second or greater than 0,01 degree/second,"]
9642    #[doc = " * - `2` if the confidence value is equal to or less than 0,1 degree/second or greater than 0,05 degree/second,"]
9643    #[doc = " * - `3` if the confidence value is equal to or less than 1 degree/second or greater than 0,1 degree/second,"]
9644    #[doc = " * - `4` if the confidence value is equal to or less than 5 degrees/second or greater than 1 degrees/second,"]
9645    #[doc = " * - `5` if the confidence value is equal to or less than 10 degrees/second or greater than 5 degrees/second,"]
9646    #[doc = " * - `6` if the confidence value is equal to or less than 100 degrees/second or greater than 10 degrees/second,"]
9647    #[doc = " * - `7` if the confidence value is out of range, i.e. greater than 100 degrees/second,"]
9648    #[doc = " * - `8` if the confidence value is unavailable."]
9649    #[doc = " * "]
9650    #[doc = " * NOTE: The fact that a yaw rate value is received with confidence value set to `unavailable(8)` can be caused by"]
9651    #[doc = " * several reasons, such as:"]
9652    #[doc = " * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
9653    #[doc = " * - the sensor cannot calculate the accuracy due to lack of variables, or"]
9654    #[doc = " * - there has been a vehicle bus (e.g. CAN bus) error."]
9655    #[doc = " * In all 3 cases above, the yaw rate value may be valid and used by the application."]
9656    #[doc = " * "]
9657    #[doc = " * If a yaw rate value is received and its confidence value is set to `outOfRange(7)`, it means that the "]
9658    #[doc = " * yaw rate value is not valid and therefore cannot be trusted. Such value is not useful the application."]
9659    #[doc = " * "]
9660    #[doc = " * @category: Vehicle information"]
9661    #[doc = " * @revision: Description revised in V2.1.1"]
9662    #[doc = " "]
9663    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
9664    #[rasn(enumerated)]
9665    pub enum YawRateConfidence {
9666        #[rasn(identifier = "degSec-000-01")]
9667        degSec_000_01 = 0,
9668        #[rasn(identifier = "degSec-000-05")]
9669        degSec_000_05 = 1,
9670        #[rasn(identifier = "degSec-000-10")]
9671        degSec_000_10 = 2,
9672        #[rasn(identifier = "degSec-001-00")]
9673        degSec_001_00 = 3,
9674        #[rasn(identifier = "degSec-005-00")]
9675        degSec_005_00 = 4,
9676        #[rasn(identifier = "degSec-010-00")]
9677        degSec_010_00 = 5,
9678        #[rasn(identifier = "degSec-100-00")]
9679        degSec_100_00 = 6,
9680        outOfRange = 7,
9681        unavailable = 8,
9682    }
9683    #[doc = "*"]
9684    #[doc = " * This DE represents the vehicle rotation around z-axis of the coordinate system centred on the centre of mass of the empty-loaded"]
9685    #[doc = " * vehicle. The leading sign denotes the direction of rotation."]
9686    #[doc = " * "]
9687    #[doc = " * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11."]
9688    #[doc = " *"]
9689    #[doc = " * The value shall be set to:"]
9690    #[doc = " * - `-32 766` to indicate that the yaw rate is equal to or greater than 327,66 degrees/second to the right,"]
9691    #[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, "]
9692    #[doc = "      and greater than (n-1) x 0,01 degrees/s,"]
9693    #[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, "]
9694    #[doc = "      and greater than (n-1) x 0,01 degrees/s,"]
9695    #[doc = " * - `32 766` to indicate that the yaw rate is greater than 327.65 degrees/second to the left,"]
9696    #[doc = " * - `32 767` to indicate that the information is not available."]
9697    #[doc = " * "]
9698    #[doc = " * The reading instant should be the same as for the vehicle acceleration."]
9699    #[doc = " * "]
9700    #[doc = " * @note: The empty load vehicle is defined in ISO 1176 [8], clause 4.6."]
9701    #[doc = " * "]
9702    #[doc = " * @unit: 0,01 degree per second. "]
9703    #[doc = " * @category: Vehicle Information"]
9704    #[doc = " * @revision: Description revised in V2.1.1 (the meaning of 32766 has changed slightly). Requirement on raw data deleted in V2.4.1"]
9705    #[doc = ""]
9706    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
9707    #[rasn(delegate, value("-32766..=32767"))]
9708    pub struct YawRateValue(pub i16);
9709}