c-its-parser 2.2.0

Tools for encoding and decoding ETSI messages (GN + Transport + CAM/DENM/IVIM/SSEM/SREM/MAPEM/SPATEM)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
#[allow(
    non_camel_case_types,
    non_snake_case,
    non_upper_case_globals,
    unused,
    clippy::too_many_arguments
)]
pub mod etsi_its_cdd {
    extern crate alloc;
    use core::borrow::Borrow;

    use rasn::prelude::*;

    #[doc = " Specification of CDD Data Frames:"]
    #[doc = "This DF represents an acceleration vector with associated confidence value."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field polarAcceleration: the representation of the acceleration vector in a polar or cylindrical coordinate system. "]
    #[doc = ""]
    #[doc = "- @field cartesianAcceleration: the representation of the acceleration vector in a cartesian coordinate system."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(choice, automatic_tags)]
    pub enum Acceleration3dWithConfidence {
        polarAcceleration(AccelerationPolarWithZ),
        cartesianAcceleration(AccelerationCartesian),
    }

    #[doc = "This DF represents a acceleration vector in a cartesian coordinate system."]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field xAcceleration: the x component of the acceleration vector with the associated confidence value."]
    #[doc = ""]
    #[doc = "- @field yAcceleration: the y component of the acceleration vector with the associated confidence value."]
    #[doc = ""]
    #[doc = "- @field zAcceleration: the optional z component of the acceleration vector with the associated confidence value."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct AccelerationCartesian {
        #[rasn(identifier = "xAcceleration")]
        pub x_acceleration: AccelerationComponent,
        #[rasn(identifier = "yAcceleration")]
        pub y_acceleration: AccelerationComponent,
        #[rasn(identifier = "zAcceleration")]
        pub z_acceleration: Option<AccelerationComponent>,
    }
    impl AccelerationCartesian {
        pub fn new(
            x_acceleration: AccelerationComponent,
            y_acceleration: AccelerationComponent,
            z_acceleration: Option<AccelerationComponent>,
        ) -> Self {
            Self {
                x_acceleration,
                y_acceleration,
                z_acceleration,
            }
        }
    }

    #[doc = " Specification of CDD Data Elements: "]
    #[doc = "This DE indicates a change of acceleration."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `accelerate` - if the magnitude of the horizontal velocity vector increases."]
    #[doc = "- 1 - `decelerate` - if the magnitude of the horizontal velocity vector decreases."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum AccelerationChange {
        accelerate = 0,
        decelerate = 1,
    }

    #[doc = "This DF represents information associated to changes in acceleration. "]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field accelOrDecel: the indication of an acceleration change."]
    #[doc = ""]
    #[doc = "- @field actionDeltaTime: the period over which the acceleration change action is performed."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic Information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct AccelerationChangeIndication {
        #[rasn(identifier = "accelOrDecel")]
        pub accel_or_decel: AccelerationChange,
        #[rasn(identifier = "actionDeltaTime")]
        pub action_delta_time: DeltaTimeTenthOfSecond,
    }
    impl AccelerationChangeIndication {
        pub fn new(
            accel_or_decel: AccelerationChange,
            action_delta_time: DeltaTimeTenthOfSecond,
        ) -> Self {
            Self {
                accel_or_decel,
                action_delta_time,
            }
        }
    }

    #[doc = "This DF represents an acceleration component along with a confidence value."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field value: the value of the acceleration component which can be estimated as the mean of the current distribution."]
    #[doc = ""]
    #[doc = "- @field confidence: the confidence value associated to the provided value."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic Information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct AccelerationComponent {
        pub value: AccelerationValue,
        pub confidence: AccelerationConfidence,
    }
    impl AccelerationComponent {
        pub fn new(value: AccelerationValue, confidence: AccelerationConfidence) -> Self {
            Self { value, confidence }
        }
    }

    #[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 %. "]
    #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[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,"]
    #[doc = "- `101` if the confidence value is out of range i.e. greater than 10 m/s^2,"]
    #[doc = "- `102` if the confidence value is unavailable."]
    #[doc = ""]
    #[doc = "The value 0 shall not be used."]
    #[doc = ""]
    #[doc = "\n\n@note: The fact that an acceleration value is received with confidence value set to `unavailable(102)` can be caused by several reasons, such as:"]
    #[doc = "- the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
    #[doc = "- the sensor cannot calculate the accuracy due to lack of variables, or"]
    #[doc = "- there has been a vehicle bus (e.g. CAN bus) error."]
    #[doc = "In all 3 cases above, the acceleration value may be valid and used by the application."]
    #[doc = ""]
    #[doc = "\n\n@note: If an acceleration value is received and its confidence value is set to `outOfRange(101)`, it means that the value is not valid and therefore cannot be trusted. Such value is not useful for the application."]
    #[doc = ""]
    #[doc = "\n\n@unit 0,1 m/s^2"]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=102"))]
    pub struct AccelerationConfidence(pub u8);

    #[doc = "This DE indicates the current controlling mechanism for longitudinal movement of the vehicle."]
    #[doc = "The data may be provided via the in-vehicle network. It indicates whether a specific in-vehicle"]
    #[doc = "acceleration control system is engaged or not. Currently, this DE includes the information of the"]
    #[doc = "vehicle brake pedal, gas pedal, emergency brake system, collision warning system, adaptive cruise"]
    #[doc = "control system, cruise control system and speed limiter system."]
    #[doc = ""]
    #[doc = "The corresponding bit shall be set to 1 under the following conditions:"]
    #[doc = "- 0 - `brakePedalEngaged`      - Driver is stepping on the brake pedal,"]
    #[doc = "- 1 - `gasPedalEngaged`        - Driver is stepping on the gas pedal,"]
    #[doc = "- 2 - `emergencyBrakeEngaged`  - emergency brake system is engaged,"]
    #[doc = "- 3 - `collisionWarningEngaged`- collision warning system is engaged,"]
    #[doc = "- 4 - `accEngaged`             - ACC is engaged,"]
    #[doc = "- 5 - `cruiseControlEngaged`   - cruise control is engaged,"]
    #[doc = "- 6 - `speedLimiterEngaged`    - speed limiter is engaged."]
    #[doc = ""]
    #[doc = "Otherwise (for example when the corresponding system is not available due to non equipped system"]
    #[doc = "or information is unavailable), the corresponding bit shall be set to 0."]
    #[doc = ""]
    #[doc = "\n\n@note: The system engagement condition is OEM specific and therefore out of scope of the present document."]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate)]
    pub struct AccelerationControl(pub FixedBitString<7usize>);

    #[doc = "This DF represents the magnitude of the acceleration vector and associated confidence value."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field accelerationMagnitudeValue: the magnitude of the acceleration vector."]
    #[doc = ""]
    #[doc = "- @field accelerationConfidence: the confidence value of the magnitude value."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct AccelerationMagnitude {
        #[rasn(identifier = "accelerationMagnitudeValue")]
        pub acceleration_magnitude_value: AccelerationMagnitudeValue,
        #[rasn(identifier = "accelerationConfidence")]
        pub acceleration_confidence: AccelerationConfidence,
    }
    impl AccelerationMagnitude {
        pub fn new(
            acceleration_magnitude_value: AccelerationMagnitudeValue,
            acceleration_confidence: AccelerationConfidence,
        ) -> Self {
            Self {
                acceleration_magnitude_value,
                acceleration_confidence,
            }
        }
    }

    #[doc = "This DE represents the magnitude of the acceleration vector in a defined coordinate system."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `0` to indicate no acceleration,"]
    #[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,"]
    #[doc = "- `160` for acceleration values greater than 15,9 m/s^2,"]
    #[doc = "- `161` when the data is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@unit 0,1 m/s^2"]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=161"))]
    pub struct AccelerationMagnitudeValue(pub u8);

    #[doc = "This DF represents an acceleration vector in a polar or cylindrical coordinate system."]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field accelerationMagnitude: magnitude of the acceleration vector projected onto the reference plane, with the associated confidence value."]
    #[doc = ""]
    #[doc = "- @field accelerationDirection: polar angle of the acceleration vector projected onto the reference plane, with the associated confidence value."]
    #[doc = ""]
    #[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."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct AccelerationPolarWithZ {
        #[rasn(identifier = "accelerationMagnitude")]
        pub acceleration_magnitude: AccelerationMagnitude,
        #[rasn(identifier = "accelerationDirection")]
        pub acceleration_direction: CartesianAngle,
        #[rasn(identifier = "zAcceleration")]
        pub z_acceleration: Option<AccelerationComponent>,
    }
    impl AccelerationPolarWithZ {
        pub fn new(
            acceleration_magnitude: AccelerationMagnitude,
            acceleration_direction: CartesianAngle,
            z_acceleration: Option<AccelerationComponent>,
        ) -> Self {
            Self {
                acceleration_magnitude,
                acceleration_direction,
                z_acceleration,
            }
        }
    }

    #[doc = "This DE represents the value of an acceleration component in a defined coordinate system."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `-160` for acceleration values equal to or less than -16 m/s^2,"]
    #[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,"]
    #[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,"]
    #[doc = "- `160` for acceleration values greater than 15,9 m/s^2,"]
    #[doc = "- `161` when the data is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@note: the formula for values > -160 and <160 results in rounding up to the next value. Zero acceleration is indicated using n=0."]
    #[doc = "\n\n@unit 0,1 m/s^2"]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-160..=161"))]
    pub struct AccelerationValue(pub i16);

    #[doc = "This DE indicates an access technology."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `0`: in case of any access technology class,"]
    #[doc = "- `1`: in case of ITS-G5 access technology class,"]
    #[doc = "- `2`: in case of LTE-V2X access technology class,"]
    #[doc = "- `3`: in case of NR-V2X access technology class."]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    #[non_exhaustive]
    pub enum AccessTechnologyClass {
        any = 0,
        itsg5Class = 1,
        ltev2xClass = 2,
        nrv2xClass = 3,
    }

    #[doc = "This DE represents the value of the sub cause code of the @ref CauseCode `accident`."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `unavailable`                        - in case the information on the sub cause of the accident is unavailable,"]
    #[doc = "- 1 - `multiVehicleAccident`               - in case more than two vehicles are involved in accident,"]
    #[doc = "- 2 - `heavyAccident`                      - in case the airbag of the vehicle involved in the accident is triggered, "]
    #[doc = "                                             the accident requires important rescue and/or recovery work,"]
    #[doc = "- 3 - `accidentInvolvingLorry`             - in case the accident involves a lorry,"]
    #[doc = "- 4 - `accidentInvolvingBus`               - in case the accident involves a bus,"]
    #[doc = "- 5 - `accidentInvolvingHazardousMaterials`- in case the accident involves hazardous material,"]
    #[doc = "- 6 - `accidentOnOppositeLane`             - in case the accident happens on opposite lanes,"]
    #[doc = "- 7 - `unsecuredAccident`                  - in case the accident is not secured,"]
    #[doc = "- 8 - `assistanceRequested`                - in case rescue and assistance are requested,"]
    #[doc = "- 9-255                                    - reserved for future usage. "]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct AccidentSubCauseCode(pub u8);

    #[doc = "This DF represents an identifier used to describe a protocol action taken by an ITS-S."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field originatingStationId: Id of the ITS-S that takes the action. "]
    #[doc = ""]
    #[doc = "- @field sequenceNumber: a sequence number. "]
    #[doc = ""]
    #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref ActionId instead. "]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct ActionID {
        #[rasn(identifier = "originatingStationId")]
        pub originating_station_id: StationID,
        #[rasn(identifier = "sequenceNumber")]
        pub sequence_number: SequenceNumber,
    }
    impl ActionID {
        pub fn new(originating_station_id: StationID, sequence_number: SequenceNumber) -> Self {
            Self {
                originating_station_id,
                sequence_number,
            }
        }
    }

    #[doc = "This DF represents an identifier used to describe a protocol action taken by an ITS-S."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field originatingStationId: Id of the ITS-S that takes the action. "]
    #[doc = ""]
    #[doc = "- @field sequenceNumber: a sequence number. "]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: Created in V2.1.1 based on @ref ActionID."]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct ActionId {
        #[rasn(identifier = "originatingStationId")]
        pub originating_station_id: StationId,
        #[rasn(identifier = "sequenceNumber")]
        pub sequence_number: SequenceNumber,
    }
    impl ActionId {
        pub fn new(originating_station_id: StationId, sequence_number: SequenceNumber) -> Self {
            Self {
                originating_station_id,
                sequence_number,
            }
        }
    }

    #[doc = "This DF shall contain a list of @ref ActionId. "]
    #[doc = "\n\n@category: Communication Information"]
    #[doc = "\n\n@revision: Created in V2.1.1 based on ReferenceDenms from DENM Release 1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=8", extensible))]
    pub struct ActionIdList(pub SequenceOf<ActionId>);

    #[doc = "This DE represents the value of the sub cause code of the @ref CauseCode `adverseWeatherCondition-Adhesion`. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `unavailable`     - in case information on the cause of the low road adhesion is unavailable,"]
    #[doc = "- 1 - `heavyFrostOnRoad`- in case the low road adhesion is due to heavy frost on the road,"]
    #[doc = "- 2 - `fuelOnRoad`      - in case the low road adhesion is due to fuel on the road,"]
    #[doc = "- 3 - `mudOnRoad`       - in case the low road adhesion is due to mud on the road,"]
    #[doc = "- 4 - `snowOnRoad`      - in case the low road adhesion is due to snow on the road,"]
    #[doc = "- 5 - `iceOnRoad`       - in case the low road adhesion is due to ice on the road,"]
    #[doc = "- 6 - `blackIceOnRoad`  - in case the low road adhesion is due to black ice on the road,"]
    #[doc = "- 7 - `oilOnRoad`       - in case the low road adhesion is due to oil on the road,"]
    #[doc = "- 8 - `looseChippings`  - in case the low road adhesion is due to loose gravel or stone fragments detached from a road surface or from a hazard,"]
    #[doc = "- 9 - `instantBlackIce` - in case the low road adhesion is due to instant black ice on the road surface,"]
    #[doc = "- 10 - `roadsSalted`    - when the low road adhesion is due to salted road,"]
    #[doc = "- 11-255                - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(
        delegate,
        identifier = "AdverseWeatherCondition-AdhesionSubCauseCode",
        value("0..=255")
    )]
    pub struct AdverseWeatherConditionAdhesionSubCauseCode(pub u8);

    #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-ExtremeWeatherCondition`."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `unavailable` - in case information on the type of extreme weather condition is unavailable,"]
    #[doc = "- 1 - `strongWinds` - in case the type of extreme weather condition is strong wind,"]
    #[doc = "- 2 - `damagingHail`- in case the type of extreme weather condition is damaging hail,"]
    #[doc = "- 3 - `hurricane`   - in case the type of extreme weather condition is hurricane,"]
    #[doc = "- 4 - `thunderstorm`- in case the type of extreme weather condition is thunderstorm,"]
    #[doc = "- 5 - `tornado`     - in case the type of extreme weather condition is tornado,"]
    #[doc = "- 6 - `blizzard`    - in case the type of extreme weather condition is blizzard."]
    #[doc = "- 7-255             - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(
        delegate,
        identifier = "AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode",
        value("0..=255")
    )]
    pub struct AdverseWeatherConditionExtremeWeatherConditionSubCauseCode(pub u8);

    #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-Precipitation`. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `unavailable`   - in case information on the type of precipitation is unavailable,"]
    #[doc = "- 1 - `heavyRain`     - in case the type of precipitation is heavy rain,"]
    #[doc = "- 2 - `heavySnowfall` - in case the type of precipitation is heavy snow fall,"]
    #[doc = "- 3 - `softHail`      - in case the type of precipitation is soft hail."]
    #[doc = "- 4-255               - are reserved for future usage"]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(
        delegate,
        identifier = "AdverseWeatherCondition-PrecipitationSubCauseCode",
        value("0..=255")
    )]
    pub struct AdverseWeatherConditionPrecipitationSubCauseCode(pub u8);

    #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-Visibility`."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `unavailable`    - in case information on the cause of low visibility is unavailable,"]
    #[doc = "- 1 - `fog`            - in case the cause of low visibility is fog,"]
    #[doc = "- 2 - `smoke`          - in case the cause of low visibility is smoke,"]
    #[doc = "- 3 - `heavySnowfall`  - in case the cause of low visibility is heavy snow fall,"]
    #[doc = "- 4 - `heavyRain`      - in case the cause of low visibility is heavy rain,"]
    #[doc = "- 5 - `heavyHail`      - in case the cause of low visibility is heavy hail,"]
    #[doc = "- 6 - `lowSunGlare`    - in case the cause of low visibility is sun glare,"]
    #[doc = "- 7 - `sandstorms`     - in case the cause of low visibility is sand storm,"]
    #[doc = "- 8 - `swarmsOfInsects`- in case the cause of low visibility is swarm of insects."]
    #[doc = "- 9-255                - are reserved for future usage"]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(
        delegate,
        identifier = "AdverseWeatherCondition-VisibilitySubCauseCode",
        value("0..=255")
    )]
    pub struct AdverseWeatherConditionVisibilitySubCauseCode(pub u8);

    #[doc = "This DE represents the air humidity in tenths of percent."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[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."]
    #[doc = "- `1001` indicates that the air humidity is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@unit: 0,1 % "]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=1001"))]
    pub struct AirHumidity(pub u16);

    #[doc = "This DF provides the altitude and confidence level of an altitude information in a WGS84 coordinate system."]
    #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field altitudeValue: altitude of a geographical point."]
    #[doc = ""]
    #[doc = "- @field altitudeConfidence: confidence level of the altitudeValue."]
    #[doc = ""]
    #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref AltitudeWithConfidence instead. "]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct Altitude {
        #[rasn(identifier = "altitudeValue")]
        pub altitude_value: AltitudeValue,
        #[rasn(identifier = "altitudeConfidence")]
        pub altitude_confidence: AltitudeConfidence,
    }
    impl Altitude {
        pub fn new(altitude_value: AltitudeValue, altitude_confidence: AltitudeConfidence) -> Self {
            Self {
                altitude_value,
                altitude_confidence,
            }
        }
    }

    #[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 %."]
    #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = "The value shall be set to: "]
    #[doc = "  - 0  - `alt-000-01`   - if the confidence value is equal to or less than 0,01 metre,"]
    #[doc = "  - 1  - `alt-000-02`   - if the confidence value is equal to or less than 0,02 metre and greater than 0,01 metre,"]
    #[doc = "  - 2  - `alt-000-05`   - if the confidence value is equal to or less than 0,05 metre and greater than 0,02 metre,            "]
    #[doc = "  - 3  - `alt-000-10`   - if the confidence value is equal to or less than 0,1 metre and greater than 0,05 metre,            "]
    #[doc = "  - 4  - `alt-000-20`   - if the confidence value is equal to or less than 0,2 metre and greater than 0,1 metre,            "]
    #[doc = "  - 5  - `alt-000-50`   - if the confidence value is equal to or less than 0,5 metre and greater than 0,2 metre,             "]
    #[doc = "  - 6  - `alt-001-00`   - if the confidence value is equal to or less than 1 metre and greater than 0,5 metre,             "]
    #[doc = "  - 7  - `alt-002-00`   - if the confidence value is equal to or less than 2 metres and greater than 1 metre,             "]
    #[doc = "  - 8  - `alt-005-00`   - if the confidence value is equal to or less than 5 metres and greater than 2 metres,              "]
    #[doc = "  - 9  - `alt-010-00`   - if the confidence value is equal to or less than 10 metres and greater than 5 metres,             "]
    #[doc = "  - 10 - `alt-020-00`   - if the confidence value is equal to or less than 20 metres and greater than 10 metres,            "]
    #[doc = "  - 11 - `alt-050-00`   - if the confidence value is equal to or less than 50 metres and greater than 20 metres,            "]
    #[doc = "  - 12 - `alt-100-00`   - if the confidence value is equal to or less than 100 metres and greater than 50 metres,           "]
    #[doc = "  - 13 - `alt-200-00`   - if the confidence value is equal to or less than 200 metres and greater than 100 metres,           "]
    #[doc = "  - 14 - `outOfRange`   - if the confidence value is out of range, i.e. greater than 200 metres,"]
    #[doc = "  - 15 - `unavailable`  - if the confidence value is unavailable.       "]
    #[doc = ""]
    #[doc = "\n\n@note: The fact that an altitude value is received with confidence value set to `unavailable(15)` can be caused"]
    #[doc = "by several reasons, such as:"]
    #[doc = "- the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
    #[doc = "- the sensor cannot calculate the accuracy due to lack of variables, or"]
    #[doc = "- there has been a vehicle bus (e.g. CAN bus) error."]
    #[doc = "In all 3 cases above, the altitude value may be valid and used by the application."]
    #[doc = ""]
    #[doc = "\n\n@note: If an altitude value is received and its confidence value is set to `outOfRange(14)`, it means that the  "]
    #[doc = "altitude value is not valid and therefore cannot be trusted. Such value is not useful for the application.             "]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum AltitudeConfidence {
        #[rasn(identifier = "alt-000-01")]
        alt_000_01 = 0,
        #[rasn(identifier = "alt-000-02")]
        alt_000_02 = 1,
        #[rasn(identifier = "alt-000-05")]
        alt_000_05 = 2,
        #[rasn(identifier = "alt-000-10")]
        alt_000_10 = 3,
        #[rasn(identifier = "alt-000-20")]
        alt_000_20 = 4,
        #[rasn(identifier = "alt-000-50")]
        alt_000_50 = 5,
        #[rasn(identifier = "alt-001-00")]
        alt_001_00 = 6,
        #[rasn(identifier = "alt-002-00")]
        alt_002_00 = 7,
        #[rasn(identifier = "alt-005-00")]
        alt_005_00 = 8,
        #[rasn(identifier = "alt-010-00")]
        alt_010_00 = 9,
        #[rasn(identifier = "alt-020-00")]
        alt_020_00 = 10,
        #[rasn(identifier = "alt-050-00")]
        alt_050_00 = 11,
        #[rasn(identifier = "alt-100-00")]
        alt_100_00 = 12,
        #[rasn(identifier = "alt-200-00")]
        alt_200_00 = 13,
        outOfRange = 14,
        unavailable = 15,
    }

    #[doc = "This DE represents the altitude value in a WGS84 coordinate system."]
    #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = "The value shall be set to: "]
    #[doc = "- `-100 000` if the altitude is equal to or less than -1 000 m,"]
    #[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,"]
    #[doc = "- `800 000` if the altitude  greater than 7 999,99 m,"]
    #[doc = "- `800 001` if the information is not available."]
    #[doc = ""]
    #[doc = "\n\n@note: the range of this DE does not use the full binary encoding range, but all reasonable values are covered. In order to cover all possible altitude ranges a larger encoding would be necessary."]
    #[doc = "\n\n@unit: 0,01 metre"]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1 (definition of 800 000 has slightly changed) "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-100000..=800001"))]
    pub struct AltitudeValue(pub i32);

    #[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 %."]
    #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = "The value shall be set to: "]
    #[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,"]
    #[doc = "- `126` if the  accuracy is out of range, i.e. greater than 12,5 degrees,"]
    #[doc = "- `127` if the accuracy information is not available."]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,1 degrees"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=127"))]
    pub struct AngleConfidence(pub u8);

    #[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 %."]
    #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
    #[doc = "For correlation computation, maximum interval levels shall be assumed."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `degSecSquared-01` - if the accuracy is equal to or less than 1 degree/second^2,"]
    #[doc = "- 1 - `degSecSquared-02` - if the accuracy is equal to or less than 2 degrees/second^2 and greater than 1 degree/second^2,"]
    #[doc = "- 2 - `degSecSquared-05` - if the accuracy is equal to or less than 5 degrees/second^2 and greater than 1 degree/second^2,"]
    #[doc = "- 3 - `degSecSquared-10` - if the accuracy is equal to or less than 10 degrees/second^2 and greater than 5 degrees/second^2,"]
    #[doc = "- 4 - `degSecSquared-20` - if the accuracy is equal to or less than 20 degrees/second^2 and greater than 10 degrees/second^2,"]
    #[doc = "- 5 - `degSecSquared-50` - if the accuracy is equal to or less than 50 degrees/second^2 and greater than 20 degrees/second^2,"]
    #[doc = "- 6 - `outOfRange`       - if the accuracy is out of range, i.e. greater than 50 degrees/second^2,"]
    #[doc = "- 7 - `unavailable`      - if the accuracy information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum AngularAccelerationConfidence {
        #[rasn(identifier = "degSecSquared-01")]
        degSecSquared_01 = 0,
        #[rasn(identifier = "degSecSquared-02")]
        degSecSquared_02 = 1,
        #[rasn(identifier = "degSecSquared-05")]
        degSecSquared_05 = 2,
        #[rasn(identifier = "degSecSquared-10")]
        degSecSquared_10 = 3,
        #[rasn(identifier = "degSecSquared-20")]
        degSecSquared_20 = 4,
        #[rasn(identifier = "degSecSquared-50")]
        degSecSquared_50 = 5,
        outOfRange = 6,
        unavailable = 7,
    }

    #[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 %."]
    #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
    #[doc = "For correlation computation, maximum interval levels can be assumed."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `degSec-01`   - if the accuracy is equal to or less than 1 degree/second,"]
    #[doc = "- 1 - `degSec-02`   - if the accuracy is equal to or less than 2 degrees/second and greater than 1 degree/second,"]
    #[doc = "- 2 - `degSec-05`   - if the accuracy is equal to or less than 5 degrees/second and greater than 2 degrees/second,"]
    #[doc = "- 3 - `degSec-10`   - if the accuracy is equal to or less than 10 degrees/second and greater than 5 degrees/second,"]
    #[doc = "- 4 - `degSec-20`   - if the accuracy is equal to or less than 20 degrees/second and greater than 10 degrees/second,"]
    #[doc = "- 5 - `degSec-50`   - if the accuracy is equal to or less than 50 degrees/second and greater than 20 degrees/second,"]
    #[doc = "- 6 - `outOfRange`  - if the accuracy is out of range, i.e. greater than 50 degrees/second,"]
    #[doc = "- 7 - `unavailable` - if the accuracy information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum AngularSpeedConfidence {
        #[rasn(identifier = "degSec-01")]
        degSec_01 = 0,
        #[rasn(identifier = "degSec-02")]
        degSec_02 = 1,
        #[rasn(identifier = "degSec-05")]
        degSec_05 = 2,
        #[rasn(identifier = "degSec-10")]
        degSec_10 = 3,
        #[rasn(identifier = "degSec-20")]
        degSec_20 = 4,
        #[rasn(identifier = "degSec-50")]
        degSec_50 = 5,
        outOfRange = 6,
        unavailable = 7,
    }

    #[doc = "This DE indicates the number of axles of a passing train."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `n` (`n > 2` and `n < 1001`) indicates that the train has n x axles,"]
    #[doc = "- `1001`indicates that the number of axles is out of range,"]
    #[doc = "- `1002` the information is unavailable."]
    #[doc = ""]
    #[doc = ""]
    #[doc = "\n\n@unit: Number of axles"]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("2..=1002"))]
    pub struct AxlesCount(pub u16);

    #[doc = "This DE represents the measured uncompensated atmospheric pressure."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `2999` indicates that the applicable value is less than 29990 Pa,"]
    #[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, "]
    #[doc = "- `12001` indicates that the values is greater than 120000 Pa,"]
    #[doc = "- `12002` indicates that the information is not available."]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@unit: 10 Pascal"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("2999..=12002"))]
    pub struct BarometricPressure(pub u16);

    #[doc = "This DE represents a general container for usage in various types of messages."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field stationType: the type of technical context in which the ITS-S that has generated the message is integrated in."]
    #[doc = ""]
    #[doc = "- @field referencePosition: the reference position of the station that has generated the message that contains the basic container."]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct BasicContainer {
        #[rasn(identifier = "stationType")]
        pub station_type: TrafficParticipantType,
        #[rasn(identifier = "referencePosition")]
        pub reference_position: ReferencePositionWithConfidence,
    }
    impl BasicContainer {
        pub fn new(
            station_type: TrafficParticipantType,
            reference_position: ReferencePositionWithConfidence,
        ) -> Self {
            Self {
                station_type,
                reference_position,
            }
        }
    }

    #[doc = "This DF provides information about the configuration of a road section in terms of lanes using a list of @ref LanePositionAndType ."]
    #[doc = ""]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=16", extensible))]
    pub struct BasicLaneConfiguration(pub SequenceOf<BasicLaneInformation>);

    #[doc = "This DF provides basic information about a single lane of a road segment."]
    #[doc = "It includes the following components: "]
    #[doc = ""]
    #[doc = "- @field laneNumber: the number associated to the lane that provides a transversal identification. "]
    #[doc = ""]
    #[doc = "- @field direction: the direction of traffic flow allowed on the lane. "]
    #[doc = ""]
    #[doc = "- @field laneWidth: the optional width of the lane."]
    #[doc = ""]
    #[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,"]
    #[doc = "if it does not actively change lanes. If this component is absent, the lane name number remains the same in the next section."]
    #[doc = ""]
    #[doc = "- @field connectingRoadSection: the identifier of the next road section in direction of traffic, that is connecting to the current road section. "]
    #[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."]
    #[doc = ""]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct BasicLaneInformation {
        #[rasn(identifier = "laneNumber")]
        pub lane_number: LanePosition,
        pub direction: Direction,
        #[rasn(identifier = "laneWidth")]
        pub lane_width: Option<LaneWidth>,
        #[rasn(identifier = "connectingLane")]
        pub connecting_lane: Option<LanePosition>,
        #[rasn(identifier = "connectingRoadSection")]
        pub connecting_road_section: Option<RoadSectionId>,
    }
    impl BasicLaneInformation {
        pub fn new(
            lane_number: LanePosition,
            direction: Direction,
            lane_width: Option<LaneWidth>,
            connecting_lane: Option<LanePosition>,
            connecting_road_section: Option<RoadSectionId>,
        ) -> Self {
            Self {
                lane_number,
                direction,
                lane_width,
                connecting_lane,
                connecting_road_section,
            }
        }
    }

    #[doc = "This DE indicates the cardinal number of bogies of a train."]
    #[doc = ""]
    #[doc = "The value shall be set to: "]
    #[doc = "- `n` (`n > 1` and `n < 100`) indicates that the train has n x bogies,"]
    #[doc = "- `100`indicates that the number of bogies is out of range, "]
    #[doc = "- `101` the information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@unit: Number of bogies"]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("2..=101"))]
    pub struct BogiesCount(pub u8);

    #[doc = "The DE represents a cardinal number that counts the size of a set. "]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct CardinalNumber1B(pub u8);

    #[doc = "The DE represents a cardinal number that counts the size of a set. "]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=8"))]
    pub struct CardinalNumber3b(pub u8);

    #[doc = "This DF represents a general Data Frame to describe an angle component along with a confidence value in a cartesian coordinate system."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field value: The angle value which can be estimated as the mean of the current distribution."]
    #[doc = ""]
    #[doc = "- @field confidence: The confidence value associated to the provided value."]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct CartesianAngle {
        pub value: CartesianAngleValue,
        pub confidence: AngleConfidence,
    }
    impl CartesianAngle {
        pub fn new(value: CartesianAngleValue, confidence: AngleConfidence) -> Self {
            Self { value, confidence }
        }
    }

    #[doc = "This DE represents an angle value described in a local Cartesian coordinate system, per default counted positive in"]
    #[doc = "a right-hand local coordinate system from the abscissa."]
    #[doc = ""]
    #[doc = "The value shall be set to: "]
    #[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,"]
    #[doc = "- `3601` if the information is not available."]
    #[doc = ""]
    #[doc = "The value 3600 shall not be used. "]
    #[doc = ""]
    #[doc = "\n\n@unit 0,1 degrees"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1, description and value for 3601 corrected in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=3601"))]
    pub struct CartesianAngleValue(pub u16);

    #[doc = "This DF represents a general Data Frame to describe an angular acceleration component along with a confidence value in a cartesian coordinate system."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field value: The angular acceleration component value."]
    #[doc = ""]
    #[doc = "- @field confidence: The confidence value associated to the provided value."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1 "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct CartesianAngularAccelerationComponent {
        pub value: CartesianAngularAccelerationComponentValue,
        pub confidence: AngularAccelerationConfidence,
    }
    impl CartesianAngularAccelerationComponent {
        pub fn new(
            value: CartesianAngularAccelerationComponentValue,
            confidence: AngularAccelerationConfidence,
        ) -> Self {
            Self { value, confidence }
        }
    }

    #[doc = "This DE represents an angular acceleration value described in a local Cartesian coordinate system, per default counted positive in"]
    #[doc = "a right-hand local coordinate system from the abscissa."]
    #[doc = ""]
    #[doc = "  * The value shall be set to: "]
    #[doc = "- `-255` if the acceleration is equal to or less than -255 degrees/s^2,"]
    #[doc = "- `n` (`n > -255` and `n < 255`) if the acceleration is equal to or less than n x 1 degree/s^2,"]
    #[doc = "      and greater than `(n-1)` x 0,01 degree/s^2,"]
    #[doc = "- `255` if the acceleration is greater than 254 degrees/s^2,"]
    #[doc = "- `256` if the information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@unit:  degree/s^2 (degrees per second squared)"]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-255..=256"))]
    pub struct CartesianAngularAccelerationComponentValue(pub i16);

    #[doc = "This DF represents an angular velocity component along with a confidence value in a cartesian coordinate system."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field value: The angular velocity component."]
    #[doc = ""]
    #[doc = "- @field confidence: The confidence value associated to the provided value."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct CartesianAngularVelocityComponent {
        pub value: CartesianAngularVelocityComponentValue,
        pub confidence: AngularSpeedConfidence,
    }
    impl CartesianAngularVelocityComponent {
        pub fn new(
            value: CartesianAngularVelocityComponentValue,
            confidence: AngularSpeedConfidence,
        ) -> Self {
            Self { value, confidence }
        }
    }

    #[doc = "This DE represents an angular velocity component described in a local Cartesian coordinate system, per default counted positive in"]
    #[doc = "a right-hand local coordinate system from the abscissa."]
    #[doc = ""]
    #[doc = "The value shall be set to: "]
    #[doc = "- `-255` if the velocity is equal to or less than -255 degrees/s,"]
    #[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,"]
    #[doc = "- `255` if the velocity is greater than 254 degrees/s,"]
    #[doc = "- `256` if the information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@unit: degree/s"]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-255..=256"))]
    pub struct CartesianAngularVelocityComponentValue(pub i16);

    #[doc = "This DF represents the value of a cartesian coordinate with a range of -327,68 metres to +327,66 metres."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `-32 768` if the longitudinal offset is out of range, i.e. less than or equal to -327,68 metres,"]
    #[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,"]
    #[doc = "- `32 767` if the longitudinal offset is out of range, i.e. greater than + 327,66 metres."]
    #[doc = ""]
    #[doc = "\n\n@unit 0,01 m"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-32768..=32767"))]
    pub struct CartesianCoordinate(pub i16);

    #[doc = "This DF represents the value of a cartesian coordinate with a range of -1 310,72 metres to +1 310,70 metres."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `-131072` if the longitudinal offset is out of range, i.e. less than or equal to -1 310,72 metres,"]
    #[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,"]
    #[doc = "- `131 071` if the longitudinal offset is out of range, i.e. greater than + 1 310,70 metres."]
    #[doc = " "]
    #[doc = "\n\n@unit 0,01 m"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-131072..=131071"))]
    pub struct CartesianCoordinateLarge(pub i32);

    #[doc = "This DF represents the value of a cartesian coordinate with a range of -30,94 metres to +10,00 metres."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `3094` if the longitudinal offset is out of range, i.e. less than or equal to -30,94 metres,"]
    #[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,"]
    #[doc = "- `1001` if the longitudinal offset is out of range, i.e. greater than 10 metres."]
    #[doc = ""]
    #[doc = "\n\n@unit 0,01 m"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-3094..=1001"))]
    pub struct CartesianCoordinateSmall(pub i16);

    #[doc = "This DF represents a coordinate along with a confidence value in a cartesian reference system."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field value: the coordinate value, which can be estimated as the mean of the current distribution."]
    #[doc = ""]
    #[doc = "- @field confidence: the coordinate confidence value associated to the provided value."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct CartesianCoordinateWithConfidence {
        pub value: CartesianCoordinateLarge,
        pub confidence: CoordinateConfidence,
    }
    impl CartesianCoordinateWithConfidence {
        pub fn new(value: CartesianCoordinateLarge, confidence: CoordinateConfidence) -> Self {
            Self { value, confidence }
        }
    }

    #[doc = "This DF represents a  position in a two- or three-dimensional cartesian coordinate system."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field xCoordinate: the X coordinate value."]
    #[doc = ""]
    #[doc = "- @field yCoordinate: the Y coordinate value."]
    #[doc = ""]
    #[doc = "- @field zCoordinate: the optional Z coordinate value."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct CartesianPosition3d {
        #[rasn(identifier = "xCoordinate")]
        pub x_coordinate: CartesianCoordinate,
        #[rasn(identifier = "yCoordinate")]
        pub y_coordinate: CartesianCoordinate,
        #[rasn(identifier = "zCoordinate")]
        pub z_coordinate: Option<CartesianCoordinate>,
    }
    impl CartesianPosition3d {
        pub fn new(
            x_coordinate: CartesianCoordinate,
            y_coordinate: CartesianCoordinate,
            z_coordinate: Option<CartesianCoordinate>,
        ) -> Self {
            Self {
                x_coordinate,
                y_coordinate,
                z_coordinate,
            }
        }
    }

    #[doc = "This DF represents a  position in a two- or three-dimensional cartesian coordinate system with an associated confidence level for each coordinate."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field xCoordinate: the X coordinate value with the associated confidence level."]
    #[doc = ""]
    #[doc = "- @field yCoordinate: the Y coordinate value with the associated confidence level."]
    #[doc = ""]
    #[doc = "- @field zCoordinate: the optional Z coordinate value with the associated confidence level."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct CartesianPosition3dWithConfidence {
        #[rasn(identifier = "xCoordinate")]
        pub x_coordinate: CartesianCoordinateWithConfidence,
        #[rasn(identifier = "yCoordinate")]
        pub y_coordinate: CartesianCoordinateWithConfidence,
        #[rasn(identifier = "zCoordinate")]
        pub z_coordinate: Option<CartesianCoordinateWithConfidence>,
    }
    impl CartesianPosition3dWithConfidence {
        pub fn new(
            x_coordinate: CartesianCoordinateWithConfidence,
            y_coordinate: CartesianCoordinateWithConfidence,
            z_coordinate: Option<CartesianCoordinateWithConfidence>,
        ) -> Self {
            Self {
                x_coordinate,
                y_coordinate,
                z_coordinate,
            }
        }
    }

    #[doc = "This DF is a representation of the cause code value of a traffic event. "]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field causeCode: the main cause of a detected event. "]
    #[doc = ""]
    #[doc = "- @field subCauseCode: the subordinate cause of a detected event. "]
    #[doc = ""]
    #[doc = "The semantics of the entire DF are completely defined by the component causeCode. The interpretation of the subCauseCode may "]
    #[doc = "provide additional information that is not strictly necessary to understand the causeCode itself, and is therefore optional."]
    #[doc = ""]
    #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref CauseCodeV2 instead. "]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: Editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct CauseCode {
        #[rasn(identifier = "causeCode")]
        pub cause_code: CauseCodeType,
        #[rasn(identifier = "subCauseCode")]
        pub sub_cause_code: SubCauseCodeType,
    }
    impl CauseCode {
        pub fn new(cause_code: CauseCodeType, sub_cause_code: SubCauseCodeType) -> Self {
            Self {
                cause_code,
                sub_cause_code,
            }
        }
    }

    #[doc = "This DF is a representation of the cause code value and associated sub cause code value of a traffic event. "]
    #[doc = ""]
    #[doc = "The following options are available:"]
    #[doc = "- 0                                                        - reserved for future use,"]
    #[doc = "- 1  - `trafficCondition1`                                 - in case the type of event is an abnormal traffic condition,"]
    #[doc = "- 2  - `accident2`                                         - in case the type of event is a road accident,"]
    #[doc = "- 3  - `roadworks3`                                        - in case the type of event is roadwork,"]
    #[doc = "- 4                                                        - reserved for future usage,"]
    #[doc = "- 5  - `impassability5`                                    - in case the  type of event is unmanaged road blocking, referring to any"]
    #[doc = "                                                             blocking of a road, partial or total, which has not been adequately secured and signposted,"]
    #[doc = "- 6  - `adverseWeatherCondition-Adhesion6`                 - in case the  type of event is low adhesion,"]
    #[doc = "- 7  - `aquaplaning7`                                      - danger of aquaplaning on the road,"]
    #[doc = "- 8                                                        - reserved for future usage,"]
    #[doc = "- 9  - `hazardousLocation-SurfaceCondition9`               - in case the type of event is abnormal road surface condition,"]
    #[doc = "- 10 - `hazardousLocation-ObstacleOnTheRoad10`             - in case the type of event is obstacle on the road,"]
    #[doc = "- 11 - `hazardousLocation-AnimalOnTheRoad11`               - in case the type of event is animal on the road,"]
    #[doc = "- 12 - `humanPresenceOnTheRoad`                            - in case the type of event is presence of human vulnerable road user on the road,"]
    #[doc = "- 13                                                       - reserved for future usage,"]
    #[doc = "- 14 - `wrongWayDriving14`                                 - in case the type of the event is vehicle driving in wrong way,"]
    #[doc = "- 15 - `rescueAndRecoveryWorkInProgress15`                 - in case the type of event is rescue and recovery work for accident or for a road hazard in progress,"]
    #[doc = "- 16                                                       - reserved for future usage,"]
    #[doc = "- 17 - `adverseWeatherCondition-ExtremeWeatherCondition17` - in case the type of event is extreme weather condition,"]
    #[doc = "- 18 - `adverseWeatherCondition-Visibility18`              - in case the type of event is low visibility,"]
    #[doc = "- 19 - `adverseWeatherCondition-Precipitation19`           - in case the type of event is precipitation,"]
    #[doc = "- 20 - `violence20`                                        - in case the the type of event is human violence on or near the road,"]
    #[doc = "- 21-25                                                    - reserved for future usage,"]
    #[doc = "- 26 - `slowVehicle26`                                     - in case the type of event is slow vehicle driving on the road,"]
    #[doc = "- 27 - `dangerousEndOfQueue27`                             - in case the type of event is dangerous end of vehicle queue,"]
    #[doc = "- 28 - `publicTransportVehicleApproaching                  - in case the type of event is a public transport vehicle approaching, with a priority defined by applicable traffic regulations,"]
    #[doc = "- 29-90                                                    - are reserved for future usage,"]
    #[doc = "- 91 - `vehicleBreakdown91`                                - in case the type of event is break down vehicle on the road,"]
    #[doc = "- 92 - `postCrash92`                                       - in case the type of event is a detected crash,"]
    #[doc = "- 93 - `humanProblem93`                                    - in case the type of event is human health problem in vehicles involved in traffic,"]
    #[doc = "- 94 - `stationaryVehicle94`                               - in case the type of event is stationary vehicle,"]
    #[doc = "- 95 - `emergencyVehicleApproaching95`                     - in case the type of event is an approaching vehicle operating on a mission for which the "]
    #[doc = "                                                                applicable traffic regulations provide it with defined priority rights in traffic. "]
    #[doc = "- 96 - `hazardousLocation-DangerousCurve96`                - in case the type of event is dangerous curve,"]
    #[doc = "- 97 - `collisionRisk97`                                   - in case the type of event is a collision risk,"]
    #[doc = "- 98 - `signalViolation98`                                 - in case the type of event is signal violation,"]
    #[doc = "- 99 - `dangerousSituation99`                              - in case the type of event is dangerous situation in which autonomous safety system in vehicle "]
    #[doc = "                                                             is activated,"]
    #[doc = "- 100 - `railwayLevelCrossing100`                          - in case the type of event is a railway level crossing. "]
    #[doc = "- 101-255                                                  - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@note: this DF is defined for use as part of CauseCodeV2. It is recommended to use CauseCodeV2."]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: Created in V2.1.1, the type of impassability5 changed to ImpassabilitySubCauseCode in V2.2.1, value 28 added in V2.2.1, definition of value 12 and 95 changed in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(choice, automatic_tags)]
    pub enum CauseCodeChoice {
        reserved0(SubCauseCodeType),
        trafficCondition1(TrafficConditionSubCauseCode),
        accident2(AccidentSubCauseCode),
        roadworks3(RoadworksSubCauseCode),
        reserved4(SubCauseCodeType),
        impassability5(ImpassabilitySubCauseCode),
        #[rasn(identifier = "adverseWeatherCondition-Adhesion6")]
        adverseWeatherCondition_Adhesion6(AdverseWeatherConditionAdhesionSubCauseCode),
        aquaplaning7(SubCauseCodeType),
        reserved8(SubCauseCodeType),
        #[rasn(identifier = "hazardousLocation-SurfaceCondition9")]
        hazardousLocation_SurfaceCondition9(HazardousLocationSurfaceConditionSubCauseCode),
        #[rasn(identifier = "hazardousLocation-ObstacleOnTheRoad10")]
        hazardousLocation_ObstacleOnTheRoad10(HazardousLocationObstacleOnTheRoadSubCauseCode),
        #[rasn(identifier = "hazardousLocation-AnimalOnTheRoad11")]
        hazardousLocation_AnimalOnTheRoad11(HazardousLocationAnimalOnTheRoadSubCauseCode),
        humanPresenceOnTheRoad12(HumanPresenceOnTheRoadSubCauseCode),
        reserved13(SubCauseCodeType),
        wrongWayDriving14(WrongWayDrivingSubCauseCode),
        rescueAndRecoveryWorkInProgress15(RescueAndRecoveryWorkInProgressSubCauseCode),
        reserved16(SubCauseCodeType),
        #[rasn(identifier = "adverseWeatherCondition-ExtremeWeatherCondition17")]
        adverseWeatherCondition_ExtremeWeatherCondition17(
            AdverseWeatherConditionExtremeWeatherConditionSubCauseCode,
        ),
        #[rasn(identifier = "adverseWeatherCondition-Visibility18")]
        adverseWeatherCondition_Visibility18(AdverseWeatherConditionVisibilitySubCauseCode),
        #[rasn(identifier = "adverseWeatherCondition-Precipitation19")]
        adverseWeatherCondition_Precipitation19(AdverseWeatherConditionPrecipitationSubCauseCode),
        violence20(SubCauseCodeType),
        reserved21(SubCauseCodeType),
        reserved22(SubCauseCodeType),
        reserved23(SubCauseCodeType),
        reserved24(SubCauseCodeType),
        reserved25(SubCauseCodeType),
        slowVehicle26(SlowVehicleSubCauseCode),
        dangerousEndOfQueue27(DangerousEndOfQueueSubCauseCode),
        publicTransportVehicleApproaching28(SubCauseCodeType),
        reserved29(SubCauseCodeType),
        reserved30(SubCauseCodeType),
        reserved31(SubCauseCodeType),
        reserved32(SubCauseCodeType),
        reserved33(SubCauseCodeType),
        reserved34(SubCauseCodeType),
        reserved35(SubCauseCodeType),
        reserved36(SubCauseCodeType),
        reserved37(SubCauseCodeType),
        reserved38(SubCauseCodeType),
        reserved39(SubCauseCodeType),
        reserved40(SubCauseCodeType),
        reserved41(SubCauseCodeType),
        reserved42(SubCauseCodeType),
        reserved43(SubCauseCodeType),
        reserved44(SubCauseCodeType),
        reserved45(SubCauseCodeType),
        reserved46(SubCauseCodeType),
        reserved47(SubCauseCodeType),
        reserved48(SubCauseCodeType),
        reserved49(SubCauseCodeType),
        reserved50(SubCauseCodeType),
        reserved51(SubCauseCodeType),
        reserved52(SubCauseCodeType),
        reserved53(SubCauseCodeType),
        reserved54(SubCauseCodeType),
        reserved55(SubCauseCodeType),
        reserved56(SubCauseCodeType),
        reserved57(SubCauseCodeType),
        reserved58(SubCauseCodeType),
        reserved59(SubCauseCodeType),
        reserved60(SubCauseCodeType),
        reserved61(SubCauseCodeType),
        reserved62(SubCauseCodeType),
        reserved63(SubCauseCodeType),
        reserved64(SubCauseCodeType),
        reserved65(SubCauseCodeType),
        reserved66(SubCauseCodeType),
        reserved67(SubCauseCodeType),
        reserved68(SubCauseCodeType),
        reserved69(SubCauseCodeType),
        reserved70(SubCauseCodeType),
        reserved71(SubCauseCodeType),
        reserved72(SubCauseCodeType),
        reserved73(SubCauseCodeType),
        reserved74(SubCauseCodeType),
        reserved75(SubCauseCodeType),
        reserved76(SubCauseCodeType),
        reserved77(SubCauseCodeType),
        reserved78(SubCauseCodeType),
        reserved79(SubCauseCodeType),
        reserved80(SubCauseCodeType),
        reserved81(SubCauseCodeType),
        reserved82(SubCauseCodeType),
        reserved83(SubCauseCodeType),
        reserved84(SubCauseCodeType),
        reserved85(SubCauseCodeType),
        reserved86(SubCauseCodeType),
        reserved87(SubCauseCodeType),
        reserved88(SubCauseCodeType),
        reserved89(SubCauseCodeType),
        reserved90(SubCauseCodeType),
        vehicleBreakdown91(VehicleBreakdownSubCauseCode),
        postCrash92(PostCrashSubCauseCode),
        humanProblem93(HumanProblemSubCauseCode),
        stationaryVehicle94(StationaryVehicleSubCauseCode),
        emergencyVehicleApproaching95(EmergencyVehicleApproachingSubCauseCode),
        #[rasn(identifier = "hazardousLocation-DangerousCurve96")]
        hazardousLocation_DangerousCurve96(HazardousLocationDangerousCurveSubCauseCode),
        collisionRisk97(CollisionRiskSubCauseCode),
        signalViolation98(SignalViolationSubCauseCode),
        dangerousSituation99(DangerousSituationSubCauseCode),
        railwayLevelCrossing100(RailwayLevelCrossingSubCauseCode),
        reserved101(SubCauseCodeType),
        reserved102(SubCauseCodeType),
        reserved103(SubCauseCodeType),
        reserved104(SubCauseCodeType),
        reserved105(SubCauseCodeType),
        reserved106(SubCauseCodeType),
        reserved107(SubCauseCodeType),
        reserved108(SubCauseCodeType),
        reserved109(SubCauseCodeType),
        reserved110(SubCauseCodeType),
        reserved111(SubCauseCodeType),
        reserved112(SubCauseCodeType),
        reserved113(SubCauseCodeType),
        reserved114(SubCauseCodeType),
        reserved115(SubCauseCodeType),
        reserved116(SubCauseCodeType),
        reserved117(SubCauseCodeType),
        reserved118(SubCauseCodeType),
        reserved119(SubCauseCodeType),
        reserved120(SubCauseCodeType),
        reserved121(SubCauseCodeType),
        reserved122(SubCauseCodeType),
        reserved123(SubCauseCodeType),
        reserved124(SubCauseCodeType),
        reserved125(SubCauseCodeType),
        reserved126(SubCauseCodeType),
        reserved127(SubCauseCodeType),
        reserved128(SubCauseCodeType),
    }

    #[doc = "The DE represents the value of the cause code of an event. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0                                                     - reserved for future use,"]
    #[doc = "- 1  - `trafficCondition`                               - in case the type of event is an abnormal traffic condition,"]
    #[doc = "- 2  - `accident`                                       - in case the type of event is a road accident,"]
    #[doc = "- 3  - `roadworks`                                      - in case the type of event is roadwork,"]
    #[doc = "- 4                                                     - reserved for future usage,"]
    #[doc = "- 5  - `impassability`                                  - in case the  type of event is unmanaged road blocking, referring to any"]
    #[doc = "                                                          blocking of a road, partial or total, which has not been adequately"]
    #[doc = "                                                          secured and signposted,"]
    #[doc = "- 6  - `adverseWeatherCondition-Adhesion`               - in case the  type of event is low adhesion,"]
    #[doc = "- 7  - `aquaplaning`                                    - danger of aquaplaning on the road,"]
    #[doc = "- 8                                                     - reserved for future usage,"]
    #[doc = "- 9  - `hazardousLocation-SurfaceCondition`             - in case the type of event is abnormal road surface condition,"]
    #[doc = "- 10 - `hazardousLocation-ObstacleOnTheRoad`            - in case the type of event is obstacle on the road,"]
    #[doc = "- 11 - `hazardousLocation-AnimalOnTheRoad`              - in case the type of event is animal on the road,"]
    #[doc = "- 12 - `humanPresenceOnTheRoad`                         - in case the type of event is presence of human vulnerable road user on the road,"]
    #[doc = "- 13                                                    - reserved for future usage,"]
    #[doc = "- 14 - `wrongWayDriving`                                - in case the type of the event is vehicle driving in wrong way,"]
    #[doc = "- 15 - `rescueAndRecoveryWorkInProgress`                - in case the type of event is rescue and recovery work for accident or for a road hazard in progress,"]
    #[doc = "- 16                                                    - reserved for future usage,"]
    #[doc = "- 17 - `adverseWeatherCondition-ExtremeWeatherCondition`- in case the type of event is extreme weather condition,"]
    #[doc = "- 18 - `adverseWeatherCondition-Visibility`             - in case the type of event is low visibility,"]
    #[doc = "- 19 - `adverseWeatherCondition-Precipitation`          - in case the type of event is precipitation,"]
    #[doc = "- 20 - `violence`                                       - in case the the type of event is human violence on or near the road,"]
    #[doc = "- 21-25                                                 - reserved for future usage,"]
    #[doc = "- 26 - `slowVehicle`                                    - in case the type of event is slow vehicle driving on the road,"]
    #[doc = "- 27 - `dangerousEndOfQueue`                            - in case the type of event is dangerous end of vehicle queue,"]
    #[doc = "- 28 - `publicTransportVehicleApproaching               - in case the type of event is a public transport vehicle approaching, with a priority defined by applicable traffic regulations,"]
    #[doc = "- 29-90                                                 - are reserved for future usage,"]
    #[doc = "- 91 - `vehicleBreakdown`                               - in case the type of event is break down vehicle on the road,"]
    #[doc = "- 92 - `postCrash`                                      - in case the type of event is a detected crash,"]
    #[doc = "- 93 - `humanProblem`                                   - in case the type of event is human health problem in vehicles involved in traffic,"]
    #[doc = "- 94 - `stationaryVehicle`                              - in case the type of event is stationary vehicle,"]
    #[doc = "- 95 - `emergencyVehicleApproaching`                    - in case the type of event is an approaching vehicle operating on a mission for which the applicable "]
    #[doc = "                                                             traffic regulations provide it with defined priority rights in traffic. "]
    #[doc = "- 96 - `hazardousLocation-DangerousCurve`               - in case the type of event is dangerous curve,"]
    #[doc = "- 97 - `collisionRisk`                                  - in case the type of event is a collision risk,"]
    #[doc = "- 98 - `signalViolation`                                - in case the type of event is signal violation,"]
    #[doc = "- 99 - `dangerousSituation`                             - in case the type of event is dangerous situation in which autonomous safety system in vehicle "]
    #[doc = "                                                            is activated,"]
    #[doc = "- 100 - `railwayLevelCrossing`                          - in case the type of event is a railway level crossing. "]
    #[doc = "- 101-255                                               - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1, value 28 added in V2.2.1, definition of values 12 and 95 changed in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct CauseCodeType(pub u8);

    #[doc = "This DF is an alternative representation of the cause code value of a traffic event. "]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field ccAndScc: the main cause of a detected event. Each entry is of a different type and represents the sub cause code."]
    #[doc = "The semantics of the entire DF are completely defined by the choice value which represents the cause code value. "]
    #[doc = "The interpretation of the sub cause code value may provide additional information that is not strictly necessary to understand "]
    #[doc = "the cause code itself, and is therefore optional."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: Created in V2.1.1, description amended in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct CauseCodeV2 {
        #[rasn(identifier = "ccAndScc")]
        pub cc_and_scc: CauseCodeChoice,
    }
    impl CauseCodeV2 {
        pub fn new(cc_and_scc: CauseCodeChoice) -> Self {
            Self { cc_and_scc }
        }
    }

    #[doc = "The DF describes the position of a CEN DSRC road side equipment."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field protectedZoneLatitude: the latitude of the CEN DSRC road side equipment."]
    #[doc = ""]
    #[doc = "- @field protectedZoneLongitude: the latitude of the CEN DSRC road side equipment. "]
    #[doc = ""]
    #[doc = "- @field cenDsrcTollingZoneID: the optional ID of the CEN DSRC road side equipment."]
    #[doc = ""]
    #[doc = "\n\n@category: Infrastructure information, Communication information"]
    #[doc = "\n\n@revision: revised in V2.1.1 (cenDsrcTollingZoneId is directly of type ProtectedZoneId)"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct CenDsrcTollingZone {
        #[rasn(identifier = "protectedZoneLatitude")]
        pub protected_zone_latitude: Latitude,
        #[rasn(identifier = "protectedZoneLongitude")]
        pub protected_zone_longitude: Longitude,
        #[rasn(identifier = "cenDsrcTollingZoneId")]
        pub cen_dsrc_tolling_zone_id: Option<ProtectedZoneId>,
    }
    impl CenDsrcTollingZone {
        pub fn new(
            protected_zone_latitude: Latitude,
            protected_zone_longitude: Longitude,
            cen_dsrc_tolling_zone_id: Option<ProtectedZoneId>,
        ) -> Self {
            Self {
                protected_zone_latitude,
                protected_zone_longitude,
                cen_dsrc_tolling_zone_id,
            }
        }
    }

    #[doc = "This DE represents the ID of a CEN DSRC tolling zone. "]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[doc = "\n\n@note: this DE is deprecated and shall not be used anymore.  "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate)]
    pub struct CenDsrcTollingZoneID(pub ProtectedZoneId);

    #[doc = ""]
    #[doc = "This DF represents the shape of a circular area or a right cylinder that is centred on the shape's reference point. "]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field shapeReferencePoint: optional reference point that represents the centre of the circle, relative to an externally specified reference position. "]
    #[doc = "If this component is absent, the externally specified reference position represents the shape's reference point. "]
    #[doc = ""]
    #[doc = "- @field radius: the radius of the circular area."]
    #[doc = ""]
    #[doc = "- @field height: the optional height, present if the shape is a right cylinder extending in the positive z-axis. "]
    #[doc = ""]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct CircularShape {
        #[rasn(identifier = "shapeReferencePoint")]
        pub shape_reference_point: Option<CartesianPosition3d>,
        pub radius: StandardLength12b,
        pub height: Option<StandardLength12b>,
    }
    impl CircularShape {
        pub fn new(
            shape_reference_point: Option<CartesianPosition3d>,
            radius: StandardLength12b,
            height: Option<StandardLength12b>,
        ) -> Self {
            Self {
                shape_reference_point,
                radius,
                height,
            }
        }
    }

    #[doc = "This DF indicates the opening/closure status of the lanes of a carriageway."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field innerhardShoulderStatus: this information is optional and shall be included if an inner hard shoulder is present and the information is known."]
    #[doc = "It indicates the open/closing status of inner hard shoulder lanes. "]
    #[doc = ""]
    #[doc = "- @field outerhardShoulderStatus: this information is optional and shall be included if an outer hard shoulder is present and the information is known."]
    #[doc = "It indicates the open/closing status of outer hard shoulder lanes. "]
    #[doc = ""]
    #[doc = "- @field drivingLaneStatus: this information is optional and shall be included if the information is known."]
    #[doc = "It indicates the open/closing status of driving lanes. "]
    #[doc = "For carriageways with more than 13 driving lanes, the drivingLaneStatus component shall not be present."]
    #[doc = ""]
    #[doc = "\n\n@category: Infrastructure information, Road topology information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct ClosedLanes {
        #[rasn(identifier = "innerhardShoulderStatus")]
        pub innerhard_shoulder_status: Option<HardShoulderStatus>,
        #[rasn(identifier = "outerhardShoulderStatus")]
        pub outerhard_shoulder_status: Option<HardShoulderStatus>,
        #[rasn(identifier = "drivingLaneStatus")]
        pub driving_lane_status: Option<DrivingLaneStatus>,
    }
    impl ClosedLanes {
        pub fn new(
            innerhard_shoulder_status: Option<HardShoulderStatus>,
            outerhard_shoulder_status: Option<HardShoulderStatus>,
            driving_lane_status: Option<DrivingLaneStatus>,
        ) -> Self {
            Self {
                innerhard_shoulder_status,
                outerhard_shoulder_status,
                driving_lane_status,
            }
        }
    }

    #[doc = "This DF provides information about the breakup of a cluster."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field clusterBreakupReason: indicates the reason for breakup."]
    #[doc = ""]
    #[doc = "- @field breakupTime: indicates the time of breakup. "]
    #[doc = ""]
    #[doc = "\n\n@category: Cluster Information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct ClusterBreakupInfo {
        #[rasn(identifier = "clusterBreakupReason")]
        pub cluster_breakup_reason: ClusterBreakupReason,
        #[rasn(identifier = "breakupTime")]
        pub breakup_time: DeltaTimeQuarterSecond,
    }
    impl ClusterBreakupInfo {
        pub fn new(
            cluster_breakup_reason: ClusterBreakupReason,
            breakup_time: DeltaTimeQuarterSecond,
        ) -> Self {
            Self {
                cluster_breakup_reason,
                breakup_time,
            }
        }
    }

    #[doc = "This DE indicates the reason why a cluster leader intends to break up the cluster."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `notProvided`                          - if the information is not provided,"]
    #[doc = "- 1 - `clusteringPurposeCompleted`           - if the cluster purpose has been completed,"]
    #[doc = "- 2 - `leaderMovedOutOfClusterBoundingBox`   - if the leader moved out of the cluster's bounding box,"]
    #[doc = "- 3 - `joiningAnotherCluster`                - if the cluster leader is about to join another cluster,"]
    #[doc = "- 4 - `enteringLowRiskAreaBasedOnMaps`       - if the cluster is entering an area idenrified as low risk based on the use of maps,"]
    #[doc = "- 5 - `receptionOfCpmContainingCluster`      - if the leader received a Collective Perception Message containing information about the same cluster. "]
    #[doc = "- 6 to 15                                    - are reserved for future use.                                    "]
    #[doc = ""]
    #[doc = "\n\n@category: Cluster information"]
    #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=15"))]
    pub struct ClusterBreakupReason(pub u8);

    #[doc = "This DF provides information about the joining of a cluster."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field clusterId: indicates the identifier of the cluster."]
    #[doc = ""]
    #[doc = "- @field joinTime: indicates the time of joining. "]
    #[doc = ""]
    #[doc = "\n\n@category: Cluster Information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct ClusterJoinInfo {
        #[rasn(identifier = "clusterId")]
        pub cluster_id: Identifier1B,
        #[rasn(identifier = "joinTime")]
        pub join_time: DeltaTimeQuarterSecond,
    }
    impl ClusterJoinInfo {
        pub fn new(cluster_id: Identifier1B, join_time: DeltaTimeQuarterSecond) -> Self {
            Self {
                cluster_id,
                join_time,
            }
        }
    }

    #[doc = "The DF provides information about the leaving of a cluster."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field clusterId: indicates the cluster."]
    #[doc = ""]
    #[doc = "- @field clusterLeaveReason: indicates the reason for leaving. "]
    #[doc = ""]
    #[doc = "\n\n@category: Cluster Information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct ClusterLeaveInfo {
        #[rasn(identifier = "clusterId")]
        pub cluster_id: Identifier1B,
        #[rasn(identifier = "clusterLeaveReason")]
        pub cluster_leave_reason: ClusterLeaveReason,
    }
    impl ClusterLeaveInfo {
        pub fn new(cluster_id: Identifier1B, cluster_leave_reason: ClusterLeaveReason) -> Self {
            Self {
                cluster_id,
                cluster_leave_reason,
            }
        }
    }

    #[doc = "This DE indicates the reason why a cluster participant is leaving the cluster."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `notProvided `                 - if the information is not provided,"]
    #[doc = "- 1 - `clusterLeaderLost`            - if the cluster leader cannot be found anymore,   "]
    #[doc = "- 2 - `clusterDisbandedByLeader`     - if the cluster has been disbanded by the leader,"]
    #[doc = "- 3 - `outOfClusterBoundingBox`      - if the participants moved out of the cluster's bounding box,"]
    #[doc = "- 4 - `outOfClusterSpeedRange`       - if the cluster speed moved out of a defined range, "]
    #[doc = "- 5 - `joiningAnotherCluster`        - if the participant is joining another cluster,"]
    #[doc = "- 6 - `cancelledJoin`                - if the participant is cancelling a joining procedure,"]
    #[doc = "- 7 - `failedJoin`                   - if the participant failed to join the cluster,"]
    #[doc = "- 8 - `safetyCondition`              - if a safety condition applies."]
    #[doc = "- 9 to 15                            - are reserved for future use                             "]
    #[doc = ""]
    #[doc = "\n\n@category: Cluster information"]
    #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=15"))]
    pub struct ClusterLeaveReason(pub u8);

    #[doc = "This DE represents the sub cause codes of the @ref CauseCode `collisionRisk`."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `unavailable`                    - in case information on the type of collision risk is unavailable,"]
    #[doc = "- 1 - `longitudinalCollisionRisk`      - in case the type of detected collision risk is longitudinal collision risk, "]
    #[doc = "                                         e.g. forward collision or face to face collision,"]
    #[doc = "- 2 - `crossingCollisionRisk`          - in case the type of detected collision risk is crossing collision risk,"]
    #[doc = "- 3 - `lateralCollisionRisk`           - in case the type of detected collision risk is lateral collision risk,"]
    #[doc = "- 4 - `vulnerableRoadUser`             - in case the type of detected collision risk involves vulnerable road users"]
    #[doc = "                                         e.g. pedestrians or bicycles."]
    #[doc = "- 5 - `collisionRiskWithPedestrian`    - in case the type of detected collision risk involves at least one pedestrian, "]
    #[doc = "- 6 - `collisionRiskWithCyclist`       - in case the type of detected collision risk involves at least one cyclist (and no pedestrians),"]
    #[doc = "- 7 - `collisionRiskWithMotorVehicle`  - in case the type of detected collision risk involves at least one motor vehicle (and no pedestrians or cyclists),"]
    #[doc = "- 8-255                                - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1, values 5-7 assigned in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct CollisionRiskSubCauseCode(pub u8);

    #[doc = "This DE represents a confidence level in percentage."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `n` (`n > 0` and `n < 101`) : for the confidence level in %,"]
    #[doc = "- `101`                   : in case the confidence level is not available."]
    #[doc = ""]
    #[doc = "\n\n@unit Percent "]
    #[doc = "\n\n@category: Basic information "]
    #[doc = "\n\n@revision: Created in V2.1.1 "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=101"))]
    pub struct ConfidenceLevel(pub u8);

    #[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 %."]
    #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = "The value shall be set to: "]
    #[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,"]
    #[doc = "- `4095` if the confidence value is greater than 40,94 metres,"]
    #[doc = "- `4096` if the confidence value is not available."]
    #[doc = ""]
    #[doc = "\n\n@unit 0,01 m"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=4096"))]
    pub struct CoordinateConfidence(pub u16);

    #[doc = "This DE represents the Bravais-Pearson correlation value for each cell of a lower triangular correlation matrix."]
    #[doc = ""]
    #[doc = "The value shall be set to: "]
    #[doc = "- `-100` in case of full negative correlation,"]
    #[doc = "- `n` (`n > -100` and `n < 0`) if the correlation is negative and equal to n x 100,"]
    #[doc = "- `0` in case of no correlation,"]
    #[doc = "- `n` (`n > 0` and `n < 100`) if the correlation is positive and equal to n x 100,"]
    #[doc = "- `100` in case of full positive correlation,"]
    #[doc = "- `101` in case the correlation information is unavailable. "]
    #[doc = ""]
    #[doc = "\n\n@unit: the value is scaled by 100"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-100..=101"))]
    pub struct CorrelationCellValue(pub i8);

    #[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."]
    #[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."]
    #[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"]
    #[doc = "starting at 1 from the left."]
    #[doc = ""]
    #[doc = "\n\n@category: Sensing Information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=13", extensible))]
    pub struct CorrelationColumn(pub SequenceOf<CorrelationCellValue>);

    #[doc = "This DE represents an ISO 3166-1 country code encoded using ITA-2 encoding."]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.2.1 based on ISO 14816"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate)]
    pub struct CountryCode(pub FixedBitString<10usize>);

    #[doc = "This DF represents the curvature of the vehicle trajectory and the associated confidence value."]
    #[doc = "The curvature detected by a vehicle represents the curvature of actual vehicle trajectory."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field curvatureValue: Detected curvature of the vehicle trajectory."]
    #[doc = ""]
    #[doc = "- @field curvatureConfidence: along with a confidence value of the curvature value with a predefined confidence level. "]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct Curvature {
        #[rasn(identifier = "curvatureValue")]
        pub curvature_value: CurvatureValue,
        #[rasn(identifier = "curvatureConfidence")]
        pub curvature_confidence: CurvatureConfidence,
    }
    impl Curvature {
        pub fn new(
            curvature_value: CurvatureValue,
            curvature_confidence: CurvatureConfidence,
        ) -> Self {
            Self {
                curvature_value,
                curvature_confidence,
            }
        }
    }

    #[doc = "The DE describes whether the yaw rate is used to calculate the curvature for a curvature value."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `yawRateUsed`    - if the yaw rate is used,"]
    #[doc = "- 1 - `yawRateNotUsed` - if the yaw rate is not used,"]
    #[doc = "- 2 - `unavailable`    - if the information of curvature calculation mode is unknown."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    #[non_exhaustive]
    pub enum CurvatureCalculationMode {
        yawRateUsed = 0,
        yawRateNotUsed = 1,
        unavailable = 2,
    }

    #[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 %."]
    #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `onePerMeter-0-00002` - if the confidence value is less than or equal to 0,00002 m-1,"]
    #[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,"]
    #[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,"]
    #[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,"]
    #[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,"]
    #[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,"]
    #[doc = "- 6 - `outOfRange`          - if the confidence value is out of range, i.e. greater than 0,1 m-1,"]
    #[doc = "- 7 - `unavailable`         - if the confidence value is not available."]
    #[doc = ""]
    #[doc = "\n\n@note:\tThe fact that a curvature value is received with confidence value set to `unavailable(7)` can be caused by"]
    #[doc = "several reasons, such as:"]
    #[doc = "- the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
    #[doc = "- the sensor cannot calculate the accuracy due to lack of variables, or"]
    #[doc = "- there has been a vehicle bus (e.g. CAN bus) error."]
    #[doc = "In all 3 cases above, the curvature value may be valid and used by the application."]
    #[doc = ""]
    #[doc = "\n\n@note: If a curvature value is received and its confidence value is set to `outOfRange(6)`, it means that the curvature value is not valid "]
    #[doc = "and therefore cannot be trusted. Such value is not useful for the application."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum CurvatureConfidence {
        #[rasn(identifier = "onePerMeter-0-00002")]
        onePerMeter_0_00002 = 0,
        #[rasn(identifier = "onePerMeter-0-0001")]
        onePerMeter_0_0001 = 1,
        #[rasn(identifier = "onePerMeter-0-0005")]
        onePerMeter_0_0005 = 2,
        #[rasn(identifier = "onePerMeter-0-002")]
        onePerMeter_0_002 = 3,
        #[rasn(identifier = "onePerMeter-0-01")]
        onePerMeter_0_01 = 4,
        #[rasn(identifier = "onePerMeter-0-1")]
        onePerMeter_0_1 = 5,
        outOfRange = 6,
        unavailable = 7,
    }

    #[doc = "This DE describes vehicle turning curve with the following information:"]
    #[doc = "```text"]
    #[doc = "    Value = 1 / Radius * 10000"]
    #[doc = "```text"]
    #[doc = "wherein radius is the vehicle turning curve radius in metres. "]
    #[doc = ""]
    #[doc = "Positive values indicate a turning curve to the left hand side of the driver."]
    #[doc = "It corresponds to the vehicle coordinate system as defined in ISO 8855."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `-1023` for  values smaller than -1023,"]
    #[doc = "- `n` (`n > -1023` and `n < 0`) for negative values equal to or less than `n`, and greater than `(n-1)`,"]
    #[doc = "- `0` when the vehicle is moving straight,"]
    #[doc = "- `n` (`n > 0` and `n < 1022`) for positive values equal to or less than `n`, and greater than `(n-1)`,"]
    #[doc = "- `1022`, for values  greater than 1021,"]
    #[doc = "- `1023`, if the information is not available."]
    #[doc = ""]
    #[doc = "\n\n@note: The present DE is limited to vehicle types as defined in ISO 8855."]
    #[doc = ""]
    #[doc = "\n\n@unit: 1 over 10 000 metres"]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: description revised in V2.1.1 (the definition of value 1022 has changed slightly)"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-1023..=1023"))]
    pub struct CurvatureValue(pub i16);

    #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `dangerousEndOfQueue`. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `unavailable`     - in case information on the type of dangerous queue is unavailable,"]
    #[doc = "- 1 - `suddenEndOfQueue`- in case a sudden end of queue is detected, e.g. due to accident or obstacle,"]
    #[doc = "- 2 - `queueOverHill`   - in case the dangerous end of queue is detected on the road hill,"]
    #[doc = "- 3 - `queueAroundBend` - in case the dangerous end of queue is detected around the road bend,"]
    #[doc = "- 4 - `queueInTunnel`   - in case queue is detected in tunnel,"]
    #[doc = "- 5-255                 - reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct DangerousEndOfQueueSubCauseCode(pub u8);

    #[doc = "This DE indicates the type of the dangerous goods being carried by a heavy vehicle."]
    #[doc = "The value is assigned according to `class` and `division` definitions of dangerous goods as specified in part II,"]
    #[doc = "chapter 2.1.1.1 of European Agreement concerning the International Carriage of Dangerous Goods by Road."]
    #[doc = ""]
    #[doc = ""]
    #[doc = "\n\n@category Vehicle information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum DangerousGoodsBasic {
        explosives1 = 0,
        explosives2 = 1,
        explosives3 = 2,
        explosives4 = 3,
        explosives5 = 4,
        explosives6 = 5,
        flammableGases = 6,
        nonFlammableGases = 7,
        toxicGases = 8,
        flammableLiquids = 9,
        flammableSolids = 10,
        substancesLiableToSpontaneousCombustion = 11,
        substancesEmittingFlammableGasesUponContactWithWater = 12,
        oxidizingSubstances = 13,
        organicPeroxides = 14,
        toxicSubstances = 15,
        infectiousSubstances = 16,
        radioactiveMaterial = 17,
        corrosiveSubstances = 18,
        miscellaneousDangerousSubstances = 19,
    }

    #[doc = "This DF provides a description of dangerous goods being carried by a heavy vehicle."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field dangerousGoodsType: Type of dangerous goods."]
    #[doc = ""]
    #[doc = "- @field unNumber: a 4-digit number that identifies the substance of the dangerous goods as specified in"]
    #[doc = "United Nations Recommendations on the Transport of Dangerous Goods - Model Regulations,"]
    #[doc = ""]
    #[doc = "- @field elevatedTemperature: whether the carried dangerous goods are transported at high temperature."]
    #[doc = "If yes, the value shall be set to TRUE,"]
    #[doc = ""]
    #[doc = "- @field tunnelsRestricted: whether the heavy vehicle carrying dangerous goods is restricted to enter tunnels."]
    #[doc = "If yes, the value shall be set to TRUE,"]
    #[doc = ""]
    #[doc = "- @field limitedQuantity: whether the carried dangerous goods are packed with limited quantity."]
    #[doc = "If yes, the value shall be set to TRUE,"]
    #[doc = ""]
    #[doc = "- @field emergencyActionCode: physical signage placard at the vehicle that carries information on how an emergency"]
    #[doc = "service should deal with an incident. This component is optional; it shall be present if the information is available."]
    #[doc = ""]
    #[doc = "- @field phoneNumber: contact phone number of assistance service in case of incident or accident."]
    #[doc = "This component is optional, it shall be present if the information is available."]
    #[doc = ""]
    #[doc = "- @field companyName: name of company that manages the transportation of the dangerous goods."]
    #[doc = "This component is optional; it shall be present if the information is available."]
    #[doc = ""]
    #[doc = "\n\n@category Vehicle information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct DangerousGoodsExtended {
        #[rasn(identifier = "dangerousGoodsType")]
        pub dangerous_goods_type: DangerousGoodsBasic,
        #[rasn(value("0..=9999"), identifier = "unNumber")]
        pub un_number: u16,
        #[rasn(identifier = "elevatedTemperature")]
        pub elevated_temperature: bool,
        #[rasn(identifier = "tunnelsRestricted")]
        pub tunnels_restricted: bool,
        #[rasn(identifier = "limitedQuantity")]
        pub limited_quantity: bool,
        #[rasn(size("1..=24"), identifier = "emergencyActionCode")]
        pub emergency_action_code: Option<Ia5String>,
        #[rasn(identifier = "phoneNumber")]
        pub phone_number: Option<PhoneNumber>,
        #[rasn(identifier = "companyName")]
        pub company_name: Option<Utf8String>,
    }
    impl DangerousGoodsExtended {
        pub fn new(
            dangerous_goods_type: DangerousGoodsBasic,
            un_number: u16,
            elevated_temperature: bool,
            tunnels_restricted: bool,
            limited_quantity: bool,
            emergency_action_code: Option<Ia5String>,
            phone_number: Option<PhoneNumber>,
            company_name: Option<Utf8String>,
        ) -> Self {
            Self {
                dangerous_goods_type,
                un_number,
                elevated_temperature,
                tunnels_restricted,
                limited_quantity,
                emergency_action_code,
                phone_number,
                company_name,
            }
        }
    }

    #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `dangerousSituation` "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `unavailable`                      - in case information on the type of dangerous situation is unavailable,"]
    #[doc = "- 1 - `emergencyElectronicBrakeEngaged`  - in case emergency electronic brake is engaged,"]
    #[doc = "- 2 - `preCrashSystemEngaged`            - in case pre-crash system is engaged,"]
    #[doc = "- 3 - `espEngaged`                       - in case Electronic Stability Program (ESP) system is engaged,"]
    #[doc = "- 4 - `absEngaged`                       - in case Anti-lock Braking System (ABS) is engaged,"]
    #[doc = "- 5 - `aebEngaged`                       - in case Autonomous Emergency Braking (AEB) system is engaged,"]
    #[doc = "- 6 - `brakeWarningEngaged`              - in case brake warning is engaged,"]
    #[doc = "- 7 - `collisionRiskWarningEngaged`      - in case collision risk warning is engaged,"]
    #[doc = "- 8-255                                  - reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct DangerousSituationSubCauseCode(pub u8);

    #[doc = "This DE represents an offset altitude with regards to a defined altitude value."]
    #[doc = "It may be used to describe a geographical point with regards to a specific reference geographical position."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `-12 700` for values equal to or lower than -127 metres,"]
    #[doc = "- `n` (`n > -12 700` and `n <= 0`) for altitude offset n x 0,01 metre below the reference position,"]
    #[doc = "- `0` for no altitudinal offset,"]
    #[doc = "- `n` (`n > 0` and `n < 12799`) for altitude offset n x 0,01 metre above the reference position,"]
    #[doc = "- `12 799` for values equal to or greater than 127,99 metres,"]
    #[doc = "- `12 800` when the information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,01 metre"]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-12700..=12800"))]
    pub struct DeltaAltitude(pub i16);

    #[doc = "This DE represents an offset latitude with regards to a defined latitude value."]
    #[doc = "It may be used to describe a geographical point with regards to a specific reference geographical position."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `n` (`n >= -131 071` and `n < 0`) for offset n x 10^-7 degree towards the south from the reference position,"]
    #[doc = "- `0` for no latitudinal offset,"]
    #[doc = "- `n` (`n > 0` and `n < 131 072`) for offset n x 10^-7 degree towards the north from the reference position,"]
    #[doc = "- `131 072` when the information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@unit: 10^-7 degree"]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-131071..=131072"))]
    pub struct DeltaLatitude(pub i32);

    #[doc = "This DE represents an offset longitude with regards to a defined longitude value."]
    #[doc = "It may be used to describe a geographical point with regards to a specific reference geographical position."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `n` (`n >= -131 071` and `n < 0`) for offset n x 10^-7 degree towards the west from the reference position,"]
    #[doc = "- `0` for no longitudinal offset,"]
    #[doc = "- `n` (`n > 0` and `n < 131 072`) for offset n x 10^-7 degree towards the east from the reference position, "]
    #[doc = "- `131 072` when the information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@unit: 10^-7 degree"]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-131071..=131072"))]
    pub struct DeltaLongitude(pub i32);

    #[doc = "This DF defines a geographical point position as a 3 dimensional offset position to a geographical reference point."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field deltaLatitude: A delta latitude offset with regards to the latitude value of the reference position."]
    #[doc = ""]
    #[doc = "- @field deltaLongitude: A delta longitude offset with regards to the longitude value of the reference position."]
    #[doc = ""]
    #[doc = "- @field deltaAltitude: A delta altitude offset with regards to the altitude value of the reference position."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision:  V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct DeltaReferencePosition {
        #[rasn(identifier = "deltaLatitude")]
        pub delta_latitude: DeltaLatitude,
        #[rasn(identifier = "deltaLongitude")]
        pub delta_longitude: DeltaLongitude,
        #[rasn(identifier = "deltaAltitude")]
        pub delta_altitude: DeltaAltitude,
    }
    impl DeltaReferencePosition {
        pub fn new(
            delta_latitude: DeltaLatitude,
            delta_longitude: DeltaLongitude,
            delta_altitude: DeltaAltitude,
        ) -> Self {
            Self {
                delta_latitude,
                delta_longitude,
                delta_altitude,
            }
        }
    }

    #[doc = "This DE represents a difference in time with respect to a reference time."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[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,"]
    #[doc = ""]
    #[doc = "Example: a time interval between two consecutive message transmissions."]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,001 s"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1 from the DE TransmissionInterval in"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=10000"))]
    pub struct DeltaTimeMilliSecondPositive(pub u16);

    #[doc = "This DE represents a signed difference in time with respect to a reference time."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `-2048` for time values equal to or less than -2,048 s,"]
    #[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,"]
    #[doc = "- `2047` for time values greater than 2,046 s"]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,001 s"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-2048..=2047"))]
    pub struct DeltaTimeMilliSecondSigned(pub i16);

    #[doc = "This DE represents a difference in time with respect to a reference time."]
    #[doc = "It can be interpreted as the first 8 bits of a GenerationDeltaTime. To convert it to a @ref GenerationDeltaTime, "]
    #[doc = "multiply by 256 (i.e. append a `00` byte)"]
    #[doc = ""]
    #[doc = "\n\n@unit: 256 * 0,001 s "]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=255"))]
    pub struct DeltaTimeQuarterSecond(pub u8);

    #[doc = "This DE represents a  difference in time with respect to a reference time."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `-0` for a difference in time of 0 seconds. "]
    #[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,"]
    #[doc = ""]
    #[doc = "\n\n@unit: 1 s"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1 from ValidityDuration"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=86400"))]
    pub struct DeltaTimeSecond(pub u32);

    #[doc = "This DE represents a difference in time with respect to a reference time."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `-0` for a difference in time of 0 seconds. "]
    #[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,"]
    #[doc = ""]
    #[doc = "\n\n@unit: 10 s"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=127"))]
    pub struct DeltaTimeTenSeconds(pub u8);

    #[doc = "This DE represents a difference in time with respect to a reference time."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `0` for a difference in time of 0 seconds. "]
    #[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,"]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,1 s"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=127"))]
    pub struct DeltaTimeTenthOfSecond(pub u8);

    #[doc = "This DF represents a portion of digital map. It shall contain a list of waypoints @ref ReferencePosition."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision:  V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=256"))]
    pub struct DigitalMap(pub SequenceOf<ReferencePosition>);

    #[doc = "This DE indicates a direction with respect to a defined reference direction."]
    #[doc = "Example: a reference direction may be implicitly defined by the definition of a geographical zone."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `sameDirection`     - to indicate the same direction as the reference direction,"]
    #[doc = "- 1 - `oppositeDirection` - to indicate opposite direction as the reference direction,"]
    #[doc = "- 2 - `bothDirections`    - to indicate both directions, i.e. the same and the opposite direction,"]
    #[doc = "- 3 - `unavailable`       - to indicate that the information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=3"))]
    pub struct Direction(pub u8);

    #[doc = "This DE indicates in which direction something is moving."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `forward`     - to indicate it is moving forward,"]
    #[doc = "- 1 - `backwards`   - to indicate it is moving backwards,"]
    #[doc = "- 2 - `unavailable` - to indicate that the information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum DriveDirection {
        forward = 0,
        backward = 1,
        unavailable = 2,
    }

    #[doc = "This DE indicates whether a driving lane is open to traffic."]
    #[doc = ""]
    #[doc = "A lane is counted from inside border of the road excluding the hard shoulder. The size of the bit string shall"]
    #[doc = "correspond to the total number of the driving lanes in the carriageway."]
    #[doc = ""]
    #[doc = "The numbering is matched to @ref LanePosition."]
    #[doc = "The bit `0` is used to indicate the innermost lane, bit `1` is used to indicate the second lane from inside border."]
    #[doc = ""]
    #[doc = "If a lane is closed to traffic, the corresponding bit shall be set to `1`. Otherwise, it shall be set to `0`."]
    #[doc = ""]
    #[doc = "\n\n@note: hard shoulder status is not provided by this DE but in @ref HardShoulderStatus."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=13"))]
    pub struct DrivingLaneStatus(pub BitString);

    #[doc = ""]
    #[doc = "This DF represents the shape of an elliptical area or right elliptical cylinder that is centred "]
    #[doc = "on the shape's reference point defined outside of the context of this DF and oriented w.r.t. a  "]
    #[doc = "cartesian coordinate system defined outside of the context of this DF. "]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field shapeReferencePoint: optional reference point which represents the centre of the ellipse, "]
    #[doc = "relative to an externally specified reference position. If this component is absent, the "]
    #[doc = "externally specified reference position represents the shape's reference point. "]
    #[doc = ""]
    #[doc = "- @field semiMajorAxisLength: half length of the major axis of the ellipse located in the X-Y Plane."]
    #[doc = ""]
    #[doc = "- @field semiMinorAxisLength: half length of the minor axis of the ellipse located in the X-Y Plane."]
    #[doc = ""]
    #[doc = "- @field orientation: the optional orientation of the major axis of the ellipse, measured with "]
    #[doc = "positive values turning around the z-axis using the right-hand rule, starting from the X-axis. "]
    #[doc = ""]
    #[doc = "- @field height: the optional height, present if the shape is a right elliptical cylinder extending "]
    #[doc = "in the positive Z-axis."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Created in V2.1.1, the type of the field orientation changed and the description revised in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct EllipticalShape {
        #[rasn(identifier = "shapeReferencePoint")]
        pub shape_reference_point: Option<CartesianPosition3d>,
        #[rasn(identifier = "semiMajorAxisLength")]
        pub semi_major_axis_length: StandardLength12b,
        #[rasn(identifier = "semiMinorAxisLength")]
        pub semi_minor_axis_length: StandardLength12b,
        pub orientation: Option<CartesianAngleValue>,
        pub height: Option<StandardLength12b>,
    }
    impl EllipticalShape {
        pub fn new(
            shape_reference_point: Option<CartesianPosition3d>,
            semi_major_axis_length: StandardLength12b,
            semi_minor_axis_length: StandardLength12b,
            orientation: Option<CartesianAngleValue>,
            height: Option<StandardLength12b>,
        ) -> Self {
            Self {
                shape_reference_point,
                semi_major_axis_length,
                semi_minor_axis_length,
                orientation,
                height,
            }
        }
    }

    #[doc = "This DE indicates whether a vehicle (e.g. public transport vehicle, truck) is under the embarkation process."]
    #[doc = "If that is the case, the value is *TRUE*, otherwise *FALSE*."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(delegate)]
    pub struct EmbarkationStatus(pub bool);
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate)]
    pub struct EmergencyPriority(pub FixedBitString<2usize>);

    #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode \"emergencyVehicleApproaching\". "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `unavailable`                   - in case further detailed information on the emergency vehicle approaching event "]
    #[doc = "                                        is unavailable,"]
    #[doc = "- 1 - `emergencyVehicleApproaching`   - in case an operating emergency vehicle is approaching,"]
    #[doc = "- 2 - `prioritizedVehicleApproaching` - in case a prioritized vehicle is approaching,"]
    #[doc = "- 3-255                               - reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct EmergencyVehicleApproachingSubCauseCode(pub u8);

    #[doc = "This DE indicated the type of energy being used and stored in vehicle."]
    #[doc = ""]
    #[doc = "The corresponding bit shall be set to 1 under the following conditions:"]
    #[doc = "- 0 - `hydrogenStorage`       - when hydrogen is being used and stored in vehicle,"]
    #[doc = "- 1 - `electricEnergyStorage` - when electric energy is being used and stored in vehicle,"]
    #[doc = "- 2 - `liquidPropaneGas`      - when liquid Propane Gas (LPG) is being used and stored in vehicle,   "]
    #[doc = "- 3 - `compressedNaturalGas ` - when compressedNaturalGas (CNG) is being used and stored in vehicle,"]
    #[doc = "- 4 - `diesel`                - when diesel is being used and stored in vehicle,"]
    #[doc = "- 5 - `gasoline`              - when gasoline is being used and stored in vehicle,"]
    #[doc = "- 6 - `ammonia`               - when ammonia is being used and stored in vehicle."]
    #[doc = ""]
    #[doc = "- Otherwise, the corresponding bit shall be set to `0`."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: editorial revision in V2.1.1 "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate)]
    pub struct EnergyStorageType(pub FixedBitString<7usize>);

    #[doc = ""]
    #[doc = "This DF represents a vehicle category according to the UNECE/TRANS/WP.29/78/Rev.4."]
    #[doc = "The following options are available:"]
    #[doc = ""]
    #[doc = "- @field euVehicleCategoryL: indicates a vehicle in the L category."]
    #[doc = ""]
    #[doc = "- @field euVehicleCategoryM: indicates a vehicle in the M category."]
    #[doc = ""]
    #[doc = "- @field euVehicleCategoryN: indicates a vehicle in the N category."]
    #[doc = ""]
    #[doc = "- @field euVehicleCategoryO: indicates a vehicle in the O category."]
    #[doc = ""]
    #[doc = "- @field euVehicleCategoryT: indicates a vehicle in the T category."]
    #[doc = ""]
    #[doc = "- @field euVehicleCategoryG: indicates a vehicle in the G category."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(choice, automatic_tags)]
    pub enum EuVehicleCategoryCode {
        euVehicleCategoryL(EuVehicleCategoryL),
        euVehicleCategoryM(EuVehicleCategoryM),
        euVehicleCategoryN(EuVehicleCategoryN),
        euVehicleCategoryO(EuVehicleCategoryO),
        euVehicleCategoryT(()),
        euVehicleCategoryG(()),
    }

    #[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."]
    #[doc = ""]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum EuVehicleCategoryL {
        l1 = 0,
        l2 = 1,
        l3 = 2,
        l4 = 3,
        l5 = 4,
        l6 = 5,
        l7 = 6,
    }

    #[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."]
    #[doc = ""]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum EuVehicleCategoryM {
        m1 = 0,
        m2 = 1,
        m3 = 2,
    }

    #[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."]
    #[doc = ""]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum EuVehicleCategoryN {
        n1 = 0,
        n2 = 1,
        n3 = 2,
    }

    #[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."]
    #[doc = ""]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum EuVehicleCategoryO {
        o1 = 0,
        o2 = 1,
        o3 = 2,
        o4 = 3,
    }

    #[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."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field zAngle: z-angle of object bounding box at the time of measurement, with the associated confidence."]
    #[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. "]
    #[doc = "This extrinsic rotation shall be applied around the centre point of the object bounding box before all other rotations."]
    #[doc = ""]
    #[doc = "- @field yAngle: optional y-angle of object bounding box at the time of measurement, with the associated confidence."]
    #[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. "]
    #[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."]
    #[doc = ""]
    #[doc = "- @field xAngle: optional x-angle of object bounding box at the time of measurement, with the associated confidence."]
    #[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. "]
    #[doc = "This extrinsic rotation shall be applied around the centre point of the object bounding box after all other rotations."]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct EulerAnglesWithConfidence {
        #[rasn(identifier = "zAngle")]
        pub z_angle: CartesianAngle,
        #[rasn(identifier = "yAngle")]
        pub y_angle: Option<CartesianAngle>,
        #[rasn(identifier = "xAngle")]
        pub x_angle: Option<CartesianAngle>,
    }
    impl EulerAnglesWithConfidence {
        pub fn new(
            z_angle: CartesianAngle,
            y_angle: Option<CartesianAngle>,
            x_angle: Option<CartesianAngle>,
        ) -> Self {
            Self {
                z_angle,
                y_angle,
                x_angle,
            }
        }
    }

    #[doc = "The DF shall contain a list of @ref EventPoint.  "]
    #[doc = ""]
    #[doc = "The eventPosition of each @ref EventPoint is defined with respect to the previous @ref EventPoint in the list. "]
    #[doc = "Except for the first @ref EventPoint which is defined with respect to a position outside of the context of this DF."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information, Traffic information"]
    #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref EventZone instead. "]
    #[doc = "\n\n@revision: Generalized the semantics in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=23"))]
    pub struct EventHistory(pub SequenceOf<EventPoint>);

    #[doc = "This DF provides information related to an event at a defined position."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field eventPosition: offset position of a detected event point to a defined position. "]
    #[doc = ""]
    #[doc = "- @field eventDeltaTime: optional time travelled by the detecting ITS-S since the previous detected event point."]
    #[doc = ""]
    #[doc = "- @field informationQuality: Information quality of the detection for this event point."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information, Traffic information"]
    #[doc = "\n\n@revision: generalized the semantics in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct EventPoint {
        #[rasn(identifier = "eventPosition")]
        pub event_position: DeltaReferencePosition,
        #[rasn(identifier = "eventDeltaTime")]
        pub event_delta_time: Option<PathDeltaTime>,
        #[rasn(identifier = "informationQuality")]
        pub information_quality: InformationQuality,
    }
    impl EventPoint {
        pub fn new(
            event_position: DeltaReferencePosition,
            event_delta_time: Option<PathDeltaTime>,
            information_quality: InformationQuality,
        ) -> Self {
            Self {
                event_position,
                event_delta_time,
                information_quality,
            }
        }
    }

    #[doc = "The DF shall contain a list of @ref EventPoint, where all @ref EventPoint either contain the COMPONENT eventDeltaTime "]
    #[doc = "or do not contain the COMPONENT eventDeltaTime.  "]
    #[doc = ""]
    #[doc = "The eventPosition of each @ref EventPoint is defined with respect to the previous @ref EventPoint in the list. "]
    #[doc = "Except for the first @ref EventPoint which is defined with respect to a position outside of the context of this DF."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information, Traffic information"]
    #[doc = "\n\n@revision: created in V2.1.1 based on EventHistory"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate)]
    pub struct EventZone(pub EventHistory);
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(choice)]
    pub enum Ext1 {
        #[rasn(value("128..=16511"), tag(context, 0))]
        content(u16),
        #[rasn(tag(context, 1))]
        extension(Ext2),
    }
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(choice)]
    pub enum Ext2 {
        #[rasn(value("16512..=2113663"), tag(context, 0))]
        content(u32),
        #[rasn(tag(context, 1))]
        extension(Ext3),
    }
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("2113664..=270549119", extensible))]
    pub struct Ext3(pub Integer);

    #[doc = "This DE describes the status of the exterior light switches of a vehicle incl. VRU vehicles."]
    #[doc = ""]
    #[doc = "The corresponding bit shall be set to 1 under the following conditions:"]
    #[doc = "- 0 - `lowBeamHeadlightsOn`    - when the low beam head light switch is on,"]
    #[doc = "- 1 - `highBeamHeadlightsOn`   - when the high beam head light switch is on,"]
    #[doc = "- 2 - `leftTurnSignalOn`       - when the left turnSignal switch is on,"]
    #[doc = "- 3 - `rightTurnSignalOn`      - when the right turn signal switch is on,"]
    #[doc = "- 4 - `daytimeRunningLightsOn` - when the daytime running light switch is on,"]
    #[doc = "- 5 - `reverseLightOn`         - when the reverse light switch is on,"]
    #[doc = "- 6 - `fogLightOn`             - when the tail fog light switch is on,"]
    #[doc = "- 7 - `parkingLightsOn`        - when the parking light switch is on."]
    #[doc = ""]
    #[doc = "\n\n@note: The value of each bit indicates the state of the switch, which commands the corresponding light."]
    #[doc = "The bit corresponding to a specific light is set to `1`, when the corresponding switch is turned on,"]
    #[doc = "either manually by the driver or automatically by a vehicle system. The bit value does not indicate"]
    #[doc = "if the corresponding lamps are alight or not."]
    #[doc = ""]
    #[doc = "If a vehicle is not equipped with a certain light or if the light switch status information is not available,"]
    #[doc = "the corresponding bit shall be set to `0`."]
    #[doc = ""]
    #[doc = "As the bit value indicates only the state of the switch, the turn signal and hazard signal bit values shall not"]
    #[doc = "alternate with the blinking interval."]
    #[doc = ""]
    #[doc = "For hazard indicator, the `leftTurnSignalOn (2)` and `rightTurnSignalOn (3)` shall be both set to `1`."]
    #[doc = ""]
    #[doc = "\n\n@category Vehicle information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate)]
    pub struct ExteriorLights(pub FixedBitString<8usize>);

    #[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."]
    #[doc = ""]
    #[doc = "\n\n@note: This DF is the most general way to represent a lane position: it provides a complete set of information regarding a transversal (dimensionless) position on the carriageway at a specific "]
    #[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 "]
    #[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, "]
    #[doc = "where the dimensions of an object or the extension of an area is considered."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field lanePositionBased: lane position information for a defined reference position."]
    #[doc = ""]
    #[doc = "- @field mapBased: optional lane position information described in the context of a MAPEM as specified in ETSI TS 103 301. "]
    #[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 "]
    #[doc = "(e.g. on an intersection): In this case it is used as a synonym to the mandatory component lanePositionBased. "]
    #[doc = ""]
    #[doc = "- @field confidence: confidence information for expressing the probability that the object is located at the indicated lane.  "]
    #[doc = "If the value of the component lanePositionBased is generated directly from the absolute reference position and reference topology information, "]
    #[doc = "no sensor shall be indicated in the component usedDetectionInformation of the @ref MetaInformation."]
    #[doc = ""]
    #[doc = "\n\n@category: Road Topology information"]
    #[doc = "\n\n@revision: newly created in V2.2.1. The previous DF GeneralizedLanePosition is now renamed to @ref LanePositionOptions. "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct GeneralizedLanePosition {
        #[rasn(identifier = "lanePositionBased")]
        pub lane_position_based: LanePositionOptions,
        #[rasn(identifier = "mapBased")]
        pub map_based: Option<MapPosition>,
        pub confidence: MetaInformation,
    }
    impl GeneralizedLanePosition {
        pub fn new(
            lane_position_based: LanePositionOptions,
            map_based: Option<MapPosition>,
            confidence: MetaInformation,
        ) -> Self {
            Self {
                lane_position_based,
                map_based,
                confidence,
            }
        }
    }

    #[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."]
    #[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."]
    #[doc = ""]
    #[doc = "\n\n@category: Road Topology information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=4"))]
    pub struct GeneralizedLanePositions(pub SequenceOf<GeneralizedLanePosition>);

    #[doc = "This DE represents a timestamp based on TimestampIts modulo 65 536."]
    #[doc = "This means that generationDeltaTime = TimestampIts mod 65 536."]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1 based on ETSI TS 103 900"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=65535"))]
    pub struct GenerationDeltaTime(pub u16);

    #[doc = "This DF indicates a geographical position."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field latitude: the latitude of the geographical position."]
    #[doc = ""]
    #[doc = "- @field longitude: the longitude of the geographical position."]
    #[doc = ""]
    #[doc = "- @field altitude: the altitude of the geographical position with default value unavailable."]
    #[doc = ""]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct GeoPosition {
        pub latitude: Latitude,
        pub longitude: Longitude,
        #[rasn(default = "geo_position_altitude_default")]
        pub altitude: AltitudeValue,
    }
    impl GeoPosition {
        pub fn new(latitude: Latitude, longitude: Longitude, altitude: AltitudeValue) -> Self {
            Self {
                latitude,
                longitude,
                altitude,
            }
        }
    }
    fn geo_position_altitude_default() -> AltitudeValue {
        AltitudeValue(800001)
    }

    #[doc = "This DE indicates the current status of a hard shoulder: whether it is available for special usage"]
    #[doc = "(e.g. for stopping or for driving) or closed for all vehicles."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `availableForStopping` - if the hard shoulder is available for stopping in e.g. emergency situations,"]
    #[doc = "- 1 - `closed`               - if the hard shoulder is closed and cannot be occupied in any case,"]
    #[doc = "- 2 - `availableForDriving`  - if the hard shoulder is available for regular driving."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum HardShoulderStatus {
        availableForStopping = 0,
        closed = 1,
        availableForDriving = 2,
    }

    #[doc = "This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-AnimalOnTheRoad`."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `unavailable`          - in case further detailed information on the animal(s) on the road is unavailable,"]
    #[doc = "- 1 - `wildAnimals`          - in case wild animals of unknown size are present on the road,"]
    #[doc = "- 2 - `herdOfAnimals`        - in case a herd of animals is present on the road,"]
    #[doc = "- 3 - `smallAnimals`         - in case small size animals of unknown type are present on the road,"]
    #[doc = "- 4 - `largeAnimals`         - in case large size animals of unknown type are present on the road,"]
    #[doc = "- 5 - `wildAnimalsSmall`     - in case small size wild animal(s) are present on the road,"]
    #[doc = "- 6 - `wildAnimalsLarge`     - in case large size wild animal(s) are present on the road,"]
    #[doc = "- 7 - `domesticAnimals`      - in case domestic animal(s) of unknown size are detected on the road,"]
    #[doc = "- 8 - `domesticAnimalsSmall` - in case small size domestic animal(s) are present on the road,"]
    #[doc = "- 9 - `domesticAnimalsLarge` - in case large size domestic animal(s) are present on the road."]
    #[doc = "- 10-255                     - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1, named values 5 to 9 added in V2.2.1 "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(
        delegate,
        identifier = "HazardousLocation-AnimalOnTheRoadSubCauseCode",
        value("0..=255")
    )]
    pub struct HazardousLocationAnimalOnTheRoadSubCauseCode(pub u8);

    #[doc = "This DE represents the sub cause code of the @ref CauseCode  `hazardousLocation-DangerousCurve`."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `unavailable`                                        - in case further detailed information on the dangerous curve is unavailable,"]
    #[doc = "- 1 - `dangerousLeftTurnCurve`                             - in case the dangerous curve is a left turn curve,"]
    #[doc = "- 2 - `dangerousRightTurnCurve`                            - in case the dangerous curve is a right turn curve,"]
    #[doc = "- 3 - `multipleCurvesStartingWithUnknownTurningDirection`  - in case of multiple curves for which the starting curve turning direction is not known,"]
    #[doc = "- 4 - `multipleCurvesStartingWithLeftTurn`                 - in case of multiple curves starting with a left turn curve,"]
    #[doc = "- 5 - `multipleCurvesStartingWithRightTurn`                - in case of multiple curves starting with a right turn curve."]
    #[doc = "- 6-255                                                    - are reserved for future usage."]
    #[doc = ""]
    #[doc = "The definition of whether a curve is dangerous may vary according to region and according to vehicle types/mass"]
    #[doc = "and vehicle speed driving on the curve. This definition is out of scope of the present document."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(
        delegate,
        identifier = "HazardousLocation-DangerousCurveSubCauseCode",
        value("0..=255")
    )]
    pub struct HazardousLocationDangerousCurveSubCauseCode(pub u8);

    #[doc = "This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-ObstacleOnTheRoad`. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `unavailable`    - in case further detailed information on the detected obstacle is unavailable,"]
    #[doc = "- 1 - `shedLoad`       - in case detected obstacle is large amount of obstacles (shedload),"]
    #[doc = "- 2 - `partsOfVehicles`- in case detected obstacles are parts of vehicles,"]
    #[doc = "- 3 - `partsOfTyres`   - in case the detected obstacles are parts of tyres,"]
    #[doc = "- 4 - `bigObjects`     - in case the detected obstacles are big objects,"]
    #[doc = "- 5 - `fallenTrees`    - in case the detected obstacles are fallen trees,"]
    #[doc = "- 6 - `hubCaps`        - in case the detected obstacles are hub caps,"]
    #[doc = "- 7 - `waitingVehicles`- in case the detected obstacles are waiting vehicles."]
    #[doc = "- 8-255                - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(
        delegate,
        identifier = "HazardousLocation-ObstacleOnTheRoadSubCauseCode",
        value("0..=255")
    )]
    pub struct HazardousLocationObstacleOnTheRoadSubCauseCode(pub u8);

    #[doc = "This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-SurfaceCondition`. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0  - `unavailable`     - in case further detailed information on the road surface condition is unavailable,"]
    #[doc = "- 1  - `rockfalls`       - in case rock falls are detected on the road surface,"]
    #[doc = "- 2  - `earthquakeDamage`- in case the road surface is damaged by earthquake,"]
    #[doc = "- 3  - `sewerCollapse`   - in case of sewer collapse on the road surface,"]
    #[doc = "- 4  - `subsidence`      - in case road surface is damaged by subsidence,"]
    #[doc = "- 5  - `snowDrifts`      - in case road surface is damaged due to snow drift,"]
    #[doc = "- 6  - `stormDamage`     - in case road surface is damaged by strong storm,"]
    #[doc = "- 7  - `burstPipe`       - in case road surface is damaged due to pipe burst,"]
    #[doc = "- 8  - `volcanoEruption` - in case road surface is damaged due to volcano eruption,"]
    #[doc = "- 9  - `fallingIce`      - in case road surface damage is due to falling ice,"]
    #[doc = "- 10 - `fire`            - in case there is fire on or near to the road surface."]
    #[doc = "- 11-255                 - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(
        delegate,
        identifier = "HazardousLocation-SurfaceConditionSubCauseCode",
        value("0..=255")
    )]
    pub struct HazardousLocationSurfaceConditionSubCauseCode(pub u8);

    #[doc = "This DF represents the Heading in a WGS84 co-ordinates system."]
    #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field headingValue: the heading value."]
    #[doc = ""]
    #[doc = "- @field headingConfidence: the confidence value of the heading value with a predefined confidence level."]
    #[doc = ""]
    #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84Angle instead. "]
    #[doc = "\n\n@category: Kinematic Information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct Heading {
        #[rasn(identifier = "headingValue")]
        pub heading_value: HeadingValue,
        #[rasn(identifier = "headingConfidence")]
        pub heading_confidence: HeadingConfidence,
    }
    impl Heading {
        pub fn new(heading_value: HeadingValue, heading_confidence: HeadingConfidence) -> Self {
            Self {
                heading_value,
                heading_confidence,
            }
        }
    }

    #[doc = "This DF  provides  information  associated to heading  change indicators  such as  a  change  of  direction."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field direction: the direction of heading change value."]
    #[doc = ""]
    #[doc = "- @field actionDeltaTime: the period over which a direction change action is performed. "]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic Information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct HeadingChangeIndication {
        pub direction: TurningDirection,
        #[rasn(identifier = "actionDeltaTime")]
        pub action_delta_time: DeltaTimeTenthOfSecond,
    }
    impl HeadingChangeIndication {
        pub fn new(direction: TurningDirection, action_delta_time: DeltaTimeTenthOfSecond) -> Self {
            Self {
                direction,
                action_delta_time,
            }
        }
    }

    #[doc = "This DE indicates the heading confidence value which represents the estimated absolute accuracy of a heading value with a confidence level of 95 %."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[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,"]
    #[doc = "- `126` if the confidence value is out of range, i.e. greater than 12,5 degrees,"]
    #[doc = "- `127` if the confidence value information is not available."]
    #[doc = ""]
    #[doc = "\n\n@note:\tThe fact that a value is received with confidence value set to `unavailable(127)` can be caused by several reasons,"]
    #[doc = "such as:"]
    #[doc = "- the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
    #[doc = "- the sensor cannot calculate the accuracy due to lack of variables, or"]
    #[doc = "- there has been a vehicle bus (e.g. CAN bus) error."]
    #[doc = "In all 3 cases above, the heading value may be valid and used by the application."]
    #[doc = ""]
    #[doc = "\n\n@note: If a heading value is received and its confidence value is set to `outOfRange(126)`, it means that the "]
    #[doc = "heading value is not valid and therefore cannot be trusted. Such value is not useful for the application."]
    #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84AngleConfidence instead. "]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,1 degree"]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=127"))]
    pub struct HeadingConfidence(pub u8);

    #[doc = "This DE represents the orientation of the horizontal velocity vector with regards to the WGS84 north."]
    #[doc = "When the information is not available, the DE shall be set to 3 601. The value 3600 shall not be used."]
    #[doc = ""]
    #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84AngleValue instead. "]
    #[doc = ""]
    #[doc = "Unit: 0,1 degree"]
    #[doc = "Categories: GeoReference information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1 (usage of value 3600 specified) "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=3601"))]
    pub struct HeadingValue(pub u16);

    #[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"]
    #[doc = "rear to front). "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[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,"]
    #[doc = "- `99` if the height is out of range, i.e. equal to or greater than 0,98 m,"]
    #[doc = "- `100` if the height information is not available."]
    #[doc = ""]
    #[doc = "\n\n@unit 0,01 metre"]
    #[doc = "\n\n@category Vehicle information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1 (the definition of 99 has changed slightly) "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=100"))]
    pub struct HeightLonCarr(pub u8);

    #[doc = "This DE represents the value of the sub cause code of the @ref CauseCode `humanPresenceOnTheRoad`."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `unavailable`                    - in case further detailed information abou the human presence on the road is unavailable,"]
    #[doc = "- 1 - `childrenOnRoadway`              - in case children are present on the road,"]
    #[doc = "- 2 - `cyclistOnRoadway`               - in case cyclist(s) are present on the road,"]
    #[doc = "- 3 - `motorcyclistOnRoadway`          - in case motorcyclist(s) are present on the road,"]
    #[doc = "- 4 - `pedestrian`                     - in case pedestrian(s) of any type are present on the road,"]
    #[doc = "- 5 - `ordinary-pedestrian`            - in case pedestrian(s) to which no more-specific profile applies are present on the road,"]
    #[doc = "- 6 - `road-worker`                    - in case pedestrian(s) with the role of a road worker applies are present on the road,"]
    #[doc = "- 7 - `first-responder`                - in case pedestrian(s) with the role of a first responder applies are present on the road,  "]
    #[doc = "- 8 - `lightVruVehicle                 - in case light vru vehicle(s) of any type are present on the road,"]
    #[doc = "- 9 - `bicyclist `                     - in case cycle(s) and their bicyclist(s) are present on the road,"]
    #[doc = "- 10 - `wheelchair-user`               - in case wheelchair(s) and their user(s) are present on the road,"]
    #[doc = "- 11 - `horse-and-rider`               - in case horse(s) and rider(s) are present on the road,"]
    #[doc = "- 12 - `rollerskater`                  - in case rolleskater(s) and skater(s) are present on the road,"]
    #[doc = "- 13 - `e-scooter`                     - in case e-scooter(s) and rider(s) are present on the road,"]
    #[doc = "- 14 - `personal-transporter`          - in case personal-transporter(s) and rider(s) are present on the road,"]
    #[doc = "- 15 - `pedelec`                       - in case pedelec(s) and rider(s) are present on the road,"]
    #[doc = "- 16 - `speed-pedelec`                 - in case speed-pedelec(s) and rider(s) are present on the road,"]
    #[doc = "- 17 - `ptw`                           - in case powered-two-wheeler(s) of any type are present on the road,"]
    #[doc = "- 18 - `moped`                         - in case moped(s) and rider(s) are present on the road,"]
    #[doc = "- 19 - `motorcycle`                    - in case motorcycle(s) and rider(s) are present on the road,"]
    #[doc = "- 20 - `motorcycle-and-sidecar-right`  - in case motorcycle(s) with sidecar(s) on the right and rider are present on the road,"]
    #[doc = "- 21 - `motorcycle-and-sidecar-left`   - in case motorcycle(s) with sidecar(s) on the left and rider are present on the road."]
    #[doc = "- 22-255                               - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: editorial revision in V2.1.1, named values 4-21 added in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct HumanPresenceOnTheRoadSubCauseCode(pub u8);

    #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode \"humanProblem\"."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `unavailable`    - in case further detailed information on human health problem is unavailable,"]
    #[doc = "- 1 - `glycemiaProblem`- in case human problem is due to glycaemia problem,"]
    #[doc = "- 2 - `heartProblem`   - in case human problem is due to heart problem."]
    #[doc = "- 3-255                - reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct HumanProblemSubCauseCode(pub u8);

    #[doc = "This DE is a general identifier."]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct Identifier1B(pub u8);

    #[doc = "This DE is a general identifier."]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=65535"))]
    pub struct Identifier2B(pub u16);

    #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `impassability`"]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unavailable`              - in case further detailed information about the unmanaged road blockage is unavailable,"]
    #[doc = "- 1 `flooding          `       - in case the road is affected by flooding,"]
    #[doc = "- 2 `dangerOfAvalanches`       - in case the road is at risk of being affected or blocked by avalanches,"]
    #[doc = "- 3 `blastingOfAvalanches`     - in case there is an active blasting of avalanches on or near the road,"]
    #[doc = "- 4 `landslips`                - in case the road is affected by landslips,"]
    #[doc = "- 5 `chemicalSpillage`         - in case the road is affected by chemical spillage,"]
    #[doc = "- 6 `winterClosure`            - in case the road is impassable due to a winter closure."]
    #[doc = "- 7 `sinkhole`                 - in case the road is impassable due to large holes in the road surface."]
    #[doc = "- 8 `earthquakeDamage`         - in case the road is obstructed or partially obstructed because of damage caused by an earthquake."]
    #[doc = "- 9 `fallenTrees`              - in case the road is obstructed or partially obstructed by one or more fallen trees. "]
    #[doc = "- 10 `rockfalls`               - in case the road is obstructed or partially obstructed due to fallen rocks."]
    #[doc = "- 11 `sewerOverflow`           - in case the road is obstructed or partially obstructed by overflows from one or more sewers. "]
    #[doc = "- 12 `stormDamage`             - in case the road is obstructed or partially obstructed by debris caused by strong winds."]
    #[doc = "- 13 `subsidence`              - in case the road surface has sunken or collapsed in places."]
    #[doc = "- 14 `burstPipe`               - in case the road surface has sunken or collapsed in places due to burst pipes."]
    #[doc = "- 15 `burstWaterMain`          - in case the road is obstructed due to local flooding and/or subsidence. "]
    #[doc = "- 16 `fallenPowerCables`       - in case the road is obstructed or partly obstructed by one or more fallen power cables."]
    #[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."]
    #[doc = "- 15-255                       - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct ImpassabilitySubCauseCode(pub u8);

    #[doc = "This DE represents the quality level of provided information."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `0` if the information is unavailable,"]
    #[doc = "- `1` if the quality level is lowest,"]
    #[doc = "- `n` (`n > 1` and `n < 7`) if the quality level is n, "]
    #[doc = "- `7` if the quality level is highest."]
    #[doc = ""]
    #[doc = "\n\n@note: Definition of quality level is out of scope of the present document."]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=7"))]
    pub struct InformationQuality(pub u8);

    #[doc = "This DF represents a frequency channel "]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field centreFrequency: the centre frequency of the channel in 10^(exp+2) Hz (where exp is exponent)"]
    #[doc = ""]
    #[doc = "- @field channelWidth: width of the channel in 10^exp Hz (where exp is exponent)"]
    #[doc = ""]
    #[doc = "- @field exponent: exponent of the power of 10 used in the calculation of the components above."]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct InterferenceManagementChannel {
        #[rasn(value("1..=99999"), identifier = "centreFrequency")]
        pub centre_frequency: u32,
        #[rasn(value("0..=9999"), identifier = "channelWidth")]
        pub channel_width: u16,
        #[rasn(value("0..=15"))]
        pub exponent: u8,
    }
    impl InterferenceManagementChannel {
        pub fn new(centre_frequency: u32, channel_width: u16, exponent: u8) -> Self {
            Self {
                centre_frequency,
                channel_width,
                exponent,
            }
        }
    }

    #[doc = "This DF shall contain a list of up to 16 definitions containing interference management information, per affected frequency channels."]
    #[doc = " "]
    #[doc = "\n\n@category: Communication information."]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=16", extensible))]
    pub struct InterferenceManagementInfo(pub SequenceOf<InterferenceManagementInfoPerChannel>);

    #[doc = "This DF contains interference management information for one affected frequency channel."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field interferenceManagementChannel: frequency channel for which the zone should be applied interference management "]
    #[doc = ""]
    #[doc = "- @field interferenceManagementZoneType: type of the interference management zone. "]
    #[doc = ""]
    #[doc = "- @field interferenceManagementMitigationType: optional type of the mitigation to be used in the interference management zone. "]
    #[doc = "In the case where no mitigation should be applied by the ITS-S, this is indicated by the field interferenceManagementMitigationType being absent."]
    #[doc = ""]
    #[doc = "- @field expiryTime: optional time at which the validity of the interference management communication zone will expire. "]
    #[doc = "This component is present when the interference management is temporarily valid"]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct InterferenceManagementInfoPerChannel {
        #[rasn(identifier = "interferenceManagementChannel")]
        pub interference_management_channel: InterferenceManagementChannel,
        #[rasn(identifier = "interferenceManagementZoneType")]
        pub interference_management_zone_type: InterferenceManagementZoneType,
        #[rasn(identifier = "interferenceManagementMitigationType")]
        pub interference_management_mitigation_type: Option<MitigationForTechnologies>,
        #[rasn(identifier = "expiryTime")]
        pub expiry_time: Option<TimestampIts>,
    }
    impl InterferenceManagementInfoPerChannel {
        pub fn new(
            interference_management_channel: InterferenceManagementChannel,
            interference_management_zone_type: InterferenceManagementZoneType,
            interference_management_mitigation_type: Option<MitigationForTechnologies>,
            expiry_time: Option<TimestampIts>,
        ) -> Self {
            Self {
                interference_management_channel,
                interference_management_zone_type,
                interference_management_mitigation_type,
                expiry_time,
            }
        }
    }

    #[doc = ""]
    #[doc = "This DF represents a zone  inside which the ITS communication should be restricted in order to manage interference."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field zoneDefinition: contains the geographical definition of the zone."]
    #[doc = ""]
    #[doc = "- @field managementInfo: contains interference management information applicable in the zone defined in the component zoneDefinition."]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct InterferenceManagementZone {
        #[rasn(identifier = "zoneDefinition")]
        pub zone_definition: InterferenceManagementZoneDefinition,
        #[rasn(identifier = "managementInfo")]
        pub management_info: InterferenceManagementInfo,
    }
    impl InterferenceManagementZone {
        pub fn new(
            zone_definition: InterferenceManagementZoneDefinition,
            management_info: InterferenceManagementInfo,
        ) -> Self {
            Self {
                zone_definition,
                management_info,
            }
        }
    }

    #[doc = "This DF represents the geographical definition of the zone where band sharing occurs. "]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field interferenceManagementZoneLatitude: Latitude of the centre point of the interference management zone."]
    #[doc = ""]
    #[doc = "- @field interferenceManagementZoneLongitude: Longitude of the centre point of the interference management zone."]
    #[doc = ""]
    #[doc = "- @field interferenceManagementZoneId: optional identification of the interference management zone. "]
    #[doc = ""]
    #[doc = "- @field interferenceManagementZoneShape: shape of the interference management zone placed at the centre point. "]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct InterferenceManagementZoneDefinition {
        #[rasn(identifier = "interferenceManagementZoneLatitude")]
        pub interference_management_zone_latitude: Latitude,
        #[rasn(identifier = "interferenceManagementZoneLongitude")]
        pub interference_management_zone_longitude: Longitude,
        #[rasn(identifier = "interferenceManagementZoneId")]
        pub interference_management_zone_id: Option<ProtectedZoneId>,
        #[rasn(value("0.."), identifier = "interferenceManagementZoneShape")]
        pub interference_management_zone_shape: Option<Shape>,
    }
    impl InterferenceManagementZoneDefinition {
        pub fn new(
            interference_management_zone_latitude: Latitude,
            interference_management_zone_longitude: Longitude,
            interference_management_zone_id: Option<ProtectedZoneId>,
            interference_management_zone_shape: Option<Shape>,
        ) -> Self {
            Self {
                interference_management_zone_latitude,
                interference_management_zone_longitude,
                interference_management_zone_id,
                interference_management_zone_shape,
            }
        }
    }

    #[doc = "This DE defines the type of an interference management zone, so that an ITS-S can "]
    #[doc = "assert the actions to do while passing by such zone (e.g. reduce the transmit power in case of a DSRC tolling station)."]
    #[doc = "It is an extension of the type @ref ProtectedZoneType."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 - `permanentCenDsrcTolling` - as specified in ETSI TS 102 792,"]
    #[doc = "- 1 - `temporaryCenDsrcTolling` - as specified in ETSI TS 102 792,"]
    #[doc = "- 2 - `unavailable`             - default value. Set to 2 for backwards compatibility with DSRC tolling,"]
    #[doc = "- 3 - `urbanRail`               - as specified in ETSI TS 103 724, clause 7,"]
    #[doc = "- 4 - `satelliteStation`        - as specified in ETSI TS 103 724, clause 7,"]
    #[doc = "- 5 - `fixedLinks`              - as specified in ETSI TS 103 724, clause 7."]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    #[non_exhaustive]
    pub enum InterferenceManagementZoneType {
        permanentCenDsrcTolling = 0,
        temporaryCenDsrcTolling = 1,
        unavailable = 2,
        urbanRail = 3,
        satelliteStation = 4,
        fixedLinks = 5,
    }

    #[doc = "This DF shall contain a list of up to 16 interference  management zones.  "]
    #[doc = ""]
    #[doc = "*EXAMPLE**: An interference management communication zone may be defined around a CEN DSRC road side equipment or an urban rail operational area."]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=16", extensible))]
    pub struct InterferenceManagementZones(pub SequenceOf<InterferenceManagementZone>);

    #[doc = "This DF represents a unique id for an intersection, in accordance with ETSI TS 103 301."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field region: the optional identifier of the entity that is responsible for the region in which the intersection is placed."]
    #[doc = "It is the duty of that entity to guarantee that the @ref Id is unique within the region."]
    #[doc = ""]
    #[doc = "- @field id: the identifier of the intersection"]
    #[doc = ""]
    #[doc = "\n\n@note: when the component region is present, the IntersectionReferenceId is guaranteed to be globally unique."]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct IntersectionReferenceId {
        pub region: Option<Identifier2B>,
        pub id: Identifier2B,
    }
    impl IntersectionReferenceId {
        pub fn new(region: Option<Identifier2B>, id: Identifier2B) -> Self {
            Self { region, id }
        }
    }

    #[doc = "This DE represents the vehicle type according to ISO 3833."]
    #[doc = "A \"term No\" refers to the number of the corresponding term and its definition in ISO 3833."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0\t- `passengerCar`              - term No 3.1.1"]
    #[doc = "- 1\t- `saloon`                    - term No 3.1.1.1 (sedan)"]
    #[doc = "- 2\t- `convertibleSaloon`         - term No 3.1.1.2"]
    #[doc = "- 3\t- `pullmanSaloon`             - term No 3.1.1.3"]
    #[doc = "- 4\t- `stationWagon`              - term No 3.1.1.4"]
    #[doc = "- 5\t- `truckStationWagon`         - term No 3.1.1.4.1"]
    #[doc = "- 6\t- `coupe`                     - term No 3.1.1.5 (coupe)"]
    #[doc = "- 7\t- `convertible`               - term No 3.1.1.6 (open tourer, roadstar, spider)"]
    #[doc = "- 8\t- `multipurposePassengerCar`  - term No 3.1.1.7"]
    #[doc = "- 9\t- `forwardControlPassengerCar`- term No 3.1.1.8"]
    #[doc = "- 10\t- `specialPassengerCar`       - term No 3.1.1.9"]
    #[doc = "- 11\t- `bus`                       - term No 3.1.2"]
    #[doc = "- 12\t- `minibus`                   - term No 3.1.2.1"]
    #[doc = "- 13\t- `urbanBus`                  - term No 3.1.2.2"]
    #[doc = "- 14\t- `interurbanCoach`           - term No 3.1.2.3"]
    #[doc = "- 15\t- `longDistanceCoach`         - term No 3.1.2.4"]
    #[doc = "- 16\t- `articulatedBus`            - term No 3.1.2.5"]
    #[doc = "- 17\t- `trolleyBus\t`             - term No 3.1.2.6"]
    #[doc = "- 18\t- `specialBus`                - term No 3.1.2.7"]
    #[doc = "- 19\t- `commercialVehicle`         - term No 3.1.3"]
    #[doc = "- 20\t- `specialCommercialVehicle`  - term No 3.1.3.1"]
    #[doc = "- 21\t- `specialVehicle`            - term No 3.1.4"]
    #[doc = "- 22\t- `trailingTowingVehicle`     - term No 3.1.5 (draw-bar tractor)"]
    #[doc = "- 23\t- `semiTrailerTowingVehicle`  - term No 3.1.6 (fifth wheel tractor)"]
    #[doc = "- 24\t- `trailer`                   - term No 3.2.1"]
    #[doc = "- 25\t- `busTrailer`                - term No 3.2.1.1"]
    #[doc = "- 26\t- `generalPurposeTrailer`     - term No 3.2.1.2"]
    #[doc = "- 27\t- `caravan`                   - term No 3.2.1.3"]
    #[doc = "- 28\t- `specialTrailer`            - term No 3.2.1.4"]
    #[doc = "- 29\t- `semiTrailer`               - term No 3.2.2"]
    #[doc = "- 30\t- `busSemiTrailer`            - term No 3.2.2.1"]
    #[doc = "- 31\t- `generalPurposeSemiTrailer` - term No 3.2.2.2"]
    #[doc = "- 32\t- `specialSemiTrailer`        - term No 3.2.2.3"]
    #[doc = "- 33\t- `roadTrain`                 - term No 3.3.1"]
    #[doc = "- 34\t- `passengerRoadTrain`        - term No 3.3.2"]
    #[doc = "- 35\t- `articulatedRoadTrain`      - term No 3.3.3"]
    #[doc = "- 36\t- `doubleRoadTrain`           - term No 3.3.4"]
    #[doc = "- 37\t- `compositeRoadTrain`        - term No 3.3.5"]
    #[doc = "- 38\t- `specialRoadTrain`          - term No 3.3.6"]
    #[doc = "- 39\t- `moped`                     - term No 3.4"]
    #[doc = "- 40\t- `motorCycle`                - term No 3.5"]
    #[doc = "- 41-255                           - reserved for future use"]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct Iso3833VehicleType(pub u8);

    #[doc = "This DE represent the identifier of an organization according to the applicable registry."]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.2.1 based on ISO 14816"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=16383"))]
    pub struct IssuerIdentifier(pub u16);

    #[doc = "This DF shall contain  a list of waypoints @ref ReferencePosition."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=40"))]
    pub struct ItineraryPath(pub SequenceOf<ReferencePosition>);

    #[doc = "This DF represents a common message header for application and facilities layer messages."]
    #[doc = "It is included at the beginning of an ITS message as the message header."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field protocolVersion: version of the ITS message."]
    #[doc = ""]
    #[doc = "- @field messageId: type of the ITS message."]
    #[doc = ""]
    #[doc = "- @field stationId: the identifier of the ITS-S that generated the ITS message."]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision:  update in V2.1.1: messageID and stationID changed to messageId and stationId; messageId is of type MessageId."]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct ItsPduHeader {
        #[rasn(identifier = "protocolVersion")]
        pub protocol_version: OrdinalNumber1B,
        #[rasn(identifier = "messageId")]
        pub message_id: MessageId,
        #[rasn(identifier = "stationId")]
        pub station_id: StationId,
    }
    impl ItsPduHeader {
        pub fn new(
            protocol_version: OrdinalNumber1B,
            message_id: MessageId,
            station_id: StationId,
        ) -> Self {
            Self {
                protocol_version,
                message_id,
                station_id,
            }
        }
    }

    #[doc = "This DE represents the identifier of the IVIM."]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.2.1 based on ETSI TS 103 301"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=32767", extensible))]
    pub struct IviIdentificationNumber(pub Integer);

    #[doc = "This DF provides the reference to the information contained in a IVIM according to ETSI TS 103 301. "]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field serviceProviderId: identifier of the organization that provided the IVIM."]
    #[doc = ""]
    #[doc = "- @field iviIdentificationNumber: identifier of the IVIM, as assigned by the organization identified in serviceProviderId."]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct IvimReference {
        #[rasn(identifier = "serviceProviderId")]
        pub service_provider_id: Provider,
        #[rasn(identifier = "iviIdentificationNumber")]
        pub ivi_identification_number: IviIdentificationNumber,
    }
    impl IvimReference {
        pub fn new(
            service_provider_id: Provider,
            ivi_identification_number: IviIdentificationNumber,
        ) -> Self {
            Self {
                service_provider_id,
                ivi_identification_number,
            }
        }
    }

    #[doc = "This DF shall contain a list of @ref IvimReference."]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=8", extensible))]
    pub struct IvimReferences(pub SequenceOf<IvimReference>);

    #[doc = "This DE indicates a transversal position on the carriageway at a specific longitudinal position, in resolution of lanes of the carriageway. "]
    #[doc = ""]
    #[doc = "For right-hand traffic roads, the value shall be set to:"]
    #[doc = "- `-1` if the position is off, i.e. besides the road,"]
    #[doc = "- `0` if the position is on the inner hard shoulder, i.e. the hard should adjacent to the leftmost lane,"]
    #[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,"]
    #[doc = "- `14` if the position is on the outer hard shoulder, i.e. the hard should adjacent to rightmost lane (if present)."]
    #[doc = ""]
    #[doc = "For left-hand traffic roads, the value shall be set to:"]
    #[doc = "- `-1` if the position is off, i.e. besides the road,"]
    #[doc = "- `0` if the position is on the inner hard shoulder, i.e. the hard should adjacent to the rightmost lane,"]
    #[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,"]
    #[doc = "- `14` if the position is on the outer hard shoulder, i.e. the hard should adjacent to leftmost lane (if present)."]
    #[doc = ""]
    #[doc = " @note: in practice this means that the position is counted from \"inside\" to \"outside\" no matter which traffic practice is used."]
    #[doc = ""]
    #[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. "]
    #[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), "]
    #[doc = "the position is counted from the legal (i.e. optical) separation between traffic directions (horizontal marking). "]
    #[doc = ""]
    #[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:"]
    #[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 "]
    #[doc = "  imaginary separation between traffic directions is on the border between the even number of lanes N/2."]
    #[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. "]
    #[doc = "  The remaining middle lane is assigned to both traffic directions as innermost lane."]
    #[doc = ""]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: Description of the legal separation of carriageways added in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-1..=14"))]
    pub struct LanePosition(pub i8);

    #[doc = "This DF indicates a transversal position in resolution of lanes and other associated details."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field transversalPosition: the transversal position."]
    #[doc = ""]
    #[doc = "- @field laneType: the type of the lane identified in the component transversalPosition. By default set to `traffic`."]
    #[doc = ""]
    #[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."]
    #[doc = ""]
    #[doc = "\n\n@category Road topology information"]
    #[doc = "\n\n@revision: direction added in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct LanePositionAndType {
        #[rasn(identifier = "transversalPosition")]
        pub transversal_position: LanePosition,
        #[rasn(
            default = "lane_position_and_type_lane_type_default",
            identifier = "laneType"
        )]
        pub lane_type: LaneType,
        #[rasn(default = "lane_position_and_type_direction_default")]
        pub direction: Direction,
    }
    impl LanePositionAndType {
        pub fn new(
            transversal_position: LanePosition,
            lane_type: LaneType,
            direction: Direction,
        ) -> Self {
            Self {
                transversal_position,
                lane_type,
                direction,
            }
        }
    }
    fn lane_position_and_type_lane_type_default() -> LaneType {
        LaneType(0)
    }
    fn lane_position_and_type_direction_default() -> Direction {
        Direction(0)
    }

    #[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. "]
    #[doc = "A lane position is a transversal position on the carriageway at a specific longitudinal position, in resolution of lanes of the carriageway."]
    #[doc = ""]
    #[doc = "The following options are available:"]
    #[doc = ""]
    #[doc = "- @field simplelanePosition: a single lane position without any additional context information."]
    #[doc = ""]
    #[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 "]
    #[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)."]
    #[doc = ""]
    #[doc = "- @field detailedlanePosition: a single lane position with additional lane details."]
    #[doc = ""]
    #[doc = "- @field lanePositionWithLateralDetails: a single lane position with additional details and the lateral position within the lane."]
    #[doc = ""]
    #[doc = "- @field trafficIslandPosition: a position on a traffic island, i.e. between two lanes. "]
    #[doc = ""]
    #[doc = "\n\n@category: Road Topology information"]
    #[doc = "\n\n@revision: Created in V2.2.1 from the DF GeneralizedLanePosition of V2.1.1. "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(choice, automatic_tags)]
    #[non_exhaustive]
    pub enum LanePositionOptions {
        simplelanePosition(LanePosition),
        simpleLaneType(LaneType),
        detailedlanePosition(LanePositionAndType),
        lanePositionWithLateralDetails(LanePositionWithLateralDetails),
        trafficIslandPosition(TrafficIslandPosition),
    }

    #[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."]
    #[doc = ""]
    #[doc = "It shall additionally include the following components: "]
    #[doc = ""]
    #[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."]
    #[doc = ""]
    #[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."]
    #[doc = ""]
    #[doc = "\n\n@category: Road Topology information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct LanePositionWithLateralDetails {
        #[rasn(identifier = "distanceToLeftBorder")]
        pub distance_to_left_border: StandardLength9b,
        #[rasn(identifier = "distanceToRightBorder")]
        pub distance_to_right_border: StandardLength9b,
        #[rasn(identifier = "transversalPosition")]
        pub transversal_position: LanePosition,
        #[rasn(
            default = "lane_position_with_lateral_details_lane_type_default",
            identifier = "laneType"
        )]
        pub lane_type: LaneType,
        #[rasn(default = "lane_position_with_lateral_details_direction_default")]
        pub direction: Direction,
    }
    impl LanePositionWithLateralDetails {
        pub fn new(
            distance_to_left_border: StandardLength9b,
            distance_to_right_border: StandardLength9b,
            transversal_position: LanePosition,
            lane_type: LaneType,
            direction: Direction,
        ) -> Self {
            Self {
                distance_to_left_border,
                distance_to_right_border,
                transversal_position,
                lane_type,
                direction,
            }
        }
    }
    fn lane_position_with_lateral_details_lane_type_default() -> LaneType {
        LaneType(0)
    }
    fn lane_position_with_lateral_details_direction_default() -> Direction {
        Direction(0)
    }

    #[doc = "This DE represents the type of a lane. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0\t- `traffic`            - Lane dedicated to the movement of vehicles,"]
    #[doc = "- 1\t- `through`            - Lane dedicated to the movement of vehicles travelling ahead and not turning,"]
    #[doc = "- 2\t- `reversible`         - Lane where the direction of traffic can be changed to match the peak flow,"]
    #[doc = "- 3\t- `acceleration`\t   - Lane that allows vehicles entering a road to accelerate to the speed of through traffic before merging with it,"]
    #[doc = "- 4\t- `deceleration`       - Lane that allows vehicles exiting a road to decelerate before leaving it,"]
    #[doc = "- 5\t- `leftHandTurning`    - Lane reserved for slowing down and making a left turn, so as not to disrupt traffic,"]
    #[doc = "- 6\t- `rightHandTurning`   - Lane reserved for slowing down and making a right turn so as not to disrupt traffic,"]
    #[doc = "- 7\t- `dedicatedVehicle`   - Lane dedicated to movement of motor vehicles with specific characteristics, such as heavy goods vehicles, etc., "]
    #[doc = "- 8\t- `bus`                - Lane dedicated to movement of buses providing public transport,"]
    #[doc = "- 9\t- `taxi`               - Lane dedicated to movement of taxis,"]
    #[doc = "- 10\t- `hov`                - Carpooling lane or high occupancy vehicle lane,"]
    #[doc = "- 11\t- `hot`                - High occupancy vehicle lanes that is allowed to be used without meeting the occupancy criteria by paying a toll,"]
    #[doc = "- 12\t- `pedestrian`         - Lanes dedicated to pedestrians such as pedestrian sidewalk paths,"]
    #[doc = "- 13\t- `cycleLane`\t       - Lane dedicated to exclusive or preferred use by bicycles,"]
    #[doc = "- 14\t- `median`             - Lane not dedicated to movement of vehicles but representing a median / central reservation  such as the central median, "]
    #[doc = "                                 separating the two directional carriageways of the highway,"]
    #[doc = "- 15\t- `striping`\t       - Lane not dedicated to movement of vehicles but covered with roadway markings,"]
    #[doc = "- 16\t- `trackedVehicle`     - Lane dedicated to movement of trains, trams and trolleys,"]
    #[doc = "- 17\t- `parking`            - Lanes dedicated to vehicles parking, stopping and loading lanes,"]
    #[doc = "- 18\t- `emergency`          - Lane dedicated to vehicles in breakdown or to emergency vehicles also called hard shoulder,"]
    #[doc = "- 19\t- `verge`              - Lane representing the verge, i.e. a narrow strip of grass or plants and sometimes also trees located between "]
    #[doc = "                                 the road surface edge and the boundary of a road,"]
    #[doc = "- 20\t`minimumRiskManoeuvre` - Lane dedicated to automated vehicles making a minimum risk manoeuvre,"]
    #[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."]
    #[doc = "- values 22 to 30             reserved for future use. "]
    #[doc = ""]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: Created in V2.1.1, named value 21 added in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=31"))]
    pub struct LaneType(pub u8);

    #[doc = "This DE represents the width of a lane measured at a defined position."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[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,"]
    #[doc = "- `1022` if the lane width is out of range, i.e. greater than 10,21 m,"]
    #[doc = "- `1023` if the lane width information is not available."]
    #[doc = ""]
    #[doc = "The value 0 shall not be used."]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,01 metre"]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=1023"))]
    pub struct LaneWidth(pub u16);

    #[doc = "This DF indicates the vehicle acceleration at lateral direction and the confidence value of the lateral acceleration."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field lateralAccelerationValue: lateral acceleration value at a point in time."]
    #[doc = ""]
    #[doc = "- @field lateralAccelerationConfidence: confidence value of the lateral acceleration value."]
    #[doc = ""]
    #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead."]
    #[doc = "\n\n@category Vehicle information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct LateralAcceleration {
        #[rasn(identifier = "lateralAccelerationValue")]
        pub lateral_acceleration_value: LateralAccelerationValue,
        #[rasn(identifier = "lateralAccelerationConfidence")]
        pub lateral_acceleration_confidence: AccelerationConfidence,
    }
    impl LateralAcceleration {
        pub fn new(
            lateral_acceleration_value: LateralAccelerationValue,
            lateral_acceleration_confidence: AccelerationConfidence,
        ) -> Self {
            Self {
                lateral_acceleration_value,
                lateral_acceleration_confidence,
            }
        }
    }

    #[doc = "This DE represents the vehicle acceleration at lateral direction in the centre of the mass of the empty vehicle."]
    #[doc = "It corresponds to the vehicle coordinate system as specified in ISO 8855."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `-160` for acceleration values equal to or less than -16 m/s^2,"]
    #[doc = "- `n` (`n > -160` and `n <= 0`) to indicate that the vehicle is accelerating towards the right side with regards to the vehicle orientation "]
    #[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,"]
    #[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 "]
    #[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,"]
    #[doc = "- `160` for acceleration values greater than 15,9 m/s^2,"]
    #[doc = "- `161` when the data is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@note: the empty load vehicle is defined in ISO 1176, clause 4.6."]
    #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationValue instead."]
    #[doc = " "]
    #[doc = "\n\n@unit: 0,1 m/s^2"]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Description updated in V2.1.1 (the meaning of 160 has changed slightly). "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-160..=161"))]
    pub struct LateralAccelerationValue(pub i16);

    #[doc = "This DE represents the absolute geographical latitude in a WGS84 coordinate system, providing a range of 90 degrees in north or"]
    #[doc = "in south hemisphere."]
    #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `n` (`n >= -900 000 000` and `n < 0`) x 10^-7 degree, i.e. negative values for latitudes south of the Equator,"]
    #[doc = "- `0` is used for the latitude of the equator,"]
    #[doc = "- `n` (`n > 0` and `n < 900 000 001`) x 10^-7 degree, i.e. positive values for latitudes north of the Equator,"]
    #[doc = "- `900 000 001` when the information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@unit: 10^-7 degree"]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-900000000..=900000001"))]
    pub struct Latitude(pub i32);

    #[doc = "This DE indicates the status of light bar and any sort of audible alarm system besides the horn."]
    #[doc = "This includes various common sirens as well as backup up beepers and other slow speed manoeuvring alerts."]
    #[doc = ""]
    #[doc = "The corresponding bit shall be set to 1 under the following conditions:"]
    #[doc = "- 0 - `lightBarActivated`      - when the light bar is activated,"]
    #[doc = "- 1 - `sirenActivated`         - when the siren is activated."]
    #[doc = ""]
    #[doc = "Otherwise, it shall be set to 0."]
    #[doc = ""]
    #[doc = "\n\n@category Vehicle information"]
    #[doc = "\n\n@revision: Editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate)]
    pub struct LightBarSirenInUse(pub FixedBitString<2usize>);

    #[doc = "This DE represents the absolute geographical longitude in a WGS84 coordinate system, providing a range of 180 degrees"]
    #[doc = "to the east or to the west of the prime meridian."]
    #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `n` (`n > -1 800 000 000` and `n < 0`) x 10^-7 degree, i.e. negative values for longitudes to the west,"]
    #[doc = "- `0` to indicate the prime meridian,"]
    #[doc = "- `n` (`n > 0` and `n < 1 800 000 001`) x 10^-7 degree, i.e. positive values for longitudes to the east,"]
    #[doc = "- `1 800 000 001` when the information is unavailable."]
    #[doc = ""]
    #[doc = "The value -1 800 000 000 shall not be used. "]
    #[doc = ""]
    #[doc = "\n\n@unit: 10^-7 degree"]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-1800000000..=1800000001"))]
    pub struct Longitude(pub i32);

    #[doc = "This DF indicates the vehicle acceleration at longitudinal direction and the confidence value of the longitudinal acceleration."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field longitudinalAccelerationValue: longitudinal acceleration value at a point in time."]
    #[doc = "- @field longitudinalAccelerationConfidence: confidence value of the longitudinal acceleration value."]
    #[doc = ""]
    #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead. "]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct LongitudinalAcceleration {
        #[rasn(identifier = "longitudinalAccelerationValue")]
        pub longitudinal_acceleration_value: LongitudinalAccelerationValue,
        #[rasn(identifier = "longitudinalAccelerationConfidence")]
        pub longitudinal_acceleration_confidence: AccelerationConfidence,
    }
    impl LongitudinalAcceleration {
        pub fn new(
            longitudinal_acceleration_value: LongitudinalAccelerationValue,
            longitudinal_acceleration_confidence: AccelerationConfidence,
        ) -> Self {
            Self {
                longitudinal_acceleration_value,
                longitudinal_acceleration_confidence,
            }
        }
    }

    #[doc = "This DE represents the vehicle acceleration at longitudinal direction in the centre of the mass of the empty vehicle."]
    #[doc = "The value shall be provided in the vehicle coordinate system as defined in ISO 8855, clause 2.11."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `-160` for acceleration values equal to or less than -16 m/s^2,"]
    #[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"]
    #[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,"]
    #[doc = "- `160` for acceleration values greater than 15,9 m/s^2,"]
    #[doc = "- `161` when the data is unavailable. "]
    #[doc = ""]
    #[doc = "This acceleration is along the tangent plane of the road surface and does not include gravity components."]
    #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationValue instead."]
    #[doc = ""]
    #[doc = "\n\n@note: The empty load vehicle is defined in ISO 1176, clause 4.6."]
    #[doc = "\n\n@unit: 0,1 m/s^2"]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: description revised in V2.1.1 (the meaning of 160 has changed slightly). T"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-160..=161"))]
    pub struct LongitudinalAccelerationValue(pub i16);

    #[doc = "This DF represents the estimated position along the longitudinal extension of a carriageway or lane. "]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field  longitudinalLanePositionValue: the mean value of the longitudinal position along the carriageway or lane w.r.t. an externally defined start position."]
    #[doc = ""]
    #[doc = "- @field  longitudinalLanePositionConfidence: The confidence value associated to the value."]
    #[doc = ""]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: created in V2.1.1, description revised in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct LongitudinalLanePosition {
        #[rasn(identifier = "longitudinalLanePositionValue")]
        pub longitudinal_lane_position_value: LongitudinalLanePositionValue,
        #[rasn(identifier = "longitudinalLanePositionConfidence")]
        pub longitudinal_lane_position_confidence: LongitudinalLanePositionConfidence,
    }
    impl LongitudinalLanePosition {
        pub fn new(
            longitudinal_lane_position_value: LongitudinalLanePositionValue,
            longitudinal_lane_position_confidence: LongitudinalLanePositionConfidence,
        ) -> Self {
            Self {
                longitudinal_lane_position_value,
                longitudinal_lane_position_confidence,
            }
        }
    }

    #[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 %."]
    #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[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,"]
    #[doc = "- `1 022` if the confidence value is out of range i.e. greater than 102,1 m,"]
    #[doc = "- `1 023` if the confidence value is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@unit 0,1 metre"]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=1023"))]
    pub struct LongitudinalLanePositionConfidence(pub u16);

    #[doc = "This DE represents the longitudinal offset of a map-matched position along a matched lane, beginning from the lane's starting point."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[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,"]
    #[doc = "- `32 766` if the longitudinal offset is out of range, i.e. greater than 3276,5 m,"]
    #[doc = "- `32 767` if the longitudinal offset information is not available. "]
    #[doc = ""]
    #[doc = "\n\n@unit 0,1 metre"]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=32767"))]
    pub struct LongitudinalLanePositionValue(pub u16);

    #[doc = "This DF shall contain a list of a lower triangular positive semi-definite matrices."]
    #[doc = ""]
    #[doc = "\n\n@category: Sensing information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=4"))]
    pub struct LowerTriangularPositiveSemidefiniteMatrices(
        pub SequenceOf<LowerTriangularPositiveSemidefiniteMatrix>,
    );

    #[doc = "This DF represents a lower triangular positive semi-definite matrix. "]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field componentsIncludedIntheMatrix: the indication of which components of a @ref PerceivedObject are included in the matrix. "]
    #[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\"."]
    #[doc = ""]
    #[doc = "- @field matrix: the list of cells of the lower triangular positive semi-definite matrix ordered by columns and by rows. "]
    #[doc = ""]
    #[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."]
    #[doc = "These components shall be included in the order or their appearance in componentsIncludedIntheMatrix."]
    #[doc = "Each column \"i\" of the lowerTriangularCorrelationMatrixColumns contains k-(i-1) values."]
    #[doc = ""]
    #[doc = "\n\n@category: Sensing information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct LowerTriangularPositiveSemidefiniteMatrix {
        #[rasn(identifier = "componentsIncludedIntheMatrix")]
        pub components_included_inthe_matrix: MatrixIncludedComponents,
        pub matrix: LowerTriangularPositiveSemidefiniteMatrixColumns,
    }
    impl LowerTriangularPositiveSemidefiniteMatrix {
        pub fn new(
            components_included_inthe_matrix: MatrixIncludedComponents,
            matrix: LowerTriangularPositiveSemidefiniteMatrixColumns,
        ) -> Self {
            Self {
                components_included_inthe_matrix,
                matrix,
            }
        }
    }

    #[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."]
    #[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."]
    #[doc = ""]
    #[doc = "\n\n@category: Sensing information"]
    #[doc = "\n\n@revision: Created in V2.1.1, extension indicator added in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=13", extensible))]
    pub struct LowerTriangularPositiveSemidefiniteMatrixColumns(pub SequenceOf<CorrelationColumn>);

    #[doc = "This DF indicates a position on a topology description transmitted in a MAPEM according to ETSI TS 103 301."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field mapReference: optionally identifies the MAPEM containing the topology information."]
    #[doc = "It is absent if the MAPEM topology is known from the context."]
    #[doc = ""]
    #[doc = "- @field laneId: optionally identifies the lane in the road segment or intersection topology on which the position is located."]
    #[doc = ""]
    #[doc = "- @field connectionId: optionally identifies the connection inside the conflict area of an intersection, i.e. it identifies a trajectory for travelling through the"]
    #[doc = "conflict area of an intersection which connects e.g an ingress with an egress lane."]
    #[doc = ""]
    #[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."]
    #[doc = ""]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: Created in V2.1.1, definition of longitudinalLanePosition amended in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct MapPosition {
        #[rasn(identifier = "mapReference")]
        pub map_reference: Option<MapReference>,
        #[rasn(identifier = "laneId")]
        pub lane_id: Option<Identifier1B>,
        #[rasn(identifier = "connectionId")]
        pub connection_id: Option<Identifier1B>,
        #[rasn(identifier = "longitudinalLanePosition")]
        pub longitudinal_lane_position: Option<LongitudinalLanePosition>,
    }
    impl MapPosition {
        pub fn new(
            map_reference: Option<MapReference>,
            lane_id: Option<Identifier1B>,
            connection_id: Option<Identifier1B>,
            longitudinal_lane_position: Option<LongitudinalLanePosition>,
        ) -> Self {
            Self {
                map_reference,
                lane_id,
                connection_id,
                longitudinal_lane_position,
            }
        }
    }

    #[doc = "This DF provides the reference to the information contained in a MAPEM according to ETSI TS 103 301. "]
    #[doc = ""]
    #[doc = "The following options are provided:"]
    #[doc = ""]
    #[doc = "- @field roadsegment: option that identifies the description of a road segment contained in a MAPEM."]
    #[doc = ""]
    #[doc = "- @field intersection: option that identifies the description of an intersection contained in a MAPEM."]
    #[doc = ""]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(choice, automatic_tags)]
    pub enum MapReference {
        roadsegment(RoadSegmentReferenceId),
        intersection(IntersectionReferenceId),
    }

    #[doc = "This DF shall contain a list of @ref MapReference."]
    #[doc = ""]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=8", extensible))]
    pub struct MapReferences(pub SequenceOf<MapReference>);

    #[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. "]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=16", extensible))]
    pub struct MapemConfiguration(pub SequenceOf<MapemElementReference>);

    #[doc = "This DF provides references to MAPEM connections using a list of @ref Identifier1B."]
    #[doc = "Note: connections are  allowed �maneuvers� (e.g. an ingress / egress relation) on an intersection."]
    #[doc = ""]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=8", extensible))]
    pub struct MapemConnectionList(pub SequenceOf<Identifier1B>);

    #[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. "]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[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."]
    #[doc = ""]
    #[doc = "- @field laneIds: the optional list of the identifiers of the lanes to be referenced. "]
    #[doc = ""]
    #[doc = "- @field connectionIds: the optional list of the identifiers of the connections to be referenced. "]
    #[doc = ""]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct MapemElementReference {
        #[rasn(identifier = "mapReference")]
        pub map_reference: Option<MapReference>,
        #[rasn(identifier = "laneIds")]
        pub lane_ids: Option<MapemLaneList>,
        #[rasn(identifier = "connectionIds")]
        pub connection_ids: Option<MapemConnectionList>,
    }
    impl MapemElementReference {
        pub fn new(
            map_reference: Option<MapReference>,
            lane_ids: Option<MapemLaneList>,
            connection_ids: Option<MapemConnectionList>,
        ) -> Self {
            Self {
                map_reference,
                lane_ids,
                connection_ids,
            }
        }
    }

    #[doc = "This DF provides references to MAPEM lanes using a list of @ref Identifier1B."]
    #[doc = ""]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: Created in 2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=8", extensible))]
    pub struct MapemLaneList(pub SequenceOf<Identifier1B>);

    #[doc = "This DE indicates the components of an @ref PerceivedObject that are included in the @ref LowerTriangularPositiveSemidefiniteMatrix."]
    #[doc = ""]
    #[doc = "The corresponding bit shall be set to 1 if the component is included:"]
    #[doc = "- 0 - `xCoordinate`                   - when the component xCoordinate of the component @ref CartesianPosition3dWithConfidence is included,"]
    #[doc = "- 1 - `yCoordinate`                   - when the component yCoordinate of the component @ref CartesianPosition3dWithConfidence is included,   "]
    #[doc = "- 2 - `zCoordinate`                   - when the component zCoordinate of the component @ref CartesianPosition3dWithConfidence is included, "]
    #[doc = "- 3 - `xVelocityOrVelocityMagnitude`  - when the component xVelocity of the component @ref VelocityCartesian or the component VelocityMagnitude of the component @ref VelocityPolarWithZ is included,   "]
    #[doc = "- 4 - `yVelocityOrVelocityDirection`  - when the component yVelocity of the component @ref VelocityCartesian or the component VelocityDirection of the component @ref VelocityPolarWithZ is included,   "]
    #[doc = "- 5 - `zVelocity`                     - when the component zVelocity of the component @ref VelocityCartesian or of the component @ref VelocityPolarWithZ is included,"]
    #[doc = "- 6 - `xAccelOrAccelMagnitude`        - when the component xAcceleration of the component @ref AccelerationCartesian or the component AccelerationMagnitude of the component @ref AccelerationPolarWithZ is included,  "]
    #[doc = "- 7 - `yAccelOrAccelDirection`        - when the component yAcceleration of the component @ref AccelerationCartesian or the component AccelerationDirection of the component @ref AccelerationPolarWithZ is included,   "]
    #[doc = "- 8 - `zAcceleration`                 - when the component zAcceleration of the component @ref AccelerationCartesian or of the component @ref AccelerationPolarWithZ is included,"]
    #[doc = "- 9 - `zAngle`                        - when the component zAngle is included,"]
    #[doc = "- 10 - `yAngle`                       - when the component yAngle is included,   "]
    #[doc = "- 11 - `xAngle`                       - when the component xAngle is included,   "]
    #[doc = "- 12 - `zAngularVelocity`             - when the component zAngularVelocity is included.   "]
    #[doc = ""]
    #[doc = "Otherwise, it shall be set to 0."]
    #[doc = ""]
    #[doc = "\n\n@category: Sensing information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("13", extensible))]
    pub struct MatrixIncludedComponents(pub BitString);

    #[doc = "This DE represents the type of facility layer message."]
    #[doc = ""]
    #[doc = " The value shall be set to:"]
    #[doc = "\t- 1  - `denm`              - for Decentralized Environmental Notification Message (DENM) as specified in ETSI EN 302 637-3,"]
    #[doc = " - 2  - `cam`               - for Cooperative Awareness Message (CAM) as specified in ETSI EN 302 637-2,"]
    #[doc = " - 3  - `poim`              - for Point of Interest message as specified in ETSI TS 103 916,"]
    #[doc = " - 4  - `spatem`            - for Signal Phase And Timing Extended Message (SPATEM) as specified in ETSI TS 103 301,"]
    #[doc = " - 5  - `mapem`             - for MAP Extended Message (MAPEM) as specified in ETSI TS 103 301,"]
    #[doc = " - 6  - `ivim`              - for in Vehicle Information Message (IVIM) as specified in ETSI TS 103 301,"]
    #[doc = " - 7  - `rfu1`              - reserved for future usage,"]
    #[doc = " - 8  - `rfu2`              - reserved for future usage,"]
    #[doc = " - 9  - `srem`              - for Signal Request Extended Message as specified in ETSI TS 103 301,"]
    #[doc = " - 10 - `ssem`              - for Signal request Status Extended Message as specified in ETSI TS 103 301,"]
    #[doc = " - 11 - `evcsn`             - for Electrical Vehicle Charging Spot Notification message as specified in ETSI TS 101 556-1,"]
    #[doc = " - 12 - `saem`              - for Services Announcement Extended Message as specified in ETSI EN 302 890-1,"]
    #[doc = " - 13 - `rtcmem`            - for Radio Technical Commission for Maritime Services Extended Message (RTCMEM) as specified in ETSI TS 103 301,"]
    #[doc = " - 14 - `cpm`               - reserved for Collective Perception Message (CPM), "]
    #[doc = " - 15 - `imzm`              - for Interference Management Zone Message (IMZM) as specified in ETSI TS 103 724,"]
    #[doc = " - 16 - `vam`               - for Vulnerable Road User Awareness Message as specified in ETSI TS 130 300-3, "]
    #[doc = " - 17 - `dsm`               - reserved for Diagnosis, logging and Status Message,"]
    #[doc = " - 18 - `pcim`              - reserved for Parking Control Infrastructure Message,"]
    #[doc = " - 19 - `pcvm`              - reserved for Parking Control Vehicle Message,"]
    #[doc = " - 20 - `mcm`               - reserved for Manoeuvre Coordination Message,"]
    #[doc = " - 21 - `pam`               - reserved for Parking Availability Message,"]
    #[doc = " - 22-255                   - reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: Created in V2.1.1 from @ref ItsPduHeader. Value 3 re-assigned to poim and value 7 and 8 reserved in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct MessageId(pub u8);

    #[doc = "This DE indicates a message rate."]
    #[doc = ""]
    #[doc = "- @field mantissa: indicates the mantissa."]
    #[doc = ""]
    #[doc = "- @field exponent: indicates the exponent."]
    #[doc = ""]
    #[doc = "The specified message rate is: mantissa*(10^exponent) "]
    #[doc = ""]
    #[doc = "\n\n@unit: Hz"]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct MessageRateHz {
        #[rasn(value("1..=100"))]
        pub mantissa: u8,
        #[rasn(value("-5..=2"))]
        pub exponent: i8,
    }
    impl MessageRateHz {
        pub fn new(mantissa: u8, exponent: i8) -> Self {
            Self { mantissa, exponent }
        }
    }

    #[doc = "This DF provides information about a message with respect to the segmentation process on facility layer at the sender."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field totalMsgNo: indicates the total number of messages that have been assembled on the transmitter side to encode the information "]
    #[doc = "during the same messsage generation process."]
    #[doc = ""]
    #[doc = "- @field thisMsgNo: indicates the position of the message within of the total set of messages generated during the same message generation process."]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: Created in V2.1.1, description revised in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct MessageSegmentationInfo {
        #[rasn(identifier = "totalMsgNo")]
        pub total_msg_no: CardinalNumber3b,
        #[rasn(identifier = "thisMsgNo")]
        pub this_msg_no: OrdinalNumber3b,
    }
    impl MessageSegmentationInfo {
        pub fn new(total_msg_no: CardinalNumber3b, this_msg_no: OrdinalNumber3b) -> Self {
            Self {
                total_msg_no,
                this_msg_no,
            }
        }
    }

    #[doc = "This DF provides information about the source of and confidence in information."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field usedDetectionInformation: the type of sensor(s) that is used to provide the detection information."]
    #[doc = ""]
    #[doc = "- @field usedStoredInformation: the type of source of the stored information. "]
    #[doc = ""]
    #[doc = "- @field confidenceValue: an optional confidence value associated to the information. "]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct MetaInformation {
        #[rasn(identifier = "usedDetectionInformation")]
        pub used_detection_information: SensorTypes,
        #[rasn(identifier = "usedStoredInformation")]
        pub used_stored_information: StoredInformationType,
        #[rasn(identifier = "confidenceValue")]
        pub confidence_value: Option<ConfidenceLevel>,
    }
    impl MetaInformation {
        pub fn new(
            used_detection_information: SensorTypes,
            used_stored_information: StoredInformationType,
            confidence_value: Option<ConfidenceLevel>,
        ) -> Self {
            Self {
                used_detection_information,
                used_stored_information,
                confidence_value,
            }
        }
    }

    #[doc = "This DF shall contain a list of @ref MitigationPerTechnologyClass."]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=8"))]
    pub struct MitigationForTechnologies(pub SequenceOf<MitigationPerTechnologyClass>);

    #[doc = "This DF represents a set of mitigation parameters for a specific technology, as specified in ETSI TS 103 724, clause 7."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field accessTechnologyClass:  channel access technology to which this mitigation is intended to be applied."]
    #[doc = ""]
    #[doc = "- @field lowDutyCycle: duty cycle limit."]
    #[doc = "\n\n@unit: 0,01 % steps"]
    #[doc = ""]
    #[doc = "- @field powerReduction: the delta value of power to be reduced."]
    #[doc = "\n\n@unit: dB"]
    #[doc = ""]
    #[doc = "- @field dmcToffLimit: idle time limit as defined in ETSI TS 103 175."]
    #[doc = "\n\n@unit: ms"]
    #[doc = ""]
    #[doc = "- @field dmcTonLimit: Transmission duration limit, as defined in ETSI EN 302 571."]
    #[doc = "\n\n@unit: ms"]
    #[doc = ""]
    #[doc = "\n\n@note: All parameters are optional, as they may not apply to some of the technologies or"]
    #[doc = "interference management zone types. Specification details are in ETSI TS 103 724, clause 7. "]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct MitigationPerTechnologyClass {
        #[rasn(identifier = "accessTechnologyClass")]
        pub access_technology_class: AccessTechnologyClass,
        #[rasn(value("0..=10000"), identifier = "lowDutyCycle")]
        pub low_duty_cycle: Option<u16>,
        #[rasn(value("0..=30"), identifier = "powerReduction")]
        pub power_reduction: Option<u8>,
        #[rasn(value("0..=1200"), identifier = "dmcToffLimit")]
        pub dmc_toff_limit: Option<u16>,
        #[rasn(value("0..=20"), identifier = "dmcTonLimit")]
        pub dmc_ton_limit: Option<u8>,
    }
    impl MitigationPerTechnologyClass {
        pub fn new(
            access_technology_class: AccessTechnologyClass,
            low_duty_cycle: Option<u16>,
            power_reduction: Option<u8>,
            dmc_toff_limit: Option<u16>,
            dmc_ton_limit: Option<u8>,
        ) -> Self {
            Self {
                access_technology_class,
                low_duty_cycle,
                power_reduction,
                dmc_toff_limit,
                dmc_ton_limit,
            }
        }
    }

    #[doc = "This DE represents the number of occupants in a vehicle."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `n` (`n >= 0` and `n < 126`) for the number n of occupants,"]
    #[doc = "- `126` for values equal to or higher than 125,"]
    #[doc = "- `127` if information is not available."]
    #[doc = ""]
    #[doc = "\n\n@unit: 1 person"]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=127"))]
    pub struct NumberOfOccupants(pub u8);

    #[doc = "This DF indicates both the class and associated subclass that best describes an object."]
    #[doc = ""]
    #[doc = "The following options are available:"]
    #[doc = ""]
    #[doc = "- @field vehicleSubClass: the object is a road vehicle and the specific subclass is specified."]
    #[doc = ""]
    #[doc = "- @field vruSubClass: the object is a VRU and the specific subclass is specified."]
    #[doc = ""]
    #[doc = "- @field groupSubClass: the object is a VRU group or cluster and the cluster information is specified."]
    #[doc = ""]
    #[doc = "- @field otherSubClass: the object is of a different type than the above and the specific subclass is specified."]
    #[doc = ""]
    #[doc = "\n\n@category: Sensing information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(choice, automatic_tags)]
    #[non_exhaustive]
    pub enum ObjectClass {
        #[rasn(value("0..=14"))]
        vehicleSubClass(TrafficParticipantType),
        vruSubClass(VruProfileAndSubprofile),
        #[rasn(value("0.."))]
        groupSubClass(VruClusterInformation),
        otherSubClass(OtherSubClass),
    }

    #[doc = "This DF shall contain a list of object classes."]
    #[doc = ""]
    #[doc = "\n\n@category: Sensing information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=8"))]
    pub struct ObjectClassDescription(pub SequenceOf<ObjectClassWithConfidence>);

    #[doc = "This DF represents the classification of a detected object together with a confidence level."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field objectClass: the class of the object."]
    #[doc = ""]
    #[doc = "- @field Confidence: the associated confidence level."]
    #[doc = ""]
    #[doc = "\n\n@category: Sensing information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct ObjectClassWithConfidence {
        #[rasn(identifier = "objectClass")]
        pub object_class: ObjectClass,
        pub confidence: ConfidenceLevel,
    }
    impl ObjectClassWithConfidence {
        pub fn new(object_class: ObjectClass, confidence: ConfidenceLevel) -> Self {
            Self {
                object_class,
                confidence,
            }
        }
    }

    #[doc = "This DF represents a dimension of an object together with a confidence value."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field value: the object dimension value which can be estimated as the mean of the current distribution."]
    #[doc = ""]
    #[doc = "- @field confidence: the associated confidence value."]
    #[doc = ""]
    #[doc = "\n\n@category: Sensing information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct ObjectDimension {
        pub value: ObjectDimensionValue,
        pub confidence: ObjectDimensionConfidence,
    }
    impl ObjectDimension {
        pub fn new(value: ObjectDimensionValue, confidence: ObjectDimensionConfidence) -> Self {
            Self { value, confidence }
        }
    }

    #[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 %."]
    #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[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,"]
    #[doc = "- `31` if the confidence value is out of range i.e. greater than 3,0 m,"]
    #[doc = "- `32` if the confidence value is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@unit 0,1 m"]
    #[doc = "\n\n@category: Sensing information"]
    #[doc = "\n\n@revision: Created in V2.1.1 "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=32"))]
    pub struct ObjectDimensionConfidence(pub u8);

    #[doc = "This DE represents a single dimension of an object."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `n` (`n > 0` and `n < 255`) if the  accuracy is equal to or less than n x 0,1 m, and more than (n-1) x 0,1 m,"]
    #[doc = "- `255` if the accuracy is out of range i.e. greater than 25,4 m,"]
    #[doc = "- `256` if the data is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@unit 0,1 m"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1 "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=256"))]
    pub struct ObjectDimensionValue(pub u16);

    #[doc = "This DE indicates the face or part of a face of a solid object."]
    #[doc = ""]
    #[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:"]
    #[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,"]
    #[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,"]
    #[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. "]
    #[doc = ""]
    #[doc = "Note: It is permissible to derive the required object dimensions and orientation from models to provide a best guess."]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum ObjectFace {
        front = 0,
        sideLeftFront = 1,
        sideLeftBack = 2,
        sideRightFront = 3,
        sideRightBack = 4,
        back = 5,
    }

    #[doc = "This DE represents a single-value indication about the overall information quality of a perceived object."]
    #[doc = ""]
    #[doc = "The value shall be set to:  "]
    #[doc = "- `0`                        : if there is no confidence in detected object, e.g. for \"ghost\"-objects or if confidence could not be computed,"]
    #[doc = "- `n` (`n > 0` and `n < 15`) : for the applicable confidence value,"]
    #[doc = "- `15`                       : if there is full confidence in the detected Object."]
    #[doc = ""]
    #[doc = "\n\n@unit n/a"]
    #[doc = "\n\n@category: Sensing information"]
    #[doc = "\n\n@revision: Created in V2.1.1 "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=15"))]
    pub struct ObjectPerceptionQuality(pub u8);

    #[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. "]
    #[doc = ""]
    #[doc = "\n\n@note: In contrast to @ref GeneralizedLanePosition, the dimension of the object or event area (width and length) is taken into account to determine the occupancy, "]
    #[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 "]
    #[doc = "probability that exactly all the provided lanes are occupied. "]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[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. "]
    #[doc = "Lanes that are partially occupied can be described using the component lanePositionWithLateralDetails of @ref  Options, with the following constraints: "]
    #[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 "]
    #[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 , "]
    #[doc = "and/or the last entry shall contain the component distanceToRightBorder > 0; the respective other components of these entries shall be set to 0."]
    #[doc = ""]
    #[doc = "- @field mapBased: optional lane information described in the context of a MAPEM as specified in ETSI TS 103 301. "]
    #[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 "]
    #[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. "]
    #[doc = ""]
    #[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 "]
    #[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."]
    #[doc = ""]
    #[doc = "\n\n@category: Road Topology information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct OccupiedLanesWithConfidence {
        #[rasn(size("1..=4"), identifier = "lanePositionBased")]
        pub lane_position_based: SequenceOf<LanePositionOptions>,
        #[rasn(size("1..=4"), identifier = "mapBased")]
        pub map_based: Option<SequenceOf<MapPosition>>,
        pub confidence: MetaInformation,
    }
    impl OccupiedLanesWithConfidence {
        pub fn new(
            lane_position_based: SequenceOf<LanePositionOptions>,
            map_based: Option<SequenceOf<MapPosition>>,
            confidence: MetaInformation,
        ) -> Self {
            Self {
                lane_position_based,
                map_based,
                confidence,
            }
        }
    }

    #[doc = "This DE represents a time period to describe the opening days and hours of a Point of Interest."]
    #[doc = "(for example local commerce)."]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate)]
    pub struct OpeningDaysHours(pub Utf8String);

    #[doc = "The DE represents an ordinal number that indicates the position of an element in a set. "]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct OrdinalNumber1B(pub u8);

    #[doc = "The DE represents an ordinal number that indicates the position of an element in a set. "]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=8"))]
    pub struct OrdinalNumber3b(pub u8);

    #[doc = "This DE indicates the subclass of a detected object for @ref ObjectClass \"otherSubclass\"."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `0` - unknown          - if the subclass is unknown."]
    #[doc = "- `1` - singleObject     - if the object is a single object."]
    #[doc = "- `2` - multipleObjects  - if the object is a group of multiple objects."]
    #[doc = "- `3` - bulkMaterial     - if the object is a bulk material."]
    #[doc = ""]
    #[doc = "\n\n@category: Sensing information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct OtherSubClass(pub u8);

    #[doc = "This DF represents a path with a set of path points."]
    #[doc = "It shall contain up to `40` @ref PathPoint. "]
    #[doc = ""]
    #[doc = "The first PathPoint presents an offset delta position with regards to an external reference position."]
    #[doc = "Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information, Vehicle information"]
    #[doc = "\n\n@revision: created in V2.1.1 based on PathHistory"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("0..=40"))]
    pub struct Path(pub SequenceOf<PathPoint>);

    #[doc = "This DE represents the recorded or estimated travel time between a position and a predefined reference position. "]
    #[doc = ""]
    #[doc = "\n\n@unit 0,01 second"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=65535", extensible))]
    pub struct PathDeltaTime(pub Integer);

    #[doc = "This DF represents estimated/predicted travel time between a position and a predefined reference position. "]
    #[doc = ""]
    #[doc = "the following options are available:"]
    #[doc = ""]
    #[doc = "- @field deltaTimeHighPrecision: delta time with precision of 0,1 s."]
    #[doc = ""]
    #[doc = "- @field deltaTimeBigRange: delta time with precision of 10 s."]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(choice, automatic_tags)]
    #[non_exhaustive]
    pub enum PathDeltaTimeChoice {
        deltaTimeHighPrecision(DeltaTimeTenthOfSecond),
        deltaTimeBigRange(DeltaTimeTenSeconds),
    }

    #[doc = "This DF represents a path towards a specific point specified in the @ref EventZone."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field pointOfEventZone: the ordinal number of the point within the DF EventZone, i.e. within the list of EventPoints."]
    #[doc = ""]
    #[doc = "- @field path: the associated path towards the point specified in pointOfEventZone."]
    #[doc = "The first PathPoint presents an offset delta position with regards to the position of that pointOfEventZone."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct PathExtended {
        #[rasn(value("1..=23"), identifier = "pointOfEventZone")]
        pub point_of_event_zone: u8,
        pub path: Path,
    }
    impl PathExtended {
        pub fn new(point_of_event_zone: u8, path: Path) -> Self {
            Self {
                point_of_event_zone,
                path,
            }
        }
    }

    #[doc = "This DF represents a path history with a set of path points."]
    #[doc = "It shall contain up to `40` @ref PathPoint. "]
    #[doc = ""]
    #[doc = "The first PathPoint presents an offset delta position with regards to an external reference position."]
    #[doc = "Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
    #[doc = ""]
    #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref Path instead."]
    #[doc = "\n\n@category: GeoReference information, Vehicle information"]
    #[doc = "\n\n@revision: semantics updated in V2.1.1, size corrected to 0..40 in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("0..=40"))]
    pub struct PathHistory(pub SequenceOf<PathPoint>);

    #[doc = "This DE indicates an ordinal number that represents the position of a component in the list of @ref Traces or @ref TracesExtended. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `0` - noPath  - if no path is identified"]
    #[doc = "- `1..7`        - for instances 1..7 of @ref Traces "]
    #[doc = "- `8..14`       - for instances 1..7 of @ref TracesExtended. "]
    #[doc = ""]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=14"))]
    pub struct PathId(pub u8);

    #[doc = "This DF defines an offset waypoint position within a path."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field pathPosition: The waypoint position defined as an offset position with regards to a pre-defined reference position. "]
    #[doc = ""]
    #[doc = "- @field pathDeltaTime: The optional travel time separated from a waypoint to the predefined reference position."]
    #[doc = ""]
    #[doc = "\n\n@category GeoReference information"]
    #[doc = "\n\n@revision: semantics updated in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct PathPoint {
        #[rasn(identifier = "pathPosition")]
        pub path_position: DeltaReferencePosition,
        #[rasn(identifier = "pathDeltaTime")]
        pub path_delta_time: Option<PathDeltaTime>,
    }
    impl PathPoint {
        pub fn new(
            path_position: DeltaReferencePosition,
            path_delta_time: Option<PathDeltaTime>,
        ) -> Self {
            Self {
                path_position,
                path_delta_time,
            }
        }
    }

    #[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."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field deltaLatitude: the offset latitude with regards to a pre-defined reference position. "]
    #[doc = ""]
    #[doc = "- @field deltaLongitude: the offset longitude with regards to a pre-defined reference position. "]
    #[doc = ""]
    #[doc = "- @field horizontalPositionConfidence: the optional confidence value associated to the horizontal geographical position."]
    #[doc = ""]
    #[doc = "- @field deltaAltitude: the optional offset altitude with regards to a pre-defined reference position, with default value unavailable. "]
    #[doc = ""]
    #[doc = "- @field altitudeConfidence: the optional confidence value associated to the altitude value of the geographical position, with default value unavailable."]
    #[doc = ""]
    #[doc = "- @field pathDeltaTime: the optional travel time to the waypoint from the predefined reference position."]
    #[doc = "- @field symmetricAreaOffset: the optional symmetric offset to generate a shape, see Annex D for details."]
    #[doc = " "]
    #[doc = "- @field asymmetricAreaOffset: the optional asymmetric offset to generate a shape, see Annex D for details. "]
    #[doc = ""]
    #[doc = "\n\n@category GeoReference information"]
    #[doc = "\n\n@revision: Created in V2.1.1, type of pathDeltaTime changed and optionality added, fields symmetricAreaOffset and asymmetricAreaOffset added in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct PathPointPredicted {
        #[rasn(identifier = "deltaLatitude")]
        pub delta_latitude: DeltaLatitude,
        #[rasn(identifier = "deltaLongitude")]
        pub delta_longitude: DeltaLongitude,
        #[rasn(identifier = "horizontalPositionConfidence")]
        pub horizontal_position_confidence: Option<PosConfidenceEllipse>,
        #[rasn(
            default = "path_point_predicted_delta_altitude_default",
            identifier = "deltaAltitude"
        )]
        pub delta_altitude: DeltaAltitude,
        #[rasn(
            default = "path_point_predicted_altitude_confidence_default",
            identifier = "altitudeConfidence"
        )]
        pub altitude_confidence: AltitudeConfidence,
        #[rasn(identifier = "pathDeltaTime")]
        pub path_delta_time: Option<PathDeltaTimeChoice>,
        #[rasn(identifier = "symmetricAreaOffset")]
        pub symmetric_area_offset: Option<StandardLength9b>,
        #[rasn(identifier = "asymmetricAreaOffset")]
        pub asymmetric_area_offset: Option<StandardLength9b>,
    }
    impl PathPointPredicted {
        pub fn new(
            delta_latitude: DeltaLatitude,
            delta_longitude: DeltaLongitude,
            horizontal_position_confidence: Option<PosConfidenceEllipse>,
            delta_altitude: DeltaAltitude,
            altitude_confidence: AltitudeConfidence,
            path_delta_time: Option<PathDeltaTimeChoice>,
            symmetric_area_offset: Option<StandardLength9b>,
            asymmetric_area_offset: Option<StandardLength9b>,
        ) -> Self {
            Self {
                delta_latitude,
                delta_longitude,
                horizontal_position_confidence,
                delta_altitude,
                altitude_confidence,
                path_delta_time,
                symmetric_area_offset,
                asymmetric_area_offset,
            }
        }
    }
    fn path_point_predicted_delta_altitude_default() -> DeltaAltitude {
        DeltaAltitude(12800)
    }
    fn path_point_predicted_altitude_confidence_default() -> AltitudeConfidence {
        AltitudeConfidence::unavailable
    }

    #[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. "]
    #[doc = "It shall contain up to `16` @ref PathPointPredicted. "]
    #[doc = ""]
    #[doc = "The first PathPoint presents an offset delta position with regards to an external reference position."]
    #[doc = "Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. "]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: created in V2.1.1 , size constraint changed to SIZE(1..16, ...) in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=16", extensible))]
    pub struct PathPredicted(pub SequenceOf<PathPointPredicted>);

    #[doc = "This DF represents a predicted path, predicted trajectory or predicted path zone together with usage information and a prediction confidence."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field pathPredicted: the predicted path (pathDeltaTime ABSENT) or trajectory (pathDeltaTime PRESENT) and/or the path zone (symmetricAreaOffset PRESENT)."]
    #[doc = ""]
    #[doc = "- @field usageIndication: an indication of how the predicted path will be used. "]
    #[doc = ""]
    #[doc = "- @field confidenceLevel: the confidence that the path/trajectory in pathPredicted will occur as predicted."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct PathPredicted2 {
        #[rasn(value("0.."), identifier = "pathPredicted")]
        pub path_predicted: PathPredicted,
        #[rasn(identifier = "usageIndication")]
        pub usage_indication: UsageIndication,
        #[rasn(identifier = "confidenceLevel")]
        pub confidence_level: ConfidenceLevel,
    }
    impl PathPredicted2 {
        pub fn new(
            path_predicted: PathPredicted,
            usage_indication: UsageIndication,
            confidence_level: ConfidenceLevel,
        ) -> Self {
            Self {
                path_predicted,
                usage_indication,
                confidence_level,
            }
        }
    }

    #[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."]
    #[doc = "It shall contain up to `16` @ref PathPredicted2. "]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=16", extensible))]
    pub struct PathPredictedList(pub SequenceOf<PathPredicted2>);

    #[doc = "This DF represents a list of references to the components of a @ref Traces or @ref TracesExtended DF using the @ref PathId. "]
    #[doc = ""]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=14"))]
    pub struct PathReferences(pub SequenceOf<PathId>);

    #[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."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field objectId: optional identifier assigned to a detected object."]
    #[doc = ""]
    #[doc = "- @field measurementDeltaTime: the time difference from a reference time to the time of the  measurement of the object. "]
    #[doc = "Negative values indicate that the provided object state refers to a point in time before the reference time."]
    #[doc = ""]
    #[doc = "- @field position: the position of the geometric centre of the object's bounding box within the pre-defined coordinate system."]
    #[doc = ""]
    #[doc = "- @field velocity: the velocity vector of the object within the pre-defined coordinate system."]
    #[doc = ""]
    #[doc = "- @field acceleration: the acceleration vector of the object within the pre-defined coordinate system."]
    #[doc = ""]
    #[doc = "- @field angles: optional Euler angles of the object bounding box at the time of measurement. "]
    #[doc = ""]
    #[doc = "- @field zAngularVelocity: optional angular velocity of the object around the z-axis at the time of measurement."]
    #[doc = "The angular velocity is measured with positive values considering the object orientation turning around the z-axis using the right-hand rule."]
    #[doc = ""]
    #[doc = "- @field lowerTriangularCorrelationMatrices: optional set of lower triangular correlation matrices for selected components of the provided kinematic state and attitude vector."]
    #[doc = ""]
    #[doc = "- @field objectDimensionZ: optional z-dimension of object bounding box. "]
    #[doc = "This dimension shall be measured along the direction of the z-axis after all the rotations have been applied. "]
    #[doc = ""]
    #[doc = "- @field objectDimensionY: optional y-dimension of the object bounding box. "]
    #[doc = "This dimension shall be measured along the direction of the y-axis after all the rotations have been applied. "]
    #[doc = ""]
    #[doc = "- @field objectDimensionX: optional x-dimension of object bounding box."]
    #[doc = "This dimension shall be measured along the direction of the x-axis after all the rotations have been applied."]
    #[doc = ""]
    #[doc = "- @field objectAge: optional age of the detected and described object, i.e. the difference in time between the moment "]
    #[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."]
    #[doc = ""]
    #[doc = "- @field objectPerceptionQuality: optional confidence associated to the object. "]
    #[doc = ""]
    #[doc = "- @field sensorIdList: optional list of sensor-IDs which provided the measurement data. "]
    #[doc = ""]
    #[doc = "- @field classification: optional classification of the described object"]
    #[doc = ""]
    #[doc = "- @field matchedPosition: optional map-matched position of an object."]
    #[doc = ""]
    #[doc = "\n\n@category Sensing information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct PerceivedObject {
        #[rasn(identifier = "objectId")]
        pub object_id: Option<Identifier2B>,
        #[rasn(identifier = "measurementDeltaTime")]
        pub measurement_delta_time: DeltaTimeMilliSecondSigned,
        pub position: CartesianPosition3dWithConfidence,
        pub velocity: Option<Velocity3dWithConfidence>,
        pub acceleration: Option<Acceleration3dWithConfidence>,
        pub angles: Option<EulerAnglesWithConfidence>,
        #[rasn(identifier = "zAngularVelocity")]
        pub z_angular_velocity: Option<CartesianAngularVelocityComponent>,
        #[rasn(identifier = "lowerTriangularCorrelationMatrices")]
        pub lower_triangular_correlation_matrices:
            Option<LowerTriangularPositiveSemidefiniteMatrices>,
        #[rasn(identifier = "objectDimensionZ")]
        pub object_dimension_z: Option<ObjectDimension>,
        #[rasn(identifier = "objectDimensionY")]
        pub object_dimension_y: Option<ObjectDimension>,
        #[rasn(identifier = "objectDimensionX")]
        pub object_dimension_x: Option<ObjectDimension>,
        #[rasn(value("0..=2047"), identifier = "objectAge")]
        pub object_age: Option<DeltaTimeMilliSecondSigned>,
        #[rasn(identifier = "objectPerceptionQuality")]
        pub object_perception_quality: Option<ObjectPerceptionQuality>,
        #[rasn(identifier = "sensorIdList")]
        pub sensor_id_list: Option<SequenceOfIdentifier1B>,
        pub classification: Option<ObjectClassDescription>,
        #[rasn(identifier = "mapPosition")]
        pub map_position: Option<MapPosition>,
    }
    impl PerceivedObject {
        pub fn new(
            object_id: Option<Identifier2B>,
            measurement_delta_time: DeltaTimeMilliSecondSigned,
            position: CartesianPosition3dWithConfidence,
            velocity: Option<Velocity3dWithConfidence>,
            acceleration: Option<Acceleration3dWithConfidence>,
            angles: Option<EulerAnglesWithConfidence>,
            z_angular_velocity: Option<CartesianAngularVelocityComponent>,
            lower_triangular_correlation_matrices: Option<
                LowerTriangularPositiveSemidefiniteMatrices,
            >,
            object_dimension_z: Option<ObjectDimension>,
            object_dimension_y: Option<ObjectDimension>,
            object_dimension_x: Option<ObjectDimension>,
            object_age: Option<DeltaTimeMilliSecondSigned>,
            object_perception_quality: Option<ObjectPerceptionQuality>,
            sensor_id_list: Option<SequenceOfIdentifier1B>,
            classification: Option<ObjectClassDescription>,
            map_position: Option<MapPosition>,
        ) -> Self {
            Self {
                object_id,
                measurement_delta_time,
                position,
                velocity,
                acceleration,
                angles,
                z_angular_velocity,
                lower_triangular_correlation_matrices,
                object_dimension_z,
                object_dimension_y,
                object_dimension_x,
                object_age,
                object_perception_quality,
                sensor_id_list,
                classification,
                map_position,
            }
        }
    }

    #[doc = "This DE denotes the ability of an ITS-S to provide up-to-date information."]
    #[doc = "A performance class value is used to describe age of data. The exact values are out of scope of the present document."]
    #[doc = ""]
    #[doc = " The value shall be set to:"]
    #[doc = "- `0` if  the performance class is unknown,"]
    #[doc = "- `1` for performance class A as defined in ETSI TS 101 539-1,"]
    #[doc = "- `2` for performance class B as defined in ETSI TS 101 539-1,"]
    #[doc = "-  3-7 reserved for future use."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=7"))]
    pub struct PerformanceClass(pub u8);

    #[doc = "This DE represents a telephone number"]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=16"))]
    pub struct PhoneNumber(pub NumericString);

    #[doc = "This DF represents the shape of a polygonal area or of a right prism."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field shapeReferencePoint: the optional reference point used for the definition of the shape, relative to an externally specified reference position. "]
    #[doc = "If this component is absent, the externally specified reference position represents the shape's reference point. "]
    #[doc = ""]
    #[doc = "- @field polygon: the polygonal area represented by a list of minimum `3` to maximum `16` @ref CartesianPosition3d."]
    #[doc = "All nodes of the polygon shall be considered relative to the shape's reference point."]
    #[doc = ""]
    #[doc = "- @field height: the optional height, present if the shape is a right prism extending in the positive z-axis."]
    #[doc = ""]
    #[doc = "\n\n@category GeoReference information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[doc = ""]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct PolygonalShape {
        #[rasn(identifier = "shapeReferencePoint")]
        pub shape_reference_point: Option<CartesianPosition3d>,
        #[rasn(size("3..=16", extensible))]
        pub polygon: SequenceOfCartesianPosition3d,
        pub height: Option<StandardLength12b>,
    }
    impl PolygonalShape {
        pub fn new(
            shape_reference_point: Option<CartesianPosition3d>,
            polygon: SequenceOfCartesianPosition3d,
            height: Option<StandardLength12b>,
        ) -> Self {
            Self {
                shape_reference_point,
                polygon,
                height,
            }
        }
    }

    #[doc = "This DE indicates the perpendicular distance from the centre of mass of an empty load vehicle to the front line of"]
    #[doc = "the vehicle bounding box of the empty load vehicle."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `n` (`n > 0` and `n < 62`) for any aplicable value n between 0,1 metre and 6,2 metres, "]
    #[doc = "- `62` for values equal to or higher than 6.1 metres,"]
    #[doc = "- `63`  if the information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@note:\tThe empty load vehicle is defined in ISO 1176, clause 4.6."]
    #[doc = ""]
    #[doc = "\n\n@unit 0,1 metre "]
    #[doc = "\n\n@category Vehicle information"]
    #[doc = "\n\n@revision: description revised in V2.1.1 (the meaning of 62 has changed slightly) "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=63"))]
    pub struct PosCentMass(pub u8);

    #[doc = "This DF indicates the horizontal position confidence ellipse which represents the estimated accuracy with a "]
    #[doc = "confidence level of 95  %. The centre of the ellipse shape corresponds to the reference"]
    #[doc = "position point for which the position accuracy is evaluated."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field semiMajorConfidence: half of length of the major axis, i.e. distance between the centre point"]
    #[doc = "and major axis point of the position accuracy ellipse. "]
    #[doc = ""]
    #[doc = "- @field semiMinorConfidence: half of length of the minor axis, i.e. distance between the centre point"]
    #[doc = "and minor axis point of the position accuracy ellipse. "]
    #[doc = ""]
    #[doc = "- @field semiMajorOrientation: orientation direction of the ellipse major axis of the position accuracy"]
    #[doc = "ellipse with regards to the WGS84 north. "]
    #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = ""]
    #[doc = "\n\n@category GeoReference information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct PosConfidenceEllipse {
        #[rasn(identifier = "semiMajorConfidence")]
        pub semi_major_confidence: SemiAxisLength,
        #[rasn(identifier = "semiMinorConfidence")]
        pub semi_minor_confidence: SemiAxisLength,
        #[rasn(identifier = "semiMajorOrientation")]
        pub semi_major_orientation: HeadingValue,
    }
    impl PosConfidenceEllipse {
        pub fn new(
            semi_major_confidence: SemiAxisLength,
            semi_minor_confidence: SemiAxisLength,
            semi_major_orientation: HeadingValue,
        ) -> Self {
            Self {
                semi_major_confidence,
                semi_minor_confidence,
                semi_major_orientation,
            }
        }
    }

    #[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."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `n` (`n > 0` and `n < 19`) for any aplicable value between 0,1 metre and 1,9 metres,"]
    #[doc = "- `19` for values equal to or higher than 1.8 metres,"]
    #[doc = "- `20` if the information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@unit 0,1 metre"]
    #[doc = "\n\n@revision: description revised in V2.1.1 (the meaning of 19 has changed slightly) "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=20"))]
    pub struct PosFrontAx(pub u8);

    #[doc = "This DE represents the distance from the centre of vehicle front bumper to the right or left longitudinal carrier of vehicle."]
    #[doc = "The left/right carrier refers to the left/right as seen from a passenger sitting in the vehicle."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `n` (`n > 0` and `n < 126`) for any aplicable value between 0,01 metre and 1,26 metres, "]
    #[doc = "- `126` for values equal to or higher than 1.25 metres,"]
    #[doc = "- `127` if the information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@unit 0,01 metre "]
    #[doc = "\n\n@category Vehicle information"]
    #[doc = "\n\n@revision: description revised in V2.1.1 (the meaning of 126 has changed slightly) "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=127"))]
    pub struct PosLonCarr(pub u8);

    #[doc = "This DE represents the perpendicular inter-distance of neighbouring pillar axis of vehicle starting from the"]
    #[doc = "middle point of the front line of the vehicle bounding box."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `n` (`n > 0` and `n < 29`) for any aplicable value between 0,1 metre and 2,9 metres, "]
    #[doc = "- `29` for values equal to or greater than 2.8 metres,"]
    #[doc = "- `30` if the information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@unit 0,1 metre "]
    #[doc = "\n\n@category Vehicle information"]
    #[doc = "\n\n@revision: description revised in V2.1.1 (the meaning of 29 has changed slightly) "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=30"))]
    pub struct PosPillar(pub u8);

    #[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, "]
    #[doc = "in direction of an externally defined reference direction."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[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,"]
    #[doc = "- `0` if the position is at the starting point,"]
    #[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,"]
    #[doc = "- `8 190` if the position is out of range, i.e. equal to or greater than 8 189 m,"]
    #[doc = "- `8 191` if the position information is not available. "]
    #[doc = ""]
    #[doc = "\n\n@unit 1 metre"]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-8190..=8191"))]
    pub struct Position1d(pub i16);

    #[doc = "This DF indicates the horizontal position confidence ellipse which represents the estimated accuracy with a "]
    #[doc = "confidence level of 95 %. The centre of the ellipse shape corresponds to the reference"]
    #[doc = "position point for which the position accuracy is evaluated."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field semiMajorAxisLength: half of length of the major axis, i.e. distance between the centre point"]
    #[doc = "and major axis point of the position accuracy ellipse. "]
    #[doc = ""]
    #[doc = "- @field semiMinorAxisLength: half of length of the minor axis, i.e. distance between the centre point"]
    #[doc = "and minor axis point of the position accuracy ellipse. "]
    #[doc = ""]
    #[doc = "- @field semiMajorAxisOrientation: orientation direction of the ellipse major axis of the position accuracy"]
    #[doc = "ellipse with regards to the WGS84 north. "]
    #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = "\n\n@category GeoReference information"]
    #[doc = "\n\n@revision: created in V2.1.1 based on @ref PosConfidenceEllipse"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct PositionConfidenceEllipse {
        #[rasn(identifier = "semiMajorAxisLength")]
        pub semi_major_axis_length: SemiAxisLength,
        #[rasn(identifier = "semiMinorAxisLength")]
        pub semi_minor_axis_length: SemiAxisLength,
        #[rasn(identifier = "semiMajorAxisOrientation")]
        pub semi_major_axis_orientation: Wgs84AngleValue,
    }
    impl PositionConfidenceEllipse {
        pub fn new(
            semi_major_axis_length: SemiAxisLength,
            semi_minor_axis_length: SemiAxisLength,
            semi_major_axis_orientation: Wgs84AngleValue,
        ) -> Self {
            Self {
                semi_major_axis_length,
                semi_minor_axis_length,
                semi_major_axis_orientation,
            }
        }
    }

    #[doc = "This DE indicates whether a passenger seat is occupied or whether the occupation status is detectable or not."]
    #[doc = ""]
    #[doc = "The number of row in vehicle seats layout is counted in rows from the driver row backwards from front to the rear"]
    #[doc = "of the vehicle."]
    #[doc = "The left side seat of a row refers to the left hand side seen from vehicle rear to front."]
    #[doc = "Additionally, a bit is reserved for each seat row, to indicate if the seat occupation of a row is detectable or not,"]
    #[doc = "i.e. `row1NotDetectable (3)`, `row2NotDetectable(8)`, `row3NotDetectable(13)` and `row4NotDetectable(18)`."]
    #[doc = "Finally, a bit is reserved for each row seat to indicate if the seat row is present or not in the vehicle,"]
    #[doc = "i.e. `row1NotPresent (4)`, `row2NotPresent (9)`, `row3NotPresent(14)`, `row4NotPresent(19)`."]
    #[doc = ""]
    #[doc = "When a seat is detected to be occupied, the corresponding seat occupation bit shall be set to `1`."]
    #[doc = "For example, when the row 1 left seat is occupied, `row1LeftOccupied(0)` bit shall be set to `1`."]
    #[doc = "When a seat is detected to be not occupied, the corresponding seat occupation bit shall be set to `0`."]
    #[doc = "Otherwise, the value of seat occupation bit shall be set according to the following conditions:"]
    #[doc = "- If the seat occupation of a seat row is not detectable, the corresponding bit shall be set to `1`."]
    #[doc = "  When any seat row not detectable bit is set to `1`, all corresponding seat occupation bits of the same row"]
    #[doc = "  shall be set to `1`."]
    #[doc = "- If the seat row is not present, the corresponding not present bit of the same row shall be set to `1`."]
    #[doc = "  When any of the seat row not present bit is set to `1`, the corresponding not detectable bit for that row"]
    #[doc = "  shall be set to `1`, and all the corresponding seat occupation bits in that row shall be set to `0`."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate)]
    pub struct PositionOfOccupants(pub FixedBitString<20usize>);

    #[doc = "This DF shall contain a list of distances @ref PosPillar that refer to the perpendicular distance between centre of vehicle front bumper"]
    #[doc = "and vehicle pillar A, between neighbour pillars until the last pillar of the vehicle."]
    #[doc = ""]
    #[doc = "Vehicle pillars refer to the vertical or near vertical support of vehicle,"]
    #[doc = "designated respectively as the A, B, C or D and other pillars moving in side profile view from the front to rear."]
    #[doc = ""]
    #[doc = "The first value of the DF refers to the perpendicular distance from the centre of vehicle front bumper to "]
    #[doc = "vehicle A pillar. The second value refers to the perpendicular distance from the centre position of A pillar"]
    #[doc = "to the B pillar of vehicle and so on until the last pillar."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=3", extensible))]
    pub struct PositionOfPillars(pub SequenceOf<PosPillar>);

    #[doc = "This DE indicates the positioning technology being used to estimate a geographical position."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `noPositioningSolution`  - no positioning solution used,"]
    #[doc = "- 1 `sGNSS`                  - Global Navigation Satellite System used,"]
    #[doc = "- 2 `dGNSS`                  - Differential GNSS used,"]
    #[doc = "- 3 `sGNSSplusDR`            - GNSS and dead reckoning used,"]
    #[doc = "- 4 `dGNSSplusDR`            - Differential GNSS and dead reckoning used,"]
    #[doc = "- 5 `dR`                     - dead reckoning used,"]
    #[doc = "- 6 `manuallyByOperator`     - position set manually by a human operator."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: V1.3.1, extension with value 6 added in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    #[non_exhaustive]
    pub enum PositioningSolutionType {
        noPositioningSolution = 0,
        sGNSS = 1,
        dGNSS = 2,
        sGNSSplusDR = 3,
        dGNSSplusDR = 4,
        dR = 5,
        #[rasn(extension_addition)]
        manuallyByOperator = 6,
    }

    #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `postCrash` ."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unavailable`                                               - in case further detailed information on post crash event is unavailable,"]
    #[doc = "- 1 `accidentWithoutECallTriggered`                             - in case no eCall has been triggered for an accident,"]
    #[doc = "- 2 `accidentWithECallManuallyTriggered`                        - in case eCall has been manually triggered and transmitted to eCall back end,"]
    #[doc = "- 3 `accidentWithECallAutomaticallyTriggered`                   - in case eCall has been automatically triggered and transmitted to eCall back end,"]
    #[doc = "- 4 `accidentWithECallTriggeredWithoutAccessToCellularNetwork`  - in case eCall has been triggered but cellular network is not accessible from triggering vehicle."]
    #[doc = "- 5-255                                                         - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct PostCrashSubCauseCode(pub u8);

    #[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.  "]
    #[doc = "The following values are specified:"]
    #[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,"]
    #[doc = "- `2000` if the amount of rain falling is greater than 199.9 mm/h, "]
    #[doc = "- `2001` if the information is not available."]
    #[doc = "\n\n@unit: 0,1 mm/h "]
    #[doc = "\n\n@category: Basic Information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=2001"))]
    pub struct PrecipitationIntensity(pub u16);

    #[doc = "This DF describes a zone of protection inside which the ITS communication should be restricted."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field protectedZoneType: type of the protected zone. "]
    #[doc = ""]
    #[doc = "- @field expiryTime: optional time at which the validity of the protected communication zone will expire."]
    #[doc = ""]
    #[doc = "- @field protectedZoneLatitude: latitude of the centre point of the protected communication zone."]
    #[doc = ""]
    #[doc = "- @field protectedZoneLongitude: longitude of the centre point of the protected communication zone."]
    #[doc = ""]
    #[doc = "- @field protectedZoneRadius: optional radius of the protected communication zone in metres."]
    #[doc = ""]
    #[doc = "- @field protectedZoneId: the optional ID of the protected communication zone."]
    #[doc = ""]
    #[doc = "\n\n@note: A protected communication zone may be defined around a CEN DSRC road side equipment."]
    #[doc = ""]
    #[doc = "\n\n@category: Infrastructure information, Communication information"]
    #[doc = "\n\n@revision: revised in V2.1.1 (changed protectedZoneID to protectedZoneId)"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct ProtectedCommunicationZone {
        #[rasn(identifier = "protectedZoneType")]
        pub protected_zone_type: ProtectedZoneType,
        #[rasn(identifier = "expiryTime")]
        pub expiry_time: Option<TimestampIts>,
        #[rasn(identifier = "protectedZoneLatitude")]
        pub protected_zone_latitude: Latitude,
        #[rasn(identifier = "protectedZoneLongitude")]
        pub protected_zone_longitude: Longitude,
        #[rasn(identifier = "protectedZoneRadius")]
        pub protected_zone_radius: Option<ProtectedZoneRadius>,
        #[rasn(identifier = "protectedZoneId")]
        pub protected_zone_id: Option<ProtectedZoneId>,
    }
    impl ProtectedCommunicationZone {
        pub fn new(
            protected_zone_type: ProtectedZoneType,
            expiry_time: Option<TimestampIts>,
            protected_zone_latitude: Latitude,
            protected_zone_longitude: Longitude,
            protected_zone_radius: Option<ProtectedZoneRadius>,
            protected_zone_id: Option<ProtectedZoneId>,
        ) -> Self {
            Self {
                protected_zone_type,
                expiry_time,
                protected_zone_latitude,
                protected_zone_longitude,
                protected_zone_radius,
                protected_zone_id,
            }
        }
    }

    #[doc = "This DF shall contain a list of @ref ProtectedCommunicationZone provided by a road side ITS-S (Road Side Unit RSU)."]
    #[doc = ""]
    #[doc = "It may provide up to 16 protected communication zones information."]
    #[doc = ""]
    #[doc = "\n\n@category: Infrastructure information, Communication information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=16"))]
    pub struct ProtectedCommunicationZonesRSU(pub SequenceOf<ProtectedCommunicationZone>);

    #[doc = "This DE represents the indentifier of a protected communication zone."]
    #[doc = ""]
    #[doc = ""]
    #[doc = "\n\n@category: Infrastructure information, Communication information"]
    #[doc = "\n\n@revision: Revision in V2.1.1 (changed name from ProtectedZoneID to ProtectedZoneId)"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=134217727"))]
    pub struct ProtectedZoneId(pub u32);

    #[doc = "This DE represents the radius of a protected communication zone. "]
    #[doc = ""]
    #[doc = ""]
    #[doc = "\n\n@unit: metre"]
    #[doc = "\n\n@category: Infrastructure information, Communication information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=255", extensible))]
    pub struct ProtectedZoneRadius(pub Integer);

    #[doc = "This DE indicates the type of a protected communication zone, so that an ITS-S is aware of the actions to do"]
    #[doc = "while passing by such zone (e.g. reduce the transmit power in case of a DSRC tolling station)."]
    #[doc = ""]
    #[doc = "The protected zone type is defined in ETSI TS 102 792."]
    #[doc = ""]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    #[non_exhaustive]
    pub enum ProtectedZoneType {
        permanentCenDsrcTolling = 0,
        #[rasn(extension_addition)]
        temporaryCenDsrcTolling = 1,
    }

    #[doc = "This DF identifies an organization."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field countryCode: represents the country code that identifies the country of the national registration administrator for issuers according to ISO 14816."]
    #[doc = ""]
    #[doc = "- @field providerIdentifier: identifies the organization according to the national ISO 14816 register for issuers."]
    #[doc = ""]
    #[doc = "\n\n@note: See <https://www.itsstandards.eu/registries/register-of-nra-i-cs1/> for a list of national registration administrators and their respective registers"]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information"]
    #[doc = "\n\n@revision: Created in V2.2.1 based on ISO 17573-3"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct Provider {
        #[rasn(identifier = "countryCode")]
        pub country_code: CountryCode,
        #[rasn(identifier = "providerIdentifier")]
        pub provider_identifier: IssuerIdentifier,
    }
    impl Provider {
        pub fn new(country_code: CountryCode, provider_identifier: IssuerIdentifier) -> Self {
            Self {
                country_code,
                provider_identifier,
            }
        }
    }

    #[doc = "This DF represents activation data for real-time systems designed for operations control, traffic light priorities, track switches, barriers, etc."]
    #[doc = "using a range of activation devices equipped in public transport vehicles."]
    #[doc = ""]
    #[doc = "The activation of the corresponding equipment is triggered by the approach or passage of a public transport"]
    #[doc = "vehicle at a certain point (e.g. a beacon)."]
    #[doc = ""]
    #[doc = "- @field ptActivationType: type of activation. "]
    #[doc = ""]
    #[doc = "- @field ptActicationData: data of activation. "]
    #[doc = ""]
    #[doc = "Today there are different payload variants defined for public transport activation-data. The R09.x is one of"]
    #[doc = "the industry standard used by public transport vehicles (e.g. buses, trams) in Europe (e.g. Germany Austria)"]
    #[doc = "for controlling traffic lights, barriers, bollards, etc. This DF shall include information like route, course,"]
    #[doc = "destination, priority, etc."]
    #[doc = ""]
    #[doc = "The R09.x content is defined in VDV recommendation 420. It includes following information:"]
    #[doc = "- Priority Request Information (pre-request, request, ready to start)"]
    #[doc = "- End of Prioritization procedure"]
    #[doc = "- Priority request direction"]
    #[doc = "- Public Transport line number"]
    #[doc = "- Priority of public transport"]
    #[doc = "- Route line identifier of the public transport"]
    #[doc = "- Route number identification"]
    #[doc = "- Destination of public transport vehicle"]
    #[doc = ""]
    #[doc = "Other countries may use different message sets defined by the local administration."]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct PtActivation {
        #[rasn(identifier = "ptActivationType")]
        pub pt_activation_type: PtActivationType,
        #[rasn(identifier = "ptActivationData")]
        pub pt_activation_data: PtActivationData,
    }
    impl PtActivation {
        pub fn new(
            pt_activation_type: PtActivationType,
            pt_activation_data: PtActivationData,
        ) -> Self {
            Self {
                pt_activation_type,
                pt_activation_data,
            }
        }
    }

    #[doc = "This DE is used for various tasks in the public transportation environment, especially for controlling traffic"]
    #[doc = "signal systems to prioritize and speed up public transportation in urban area (e.g. intersection \"_bottlenecks_\")."]
    #[doc = "The traffic lights may be controlled by an approaching bus or tram automatically. This permits \"_In Time_\" activation"]
    #[doc = "of the green phase, will enable the individual traffic to clear a potential traffic jam in advance. Thereby the"]
    #[doc = "approaching bus or tram may pass an intersection with activated green light without slowing down the speed due to"]
    #[doc = "traffic congestion. Other usage of the DE is the provision of information like the public transport line number"]
    #[doc = "or the schedule delay of a public transport vehicle."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=20"))]
    pub struct PtActivationData(pub OctetString);

    #[doc = "This DE indicates a certain coding type of the PtActivationData data."]
    #[doc = ""]
    #[doc = "The folowing value are specified:"]
    #[doc = "- 0 `undefinedCodingType`  : undefined coding type,"]
    #[doc = "- 1 `r09-16CodingType`     : coding of PtActivationData conform to VDV recommendation 420,"]
    #[doc = "- 2 `vdv-50149CodingType`  : coding of PtActivationData based on VDV recommendation 420."]
    #[doc = "- 3 - 255                  : reserved for alternative and future use."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information "]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct PtActivationType(pub u8);

    #[doc = "This DF describes a radial shape. The circular or spherical sector is constructed by sweeping      "]
    #[doc = "the provided range about the reference position specified outside of the context of this DF or "]
    #[doc = "about the optional shapeReferencePoint. The range is swept between a horizontal start and a "]
    #[doc = "horizontal end angle in the X-Y plane of a cartesian coordinate system specified outside of the "]
    #[doc = "context of this DF, in a right-hand positive angular direction w.r.t. the x-axis. "]
    #[doc = "A vertical opening angle in the X-Z plane may optionally be provided in a right-hand positive "]
    #[doc = "angular direction w.r.t. the x-axis. "]
    #[doc = ""]
    #[doc = "It shall include the following components:"]
    #[doc = ""]
    #[doc = "- @field shapeReferencePoint: the optional reference point used for the definition of the shape, "]
    #[doc = "relative to an externally specified reference position. If this component is absent, the  "]
    #[doc = "externally specified reference position represents the shape's reference point. "]
    #[doc = ""]
    #[doc = "- @field range: the radial range of the shape from the shape's reference point. "]
    #[doc = ""]
    #[doc = "- @field horizontalOpeningAngleStart: the start of the shape's horizontal opening angle. "]
    #[doc = ""]
    #[doc = "- @field horizontalOpeningAngleEnd: the end of the shape's horizontal opening angle. "]
    #[doc = ""]
    #[doc = "- @field verticalOpeningAngleStart: optional start of the shape's vertical opening angle. "]
    #[doc = ""]
    #[doc = "- @field verticalOpeningAngleEnd: optional end of the shape's vertical opening angle. "]
    #[doc = ""]
    #[doc = "\n\n@category GeoReference information"]
    #[doc = "\n\n@revision: created in V2.1.1, names and types of the horizontal opening angles changed, constraint added and description revised in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct RadialShape {
        #[rasn(identifier = "shapeReferencePoint")]
        pub shape_reference_point: Option<CartesianPosition3d>,
        pub range: StandardLength12b,
        #[rasn(identifier = "horizontalOpeningAngleStart")]
        pub horizontal_opening_angle_start: CartesianAngleValue,
        #[rasn(identifier = "horizontalOpeningAngleEnd")]
        pub horizontal_opening_angle_end: CartesianAngleValue,
        #[rasn(identifier = "verticalOpeningAngleStart")]
        pub vertical_opening_angle_start: Option<CartesianAngleValue>,
        #[rasn(identifier = "verticalOpeningAngleEnd")]
        pub vertical_opening_angle_end: Option<CartesianAngleValue>,
    }
    impl RadialShape {
        pub fn new(
            shape_reference_point: Option<CartesianPosition3d>,
            range: StandardLength12b,
            horizontal_opening_angle_start: CartesianAngleValue,
            horizontal_opening_angle_end: CartesianAngleValue,
            vertical_opening_angle_start: Option<CartesianAngleValue>,
            vertical_opening_angle_end: Option<CartesianAngleValue>,
        ) -> Self {
            Self {
                shape_reference_point,
                range,
                horizontal_opening_angle_start,
                horizontal_opening_angle_end,
                vertical_opening_angle_start,
                vertical_opening_angle_end,
            }
        }
    }

    #[doc = "This DF describes radial shape details. The circular sector or cone is"]
    #[doc = "constructed by sweeping the provided range about the position specified outside of the  "]
    #[doc = "context of this DF. The range is swept between a horizontal start and a horizontal end angle in "]
    #[doc = "the X-Y plane of a right-hand cartesian coordinate system specified outside of the context of "]
    #[doc = "this DF, in positive angular direction w.r.t. the x-axis. A vertical opening angle in the X-Z "]
    #[doc = "plane may optionally be provided in positive angular direction w.r.t. the x-axis."]
    #[doc = ""]
    #[doc = "It shall include the following components:"]
    #[doc = ""]
    #[doc = "- @field range: the radial range of the sensor from the reference point or sensor point offset. "]
    #[doc = ""]
    #[doc = "- @field horizontalOpeningAngleStart:  the start of the shape's horizontal opening angle."]
    #[doc = ""]
    #[doc = "- @field horizontalOpeningAngleEnd: the end of the shape's horizontal opening angle. "]
    #[doc = ""]
    #[doc = "- @field verticalOpeningAngleStart: optional start of the shape's vertical opening angle. "]
    #[doc = ""]
    #[doc = "- @field verticalOpeningAngleEnd: optional end of the shape's vertical opening angle. "]
    #[doc = ""]
    #[doc = "\n\n@category: Georeference information"]
    #[doc = "\n\n@revision: created in V2.1.1, description revised and constraint added in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct RadialShapeDetails {
        pub range: StandardLength12b,
        #[rasn(identifier = "horizontalOpeningAngleStart")]
        pub horizontal_opening_angle_start: CartesianAngleValue,
        #[rasn(identifier = "horizontalOpeningAngleEnd")]
        pub horizontal_opening_angle_end: CartesianAngleValue,
        #[rasn(identifier = "verticalOpeningAngleStart")]
        pub vertical_opening_angle_start: Option<CartesianAngleValue>,
        #[rasn(identifier = "verticalOpeningAngleEnd")]
        pub vertical_opening_angle_end: Option<CartesianAngleValue>,
    }
    impl RadialShapeDetails {
        pub fn new(
            range: StandardLength12b,
            horizontal_opening_angle_start: CartesianAngleValue,
            horizontal_opening_angle_end: CartesianAngleValue,
            vertical_opening_angle_start: Option<CartesianAngleValue>,
            vertical_opening_angle_end: Option<CartesianAngleValue>,
        ) -> Self {
            Self {
                range,
                horizontal_opening_angle_start,
                horizontal_opening_angle_end,
                vertical_opening_angle_start,
                vertical_opening_angle_end,
            }
        }
    }

    #[doc = "This DF describes a list of radial shapes positioned w.r.t. to an offset position defined  "]
    #[doc = "relative to a reference position specified outside of the context of this DF and oriented w.r.t.  "]
    #[doc = "a cartesian coordinate system specified outside of the context of this DF. "]
    #[doc = ""]
    #[doc = "It shall include the following components:"]
    #[doc = ""]
    #[doc = "- @field refPointId: the identification of the reference point in case of a sensor mounted to trailer. Defaults to ITS ReferencePoint (0)."]
    #[doc = ""]
    #[doc = "- @field xCoordinate: the x-coordinate of the offset position."]
    #[doc = ""]
    #[doc = "- @field yCoordinate: the y-coordinate of the offset position."]
    #[doc = ""]
    #[doc = "- @field zCoordinate: the optional z-coordinate of the offset position."]
    #[doc = ""]
    #[doc = "- @field radialShapesList: the list of radial shape details."]
    #[doc = ""]
    #[doc = "\n\n@category: Georeference information"]
    #[doc = "\n\n@revision: created in V2.1.1, description revised in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct RadialShapes {
        #[rasn(identifier = "refPointId")]
        pub ref_point_id: Identifier1B,
        #[rasn(identifier = "xCoordinate")]
        pub x_coordinate: CartesianCoordinateSmall,
        #[rasn(identifier = "yCoordinate")]
        pub y_coordinate: CartesianCoordinateSmall,
        #[rasn(identifier = "zCoordinate")]
        pub z_coordinate: Option<CartesianCoordinateSmall>,
        #[rasn(identifier = "radialShapesList")]
        pub radial_shapes_list: RadialShapesList,
    }
    impl RadialShapes {
        pub fn new(
            ref_point_id: Identifier1B,
            x_coordinate: CartesianCoordinateSmall,
            y_coordinate: CartesianCoordinateSmall,
            z_coordinate: Option<CartesianCoordinateSmall>,
            radial_shapes_list: RadialShapesList,
        ) -> Self {
            Self {
                ref_point_id,
                x_coordinate,
                y_coordinate,
                z_coordinate,
                radial_shapes_list,
            }
        }
    }

    #[doc = "The DF contains a list of @ref RadialShapeDetails."]
    #[doc = ""]
    #[doc = "\n\n@category: Georeference information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=16", extensible))]
    pub struct RadialShapesList(pub SequenceOf<RadialShapeDetails>);

    #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `railwayLevelCrossing` ."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unavailable`                   - in case no further detailed information on the railway level crossing status is available,"]
    #[doc = "- 1 `doNotCrossAbnormalSituation`   - in case when something wrong is detected by equation or sensors of the railway level crossing, "]
    #[doc = "                                         including level crossing is closed for too long (e.g. more than 10 minutes long ; default value),"]
    #[doc = "- 2 `closed`                        - in case the crossing is closed (barriers down),"]
    #[doc = "- 3 `unguarded`                     - in case the level crossing is unguarded (i.e a Saint Andrew cross level crossing without detection of train),"]
    #[doc = "- 4 `nominal`                       - in case the barriers are up and lights are off."]
    #[doc = "- 5-255: reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct RailwayLevelCrossingSubCauseCode(pub u8);

    #[doc = "This DF represents the shape of a rectangular area or a right rectangular prism that is centred "]
    #[doc = "on a reference position defined outside of the context of this DF and oriented w.r.t. a cartesian    "]
    #[doc = "coordinate system defined outside of the context of this DF. "]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field shapeReferencePoint: represents an optional offset point which the rectangle is centred on with "]
    #[doc = "respect to the reference position. If this component is absent, the externally specified  "]
    #[doc = "reference position represents the shape's reference point. "]
    #[doc = ""]
    #[doc = "- @field semiLength: represents half the length of the rectangle located in the X-Y Plane."]
    #[doc = ""]
    #[doc = "- @field semiBreadth: represents half the breadth of the rectangle located in the X-Y Plane."]
    #[doc = ""]
    #[doc = "- @field orientation: represents the optional orientation of the length of the rectangle, "]
    #[doc = "measured with positive values turning around the Z-axis using the right-hand rule, starting from"]
    #[doc = "the X-axis. "]
    #[doc = ""]
    #[doc = "- @field height: represents the optional height, present if the shape is a right rectangular prism "]
    #[doc = "with height extending in the positive Z-axis."]
    #[doc = ""]
    #[doc = "\n\n@category GeoReference information"]
    #[doc = "\n\n@revision: created in V2.1.1, centerPoint renamed to shapeReferencePoint, the type of the field orientation changed and description revised in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct RectangularShape {
        #[rasn(identifier = "shapeReferencePoint")]
        pub shape_reference_point: Option<CartesianPosition3d>,
        #[rasn(identifier = "semiLength")]
        pub semi_length: StandardLength12b,
        #[rasn(identifier = "semiBreadth")]
        pub semi_breadth: StandardLength12b,
        pub orientation: Option<CartesianAngleValue>,
        pub height: Option<StandardLength12b>,
    }
    impl RectangularShape {
        pub fn new(
            shape_reference_point: Option<CartesianPosition3d>,
            semi_length: StandardLength12b,
            semi_breadth: StandardLength12b,
            orientation: Option<CartesianAngleValue>,
            height: Option<StandardLength12b>,
        ) -> Self {
            Self {
                shape_reference_point,
                semi_length,
                semi_breadth,
                orientation,
                height,
            }
        }
    }

    #[doc = "A position within a geographic coordinate system together with a confidence ellipse. "]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field latitude: the latitude of the geographical point."]
    #[doc = ""]
    #[doc = "- @field longitude: the longitude of the geographical point."]
    #[doc = ""]
    #[doc = "- @field positionConfidenceEllipse: the confidence ellipse associated to the geographical position."]
    #[doc = ""]
    #[doc = "- @field altitude: the altitude and an altitude accuracy of the geographical point."]
    #[doc = ""]
    #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref ReferencePositionWithConfidence instead. "]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: description updated in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct ReferencePosition {
        pub latitude: Latitude,
        pub longitude: Longitude,
        #[rasn(identifier = "positionConfidenceEllipse")]
        pub position_confidence_ellipse: PosConfidenceEllipse,
        pub altitude: Altitude,
    }
    impl ReferencePosition {
        pub fn new(
            latitude: Latitude,
            longitude: Longitude,
            position_confidence_ellipse: PosConfidenceEllipse,
            altitude: Altitude,
        ) -> Self {
            Self {
                latitude,
                longitude,
                position_confidence_ellipse,
                altitude,
            }
        }
    }

    #[doc = "A position within a geographic coordinate system together with a confidence ellipse. "]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field latitude: the latitude of the geographical point."]
    #[doc = ""]
    #[doc = "- @field longitude: the longitude of the geographical point."]
    #[doc = ""]
    #[doc = "- @field positionConfidenceEllipse: the confidence ellipse associated to the geographical position."]
    #[doc = ""]
    #[doc = "- @field altitude: the altitude and an altitude accuracy of the geographical point."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: created in V2.1.1 based on @ref ReferencePosition but using @ref PositionConfidenceEllipse."]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct ReferencePositionWithConfidence {
        pub latitude: Latitude,
        pub longitude: Longitude,
        #[rasn(identifier = "positionConfidenceEllipse")]
        pub position_confidence_ellipse: PositionConfidenceEllipse,
        pub altitude: Altitude,
    }
    impl ReferencePositionWithConfidence {
        pub fn new(
            latitude: Latitude,
            longitude: Longitude,
            position_confidence_ellipse: PositionConfidenceEllipse,
            altitude: Altitude,
        ) -> Self {
            Self {
                latitude,
                longitude,
                position_confidence_ellipse,
                altitude,
            }
        }
    }

    #[doc = "This DE describes a distance of relevance for information indicated in a message."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `lessThan50m`   - for distances below 50 m,"]
    #[doc = "- 1 `lessThan100m`  - for distances below 100 m, "]
    #[doc = "- 2 `lessThan200m`  - for distances below 200 m, "]
    #[doc = "- 3 `lessThan500m`  - for distances below 300 m, "]
    #[doc = "- 4 `lessThan1000m` - for distances below 1 000 m, "]
    #[doc = "- 5 `lessThan5km`   - for distances below 5 000 m, "]
    #[doc = "- 6 `lessThan10km`  - for distances below 10 000 m, "]
    #[doc = "- 7 `over10km`      - for distances over 10 000 m. "]
    #[doc = ""]
    #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref StandardLength3b instead. "]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum RelevanceDistance {
        lessThan50m = 0,
        lessThan100m = 1,
        lessThan200m = 2,
        lessThan500m = 3,
        lessThan1000m = 4,
        lessThan5km = 5,
        lessThan10km = 6,
        over10km = 7,
    }

    #[doc = "This DE indicates a traffic direction that is relevant to information indicated in a message."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `allTrafficDirections` - for all traffic directions, "]
    #[doc = "- 1 `upstreamTraffic`      - for upstream traffic, "]
    #[doc = "- 2 `downstreamTraffic`    - for downstream traffic, "]
    #[doc = "- 3 `oppositeTraffic`      - for traffic in the opposite direction. "]
    #[doc = ""]
    #[doc = "The terms `upstream`, `downstream` and `oppositeTraffic` are relative to the event position."]
    #[doc = ""]
    #[doc = "\n\n@note: Upstream traffic corresponds to the incoming traffic towards the event position,"]
    #[doc = "and downstream traffic to the departing traffic away from the event position."]
    #[doc = ""]
    #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrafficDirection instead. "]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum RelevanceTrafficDirection {
        allTrafficDirections = 0,
        upstreamTraffic = 1,
        downstreamTraffic = 2,
        oppositeTraffic = 3,
    }

    #[doc = "This DE indicates whether an ITS message is transmitted as request from ITS-S or a response transmitted from"]
    #[doc = "ITS-S after receiving request from other ITS-Ss."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `request`  - for a request message, "]
    #[doc = "- 1 `response` - for a response message.  "]
    #[doc = ""]
    #[doc = "\n\n@category Communication information"]
    #[doc = "\n\n@revision: Editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum RequestResponseIndication {
        request = 0,
        response = 1,
    }

    #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `rescueAndRecoveryWorkInProgress` "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unavailable`              - in case further detailed information on rescue and recovery work is unavailable,"]
    #[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,"]
    #[doc = "- 2 `rescueHelicopterLanding`  - in case rescue helicopter is landing,"]
    #[doc = "- 3 `policeActivityOngoing`    - in case police activity is ongoing (only to be used if a more specific sub cause than (1) is needed),"]
    #[doc = "- 4 `medicalEmergencyOngoing`  - in case medical emergency recovery is ongoing (only to be used if a more specific sub cause than (1) is needed),"]
    #[doc = "- 5 `childAbductionInProgress` - in case a child kidnapping alarm is activated and rescue work is ongoing (only to be used if a more specific sub cause than (1) is needed),"]
    #[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,"]
    #[doc = "- 7 `rescueAndRecoveryVehicle` - in case technical rescue work is ongoing by rescue and recovery vehicles."]
    #[doc = "- 8-255: reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1, named values 6 and 7 added in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct RescueAndRecoveryWorkInProgressSubCauseCode(pub u8);

    #[doc = "This DF shall contain a list of @ref StationType. to which a certain traffic restriction, e.g. the speed limit, applies."]
    #[doc = ""]
    #[doc = "\n\n@category: Infrastructure information, Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=3", extensible))]
    pub struct RestrictedTypes(pub SequenceOf<StationType>);

    #[doc = "This DF provides configuration information about a road section."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field roadSectionDefinition: the topological definition of the road section for which the information in the other components applies throughout its entire length."]
    #[doc = ""]
    #[doc = "- @field roadType: the optional type of road on which the section is located."]
    #[doc = ""]
    #[doc = "- @field laneConfiguration: the optional configuration of the road section in terms of basic information per lane."]
    #[doc = ""]
    #[doc = "- @field mapemConfiguration: the optional configuration of the road section in terms of MAPEM lanes or connections."]
    #[doc = ""]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct RoadConfigurationSection {
        #[rasn(identifier = "roadSectionDefinition")]
        pub road_section_definition: RoadSectionDefinition,
        #[rasn(identifier = "roadType")]
        pub road_type: Option<RoadType>,
        #[rasn(identifier = "laneConfiguration")]
        pub lane_configuration: Option<BasicLaneConfiguration>,
        #[rasn(identifier = "mapemConfiguration")]
        pub mapem_configuration: Option<MapemConfiguration>,
    }
    impl RoadConfigurationSection {
        pub fn new(
            road_section_definition: RoadSectionDefinition,
            road_type: Option<RoadType>,
            lane_configuration: Option<BasicLaneConfiguration>,
            mapem_configuration: Option<MapemConfiguration>,
        ) -> Self {
            Self {
                road_section_definition,
                road_type,
                lane_configuration,
                mapem_configuration,
            }
        }
    }

    #[doc = "This DF shall contain a list of @ref RoadConfigurationSection."]
    #[doc = ""]
    #[doc = "\n\n@category: Road Topology information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=8", extensible))]
    pub struct RoadConfigurationSectionList(pub SequenceOf<RoadConfigurationSection>);

    #[doc = "This DF provides the basic topological definition of a road section."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field startingPointSection: the position of the starting point of the section. "]
    #[doc = ""]
    #[doc = "- @field lengthOfSection: the optional length of the section along the road profile (i.e. including curves)."]
    #[doc = ""]
    #[doc = "- @field endingPointSection: the optional position of the ending point of the section. "]
    #[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."]
    #[doc = ""]
    #[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. "]
    #[doc = ""]
    #[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. "]
    #[doc = ""]
    #[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). "]
    #[doc = ""]
    #[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."]
    #[doc = ""]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct RoadSectionDefinition {
        #[rasn(identifier = "startingPointSection")]
        pub starting_point_section: GeoPosition,
        #[rasn(identifier = "lengthOfSection")]
        pub length_of_section: Option<StandardLength2B>,
        #[rasn(identifier = "endingPointSection")]
        pub ending_point_section: Option<GeoPosition>,
        #[rasn(identifier = "connectedPaths")]
        pub connected_paths: PathReferences,
        #[rasn(identifier = "includedPaths")]
        pub included_paths: PathReferences,
        #[rasn(identifier = "isEventZoneIncluded")]
        pub is_event_zone_included: bool,
        #[rasn(identifier = "isEventZoneConnected")]
        pub is_event_zone_connected: bool,
    }
    impl RoadSectionDefinition {
        pub fn new(
            starting_point_section: GeoPosition,
            length_of_section: Option<StandardLength2B>,
            ending_point_section: Option<GeoPosition>,
            connected_paths: PathReferences,
            included_paths: PathReferences,
            is_event_zone_included: bool,
            is_event_zone_connected: bool,
        ) -> Self {
            Self {
                starting_point_section,
                length_of_section,
                ending_point_section,
                connected_paths,
                included_paths,
                is_event_zone_included,
                is_event_zone_connected,
            }
        }
    }

    #[doc = "This DE indicates an ordinal number that represents the position of a component in the list @ref RoadConfigurationSectionList. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `0`     - if no road section is identified"]
    #[doc = "- `1..8`  - for instances 1..8 of @ref RoadConfigurationSectionList "]
    #[doc = ""]
    #[doc = "\n\n@category: Road topology information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=8", extensible))]
    pub struct RoadSectionId(pub Integer);

    #[doc = "This DF represents a unique id for a road segment"]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field region: the optional identifier of the entity that is responsible for the region in which the road segment is placed."]
    #[doc = "It is the duty of that entity to guarantee that the @ref Id is unique within the region."]
    #[doc = ""]
    #[doc = "- @field id: the identifier of the road segment."]
    #[doc = ""]
    #[doc = "\n\n@note: when the component region is present, the RoadSegmentReferenceId is guaranteed to be globally unique."]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct RoadSegmentReferenceId {
        pub region: Option<Identifier2B>,
        pub id: Identifier2B,
    }
    impl RoadSegmentReferenceId {
        pub fn new(region: Option<Identifier2B>, id: Identifier2B) -> Self {
            Self { region, id }
        }
    }

    #[doc = "This DE indicates the type of a road segment."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `urban-NoStructuralSeparationToOppositeLanes`       - for an urban road with no structural separation between lanes carrying traffic in opposite directions,"]
    #[doc = "- 1 `urban-WithStructuralSeparationToOppositeLanes`     - for an urban road with structural separation between lanes carrying traffic in opposite directions,"]
    #[doc = "- 2 `nonUrban-NoStructuralSeparationToOppositeLanes`    - for an non urban road with no structural separation between lanes carrying traffic in opposite directions,"]
    #[doc = "- 3 `nonUrban-WithStructuralSeparationToOppositeLanes`  - for an non urban road with structural separation between lanes carrying traffic in opposite directions."]
    #[doc = ""]
    #[doc = "\n\n@category: Road Topology Information"]
    #[doc = "\n\n@revision: Editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum RoadType {
        #[rasn(identifier = "urban-NoStructuralSeparationToOppositeLanes")]
        urban_NoStructuralSeparationToOppositeLanes = 0,
        #[rasn(identifier = "urban-WithStructuralSeparationToOppositeLanes")]
        urban_WithStructuralSeparationToOppositeLanes = 1,
        #[rasn(identifier = "nonUrban-NoStructuralSeparationToOppositeLanes")]
        nonUrban_NoStructuralSeparationToOppositeLanes = 2,
        #[rasn(identifier = "nonUrban-WithStructuralSeparationToOppositeLanes")]
        nonUrban_WithStructuralSeparationToOppositeLanes = 3,
    }

    #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `roadworks`."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unavailable`                 - in case further detailed information on roadworks is unavailable,"]
    #[doc = "- 1 `majorRoadworks`              - in case a major roadworks is ongoing,"]
    #[doc = "- 2 `roadMarkingWork`             - in case a road marking work is ongoing,"]
    #[doc = "- 3 `slowMovingRoadMaintenance`   - in case slow moving road maintenance work is ongoing,"]
    #[doc = "- 4 `shortTermStationaryRoadworks`- in case a short term stationary roadwork is ongoing,"]
    #[doc = "- 5 `streetCleaning`              - in case a vehicle street cleaning work is ongoing,"]
    #[doc = "- 6 `winterService`               - in case winter service work is ongoing."]
    #[doc = "- 7-255                           - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct RoadworksSubCauseCode(pub u8);

    #[doc = "This DF provides the safe distance indication of a traffic participant with other traffic participant(s)."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field subjectStation: optionally indicates one \"other\" traffic participant identified by its ITS-S."]
    #[doc = " "]
    #[doc = "- @field safeDistanceIndicator: indicates whether the distance between the ego ITS-S and the traffic participant(s) is safe."]
    #[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. "]
    #[doc = ""]
    #[doc = "- @field timeToCollision: optionally indicated the time-to-collision calculated as sqrt(LaDi^2 + LoDi^2 + VDi^2/relative speed "]
    #[doc = "and represented in  the  nearest 100  ms. This component may be present only if subjectStation is present. "]
    #[doc = ""]
    #[doc = "\n\n@note: the abbreviations used are Lateral Distance (LaD),  Longitudinal Distance (LoD) and Vertical Distance (VD) "]
    #[doc = "and their respective  thresholds, Minimum  Safe  Lateral  Distance (MSLaD), Minimum  Safe  Longitudinal Distance  (MSLoD),  and  Minimum  Safe Vertical Distance (MSVD)."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information, Kinematic information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct SafeDistanceIndication {
        #[rasn(identifier = "subjectStation")]
        pub subject_station: Option<StationId>,
        #[rasn(identifier = "safeDistanceIndicator")]
        pub safe_distance_indicator: SafeDistanceIndicator,
        #[rasn(identifier = "timeToCollision")]
        pub time_to_collision: Option<DeltaTimeTenthOfSecond>,
    }
    impl SafeDistanceIndication {
        pub fn new(
            subject_station: Option<StationId>,
            safe_distance_indicator: SafeDistanceIndicator,
            time_to_collision: Option<DeltaTimeTenthOfSecond>,
        ) -> Self {
            Self {
                subject_station,
                safe_distance_indicator,
                time_to_collision,
            }
        }
    }

    #[doc = "This DE indicates if a distance is safe. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "-  `FALSE`  if  the triple  {LaD,  LoD, VD} < {MSLaD, MSLoD, MSVD} is simultaneously  satisfied with confidence level of  90 % or  more, "]
    #[doc = "-  `TRUE` otherwise. "]
    #[doc = ""]
    #[doc = "\n\n@note: the abbreviations used are Lateral Distance (LaD),  Longitudinal Distance (LoD) and Vertical Distance (VD) "]
    #[doc = "and their respective  thresholds, Minimum  Safe  Lateral  Distance (MSLaD), Minimum  Safe  Longitudinal Distance  (MSLoD),  and  Minimum  Safe Vertical Distance (MSVD)."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information, Kinematic information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(delegate)]
    pub struct SafeDistanceIndicator(pub bool);
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=4095"))]
    pub struct SemiAxisLength(pub u16);

    #[doc = "This DE indicates the type of sensor."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0  `undefined`         - in case the sensor type is undefined. "]
    #[doc = "- 1  `radar`             - in case the sensor is a radar,"]
    #[doc = "- 2  `lidar`             - in case the sensor is a lidar,"]
    #[doc = "- 3  `monovideo`         - in case the sensor is mono video,"]
    #[doc = "- 4  `stereovision`      - in case the sensor is stereo vision,"]
    #[doc = "- 5  `nightvision`       - in case the sensor is night vision,"]
    #[doc = "- 6  `ultrasonic`        - in case the sensor is ultrasonic,"]
    #[doc = "- 7  `pmd`               - in case the sensor is photonic mixing device,"]
    #[doc = "- 8  `inductionLoop`     - in case the sensor is an induction loop,"]
    #[doc = "- 9  `sphericalCamera`   - in case the sensor is a spherical camera,"]
    #[doc = "- 10 `uwb`               - in case the sensor is ultra wide band,"]
    #[doc = "- 11 `acoustic`          - in case the sensor is acoustic,"]
    #[doc = "- 12 `localAggregation`  - in case the information is provided by a system that aggregates information from different local sensors. Aggregation may include fusion,"]
    #[doc = "- 13 `itsAggregation`    - in case the information is provided by a system that aggregates information from other received ITS messages."]
    #[doc = "- 14-31                  - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Sensing Information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=31"))]
    pub struct SensorType(pub u8);

    #[doc = "This DE indicates the type of sensor(s)."]
    #[doc = "The corresponding bit shall be set to 1 under the following conditions:"]
    #[doc = ""]
    #[doc = "- 0  `undefined`         - in case the sensor type is undefined. "]
    #[doc = "- 1  `radar`             - in case the sensor is a radar,"]
    #[doc = "- 2  `lidar`             - in case the sensor is a lidar,"]
    #[doc = "- 3  `monovideo`         - in case the sensor is mono video,"]
    #[doc = "- 4  `stereovision`      - in case the sensor is stereo vision,"]
    #[doc = "- 5  `nightvision`       - in case the sensor is night vision,"]
    #[doc = "- 6  `ultrasonic`        - in case the sensor is ultrasonic,"]
    #[doc = "- 7  `pmd`               - in case the sensor is photonic mixing device,"]
    #[doc = "- 8  `inductionLoop`     - in case the sensor is an induction loop,"]
    #[doc = "- 9  `sphericalCamera`   - in case the sensor is a spherical camera,"]
    #[doc = "- 10 `uwb`               - in case the sensor is ultra wide band,"]
    #[doc = "- 11 `acoustic`          - in case the sensor is acoustic,"]
    #[doc = "- 12 `localAggregation`  - in case the information is provided by a system that aggregates information from different local sensors. Aggregation may include fusion,"]
    #[doc = "- 13 `itsAggregation`    - in case the information is provided by a system that aggregates information from other received ITS messages."]
    #[doc = "- 14-15                  - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@note: If all bits are set to 0, then no sensor type is used"]
    #[doc = ""]
    #[doc = "\n\n@category: Sensing Information"]
    #[doc = "\n\n@revision: created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("16", extensible))]
    pub struct SensorTypes(pub BitString);

    #[doc = "This DE represents a sequence number."]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=65535"))]
    pub struct SequenceNumber(pub u16);

    #[doc = "This DF shall contain a list of DF @ref CartesianPosition3d."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=16", extensible))]
    pub struct SequenceOfCartesianPosition3d(pub SequenceOf<CartesianPosition3d>);

    #[doc = "The DF contains a list of DE @ref Identifier1B."]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=128", extensible))]
    pub struct SequenceOfIdentifier1B(pub SequenceOf<Identifier1B>);

    #[doc = "The DF contains a list of DF @ref SafeDistanceIndication."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information, Kinematic information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=8", extensible))]
    pub struct SequenceOfSafeDistanceIndication(pub SequenceOf<SafeDistanceIndication>);

    #[doc = "The DF shall contain a list of DF @ref TrajectoryInterceptionIndication."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information, Kinematic information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=8", extensible))]
    pub struct SequenceOfTrajectoryInterceptionIndication(
        pub SequenceOf<TrajectoryInterceptionIndication>,
    );

    #[doc = "This DF provides the definition of a geographical area or volume, based on different options."]
    #[doc = ""]
    #[doc = "It is a choice of the following components: "]
    #[doc = ""]
    #[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."]
    #[doc = ""]
    #[doc = "- @field circular: definition of an area of circular shape or a right circular cylinder."]
    #[doc = ""]
    #[doc = "- @field polygonal: definition of an area of polygonal shape or a right prism."]
    #[doc = ""]
    #[doc = "- @field elliptical: definition of an area of elliptical shape or a right elliptical cylinder."]
    #[doc = ""]
    #[doc = "- @field radial: definition of a radial shape."]
    #[doc = ""]
    #[doc = "- @field radialList: definition of list of radial shapes."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(choice, automatic_tags)]
    #[non_exhaustive]
    pub enum Shape {
        rectangular(RectangularShape),
        circular(CircularShape),
        polygonal(PolygonalShape),
        elliptical(EllipticalShape),
        radial(RadialShape),
        radialShapes(RadialShapes),
    }

    #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `signalViolation`."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unavailable`               - in case further detailed information on signal violation event is unavailable,"]
    #[doc = "- 1 `stopSignViolation`         - in case a stop sign violation is detected,"]
    #[doc = "- 2 `trafficLightViolation`     - in case a traffic light violation is detected,"]
    #[doc = "- 3 `turningRegulationViolation`- in case a turning regulation violation is detected."]
    #[doc = "- 4-255                         - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct SignalViolationSubCauseCode(pub u8);

    #[doc = "This DE represents the sub cause codes of the @ref CauseCode \"slowVehicle\"."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unavailable`                    - in case further detailed information on slow vehicle driving event is"]
    #[doc = "                                       unavailable,"]
    #[doc = "- 1 `maintenanceVehicle`             - in case of a slow driving maintenance vehicle on the road,"]
    #[doc = "- 2 `vehiclesSlowingToLookAtAccident`- in case vehicle is temporally slowing down to look at accident, spot, etc.,"]
    #[doc = "- 3 `abnormalLoad`                   - in case an abnormal loaded vehicle is driving slowly on the road,"]
    #[doc = "- 4 `abnormalWideLoad`               - in case an abnormal wide load vehicle is driving slowly on the road,"]
    #[doc = "- 5 `convoy`                         - in case of slow driving convoy on the road,"]
    #[doc = "- 6 `snowplough`                     - in case of slow driving snow plough on the road,"]
    #[doc = "- 7 `deicing`                        - in case of slow driving de-icing vehicle on the road,"]
    #[doc = "- 8 `saltingVehicles`                - in case of slow driving salting vehicle on the road."]
    #[doc = "- 9-255                              - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct SlowVehicleSubCauseCode(pub u8);

    #[doc = "The DE indicates if a vehicle is carrying goods in the special transport conditions."]
    #[doc = ""]
    #[doc = "The corresponding bit shall be set to 1 under the following conditions:"]
    #[doc = "- 0 `heavyLoad`        - the vehicle is carrying goods with heavy load,"]
    #[doc = "- 1 `excessWidth`      - the vehicle is carrying goods in excess of width,"]
    #[doc = "- 2 `excessLength`     - the vehicle is carrying goods in excess of length,"]
    #[doc = "- 3 `excessHeight`     - the vehicle is carrying goods in excess of height."]
    #[doc = ""]
    #[doc = "Otherwise, the corresponding bit shall be set to 0."]
    #[doc = "\n\n@category Vehicle information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate)]
    pub struct SpecialTransportType(pub FixedBitString<4usize>);

    #[doc = "This DF represents the speed and associated confidence value."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field speedValue: the speed value."]
    #[doc = ""]
    #[doc = "- @field speedConfidence: the confidence value of the speed value."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct Speed {
        #[rasn(identifier = "speedValue")]
        pub speed_value: SpeedValue,
        #[rasn(identifier = "speedConfidence")]
        pub speed_confidence: SpeedConfidence,
    }
    impl Speed {
        pub fn new(speed_value: SpeedValue, speed_confidence: SpeedConfidence) -> Self {
            Self {
                speed_value,
                speed_confidence,
            }
        }
    }

    #[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 %."]
    #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `n` (`n > 0` and `n < 126`) if the confidence value is equal to or less than n * 0,01 m/s."]
    #[doc = "- `126` if the confidence value is out of range, i.e. greater than 1,25 m/s,"]
    #[doc = "- `127` if the confidence value information is not available."]
    #[doc = " "]
    #[doc = "\n\n@note: The fact that a speed value is received with confidence value set to `unavailable(127)` can be caused by several reasons, such as:"]
    #[doc = "- the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
    #[doc = "- the sensor cannot calculate the accuracy due to lack of variables, or"]
    #[doc = "- there has been a vehicle bus (e.g. CAN bus) error."]
    #[doc = "In all 3 cases above, the speed value may be valid and used by the application."]
    #[doc = ""]
    #[doc = "\n\n@note: If a speed value is received and its confidence value is set to `outOfRange(126)`, it means that the speed value is not valid "]
    #[doc = "and therefore cannot be trusted. Such is not useful for the application."]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,01 m/s"]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1 "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=127"))]
    pub struct SpeedConfidence(pub u8);

    #[doc = "This DE represents a speed limitation applied to a geographical position, a road section or a geographical region."]
    #[doc = ""]
    #[doc = "\n\n@unit: km/h"]
    #[doc = "\n\n@category: Infrastructure information, Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=255"))]
    pub struct SpeedLimit(pub u8);

    #[doc = "This DE represents a speed value, i.e. the magnitude of the velocity-vector. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `0` in a standstill situation."]
    #[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,"]
    #[doc = "- `16 382` for speed values greater than 163,81 m/s,"]
    #[doc = "- `16 383` if the speed accuracy information is not available."]
    #[doc = ""]
    #[doc = "\n\n@note: the definition of standstill is out of scope of the present document."]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,01 m/s"]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1 (the meaning of 16382 has changed slightly) "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=16383"))]
    pub struct SpeedValue(pub u16);

    #[doc = "This DF  provides the  indication of  change in stability."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field lossProbability: the probability of stability loss. "]
    #[doc = ""]
    #[doc = "- @field actionDeltaTime: the period over which the the probability of stability loss is estimated. "]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct StabilityChangeIndication {
        #[rasn(identifier = "lossProbability")]
        pub loss_probability: StabilityLossProbability,
        #[rasn(identifier = "actionDeltaTime")]
        pub action_delta_time: DeltaTimeTenthOfSecond,
    }
    impl StabilityChangeIndication {
        pub fn new(
            loss_probability: StabilityLossProbability,
            action_delta_time: DeltaTimeTenthOfSecond,
        ) -> Self {
            Self {
                loss_probability,
                action_delta_time,
            }
        }
    }

    #[doc = "This DE indicates the estimated probability of a stability level and conversely also the probability of a stability loss."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `0` to indicate an estimated probability of a loss of stability of 0 %, i.e. \"stable\", "]
    #[doc = "- `n` (`n > 0` and `n < 50`) to indicate the actual stability level,"]
    #[doc = "- `50` to indicate a estimated probability of a loss of stability of 100 %, i.e. \"total loss of stability\","]
    #[doc = "- the values between 51 and 62 are reserved for future use,"]
    #[doc = "- `63`: this value indicates that the information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@unit: 2 %"]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=63"))]
    pub struct StabilityLossProbability(pub u8);

    #[doc = "The DE represents length as a measure of distance between points or as a dimension of an object or shape. "]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,1 metre"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=4095"))]
    pub struct StandardLength12b(pub u16);

    #[doc = "The DE represents length as a measure of distance between points or as a dimension of an object. "]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,1 metre"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct StandardLength1B(pub u8);

    #[doc = "The DE represents length as a measure of distance between points or as a dimension of an object.  "]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,1 metre"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=65535"))]
    pub struct StandardLength2B(pub u16);

    #[doc = "The DE represents length as a measure of distance between points. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `lessThan50m`   - for distances below 50 m, "]
    #[doc = "- 1 `lessThan100m`  - for distances below 100 m,"]
    #[doc = "- 2 `lessThan200m`  - for distances below 200 m, "]
    #[doc = "- 3 `lessThan500m`  - for distances below 300 m, "]
    #[doc = "- 4 `lessThan1000m` - for distances below 1 000 m,"]
    #[doc = "- 5 `lessThan5km`   - for distances below 5 000 m, "]
    #[doc = "- 6 `lessThan10km`  - for distances below 10 000 m, "]
    #[doc = "- 7 `over10km`      - for distances over 10 000 m."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Created in V2.1.1 from RelevanceDistance"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum StandardLength3b {
        lessThan50m = 0,
        lessThan100m = 1,
        lessThan200m = 2,
        lessThan500m = 3,
        lessThan1000m = 4,
        lessThan5km = 5,
        lessThan10km = 6,
        over10km = 7,
    }

    #[doc = "The DE represents length as a measure of distance between points or as a dimension of an object. "]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,1 metre"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=511"))]
    pub struct StandardLength9b(pub u16);

    #[doc = "This DE represents the identifier of an ITS-S."]
    #[doc = "The ITS-S ID may be a pseudonym. It may change over space and/or over time."]
    #[doc = ""]
    #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref StationId instead."]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=4294967295"))]
    pub struct StationID(pub u32);

    #[doc = "This DE represents the identifier of an ITS-S."]
    #[doc = "The ITS-S ID may be a pseudonym. It may change over space and/or over time."]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1 based on @ref StationID"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=4294967295"))]
    pub struct StationId(pub u32);

    #[doc = "This DE represents the type of technical context the ITS-S is integrated in."]
    #[doc = "The station type depends on the integration environment of ITS-S into vehicle, mobile devices or at infrastructure."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unknown`          - information about the ITS-S context is not provided,"]
    #[doc = "- 1 `pedestrian`       - ITS-S carried by human being not using a mechanical device for their trip (VRU profile 1),"]
    #[doc = "- 2 `cyclist`          - ITS-S mounted on non-motorized unicycles, bicycles , tricycles, quadracycles (VRU profile 2),"]
    #[doc = "- 3 `moped`            - ITS-S mounted on light motor vehicles with less than four wheels as defined in UNECE/TRANS/WP.29/78/Rev.4 "]
    #[doc = "                            class L1, L2 (VRU Profile 3),"]
    #[doc = "- 4 `motorcycles`      - ITS-S mounted on motor vehicles with less than four wheels as defined in UNECE/TRANS/WP.29/78/Rev.4 "]
    #[doc = "                            class L3, L4, L5, L6, L7 (VRU Profile 3),"]
    #[doc = "- 5 `passengerCar`     - ITS-S mounted on small passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class M1,"]
    #[doc = "- 6 `bus`              - ITS-S mounted on large passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class M2, M3,"]
    #[doc = "- 7 `lightTruck`       - ITS-S mounted on light Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class N1,"]
    #[doc = "- 8 `heavyTruck`       - ITS-S mounted on Heavy Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class N2 and N3,"]
    #[doc = "- 9 `trailer`          - ITS-S mounted on an unpowered vehicle that is intended to be towed by a powered vehicle as defined in "]
    #[doc = "                            UNECE/TRANS/WP.29/78/Rev.4 class O,"]
    #[doc = "- 10 `specialVehicles` - ITS-S mounted on vehicles which have special purposes other than the above (e.g. moving road works vehicle),"]
    #[doc = "- 11 `tram`            - ITS-S mounted on a vehicle which runs on tracks along public streets,"]
    #[doc = "- 12 `lightVruVehicle` - ITS-S carried by a human being traveling on light vehicle , incl. possible use of roller skates or skateboards (VRU profile 2),"]
    #[doc = "- 13 `animal`          - ITS-S carried by an animal presenting a safety risk to other road users e.g. domesticated dog in a city or horse (VRU Profile 4),"]
    #[doc = "- 14                   - reserved for future usage,"]
    #[doc = "- 15 `roadSideUnit`    - ITS-S mounted on an infrastructure typically positioned outside of the drivable roadway (e.g. on a gantry, on a pole, "]
    #[doc = "                            on a stationary road works trailer); the infrastructure is static during the entire operation period of the ITS-S (e.g. no stop and go activity),"]
    #[doc = "- 16-255               - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrafficParticipantType instead."]
    #[doc = "\n\n@category: Communication information."]
    #[doc = "\n\n@revision: revised in V2.1.1 (named values 12 and 13 added and note to value 9 deleted)"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct StationType(pub u8);

    #[doc = "This DE indicates the duration in minutes since which something is stationary."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `lessThan1Minute`         - for being stationary since less than 1 minute, "]
    #[doc = "- 1 `lessThan2Minutes`        - for being stationary since less than 2 minute and for equal to or more than 1 minute,"]
    #[doc = "- 2 `lessThan15Minutes`       - for being stationary since less than 15 minutes and for equal to or more than 1 minute,"]
    #[doc = "- 3 `equalOrGreater15Minutes` - for being stationary since equal to or more than 15 minutes."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum StationarySince {
        lessThan1Minute = 0,
        lessThan2Minutes = 1,
        lessThan15Minutes = 2,
        equalOrGreater15Minutes = 3,
    }

    #[doc = "This DE provides the value of the sub cause codes of the @ref CauseCode \"stationaryVehicle\". "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unavailable`           - in case further detailed information on stationary vehicle is unavailable,"]
    #[doc = "- 1 `humanProblem`          - in case stationary vehicle is due to health problem of driver or passenger,"]
    #[doc = "- 2 `vehicleBreakdown`      - in case stationary vehicle is due to vehicle break down,"]
    #[doc = "- 3 `postCrash`             - in case stationary vehicle is caused by collision,"]
    #[doc = "- 4 `publicTransportStop`   - in case public transport vehicle is stationary at bus stop,"]
    #[doc = "- 5 `carryingDangerousGoods`- in case the stationary vehicle is carrying dangerous goods,"]
    #[doc = "- 6 `vehicleOnFire`         - in case of vehicle on fire."]
    #[doc = "- 7-255 reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct StationaryVehicleSubCauseCode(pub u8);

    #[doc = "This DF represents the steering wheel angle of the vehicle at certain point in time."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field steeringWheelAngleValue: steering wheel angle value."]
    #[doc = ""]
    #[doc = "- @field steeringWheelAngleConfidence: confidence value of the steering wheel angle value."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct SteeringWheelAngle {
        #[rasn(identifier = "steeringWheelAngleValue")]
        pub steering_wheel_angle_value: SteeringWheelAngleValue,
        #[rasn(identifier = "steeringWheelAngleConfidence")]
        pub steering_wheel_angle_confidence: SteeringWheelAngleConfidence,
    }
    impl SteeringWheelAngle {
        pub fn new(
            steering_wheel_angle_value: SteeringWheelAngleValue,
            steering_wheel_angle_confidence: SteeringWheelAngleConfidence,
        ) -> Self {
            Self {
                steering_wheel_angle_value,
                steering_wheel_angle_confidence,
            }
        }
    }

    #[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 %."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `n` (`n > 0` and `n < 126`) if the confidence value is equal to or less than n x 1,5 degrees,"]
    #[doc = "- `126` if the confidence value is out of range, i.e. greater than 187,5 degrees,"]
    #[doc = "- `127` if the confidence value is not available."]
    #[doc = ""]
    #[doc = "\n\n@note: The fact that a steering wheel angle value is received with confidence value set to `unavailable(127)`"]
    #[doc = "can be caused by several reasons, such as:"]
    #[doc = "- the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
    #[doc = "- the sensor cannot calculate the accuracy due to lack of variables, or"]
    #[doc = "- there has been a vehicle bus (e.g. CAN bus) error."]
    #[doc = "In all 3 cases above, the steering wheel angle value may be valid and used by the application."]
    #[doc = ""]
    #[doc = "If a steering wheel angle value is received and its confidence value is set to `outOfRange(126)`,"]
    #[doc = "it means that the steering wheel angle value is not valid and therefore cannot be trusted."]
    #[doc = "Such value is not useful for the application."]
    #[doc = ""]
    #[doc = "\n\n@unit: 1,5 degree"]
    #[doc = "\n\n@category: Vehicle Information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=127"))]
    pub struct SteeringWheelAngleConfidence(pub u8);

    #[doc = "This DE represents the steering wheel angle of the vehicle at certain point in time."]
    #[doc = "The value shall be provided in the vehicle coordinate system as defined in ISO 8855, clause 2.11."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `-511` if the steering wheel angle is equal to or greater than 511 x 1,5 degrees = 766,5 degrees to the right,"]
    #[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, "]
    #[doc = "      turning clockwise (i.e. to the right),"]
    #[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, "]
    #[doc = "      turning counter-clockwise (i.e. to the left),"]
    #[doc = "- `511` if the steering wheel angle is greater than 510 x 1,5 degrees = 765 degrees to the left,"]
    #[doc = "- `512` if information is not available."]
    #[doc = ""]
    #[doc = "\n\n@unit: 1,5 degree"]
    #[doc = "\n\n@revision: Description revised in V2.1.1 (meaning of value 511 has changed slightly)."]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-511..=512"))]
    pub struct SteeringWheelAngleValue(pub i16);

    #[doc = "This DE indicates the type of stored information."]
    #[doc = ""]
    #[doc = "The corresponding bit shall be set to 1 under the following conditions:"]
    #[doc = ""]
    #[doc = "- `0` undefined        - in case the stored information type is undefined. "]
    #[doc = "- `1` staticDb         - in case the stored information type is a static database."]
    #[doc = "- `2` dynamicDb        - in case the stored information type is a dynamic database"]
    #[doc = "- `3` realTimeDb       - in case the stored information type is a real time updated database."]
    #[doc = "- `4` map              - in case the stored information type is a road topology map."]
    #[doc = "- Bits 5 to 7          - are reserved for future use."]
    #[doc = ""]
    #[doc = "\n\n@note: If all bits are set to 0, then no stored information type is used"]
    #[doc = ""]
    #[doc = "\n\n@category: Basic Information"]
    #[doc = "\n\n@revision: created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("8", extensible))]
    pub struct StoredInformationType(pub BitString);

    #[doc = "This DE indicates the generic sub cause of a detected event."]
    #[doc = ""]
    #[doc = "\n\n@note: The sub cause code value assignment varies based on value of @ref CauseCode."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1 (this is  the generic sub cause type)"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct SubCauseCodeType(pub u8);

    #[doc = "This DE indicates a temperature value."]
    #[doc = "The value shall be set to:"]
    #[doc = "- `-60` for temperature equal to or less than -60 degrees C,"]
    #[doc = "- `n` (`n > -60` and `n < 67`) for the actual temperature n in degrees C,"]
    #[doc = "- `67` for temperature equal to or greater than 67 degrees C."]
    #[doc = ""]
    #[doc = "\n\n@unit: degrees Celsius"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-60..=67"))]
    pub struct Temperature(pub i8);

    #[doc = "This DE represents the number of elapsed (TAI) milliseconds since the ITS Epoch. "]
    #[doc = "The ITS epoch is `00:00:00.000 UTC, 1 January 2004`."]
    #[doc = "\"Elapsed\" means that the true number of milliseconds is continuously counted without interruption,"]
    #[doc = " i.e. it is not altered by leap seconds, which occur in UTC."]
    #[doc = ""]
    #[doc = "\n\n@note: International Atomic Time (TAI) is the time reference coordinate on the basis of the readings of atomic clocks, "]
    #[doc = "operated in accordance with the definition of the second, the unit of time of the International System of Units. "]
    #[doc = "TAI is a continuous time scale. UTC has discontinuities, as it is occasionally adjusted by leap seconds. "]
    #[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, "]
    #[doc = "further 5 leap seconds have been inserted in UTC."]
    #[doc = ""]
    #[doc = "EXAMPLE: The value for TimestampIts for 1 January 2007 00:00:00.000 UTC is `94 694 401 000` milliseconds,"]
    #[doc = "which includes one leap second insertion since the ITS epoch."]
    #[doc = "\n\n@unit: 0,001 s"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Description revised in in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=4398046511103"))]
    pub struct TimestampIts(pub u64);

    #[doc = "This DF represents one or more paths using @ref Path."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1. Is is now based on Path and not on PathHistory"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=7"))]
    pub struct Traces(pub SequenceOf<Path>);

    #[doc = "This DF represents one or more paths using @ref PathExtended."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=7"))]
    pub struct TracesExtended(pub SequenceOf<PathExtended>);

    #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `trafficCondition`. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unavailable`                  - in case further detailed information on the traffic condition is unavailable,"]
    #[doc = "- 1 `increasedVolumeOfTraffic`     - in case the type of traffic condition is increased traffic volume,"]
    #[doc = "- 2 `trafficJamSlowlyIncreasing`   - in case the type of traffic condition is a traffic jam which volume is increasing slowly,"]
    #[doc = "- 3 `trafficJamIncreasing`         - in case the type of traffic condition is a traffic jam which volume is increasing,"]
    #[doc = "- 4 `trafficJamStronglyIncreasing` - in case the type of traffic condition is a traffic jam which volume is strongly increasing,"]
    #[doc = "- 5 `trafficJam`         `         - in case the type of traffic condition is a traffic jam and no further detailed information about its volume is available,"]
    #[doc = "- 6 `trafficJamSlightlyDecreasing` - in case the type of traffic condition is a traffic jam which volume is decreasing slowly,"]
    #[doc = "- 7 `trafficJamDecreasing`         - in case the type of traffic condition is a traffic jam which volume is decreasing,"]
    #[doc = "- 8 `trafficJamStronglyDecreasing` - in case the type of traffic condition is a traffic jam which volume is decreasing rapidly,"]
    #[doc = "- 9 `trafficJamStable`             - in case the traffic condition is a traffic jam with stable volume,"]
    #[doc = "- 10-255: reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1, definition of value 0 and 1 changed in V2.2.1, name and definition of value 5 changed in V2.2.1, value 9 added in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct TrafficConditionSubCauseCode(pub u8);

    #[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."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `allTrafficDirections`                                    - for all directions of traffic, "]
    #[doc = "- 1 `sameAsReferenceDirection-upstreamOfReferencePosition`    - for the direction of traffic according to the reference direction, and the portion of traffic upstream of the reference position, "]
    #[doc = "- 2 `sameAsReferenceDirection-downstreamOfReferencePosition`  - for the direction of traffic according to the reference direction, and the portion of traffic downstream of the reference position, "]
    #[doc = "- 3 `oppositeToReferenceDirection`                            - for the direction of traffic opposite to the reference direction. "]
    #[doc = ""]
    #[doc = "\n\n@note: Upstream traffic corresponds to the incoming traffic towards the event position, and downstream traffic to the departing traffic away from the event position."]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Created in V2.1.1 from RelevanceTrafficDirection, description and naming of values changed in V2.2.1"]
    #[doc = ""]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum TrafficDirection {
        allTrafficDirections = 0,
        #[rasn(identifier = "sameAsReferenceDirection-upstreamOfReferencePosition")]
        sameAsReferenceDirection_upstreamOfReferencePosition = 1,
        #[rasn(identifier = "sameAsReferenceDirection-downstreamOfReferencePosition")]
        sameAsReferenceDirection_downstreamOfReferencePosition = 2,
        oppositeToReferenceDirection = 3,
    }

    #[doc = "Ths DF represents the a position on a traffic island between two lanes. "]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field oneSide: represents one lane."]
    #[doc = ""]
    #[doc = "- @field otherSide: represents the other lane."]
    #[doc = ""]
    #[doc = "\n\n@category: Road Topology information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct TrafficIslandPosition {
        #[rasn(identifier = "oneSide")]
        pub one_side: LanePositionAndType,
        #[rasn(identifier = "otherSide")]
        pub other_side: LanePositionAndType,
    }
    impl TrafficIslandPosition {
        pub fn new(one_side: LanePositionAndType, other_side: LanePositionAndType) -> Self {
            Self {
                one_side,
                other_side,
            }
        }
    }

    #[doc = "This DE represents the type of a traffic participant."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unknown`          - information about traffic participant is not provided,"]
    #[doc = "- 1 `pedestrian`       - human being not using a mechanical device for their trip (VRU profile 1),"]
    #[doc = "- 2 `cyclist`          - non-motorized unicycles, bicycles , tricycles, quadracycles (VRU profile 2),"]
    #[doc = "- 3 `moped`            - light motor vehicles with less than four wheels as defined in UNECE/TRANS/WP.29/78/Rev.4 class L1, L2 (VRU Profile 3),"]
    #[doc = "- 4 `motorcycles`      - motor vehicles with less than four wheels as defined in UNECE/TRANS/WP.29/78/Rev.4 class L3, L4, L5, L6, L7 (VRU Profile 3),"]
    #[doc = "- 5 `passengerCar`     - small passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class M1,"]
    #[doc = "- 6 `bus`              - large passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class M2, M3,"]
    #[doc = "- 7 `lightTruck`       - light Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class N1,"]
    #[doc = "- 8 `heavyTruck`       - Heavy Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class N2 and N3,"]
    #[doc = "- 9 `trailer`          - unpowered vehicle that is intended to be towed by a powered vehicle as defined in UNECE/TRANS/WP.29/78/Rev.4 class O,"]
    #[doc = "- 10 `specialVehicles` - vehicles which have special purposes other than the above (e.g. moving road works vehicle),"]
    #[doc = "- 11 `tram`            - vehicle which runs on tracks along public streets,"]
    #[doc = "- 12 `lightVruVehicle` - human being traveling on light vehicle, incl. possible use of roller skates or skateboards (VRU profile 2),"]
    #[doc = "- 13 `animal`          - animal presenting a safety risk to other road users e.g. domesticated dog in a city or horse (VRU Profile 4),"]
    #[doc = "- 14 `agricultural`    - agricultural and forestry vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 class T,"]
    #[doc = "- 15 `roadSideUnit`    - infrastructure typically positioned outside of the drivable roadway (e.g. on a gantry, on a pole, "]
    #[doc = "                            on a stationary road works trailer); the infrastructure is static during the entire operation period of the ITS-S (e.g. no stop and go activity),"]
    #[doc = "- 16-255               - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Communication information."]
    #[doc = "\n\n@revision: Created in V2.1.1 based on StationType"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct TrafficParticipantType(pub u8);

    #[doc = "This DE indicates traffic rules that apply to vehicles at a certain position."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `0` - if overtaking is prohibited for all vehicles,"]
    #[doc = "- `1` - if overtaking is prohibited for trucks,"]
    #[doc = "- `2` - if vehicles should pass to the right lane,"]
    #[doc = "- `3` - if vehicles should pass to the left lane."]
    #[doc = "- `4` - if vehicles should pass to the left or right lane."]
    #[doc = ""]
    #[doc = "\n\n@category: Infrastructure information, Traffic information"]
    #[doc = "\n\n@revision: Editorial update in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    #[non_exhaustive]
    pub enum TrafficRule {
        noPassing = 0,
        noPassingForTrucks = 1,
        passToRight = 2,
        passToLeft = 3,
        #[rasn(extension_addition)]
        passToLeftOrRight = 4,
    }

    #[doc = "This DF provides detailed information about an attached trailer."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field refPointId: identifier of the reference point of the trailer."]
    #[doc = ""]
    #[doc = "- @field hitchPointOffset: optional position of the hitch point in negative x-direction (according to ISO 8855) from the"]
    #[doc = "vehicle Reference Point."]
    #[doc = ""]
    #[doc = "- @field frontOverhang: optional length of the trailer overhang in the positive x direction (according to ISO 8855) from the"]
    #[doc = "trailer Reference Point indicated by the refPointID. The value defaults to 0 in case the trailer"]
    #[doc = "is not overhanging to the front with respect to the trailer reference point."]
    #[doc = ""]
    #[doc = "- @field rearOverhang: optional length of the trailer overhang in the negative x direction (according to ISO 8855) from the"]
    #[doc = "trailer Reference Point indicated by the refPointID."]
    #[doc = ""]
    #[doc = "- @field trailerWidth: optional width of the trailer."]
    #[doc = ""]
    #[doc = "- @field hitchAngle: optional Value and confidence value of the angle between the trailer orientation (corresponding to the x"]
    #[doc = "direction of the ISO 8855 coordinate system centered on the trailer) and the direction of"]
    #[doc = "the segment having as end points the reference point of the trailer and the reference point of"]
    #[doc = "the pulling vehicle, which can be another trailer or a vehicle looking on the horizontal plane"]
    #[doc = "xy, described in the local Cartesian coordinate system of the trailer. The"]
    #[doc = "angle is measured with negative values considering the trailer orientation turning clockwise"]
    #[doc = "starting from the segment direction. The angle value accuracy is provided with the"]
    #[doc = "confidence level of 95 %."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct TrailerData {
        #[rasn(identifier = "refPointId")]
        pub ref_point_id: Identifier1B,
        #[rasn(identifier = "hitchPointOffset")]
        pub hitch_point_offset: StandardLength1B,
        #[rasn(identifier = "frontOverhang")]
        pub front_overhang: Option<StandardLength1B>,
        #[rasn(identifier = "rearOverhang")]
        pub rear_overhang: Option<StandardLength1B>,
        #[rasn(identifier = "trailerWidth")]
        pub trailer_width: Option<VehicleWidth>,
        #[rasn(identifier = "hitchAngle")]
        pub hitch_angle: CartesianAngle,
    }
    impl TrailerData {
        pub fn new(
            ref_point_id: Identifier1B,
            hitch_point_offset: StandardLength1B,
            front_overhang: Option<StandardLength1B>,
            rear_overhang: Option<StandardLength1B>,
            trailer_width: Option<VehicleWidth>,
            hitch_angle: CartesianAngle,
        ) -> Self {
            Self {
                ref_point_id,
                hitch_point_offset,
                front_overhang,
                rear_overhang,
                trailer_width,
                hitch_angle,
            }
        }
    }

    #[doc = "This DE provides information about the presence of a trailer. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[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."]
    #[doc = "- 1 `trailerPresentWithKnownLength`   - to indicate that a trailer has been detected as present and the length is included in the vehicle length value."]
    #[doc = "- 2 `trailerPresentWithUnknownLength` - to indicate that a trailer has been detected as present and the length is not included in the vehicle length value."]
    #[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."]
    #[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 "]
    #[doc = "                                        nor the detection of trailer presence/absence is possible."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Created in V2.1.1 based on VehicleLengthConfidenceIndication"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum TrailerPresenceInformation {
        noTrailerPresent = 0,
        trailerPresentWithKnownLength = 1,
        trailerPresentWithUnknownLength = 2,
        trailerPresenceIsUnknown = 3,
        unavailable = 4,
    }

    #[doc = "This DE  defines  the  confidence level of the trajectoryInterceptionProbability."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `0` - to indicate confidence level less than 50 %,"]
    #[doc = "- `1` - to indicate confidence level greater than or equal to 50 % and less than 70 %,"]
    #[doc = "- `2` - to indicate confidence level greater than or equal to 70 % and less than 90 %,"]
    #[doc = "- `3` - to indicate confidence level greater than or equal to 90%."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=3"))]
    pub struct TrajectoryInterceptionConfidence(pub u8);

    #[doc = "This DF  provides the trajectory  interception  indication  of  ego-VRU  ITS-S  with another ITS-Ss. "]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field subjectStation: indicates the subject station."]
    #[doc = ""]
    #[doc = "- @field trajectoryInterceptionProbability: indicates the propbability of the interception of the subject station trajectory "]
    #[doc = "with the trajectory of the station indicated in the component subjectStation."]
    #[doc = ""]
    #[doc = "- @field trajectoryInterceptionConfidence: indicates the confidence of interception of the subject station trajectory "]
    #[doc = "with the trajectory of the station indicated in the component subjectStation."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct TrajectoryInterceptionIndication {
        #[rasn(identifier = "subjectStation")]
        pub subject_station: Option<StationId>,
        #[rasn(identifier = "trajectoryInterceptionProbability")]
        pub trajectory_interception_probability: TrajectoryInterceptionProbability,
        #[rasn(identifier = "trajectoryInterceptionConfidence")]
        pub trajectory_interception_confidence: Option<TrajectoryInterceptionConfidence>,
    }
    impl TrajectoryInterceptionIndication {
        pub fn new(
            subject_station: Option<StationId>,
            trajectory_interception_probability: TrajectoryInterceptionProbability,
            trajectory_interception_confidence: Option<TrajectoryInterceptionConfidence>,
        ) -> Self {
            Self {
                subject_station,
                trajectory_interception_probability,
                trajectory_interception_confidence,
            }
        }
    }

    #[doc = "This  DE  defines  the  probability  that the ego trajectory  intercepts  with any  other object's  trajectory  on the  road. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `n` (`n >= 0` and `n <= 50`) to indicate the actual probability,"]
    #[doc = "- the values between 51 and 62 are reserved,"]
    #[doc = "- `63`: to indicate that the information is unavailable. "]
    #[doc = ""]
    #[doc = "\n\n@unit: 2 %"]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=63"))]
    pub struct TrajectoryInterceptionProbability(pub u8);

    #[doc = "This DE represents the time interval between two consecutive message transmissions."]
    #[doc = ""]
    #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref DeltaTimeMilliSecondPos instead."]
    #[doc = "\n\n@unit: 0,001 s"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=10000"))]
    pub struct TransmissionInterval(pub u16);

    #[doc = "This DE provides the turning direction. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `left`  for turning to te left."]
    #[doc = "- `right` for turing to the right."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum TurningDirection {
        left = 0,
        right = 1,
    }

    #[doc = "This DE represents the smallest circular turn (i.e. U-turn) that the vehicle is capable of making."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[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,"]
    #[doc = "- `254` to indicate that the turning radius is  greater than 253 x 0,4 metre = 101.2 metres,"]
    #[doc = "- `255` to indicate that the information is unavailable."]
    #[doc = ""]
    #[doc = "For vehicle with tracker, the turning radius applies to the vehicle only."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@unit 0,4 metre"]
    #[doc = "\n\n@revision: Description revised V2.1.1 (the meaning of 254 has changed slightly)"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=255"))]
    pub struct TurningRadius(pub u8);

    #[doc = "This DE represents indication of how a certain path or area will be used. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0  - ` noIndication `     - in case it will remain free to be used,"]
    #[doc = "- 1  - ` specialUse `       - in case it will be physically blocked by special use,"]
    #[doc = "- 2  - ` rescueOperation`   - in case it is intended to be used for rescue operations,"]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    #[non_exhaustive]
    pub enum UsageIndication {
        noIndication = 0,
        specialUse = 1,
        rescueOperation = 2,
    }

    #[doc = "This DE represents the Vehicle Descriptor Section (VDS). The values are assigned according to ISO 3779."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("6"))]
    pub struct VDS(pub Ia5String);

    #[doc = "This DE represents the duration of a traffic event validity. "]
    #[doc = ""]
    #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref DeltaTimeSecond instead."]
    #[doc = "\n\n@unit: 1 s"]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=86400"))]
    pub struct ValidityDuration(pub u32);

    #[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. "]
    #[doc = ""]
    #[doc = "\n\n@category: Basic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(choice)]
    pub enum VarLengthNumber {
        #[rasn(value("0..=127"), tag(context, 0))]
        content(u8),
        #[rasn(tag(context, 1))]
        extension(Ext1),
    }

    #[doc = "This DE represents the value of the sub cause codes of the @ref CauseCode `vehicleBreakdown`. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unavailable`         - in case further detailed information on cause of vehicle break down is unavailable,"]
    #[doc = "- 1 `lackOfFuel`          - in case vehicle break down is due to lack of fuel,"]
    #[doc = "- 2 `lackOfBatteryPower`  - in case vehicle break down is caused by lack of battery power,"]
    #[doc = "- 3 `engineProblem`       - in case vehicle break down is caused by an engine problem,"]
    #[doc = "- 4 `transmissionProblem` - in case vehicle break down is caused by transmission problem,"]
    #[doc = "- 5 `engineCoolingProblem`- in case vehicle break down is caused by an engine cooling problem,"]
    #[doc = "- 6 `brakingSystemProblem`- in case vehicle break down is caused by a braking system problem,"]
    #[doc = "- 7 `steeringProblem`     - in case vehicle break down is caused by a steering problem,"]
    #[doc = "- 8 `tyrePuncture`        - in case vehicle break down is caused by tyre puncture,"]
    #[doc = "- 9 `tyrePressureProblem` - in case low tyre pressure in detected,"]
    #[doc = "- 10 `vehicleOnFire`      - in case the vehicle is on fire."]
    #[doc = "- 11-255                  - are reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct VehicleBreakdownSubCauseCode(pub u8);

    #[doc = "This DE represents the height of the vehicle, measured from the ground to the highest point, excluding any antennas."]
    #[doc = "In case vehicles are equipped with adjustable ride heights, camper shells, and any other"]
    #[doc = "equipment which may result in varying height, the largest possible height shall be used."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[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,"]
    #[doc = "- `127` indicates that the vehicle width is greater than 6,3 metres,"]
    #[doc = "- `128` indicates that the information in unavailable."]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,05 metre "]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=128"))]
    pub struct VehicleHeight(pub u8);

    #[doc = "This DF provides information related to the identification of a vehicle."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field wMInumber: World Manufacturer Identifier (WMI) code."]
    #[doc = ""]
    #[doc = "- @field vDS: Vehicle Descriptor Section (VDS). "]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct VehicleIdentification {
        #[rasn(identifier = "wMInumber")]
        pub w_minumber: Option<WMInumber>,
        #[rasn(identifier = "vDS")]
        pub v_ds: Option<VDS>,
    }
    impl VehicleIdentification {
        pub fn new(w_minumber: Option<WMInumber>, v_ds: Option<VDS>) -> Self {
            Self { w_minumber, v_ds }
        }
    }

    #[doc = "This DF represents the length of vehicle and accuracy indication information."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field vehicleLengthValue: length of vehicle. "]
    #[doc = ""]
    #[doc = "- @field vehicleLengthConfidenceIndication: indication of the length value confidence."]
    #[doc = ""]
    #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref VehicleLengthV2 instead."]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct VehicleLength {
        #[rasn(identifier = "vehicleLengthValue")]
        pub vehicle_length_value: VehicleLengthValue,
        #[rasn(identifier = "vehicleLengthConfidenceIndication")]
        pub vehicle_length_confidence_indication: VehicleLengthConfidenceIndication,
    }
    impl VehicleLength {
        pub fn new(
            vehicle_length_value: VehicleLengthValue,
            vehicle_length_confidence_indication: VehicleLengthConfidenceIndication,
        ) -> Self {
            Self {
                vehicle_length_value,
                vehicle_length_confidence_indication,
            }
        }
    }

    #[doc = "This DE provides information about the presence of a trailer. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[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,"]
    #[doc = "- 1 `trailerPresentWithKnownLength`   - to indicate that a trailer has been detected as present and the length is  included in the vehicle length value,"]
    #[doc = "- 2 `trailerPresentWithUnknownLength` - to indicate that a trailer has been detected as present and the length is not included in the vehicle length value,"]
    #[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,"]
    #[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, "]
    #[doc = "                                       nor the detection of trailer presence/absence is possible."]
    #[doc = ""]
    #[doc = "\n\n@note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrailerPresenceInformation instead. "]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum VehicleLengthConfidenceIndication {
        noTrailerPresent = 0,
        trailerPresentWithKnownLength = 1,
        trailerPresentWithUnknownLength = 2,
        trailerPresenceIsUnknown = 3,
        unavailable = 4,
    }

    #[doc = "This DF represents the length of vehicle and accuracy indication information."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field vehicleLengthValue: length of vehicle. "]
    #[doc = ""]
    #[doc = "- @field trailerPresenceInformation: information about the trailer presence."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: created in V2.1.1 based on @ref VehicleLength but using @ref TrailerPresenceInformation."]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct VehicleLengthV2 {
        #[rasn(identifier = "vehicleLengthValue")]
        pub vehicle_length_value: VehicleLengthValue,
        #[rasn(identifier = "trailerPresenceInformation")]
        pub trailer_presence_information: TrailerPresenceInformation,
    }
    impl VehicleLengthV2 {
        pub fn new(
            vehicle_length_value: VehicleLengthValue,
            trailer_presence_information: TrailerPresenceInformation,
        ) -> Self {
            Self {
                vehicle_length_value,
                trailer_presence_information,
            }
        }
    }

    #[doc = "This DE represents the length of a vehicle."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[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,"]
    #[doc = "- `1 022` to indicate that the vehicle length is greater than 102.1 metres,"]
    #[doc = "- `1 023` to indicate that the information in unavailable."]
    #[doc = ""]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,1 metre"]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Description updated in V2.1.1 (the meaning of 1 022 has changed slightly)."]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=1023"))]
    pub struct VehicleLengthValue(pub u16);

    #[doc = "This DE represents the mass of an empty loaded vehicle."]
    #[doc = ""]
    #[doc = "The value shall be set to: "]
    #[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,"]
    #[doc = "- `1 023` indicates that the vehicle mass is greater than 102 200 000 g,"]
    #[doc = "- `1 024` indicates  the vehicle mass information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@note:\tThe empty load vehicle is defined in ISO 1176, clause 4.6."]
    #[doc = ""]
    #[doc = "\n\n@unit: 10^5 gramm"]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Description updated in V2.1.1 (the meaning of 1 023 has changed slightly)."]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=1024"))]
    pub struct VehicleMass(pub u16);

    #[doc = "This DE indicates the role played by a vehicle at a point in time."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `default`          - to indicate the default vehicle role as indicated by the vehicle type,"]
    #[doc = "- 1 `publicTransport`  - to indicate that the vehicle is used to operate public transport service,"]
    #[doc = "- 2 `specialTransport` - to indicate that the vehicle is used for special transport purpose, e.g. oversized trucks,"]
    #[doc = "- 3 `dangerousGoods`   - to indicate that the vehicle is used for dangerous goods transportation,"]
    #[doc = "- 4 `roadWork`         - to indicate that the vehicle is used to realize roadwork or road maintenance mission,"]
    #[doc = "- 5 `rescue`           - to indicate that the vehicle is used for rescue purpose in case of an accident, e.g. as a towing service,"]
    #[doc = "- 6 `emergency`        - to indicate that the vehicle is used for emergency mission, e.g. ambulance, fire brigade,"]
    #[doc = "- 7 `safetyCar`        - to indicate that the vehicle is used for public safety, e.g. patrol,"]
    #[doc = "- 8 `agriculture`      - to indicate that the vehicle is used for agriculture, e.g. farm tractor, "]
    #[doc = "- 9 `commercial`       - to indicate that the vehicle is used for transportation of commercial goods,"]
    #[doc = "- 10 `military`        - to indicate that the vehicle is used for military purpose, "]
    #[doc = "- 11 `roadOperator`    - to indicate that the vehicle is used in road operator missions,"]
    #[doc = "- 12 `taxi`            - to indicate that the vehicle is used to provide an authorized taxi service,"]
    #[doc = "- 13 `uvar`            - to indicate that the vehicle is authorized to enter a zone according to the applicable Urban Vehicle Access Restrictions."]
    #[doc = "- 14 `rfu1`            - is reserved for future usage."]
    #[doc = "- 15 `rfu2`            - is reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle Information"]
    #[doc = "\n\n@revision: Description updated in V2.1.1 (removed reference to CEN/TS 16157-3), value 13 assigned in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum VehicleRole {
        default = 0,
        publicTransport = 1,
        specialTransport = 2,
        dangerousGoods = 3,
        roadWork = 4,
        rescue = 5,
        emergency = 6,
        safetyCar = 7,
        agriculture = 8,
        commercial = 9,
        military = 10,
        roadOperator = 11,
        taxi = 12,
        uvar = 13,
        rfu1 = 14,
        rfu2 = 15,
    }

    #[doc = "This DE represents the width of a vehicle, excluding side mirrors and possible similar extensions."]
    #[doc = "The value shall be set to:"]
    #[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,"]
    #[doc = "- `61` indicates that the vehicle width is greater than 6,0 metres,"]
    #[doc = "- `62` indicates that the information in unavailable."]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,1 metre"]
    #[doc = "\n\n@category: Vehicle information "]
    #[doc = "\n\n@revision: Description updated in V2.1.1 (the meaning of 61 has changed slightly)."]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=62"))]
    pub struct VehicleWidth(pub u8);

    #[doc = "This DF represents a velocity vector with associated confidence value."]
    #[doc = ""]
    #[doc = "The following options are available:"]
    #[doc = ""]
    #[doc = "- @field polarVelocity: the representation of the velocity vector in a polar or cylindrical coordinate system. "]
    #[doc = ""]
    #[doc = "- @field cartesianVelocity: the representation of the velocity vector in a cartesian coordinate system."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(choice, automatic_tags)]
    pub enum Velocity3dWithConfidence {
        polarVelocity(VelocityPolarWithZ),
        cartesianVelocity(VelocityCartesian),
    }

    #[doc = "This DF represents a velocity vector in a cartesian coordinate system."]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field xVelocity: the x component of the velocity vector with the associated confidence value."]
    #[doc = ""]
    #[doc = "- @field yVelocity: the y component of the velocity vector with the associated confidence value."]
    #[doc = ""]
    #[doc = "- @field zVelocity: the optional z component of the velocity vector with the associated confidence value."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct VelocityCartesian {
        #[rasn(identifier = "xVelocity")]
        pub x_velocity: VelocityComponent,
        #[rasn(identifier = "yVelocity")]
        pub y_velocity: VelocityComponent,
        #[rasn(identifier = "zVelocity")]
        pub z_velocity: Option<VelocityComponent>,
    }
    impl VelocityCartesian {
        pub fn new(
            x_velocity: VelocityComponent,
            y_velocity: VelocityComponent,
            z_velocity: Option<VelocityComponent>,
        ) -> Self {
            Self {
                x_velocity,
                y_velocity,
                z_velocity,
            }
        }
    }

    #[doc = "This DF represents a component of the velocity vector and the associated confidence value."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field value: the value of the component."]
    #[doc = ""]
    #[doc = "- @field confidence: the confidence value of the value."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct VelocityComponent {
        pub value: VelocityComponentValue,
        pub confidence: SpeedConfidence,
    }
    impl VelocityComponent {
        pub fn new(value: VelocityComponentValue, confidence: SpeedConfidence) -> Self {
            Self { value, confidence }
        }
    }

    #[doc = "This DE represents the value of a velocity component in a defined coordinate system."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `-16 383` if the velocity is equal to or smaller than -163,83 m/s,"]
    #[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,"]
    #[doc = "- `16 382` for velocity values equal to or greater than 163,81 m/s,"]
    #[doc = "- `16 383` if the velocity information is not available."]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,01 m/s"]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-16383..=16383"))]
    pub struct VelocityComponentValue(pub i16);

    #[doc = "This DF represents a velocity vector in a polar or cylindrical coordinate system."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field velocityMagnitude: magnitude of the velocity vector on the reference plane, with the associated confidence value."]
    #[doc = ""]
    #[doc = "- @field velocityDirection: polar angle of the velocity vector on the reference plane, with the associated confidence value."]
    #[doc = ""]
    #[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."]
    #[doc = ""]
    #[doc = "\n\n@category: Kinematic information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct VelocityPolarWithZ {
        #[rasn(identifier = "velocityMagnitude")]
        pub velocity_magnitude: Speed,
        #[rasn(identifier = "velocityDirection")]
        pub velocity_direction: CartesianAngle,
        #[rasn(identifier = "zVelocity")]
        pub z_velocity: Option<VelocityComponent>,
    }
    impl VelocityPolarWithZ {
        pub fn new(
            velocity_magnitude: Speed,
            velocity_direction: CartesianAngle,
            z_velocity: Option<VelocityComponent>,
        ) -> Self {
            Self {
                velocity_magnitude,
                velocity_direction,
                z_velocity,
            }
        }
    }
    #[doc = " four and more octets length"]
    #[doc = "This DF indicates the vehicle acceleration at vertical direction and the associated confidence value."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field verticalAccelerationValue: vertical acceleration value at a point in time."]
    #[doc = ""]
    #[doc = "- @field verticalAccelerationConfidence: confidence value of the vertical acceleration value with a predefined confidence level."]
    #[doc = ""]
    #[doc = "\n\n@note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead."]
    #[doc = "\n\n@category Vehicle information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct VerticalAcceleration {
        #[rasn(identifier = "verticalAccelerationValue")]
        pub vertical_acceleration_value: VerticalAccelerationValue,
        #[rasn(identifier = "verticalAccelerationConfidence")]
        pub vertical_acceleration_confidence: AccelerationConfidence,
    }
    impl VerticalAcceleration {
        pub fn new(
            vertical_acceleration_value: VerticalAccelerationValue,
            vertical_acceleration_confidence: AccelerationConfidence,
        ) -> Self {
            Self {
                vertical_acceleration_value,
                vertical_acceleration_confidence,
            }
        }
    }

    #[doc = "This DE represents the vehicle acceleration at vertical direction in the centre of the mass of the empty vehicle."]
    #[doc = "The value shall be provided in the vehicle coordinate system as defined in ISO 8855, clause 2.11."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `-160` for acceleration values equal to or less than -16 m/s^2,"]
    #[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,"]
    #[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,"]
    #[doc = "- `160` for acceleration values greater than 15,9 m/s^2,"]
    #[doc = "- `161` when the data is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@note: The empty load vehicle is defined in ISO 1176, clause 4.6."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@unit: 0,1 m/s^2"]
    #[doc = "\n\n@revision: Desciption updated in V2.1.1 (the meaning of 160 has changed slightly)."]
    #[doc = " "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-160..=161"))]
    pub struct VerticalAccelerationValue(pub i16);

    #[doc = "This DF provides information about a VRU cluster."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field clusterId: optional identifier of a VRU cluster."]
    #[doc = ""]
    #[doc = "- @field clusterBoundingBoxShape: optionally indicates the shape of the cluster bounding box, per default inside an East-North-Up coordinate system "]
    #[doc = "centered around a reference point defined outside of the context of this DF."]
    #[doc = ""]
    #[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) ."]
    #[doc = ""]
    #[doc = "- @field clusterProfiles: optionally identifies all the VRU profile types that are estimated to be within the cluster."]
    #[doc = "if this component is absent it means that the information is unavailable. "]
    #[doc = ""]
    #[doc = "\n\n@category: VRU information"]
    #[doc = "\n\n@revision: Created in V2.1.1, description revised in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct VruClusterInformation {
        #[rasn(identifier = "clusterId")]
        pub cluster_id: Option<Identifier1B>,
        #[rasn(value("0.."), identifier = "clusterBoundingBoxShape")]
        pub cluster_bounding_box_shape: Option<Shape>,
        #[rasn(identifier = "clusterCardinalitySize")]
        pub cluster_cardinality_size: CardinalNumber1B,
        #[rasn(identifier = "clusterProfiles")]
        pub cluster_profiles: Option<VruClusterProfiles>,
    }
    impl VruClusterInformation {
        pub fn new(
            cluster_id: Option<Identifier1B>,
            cluster_bounding_box_shape: Option<Shape>,
            cluster_cardinality_size: CardinalNumber1B,
            cluster_profiles: Option<VruClusterProfiles>,
        ) -> Self {
            Self {
                cluster_id,
                cluster_bounding_box_shape,
                cluster_cardinality_size,
                cluster_profiles,
            }
        }
    }

    #[doc = "This DE Identifies all the VRU profile types within a cluster."]
    #[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)."]
    #[doc = ""]
    #[doc = "The corresponding bit shall be set to 1 under the following conditions:"]
    #[doc = "- 0 `pedestrian`  - indicates that the VRU cluster contains at least one pedestrian VRU,"]
    #[doc = "- 1 `bicycle`     - indicates that the VRU cluster contains at least one bicycle VRU member,"]
    #[doc = "- 2 `motorcyclist`- indicates that the VRU cluster contains at least one motorcycle VRU member,"]
    #[doc = "- 3 `animal`      - indicates that the VRU cluster contains at least one animal VRU member."]
    #[doc = ""]
    #[doc = "Otherwise, the corresponding bit shall be set to 0."]
    #[doc = ""]
    #[doc = "\n\n@category: VRU information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate)]
    pub struct VruClusterProfiles(pub FixedBitString<4usize>);

    #[doc = "This DE represents the possible usage conditions of the VRU device."]
    #[doc = "- The value shall be set to:"]
    #[doc = "- 0 `unavailable`      - to indicate that the usage conditions are unavailable,"]
    #[doc = "- 1 `other`            - to indicate that the VRU device is in a state not defined below,"]
    #[doc = "- 2 `idle`             - to indicate that the human is currently not interacting with the device,"]
    #[doc = "- 3 `listeningToAudio` - to indicate that any audio source other than calling is in use,"]
    #[doc = "- 4 `typing`           - to indicate that the human is texting or performaing any other manual input activity,"]
    #[doc = "- 5 `calling`          - to indicate that the VRU device is currently receiving a call,"]
    #[doc = "- 6 `playingGames`     - to indicate that the human is playing games,"]
    #[doc = "- 7 `reading`          - to indicate that the human is reading on the VRU device,"]
    #[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."]
    #[doc = "- value 9 to 15        - are reserved for future usage. "]
    #[doc = ""]
    #[doc = "\n\n@category: VRU information"]
    #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1 and range changed from 0..255 to 0..15"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=15"))]
    pub struct VruDeviceUsage(pub u8);

    #[doc = "This DE represents the possible VRU environment conditions."]
    #[doc = ""]
    #[doc = "- The value shall be set to:"]
    #[doc = "- 0 `unavailable`            - to indicate that the information on the type of environment is unavailable,"]
    #[doc = "- 1 `intersectionCrossing`   - to indicate that the VRU is on an intersection or crossing,"]
    #[doc = "- 2 `zebraCrossing`          - to indicate that the VRU is on a  zebra crossing (crosswalk),"]
    #[doc = "- 3 `sidewalk`               - to indicate that the VRU is on a sidewalk,"]
    #[doc = "- 4 `onVehicleRoad`          - to indicate that the VRU is on a traffic lane,"]
    #[doc = "- 5 `protectedGeographicArea`- to indicate that the VRU is in a protected area."]
    #[doc = "- value 6 to 15              - are reserved for future usage. "]
    #[doc = ""]
    #[doc = "\n\n@category: VRU information"]
    #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1 and range changed from 0..255 to 0..15"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=15"))]
    pub struct VruEnvironment(pub u8);

    #[doc = "This DF represents the status of the exterior light switches of a VRU."]
    #[doc = "This DF is an extension of the vehicular DE @ref ExteriorLights."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field vehicular:  represents the status of the exterior light switches of a road vehicle."]
    #[doc = ""]
    #[doc = "- @field vruSpecific: represents the status of the exterior light switches of a VRU."]
    #[doc = ""]
    #[doc = "\n\n@category: VRU information"]
    #[doc = "\n\n@revision: created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    #[non_exhaustive]
    pub struct VruExteriorLights {
        pub vehicular: ExteriorLights,
        #[rasn(identifier = "vruSpecific")]
        pub vru_specific: VruSpecificExteriorLights,
    }
    impl VruExteriorLights {
        pub fn new(vehicular: ExteriorLights, vru_specific: VruSpecificExteriorLights) -> Self {
            Self {
                vehicular,
                vru_specific,
            }
        }
    }

    #[doc = " This DE indicates the status of the possible human control over a VRU vehicle."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unavailable`                 - to indicate that the information is unavailable,"]
    #[doc = "- 1 `braking`                     - to indicate that the VRU is braking,"]
    #[doc = "- 2 `hardBraking`                 - to indicate that the VRU is braking hard,"]
    #[doc = "- 3 `stopPedaling`                - to indicate that the VRU stopped pedaling,"]
    #[doc = "- 4 `brakingAndStopPedaling`      - to indicate that the VRU stopped pedaling an is braking,"]
    #[doc = "- 5 `hardBrakingAndStopPedaling`  - to indicate that the VRU stopped pedaling an is braking hard,"]
    #[doc = "- 6 `noReaction`                  - to indicate that the VRU is not changing its behavior."]
    #[doc = "- 7 to 15                         - are reserved for future usage. "]
    #[doc = ""]
    #[doc = "\n\n@category: VRU information"]
    #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1 and range changed from 0..255 to 0..15"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=15"))]
    pub struct VruMovementControl(pub u8);

    #[doc = "This DF indicates the profile of a VRU including sub-profile information"]
    #[doc = "It identifies four options corresponding to the four types of VRU profiles specified in ETSI TS 103 300-2:"]
    #[doc = ""]
    #[doc = "- @field pedestrian: VRU Profile 1 - Pedestrian."]
    #[doc = ""]
    #[doc = "- @field bicyclistAndLightVruVehicle: VRU Profile  2 - Bicyclist."]
    #[doc = ""]
    #[doc = "- @field motorcyclist: VRU Profile 3  - Motorcyclist."]
    #[doc = ""]
    #[doc = "- @field animal: VRU Profile  4 -  Animal."]
    #[doc = ""]
    #[doc = "\n\n@category: VRU information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(choice, automatic_tags)]
    #[non_exhaustive]
    pub enum VruProfileAndSubprofile {
        pedestrian(VruSubProfilePedestrian),
        bicyclistAndLightVruVehicle(VruSubProfileBicyclist),
        motorcyclist(VruSubProfileMotorcyclist),
        animal(VruSubProfileAnimal),
    }

    #[doc = "This DE indicates the approximate size of a VRU including the VRU vehicle used."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unavailable`    - to indicate that there is no matched size class or due to privacy reasons in profile 1, "]
    #[doc = "- 1 `low`            - to indicate that the VRU size class is low depending on the VRU profile,"]
    #[doc = "- 2 `medium`         - to indicate that the VRU size class is medium depending on the VRU profile,"]
    #[doc = "- 3 `high`           - to indicate that the VRU size class is high depending on the VRU profile."]
    #[doc = "- 4 to 15            - are reserved for future usage. "]
    #[doc = ""]
    #[doc = "\n\n@category: VRU information"]
    #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=15"))]
    pub struct VruSizeClass(pub u8);

    #[doc = "This DE describes the status of the exterior light switches of a VRU."]
    #[doc = ""]
    #[doc = "The value of each bit indicates the state of the switch, which commands the corresponding light. "]
    #[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 "]
    #[doc = "or automatically by a vehicle or VRU system: "]
    #[doc = "- 0 `unavailable`     - indicates no information available, "]
    #[doc = "- 1 `backFlashLight ` - indicates the status of the back flash light,"]
    #[doc = "- 2 `helmetLight`     - indicates the status of the helmet light,"]
    #[doc = "- 3 `armLight`        - indicates the status of the arm light,"]
    #[doc = "- 4 `legLight`        - indicates the status of the leg light,"]
    #[doc = "- 5 `wheelLight`      - indicates the status of the wheel light. "]
    #[doc = "- Bits 6 to 8         - are reserved for future use. "]
    #[doc = "The bit values do not indicate if the corresponding lamps are alight or not."]
    #[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."]
    #[doc = ""]
    #[doc = "\n\n@category: VRU information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate)]
    pub struct VruSpecificExteriorLights(pub FixedBitString<8usize>);

    #[doc = "This DE indicates the profile of an animal"]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unavailable`     - to indicate that the information  is unavailable,"]
    #[doc = "- 1 `wild-animal`     - to indicate a animal living in the wildness, "]
    #[doc = "- 2 `farm-animal`     - to indicate an animal beloning to a farm,"]
    #[doc = "- 3 `service-animal`  - to indicate an animal that supports a human being."]
    #[doc = "- 4 to 15             - are reserved for future usage. "]
    #[doc = ""]
    #[doc = "\n\n@category: VRU information"]
    #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=15"))]
    pub struct VruSubProfileAnimal(pub u8);

    #[doc = "This DE indicates the profile of a VRU and its light VRU vehicle / mounted animal. "]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unavailable`           - to indicate that the information  is unavailable,"]
    #[doc = "- 1 `bicyclist `            - to indicate a cycle and bicyclist to which no more-specific profile applies, "]
    #[doc = "- 2 `wheelchair-user`       - to indicate a wheelchair and its user,"]
    #[doc = "- 3 `horse-and-rider`       - to indicate a horse and rider,"]
    #[doc = "- 4 `rollerskater`          - to indicate a roller-skater and skater,"]
    #[doc = "- 5 `e-scooter`             - to indicate an e-scooter and rider,"]
    #[doc = "- 6 `personal-transporter`  - to indicate a personal-transporter and rider,"]
    #[doc = "- 7 `pedelec`               - to indicate a pedelec and rider to which no more-specific profile applies,"]
    #[doc = "- 8 `speed-pedelec`         - to indicate a speed-pedelec and rider."]
    #[doc = "- 9 `roadbike`              - to indicate a road bicycle (or road pedelec) and rider,"]
    #[doc = "- 10 `childrensbike`        - to indicate a children�s bicycle (or children�s pedelec) and rider,"]
    #[doc = "- 11 to 15                  - are reserved for future usage. "]
    #[doc = ""]
    #[doc = "\n\n@category: VRU information"]
    #[doc = "\n\n@revision: Created in V2.1.1, values 9 and 10 assigned in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=15"))]
    pub struct VruSubProfileBicyclist(pub u8);

    #[doc = "This DE indicates the profile of a motorcyclist and corresponding vehicle."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unavailable `                  - to indicate that the information  is unavailable,"]
    #[doc = "- 1 `moped`                         - to indicate a moped and rider,"]
    #[doc = "- 2 `motorcycle`                    - to indicate a motorcycle and rider,"]
    #[doc = "- 3 `motorcycle-and-sidecar-right`  - to indicate a motorcycle with sidecar on the right and rider,"]
    #[doc = "- 4 `motorcycle-and-sidecar-left`   - to indicate  a motorcycle with sidecar on the left and rider."]
    #[doc = "- 5 to 15                           - are reserved for future usage. "]
    #[doc = ""]
    #[doc = "\n\n@category: VRU information"]
    #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=15"))]
    pub struct VruSubProfileMotorcyclist(pub u8);

    #[doc = "This DE indicates the profile of a pedestrian."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unavailable`             - to indicate that the information on is unavailable,"]
    #[doc = "- 1 `ordinary-pedestrian`     - to indicate a pedestrian to which no more-specific profile applies,"]
    #[doc = "- 2 `road-worker`             - to indicate a pedestrian with the role of a road worker,"]
    #[doc = "- 3 `first-responder`         - to indicate a pedestrian with the role of a first responder."]
    #[doc = "- value 4 to 15               - are reserved for future usage. "]
    #[doc = ""]
    #[doc = "\n\n@category: VRU information"]
    #[doc = "\n\n@revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=15"))]
    pub struct VruSubProfilePedestrian(pub u8);

    #[doc = "This DE represents the World Manufacturer Identifier (WMI). The values are assigned according to ISO 3779."]
    #[doc = ""]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, size("1..=3"))]
    pub struct WMInumber(pub Ia5String);

    #[doc = "This DF represents an angular component along with a confidence value in the WGS84 coordinate system."]
    #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field value: the angle value, which can be estimated as the mean of the current distribution."]
    #[doc = ""]
    #[doc = "- @field confidence: the confidence value associated to the angle value."]
    #[doc = ""]
    #[doc = "\n\n@category: GeoReference information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct Wgs84Angle {
        pub value: Wgs84AngleValue,
        pub confidence: Wgs84AngleConfidence,
    }
    impl Wgs84Angle {
        pub fn new(value: Wgs84AngleValue, confidence: Wgs84AngleConfidence) -> Self {
            Self { value, confidence }
        }
    }

    #[doc = "This DE indicates the angle confidence value which represents the estimated accuracy of an angle value with a default confidence level of 95 %."]
    #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[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,"]
    #[doc = "- `126` if the confidence value is out of range, i.e. greater than 12,5 degrees,"]
    #[doc = "- `127` if the confidence value is not available."]
    #[doc = ""]
    #[doc = ""]
    #[doc = "\n\n@unit 0,1 degrees"]
    #[doc = "\n\n@category: GeoReference Information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=127"))]
    pub struct Wgs84AngleConfidence(pub u8);

    #[doc = "This DE represents an angle value in degrees described in the WGS84 reference system with respect to the WGS84 north."]
    #[doc = "The specific WGS84 coordinate system is specified by the corresponding standards applying this DE."]
    #[doc = "When the information is not available, the DE shall be set to 3 601. The value 3600 shall not be used."]
    #[doc = ""]
    #[doc = "\n\n@unit 0,1 degrees"]
    #[doc = "\n\n@category: GeoReference Information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=3601"))]
    pub struct Wgs84AngleValue(pub u16);

    #[doc = "This DE indicates the perpendicular distance between front and rear axle of the wheel base of vehicle."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[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,"]
    #[doc = "- `126` indicates that the wheel base distance is equal to or greater than 12,5 metres,"]
    #[doc = "- `127` indicates that the information is unavailable."]
    #[doc = ""]
    #[doc = "\n\n@unit 0,1 metre"]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Created in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("1..=127"))]
    pub struct WheelBaseVehicle(pub u8);

    #[doc = "This DE represents the sub cause codes of the @ref CauseCode `wrongWayDriving` ."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- 0 `unavailable`    - in case further detailed information on wrong way driving event is unavailable,"]
    #[doc = "- 1 `wrongLane`      - in case vehicle is driving on a lane for which it has no authorization to use,"]
    #[doc = "- 2 `wrongDirection` - in case vehicle is driving in a direction that it is not allowed,"]
    #[doc = "- 3-255              - reserved for future usage."]
    #[doc = ""]
    #[doc = "\n\n@category: Traffic information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("0..=255"))]
    pub struct WrongWayDrivingSubCauseCode(pub u8);

    #[doc = "This DF represents a yaw rate of vehicle at a point in time."]
    #[doc = ""]
    #[doc = "It shall include the following components: "]
    #[doc = ""]
    #[doc = "- @field yawRateValue: yaw rate value at a point in time."]
    #[doc = ""]
    #[doc = "- @field yawRateConfidence: confidence value associated to the yaw rate value."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle Information"]
    #[doc = "\n\n@revision: V1.3.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(automatic_tags)]
    pub struct YawRate {
        #[rasn(identifier = "yawRateValue")]
        pub yaw_rate_value: YawRateValue,
        #[rasn(identifier = "yawRateConfidence")]
        pub yaw_rate_confidence: YawRateConfidence,
    }
    impl YawRate {
        pub fn new(yaw_rate_value: YawRateValue, yaw_rate_confidence: YawRateConfidence) -> Self {
            Self {
                yaw_rate_value,
                yaw_rate_confidence,
            }
        }
    }

    #[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 %."]
    #[doc = "If required, the confidence level can be defined by the corresponding standards applying this DE."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `0` if the confidence value is equal to or less than 0,01 degree/second,"]
    #[doc = "- `1` if the confidence value is equal to or less than 0,05 degrees/second or greater than 0,01 degree/second,"]
    #[doc = "- `2` if the confidence value is equal to or less than 0,1 degree/second or greater than 0,05 degree/second,"]
    #[doc = "- `3` if the confidence value is equal to or less than 1 degree/second or greater than 0,1 degree/second,"]
    #[doc = "- `4` if the confidence value is equal to or less than 5 degrees/second or greater than 1 degrees/second,"]
    #[doc = "- `5` if the confidence value is equal to or less than 10 degrees/second or greater than 5 degrees/second,"]
    #[doc = "- `6` if the confidence value is equal to or less than 100 degrees/second or greater than 10 degrees/second,"]
    #[doc = "- `7` if the confidence value is out of range, i.e. greater than 100 degrees/second,"]
    #[doc = "- `8` if the confidence value is unavailable."]
    #[doc = ""]
    #[doc = "NOTE: The fact that a yaw rate value is received with confidence value set to `unavailable(8)` can be caused by"]
    #[doc = "several reasons, such as:"]
    #[doc = "- the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor,"]
    #[doc = "- the sensor cannot calculate the accuracy due to lack of variables, or"]
    #[doc = "- there has been a vehicle bus (e.g. CAN bus) error."]
    #[doc = "In all 3 cases above, the yaw rate value may be valid and used by the application."]
    #[doc = ""]
    #[doc = "If a yaw rate value is received and its confidence value is set to `outOfRange(7)`, it means that the "]
    #[doc = "yaw rate value is not valid and therefore cannot be trusted. Such value is not useful the application."]
    #[doc = ""]
    #[doc = "\n\n@category: Vehicle information"]
    #[doc = "\n\n@revision: Description revised in V2.1.1"]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash, Copy)]
    #[rasn(enumerated)]
    pub enum YawRateConfidence {
        #[rasn(identifier = "degSec-000-01")]
        degSec_000_01 = 0,
        #[rasn(identifier = "degSec-000-05")]
        degSec_000_05 = 1,
        #[rasn(identifier = "degSec-000-10")]
        degSec_000_10 = 2,
        #[rasn(identifier = "degSec-001-00")]
        degSec_001_00 = 3,
        #[rasn(identifier = "degSec-005-00")]
        degSec_005_00 = 4,
        #[rasn(identifier = "degSec-010-00")]
        degSec_010_00 = 5,
        #[rasn(identifier = "degSec-100-00")]
        degSec_100_00 = 6,
        outOfRange = 7,
        unavailable = 8,
    }

    #[doc = "This DE represents the vehicle rotation around z-axis of the coordinate system centred on the centre of mass of the empty-loaded"]
    #[doc = "vehicle. The leading sign denotes the direction of rotation."]
    #[doc = ""]
    #[doc = "The value shall be provided in the vehicle coordinate system as defined in ISO 8855, clause 2.11."]
    #[doc = ""]
    #[doc = "The value shall be set to:"]
    #[doc = "- `-32 766` to indicate that the yaw rate is equal to or greater than 327,66 degrees/second to the right,"]
    #[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, "]
    #[doc = "      and greater than (n-1) x 0,01 degrees/s,"]
    #[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, "]
    #[doc = "      and greater than (n-1) x 0,01 degrees/s,"]
    #[doc = "- `32 766` to indicate that the yaw rate is greater than 327.65 degrees/second to the left,"]
    #[doc = "- `32 767` to indicate that the information is not available."]
    #[doc = ""]
    #[doc = "The yaw rate value shall be a raw data value, i.e. not filtered, smoothed or otherwise modified."]
    #[doc = "The reading instant should be the same as for the vehicle acceleration."]
    #[doc = ""]
    #[doc = "\n\n@note: The empty load vehicle is defined in ISO 1176, clause 4.6."]
    #[doc = ""]
    #[doc = "\n\n@unit: 0,01 degree per second. "]
    #[doc = "\n\n@category: Vehicle Information"]
    #[doc = "\n\n@revision: Desription revised in V2.1.1 (the meaning of 32766 has changed slightly). "]
    #[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
    #[rasn(delegate, value("-32766..=32767"))]
    pub struct YawRateValue(pub i16);
}