Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ble_types.h « auto « core « ble « STM32_WPAN « ST « Middlewares - github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1527066562bd422c916084fe1a5e77243cff0b30 (plain)
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
/*****************************************************************************
 * @file    ble_types.h
 * @author  MCD
 * @brief   STM32WB BLE command/event types
 *          Auto-generated file: do not edit!
 *****************************************************************************
 * @attention
 *
 * Copyright (c) 2018-2021 STMicroelectronics.
 * All rights reserved.
 *
 * This software is licensed under terms that can be found in the LICENSE file
 * in the root directory of this software component.
 * If no LICENSE file comes with this software, it is provided AS-IS.
 *
 *****************************************************************************
 */

#ifndef BLE_TYPES_H__
#define BLE_TYPES_H__


#include <stdint.h>
#include "compiler.h"
#include "ble_const.h"

/* Type used for function return value */
typedef uint8_t tBleStatus;

/* Definition of Host_Nb_Of_Completed_Pkt_Pair_t */
typedef PACKED(struct)
{
  /**
   * Connection_Handle[i]
   * Values:
   * - 0x0000 ... 0x0EFF
   */
  uint16_t Connection_Handle;
  /**
   * The number of HCI Data Packets [i] that have been completed for the
   * associated Connection_Handle since the previous time the event was
   * returned.
   * Values:
   * - 0x0000 ... 0xFFFF
   */
  uint16_t Host_Num_Of_Completed_Packets;
} Host_Nb_Of_Completed_Pkt_Pair_t;

/* Definition of Adv_Set_t */
typedef PACKED(struct)
{
  /**
   * Used to identify an advertising set.
   * Values:
   * - 0x00 ... 0xEF
   */
  uint8_t Advertising_Handle;
  /**
   * Duration of advertising set.
   * Time = N * 10 ms.
   * Values:
   * - 0x0000 (0 ms) : No advertising duration.
   * - 0x0001 (10 ms)  ... 0xFFFF (655350 ms) : Advertising duration
   */
  uint16_t Duration;
  /**
   * Maximum number of advertising events.
   * Values:
   * - 0x00: No maximum number of advertising events
   * - 0x01 ... 0xFF: Maximum number of extended advertising events the
   *   Controller shall attempt to send prior to terminating the extended
   *   advertising
   */
  uint8_t Max_Extended_Advertising_Events;
} Adv_Set_t;

/* Definition of Whitelist_Entry_t */
typedef PACKED(struct)
{
  /**
   * Address type.
   * Values:
   * - 0x00: Public Device Address
   * - 0x01: Random Device Address
   */
  uint8_t Peer_Address_Type;
  /**
   * Public Device Address or Random Device Address.
   */
  uint8_t Peer_Address[6];
} Whitelist_Entry_t;

/* Definition of Bonded_Device_Entry_t */
typedef PACKED(struct)
{
  /**
   * Address type.
   * Values:
   * - 0x00: Public Device Address
   * - 0x01: Random Device Address
   */
  uint8_t Address_Type;
  /**
   * Public Device Address or Random Device Address.
   */
  uint8_t Address[6];
} Bonded_Device_Entry_t;

/* Definition of Whitelist_Identity_Entry_t */
typedef PACKED(struct)
{
  /**
   * Identity address type.
   * Values:
   * - 0x00: Public Identity Address
   * - 0x01: Random (static) Identity Address
   */
  uint8_t Peer_Identity_Address_Type;
  /**
   * Public or Random (static) Identity address of the peer device
   */
  uint8_t Peer_Identity_Address[6];
} Whitelist_Identity_Entry_t;

/* Definition of List_Entry_t */
typedef PACKED(struct)
{
  /**
   * Address type.
   * Values:
   * - 0x00: Public Device Address
   * - 0x01: Random Device Address
   */
  uint8_t Address_Type;
  /**
   * Public Device Address or Random Device Address.
   */
  uint8_t Address[6];
} List_Entry_t;

/* Definition of Service_UUID_t */
typedef PACKED(union)
{
  /**
   * 16-bit UUID
   */
  uint16_t Service_UUID_16;
  /**
   * 128-bit UUID
   */
  uint8_t Service_UUID_128[16];
} Service_UUID_t;

/* Definition of Include_UUID_t */
typedef PACKED(union)
{
  /**
   * 16-bit UUID
   */
  uint16_t Include_UUID_16;
  /**
   * 128-bit UUID
   */
  uint8_t Include_UUID_128[16];
} Include_UUID_t;

/* Definition of Char_UUID_t */
typedef PACKED(union)
{
  /**
   * 16-bit UUID
   */
  uint16_t Char_UUID_16;
  /**
   * 128-bit UUID
   */
  uint8_t Char_UUID_128[16];
} Char_UUID_t;

/* Definition of Char_Desc_Uuid_t */
typedef PACKED(union)
{
  /**
   * 16-bit UUID
   */
  uint16_t Char_UUID_16;
  /**
   * 128-bit UUID
   */
  uint8_t Char_UUID_128[16];
} Char_Desc_Uuid_t;

/* Definition of UUID_t */
typedef PACKED(union)
{
  /**
   * 16-bit UUID
   */
  uint16_t UUID_16;
  /**
   * 128-bit UUID
   */
  uint8_t UUID_128[16];
} UUID_t;

/* Definition of Handle_Entry_t */
typedef PACKED(struct)
{
  /**
   * The handles for which the attribute value has to be read
   */
  uint16_t Handle;
} Handle_Entry_t;

/* Definition of Handle_Packets_Pair_Entry_t */
typedef PACKED(struct)
{
  /**
   * Connection handle
   */
  uint16_t Connection_Handle;
  /**
   * The number of HCI Data Packets that have been completed (transmitted or
   * flushed) for the associated Connection_Handle since the previous time the
   * event was returned.
   */
  uint16_t HC_Num_Of_Completed_Packets;
} Handle_Packets_Pair_Entry_t;

/* Definition of Advertising_Report_t */
typedef PACKED(struct)
{
  /**
   * Type of advertising report event:
   * ADV_IND: Connectable undirected advertising',
   * ADV_DIRECT_IND: Connectable directed advertising,
   * ADV_SCAN_IND: Scannable undirected advertising,
   * ADV_NONCONN_IND: Non connectable undirected advertising,
   * SCAN_RSP: Scan response.
   * Values:
   * - 0x00: ADV_IND
   * - 0x01: ADV_DIRECT_IND
   * - 0x02: ADV_SCAN_IND
   * - 0x03: ADV_NONCONN_IND
   * - 0x04: SCAN_RSP
   */
  uint8_t Event_Type;
  /**
   * Address type
   * 0x00 Public Device Address
   * 0x01 Random Device Address
   * 0x02 Public Identity Address (Corresponds to Resolved Private Address)
   * 0x03 Random (Static) Identity Address (Corresponds to Resolved Private
   * Address)
   * Values:
   * - 0x00: Public Device Address
   * - 0x01: Random Device Address
   * - 0x02: Public Identity Address
   * - 0x03: Random (Static) Identity Address
   */
  uint8_t Address_Type;
  /**
   * Public Device Address or Random Device Address of the device to be
   * connected.
   */
  uint8_t Address[6];
  /**
   * Length of the Data field for each device which responded.
   * Values:
   * - 0 ... 31
   */
  uint8_t Length_Data;
  /**
   * Octets of advertising or scan response data formatted as defined in
   * Bluetooth spec. v.5.2 [Vol 3, Part C, 11].
   */
  const uint8_t* Data;
  /**
   * RSSI (signed integer).
   * Units: dBm.
   * Values:
   * - 127: RSSI not available
   * - -127 ... 20
   */
  uint8_t RSSI;
} Advertising_Report_t;

/* Definition of Direct_Advertising_Report_t */
typedef PACKED(struct)
{
  /**
   * Advertising type
   * Values:
   * - 0x01: Connectable directed advertising (ADV_DIRECT_IND)
   */
  uint8_t Event_Type;
  /**
   * Address type
   * 0x00 Public Device Address
   * 0x01 Random Device Address
   * 0x02 Public Identity Address (Corresponds to Resolved Private Address)
   * 0x03 Random (Static) Identity Address (Corresponds to Resolved Private
   * Address)
   * Values:
   * - 0x00: Public Device Address
   * - 0x01: Random Device Address
   * - 0x02: Public Identity Address
   * - 0x03: Random (Static) Identity Address
   */
  uint8_t Address_Type;
  /**
   * Public Device Address, Random Device Address, Public Identity Address or
   * Random (static) Identity Address of the advertising device.
   */
  uint8_t Address[6];
  /**
   * 0x01 Random Device Address
   * Values:
   * - 0x01: Random Device Address
   */
  uint8_t Direct_Address_Type;
  /**
   * Random Device Address
   */
  uint8_t Direct_Address[6];
  /**
   * RSSI (signed integer).
   * Units: dBm.
   * Values:
   * - 127: RSSI not available
   * - -127 ... 20
   */
  uint8_t RSSI;
} Direct_Advertising_Report_t;

/* Definition of Attribute_Group_Handle_Pair_t */
typedef PACKED(struct)
{
  /**
   * Found Attribute handle
   */
  uint16_t Found_Attribute_Handle;
  /**
   * Group End handle
   */
  uint16_t Group_End_Handle;
} Attribute_Group_Handle_Pair_t;

/* Definition of Handle_Item_t */
typedef PACKED(struct)
{
  uint16_t Handle;
} Handle_Item_t;

/* Internal types used by process functions */

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Reason;
} hci_disconnect_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_disconnect_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} hci_read_remote_version_information_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_read_remote_version_information_rp0;

typedef PACKED(struct)
{
  uint8_t Event_Mask[8];
} hci_set_event_mask_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_set_event_mask_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_reset_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Type;
} hci_read_transmit_power_level_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Connection_Handle;
  uint8_t Transmit_Power_Level;
} hci_read_transmit_power_level_rp0;

typedef PACKED(struct)
{
  uint8_t Flow_Control_Enable;
} hci_set_controller_to_host_flow_control_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_set_controller_to_host_flow_control_rp0;

typedef PACKED(struct)
{
  uint16_t Host_ACL_Data_Packet_Length;
  uint8_t Host_Synchronous_Data_Packet_Length;
  uint16_t Host_Total_Num_ACL_Data_Packets;
  uint16_t Host_Total_Num_Synchronous_Data_Packets;
} hci_host_buffer_size_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_host_buffer_size_rp0;

typedef PACKED(struct)
{
  uint8_t Number_Of_Handles;
  Host_Nb_Of_Completed_Pkt_Pair_t Host_Nb_Of_Completed_Pkt_Pair[(BLE_CMD_MAX_PARAM_LEN - 1)/sizeof(Host_Nb_Of_Completed_Pkt_Pair_t)];
} hci_host_number_of_completed_packets_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_host_number_of_completed_packets_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t HCI_Version;
  uint16_t HCI_Revision;
  uint8_t LMP_PAL_Version;
  uint16_t Manufacturer_Name;
  uint16_t LMP_PAL_Subversion;
} hci_read_local_version_information_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Supported_Commands[64];
} hci_read_local_supported_commands_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t LMP_Features[8];
} hci_read_local_supported_features_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t BD_ADDR[6];
} hci_read_bd_addr_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} hci_read_rssi_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Connection_Handle;
  uint8_t RSSI;
} hci_read_rssi_rp0;

typedef PACKED(struct)
{
  uint8_t LE_Event_Mask[8];
} hci_le_set_event_mask_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_event_mask_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t HC_LE_ACL_Data_Packet_Length;
  uint8_t HC_Total_Num_LE_ACL_Data_Packets;
} hci_le_read_buffer_size_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t LE_Features[8];
} hci_le_read_local_supported_features_rp0;

typedef PACKED(struct)
{
  uint8_t Random_Address[6];
} hci_le_set_random_address_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_random_address_rp0;

typedef PACKED(struct)
{
  uint16_t Advertising_Interval_Min;
  uint16_t Advertising_Interval_Max;
  uint8_t Advertising_Type;
  uint8_t Own_Address_Type;
  uint8_t Peer_Address_Type;
  uint8_t Peer_Address[6];
  uint8_t Advertising_Channel_Map;
  uint8_t Advertising_Filter_Policy;
} hci_le_set_advertising_parameters_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_advertising_parameters_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Transmit_Power_Level;
} hci_le_read_advertising_physical_channel_tx_power_rp0;

typedef PACKED(struct)
{
  uint8_t Advertising_Data_Length;
  uint8_t Advertising_Data[31];
} hci_le_set_advertising_data_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_advertising_data_rp0;

typedef PACKED(struct)
{
  uint8_t Scan_Response_Data_Length;
  uint8_t Scan_Response_Data[31];
} hci_le_set_scan_response_data_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_scan_response_data_rp0;

typedef PACKED(struct)
{
  uint8_t Advertising_Enable;
} hci_le_set_advertising_enable_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_advertising_enable_rp0;

typedef PACKED(struct)
{
  uint8_t LE_Scan_Type;
  uint16_t LE_Scan_Interval;
  uint16_t LE_Scan_Window;
  uint8_t Own_Address_Type;
  uint8_t Scanning_Filter_Policy;
} hci_le_set_scan_parameters_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_scan_parameters_rp0;

typedef PACKED(struct)
{
  uint8_t LE_Scan_Enable;
  uint8_t Filter_Duplicates;
} hci_le_set_scan_enable_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_scan_enable_rp0;

typedef PACKED(struct)
{
  uint16_t LE_Scan_Interval;
  uint16_t LE_Scan_Window;
  uint8_t Initiator_Filter_Policy;
  uint8_t Peer_Address_Type;
  uint8_t Peer_Address[6];
  uint8_t Own_Address_Type;
  uint16_t Conn_Interval_Min;
  uint16_t Conn_Interval_Max;
  uint16_t Conn_Latency;
  uint16_t Supervision_Timeout;
  uint16_t Minimum_CE_Length;
  uint16_t Maximum_CE_Length;
} hci_le_create_connection_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_create_connection_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_create_connection_cancel_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t White_List_Size;
} hci_le_read_white_list_size_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_clear_white_list_rp0;

typedef PACKED(struct)
{
  uint8_t Address_Type;
  uint8_t Address[6];
} hci_le_add_device_to_white_list_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_add_device_to_white_list_rp0;

typedef PACKED(struct)
{
  uint8_t Address_Type;
  uint8_t Address[6];
} hci_le_remove_device_from_white_list_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_remove_device_from_white_list_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Conn_Interval_Min;
  uint16_t Conn_Interval_Max;
  uint16_t Conn_Latency;
  uint16_t Supervision_Timeout;
  uint16_t Minimum_CE_Length;
  uint16_t Maximum_CE_Length;
} hci_le_connection_update_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_connection_update_rp0;

typedef PACKED(struct)
{
  uint8_t LE_Channel_Map[5];
} hci_le_set_host_channel_classification_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_host_channel_classification_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} hci_le_read_channel_map_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Connection_Handle;
  uint8_t LE_Channel_Map[5];
} hci_le_read_channel_map_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} hci_le_read_remote_features_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_read_remote_features_rp0;

typedef PACKED(struct)
{
  uint8_t Key[16];
  uint8_t Plaintext_Data[16];
} hci_le_encrypt_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Encrypted_Data[16];
} hci_le_encrypt_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Random_Number[8];
} hci_le_rand_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Random_Number[8];
  uint16_t Encrypted_Diversifier;
  uint8_t Long_Term_Key[16];
} hci_le_enable_encryption_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_enable_encryption_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Long_Term_Key[16];
} hci_le_long_term_key_request_reply_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Connection_Handle;
} hci_le_long_term_key_request_reply_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} hci_le_long_term_key_request_negative_reply_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Connection_Handle;
} hci_le_long_term_key_request_negative_reply_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t LE_States[8];
} hci_le_read_supported_states_rp0;

typedef PACKED(struct)
{
  uint8_t RX_Frequency;
} hci_le_receiver_test_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_receiver_test_rp0;

typedef PACKED(struct)
{
  uint8_t TX_Frequency;
  uint8_t Length_Of_Test_Data;
  uint8_t Packet_Payload;
} hci_le_transmitter_test_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_transmitter_test_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Number_Of_Packets;
} hci_le_test_end_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t TxOctets;
  uint16_t TxTime;
} hci_le_set_data_length_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Connection_Handle;
} hci_le_set_data_length_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t SuggestedMaxTxOctets;
  uint16_t SuggestedMaxTxTime;
} hci_le_read_suggested_default_data_length_rp0;

typedef PACKED(struct)
{
  uint16_t SuggestedMaxTxOctets;
  uint16_t SuggestedMaxTxTime;
} hci_le_write_suggested_default_data_length_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_write_suggested_default_data_length_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_read_local_p256_public_key_rp0;

typedef PACKED(struct)
{
  uint8_t Remote_P256_Public_Key[64];
} hci_le_generate_dhkey_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_generate_dhkey_rp0;

typedef PACKED(struct)
{
  uint8_t Peer_Identity_Address_Type;
  uint8_t Peer_Identity_Address[6];
  uint8_t Peer_IRK[16];
  uint8_t Local_IRK[16];
} hci_le_add_device_to_resolving_list_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_add_device_to_resolving_list_rp0;

typedef PACKED(struct)
{
  uint8_t Peer_Identity_Address_Type;
  uint8_t Peer_Identity_Address[6];
} hci_le_remove_device_from_resolving_list_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_remove_device_from_resolving_list_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_clear_resolving_list_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Resolving_List_Size;
} hci_le_read_resolving_list_size_rp0;

typedef PACKED(struct)
{
  uint8_t Peer_Identity_Address_Type;
  uint8_t Peer_Identity_Address[6];
} hci_le_read_peer_resolvable_address_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Peer_Resolvable_Address[6];
} hci_le_read_peer_resolvable_address_rp0;

typedef PACKED(struct)
{
  uint8_t Peer_Identity_Address_Type;
  uint8_t Peer_Identity_Address[6];
} hci_le_read_local_resolvable_address_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Local_Resolvable_Address[6];
} hci_le_read_local_resolvable_address_rp0;

typedef PACKED(struct)
{
  uint8_t Address_Resolution_Enable;
} hci_le_set_address_resolution_enable_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_address_resolution_enable_rp0;

typedef PACKED(struct)
{
  uint16_t RPA_Timeout;
} hci_le_set_resolvable_private_address_timeout_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_resolvable_private_address_timeout_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t supportedMaxTxOctets;
  uint16_t supportedMaxTxTime;
  uint16_t supportedMaxRxOctets;
  uint16_t supportedMaxRxTime;
} hci_le_read_maximum_data_length_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} hci_le_read_phy_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Connection_Handle;
  uint8_t TX_PHY;
  uint8_t RX_PHY;
} hci_le_read_phy_rp0;

typedef PACKED(struct)
{
  uint8_t ALL_PHYS;
  uint8_t TX_PHYS;
  uint8_t RX_PHYS;
} hci_le_set_default_phy_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_default_phy_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t ALL_PHYS;
  uint8_t TX_PHYS;
  uint8_t RX_PHYS;
  uint16_t PHY_options;
} hci_le_set_phy_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_phy_rp0;

typedef PACKED(struct)
{
  uint8_t RX_Frequency;
  uint8_t PHY;
  uint8_t Modulation_Index;
} hci_le_receiver_test_v2_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_receiver_test_v2_rp0;

typedef PACKED(struct)
{
  uint8_t TX_Frequency;
  uint8_t Length_Of_Test_Data;
  uint8_t Packet_Payload;
  uint8_t PHY;
} hci_le_transmitter_test_v2_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_transmitter_test_v2_rp0;

typedef PACKED(struct)
{
  uint8_t Advertising_Handle;
  uint8_t Random_Address[6];
} hci_le_set_advertising_set_random_address_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_advertising_set_random_address_rp0;

typedef PACKED(struct)
{
  uint8_t Advertising_Handle;
  uint16_t Adv_Event_Properties;
  uint8_t Primary_Adv_Interval_Min[3];
  uint8_t Primary_Adv_Interval_Max[3];
  uint8_t Primary_Adv_Channel_Map;
  uint8_t Own_Address_Type;
  uint8_t Peer_Address_Type;
  uint8_t Peer_Address[6];
  uint8_t Adv_Filter_Policy;
  uint8_t Adv_TX_Power;
  uint8_t Primary_Adv_PHY;
  uint8_t Secondary_Adv_Max_Skip;
  uint8_t Secondary_Adv_PHY;
  uint8_t Adv_SID;
  uint8_t Scan_Req_Notification_Enable;
} hci_le_set_extended_advertising_parameters_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Selected_TX_Power;
} hci_le_set_extended_advertising_parameters_rp0;

typedef PACKED(struct)
{
  uint8_t Advertising_Handle;
  uint8_t Operation;
  uint8_t Fragment_Preference;
  uint8_t Advertising_Data_Length;
  uint8_t Advertising_Data[BLE_CMD_MAX_PARAM_LEN - 4];
} hci_le_set_extended_advertising_data_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_extended_advertising_data_rp0;

typedef PACKED(struct)
{
  uint8_t Advertising_Handle;
  uint8_t Operation;
  uint8_t Fragment_Preference;
  uint8_t Scan_Response_Data_Length;
  uint8_t Scan_Response_Data[BLE_CMD_MAX_PARAM_LEN - 4];
} hci_le_set_extended_scan_response_data_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_extended_scan_response_data_rp0;

typedef PACKED(struct)
{
  uint8_t Enable;
  uint8_t Num_Sets;
  Adv_Set_t Adv_Set[(BLE_CMD_MAX_PARAM_LEN - 2)/sizeof(Adv_Set_t)];
} hci_le_set_extended_advertising_enable_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_extended_advertising_enable_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Max_Advertising_Data_Length;
} hci_le_read_maximum_advertising_data_length_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Num_Supported_Advertising_Sets;
} hci_le_read_number_of_supported_advertising_sets_rp0;

typedef PACKED(struct)
{
  uint8_t Advertising_Handle;
} hci_le_remove_advertising_set_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_remove_advertising_set_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_clear_advertising_sets_rp0;

typedef PACKED(struct)
{
  uint8_t Own_Address_Type;
  uint8_t Scanning_Filter_Policy;
  uint8_t Scanning_PHYs;
  uint8_t Scan_Type;
  uint16_t Scan_Interval;
  uint16_t Scan_Window;
} hci_le_set_extended_scan_parameters_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_extended_scan_parameters_rp0;

typedef PACKED(struct)
{
  uint8_t Enable;
  uint8_t Filter_Duplicates;
  uint16_t Duration;
  uint16_t Period;
} hci_le_set_extended_scan_enable_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_extended_scan_enable_rp0;

typedef PACKED(struct)
{
  uint8_t Initiator_Filter_Policy;
  uint8_t Own_Address_Type;
  uint8_t Peer_Address_Type;
  uint8_t Peer_Address[6];
  uint8_t Initiating_PHYs;
  uint16_t Scan_Interval;
  uint16_t Scan_Window;
  uint16_t Conn_Interval_Min;
  uint16_t Conn_Interval_Max;
  uint16_t Conn_Latency;
  uint16_t Supervision_Timeout;
  uint16_t Min_CE_Length;
  uint16_t Max_CE_Length;
} hci_le_extended_create_connection_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_extended_create_connection_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Min_TX_Power;
  uint8_t Max_TX_Power;
} hci_le_read_transmit_power_rp0;

typedef PACKED(struct)
{
  uint8_t Peer_Identity_Address_Type;
  uint8_t Peer_Identity_Address[6];
  uint8_t Privacy_Mode;
} hci_le_set_privacy_mode_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} hci_le_set_privacy_mode_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Build_Number;
} aci_hal_get_fw_build_number_rp0;

typedef PACKED(struct)
{
  uint8_t Offset;
  uint8_t Length;
  uint8_t Value[BLE_CMD_MAX_PARAM_LEN - 2];
} aci_hal_write_config_data_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_hal_write_config_data_rp0;

typedef PACKED(struct)
{
  uint8_t Offset;
} aci_hal_read_config_data_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Data_Length;
  uint8_t Data[(BLE_EVT_MAX_PARAM_LEN - 3) - 2];
} aci_hal_read_config_data_rp0;

typedef PACKED(struct)
{
  uint8_t En_High_Power;
  uint8_t PA_Level;
} aci_hal_set_tx_power_level_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_hal_set_tx_power_level_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint32_t Number_Of_Packets;
} aci_hal_le_tx_test_packet_number_rp0;

typedef PACKED(struct)
{
  uint8_t RF_Channel;
  uint8_t Freq_offset;
} aci_hal_tone_start_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_hal_tone_start_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_hal_tone_stop_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Link_Status[8];
  uint16_t Link_Connection_Handle[8];
} aci_hal_get_link_status_rp0;

typedef PACKED(struct)
{
  uint16_t Radio_Activity_Mask;
} aci_hal_set_radio_activity_mask_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_hal_set_radio_activity_mask_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint32_t Anchor_Period;
  uint32_t Max_Free_Slot;
} aci_hal_get_anchor_period_rp0;

typedef PACKED(struct)
{
  uint32_t Event_Mask;
} aci_hal_set_event_mask_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_hal_set_event_mask_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Allocated_For_TX;
  uint8_t Allocated_For_RX;
  uint8_t Allocated_MBlocks;
} aci_hal_get_pm_debug_info_rp0;

typedef PACKED(struct)
{
  uint8_t Enable;
} aci_hal_set_slave_latency_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_hal_set_slave_latency_rp0;

typedef PACKED(struct)
{
  uint8_t Register_Address;
} aci_hal_read_radio_reg_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t reg_val;
} aci_hal_read_radio_reg_rp0;

typedef PACKED(struct)
{
  uint8_t Register_Address;
  uint8_t Register_Value;
} aci_hal_write_radio_reg_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_hal_write_radio_reg_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Value[3];
} aci_hal_read_raw_rssi_rp0;

typedef PACKED(struct)
{
  uint8_t RF_Channel;
} aci_hal_rx_start_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_hal_rx_start_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_hal_rx_stop_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_hal_stack_reset_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_set_non_discoverable_rp0;

typedef PACKED(struct)
{
  uint8_t Advertising_Type;
  uint16_t Advertising_Interval_Min;
  uint16_t Advertising_Interval_Max;
  uint8_t Own_Address_Type;
  uint8_t Advertising_Filter_Policy;
  uint8_t Local_Name_Length;
  uint8_t Local_Name[BLE_CMD_MAX_PARAM_LEN - 13];
} aci_gap_set_limited_discoverable_cp0;

typedef PACKED(struct)
{
  uint8_t Service_Uuid_length;
  uint8_t Service_Uuid_List[BLE_CMD_MAX_PARAM_LEN - 13];
} aci_gap_set_limited_discoverable_cp1;

typedef PACKED(struct)
{
  uint16_t Slave_Conn_Interval_Min;
  uint16_t Slave_Conn_Interval_Max;
} aci_gap_set_limited_discoverable_cp2;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_set_limited_discoverable_rp0;

typedef PACKED(struct)
{
  uint8_t Advertising_Type;
  uint16_t Advertising_Interval_Min;
  uint16_t Advertising_Interval_Max;
  uint8_t Own_Address_Type;
  uint8_t Advertising_Filter_Policy;
  uint8_t Local_Name_Length;
  uint8_t Local_Name[BLE_CMD_MAX_PARAM_LEN - 13];
} aci_gap_set_discoverable_cp0;

typedef PACKED(struct)
{
  uint8_t Service_Uuid_length;
  uint8_t Service_Uuid_List[BLE_CMD_MAX_PARAM_LEN - 13];
} aci_gap_set_discoverable_cp1;

typedef PACKED(struct)
{
  uint16_t Slave_Conn_Interval_Min;
  uint16_t Slave_Conn_Interval_Max;
} aci_gap_set_discoverable_cp2;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_set_discoverable_rp0;

typedef PACKED(struct)
{
  uint8_t Own_Address_Type;
  uint8_t Directed_Advertising_Type;
  uint8_t Direct_Address_Type;
  uint8_t Direct_Address[6];
  uint16_t Advertising_Interval_Min;
  uint16_t Advertising_Interval_Max;
} aci_gap_set_direct_connectable_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_set_direct_connectable_rp0;

typedef PACKED(struct)
{
  uint8_t IO_Capability;
} aci_gap_set_io_capability_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_set_io_capability_rp0;

typedef PACKED(struct)
{
  uint8_t Bonding_Mode;
  uint8_t MITM_Mode;
  uint8_t SC_Support;
  uint8_t KeyPress_Notification_Support;
  uint8_t Min_Encryption_Key_Size;
  uint8_t Max_Encryption_Key_Size;
  uint8_t Use_Fixed_Pin;
  uint32_t Fixed_Pin;
  uint8_t Identity_Address_Type;
} aci_gap_set_authentication_requirement_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_set_authentication_requirement_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Authorization_Enable;
} aci_gap_set_authorization_requirement_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_set_authorization_requirement_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint32_t Pass_Key;
} aci_gap_pass_key_resp_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_pass_key_resp_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Authorize;
} aci_gap_authorization_resp_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_authorization_resp_rp0;

typedef PACKED(struct)
{
  uint8_t Role;
  uint8_t privacy_enabled;
  uint8_t device_name_char_len;
} aci_gap_init_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Service_Handle;
  uint16_t Dev_Name_Char_Handle;
  uint16_t Appearance_Char_Handle;
} aci_gap_init_rp0;

typedef PACKED(struct)
{
  uint8_t Advertising_Event_Type;
  uint8_t Own_Address_Type;
} aci_gap_set_non_connectable_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_set_non_connectable_rp0;

typedef PACKED(struct)
{
  uint16_t Advertising_Interval_Min;
  uint16_t Advertising_Interval_Max;
  uint8_t Own_Address_Type;
  uint8_t Adv_Filter_Policy;
} aci_gap_set_undirected_connectable_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_set_undirected_connectable_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} aci_gap_slave_security_req_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_slave_security_req_rp0;

typedef PACKED(struct)
{
  uint8_t AdvDataLen;
  uint8_t AdvData[BLE_CMD_MAX_PARAM_LEN - 1];
} aci_gap_update_adv_data_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_update_adv_data_rp0;

typedef PACKED(struct)
{
  uint8_t ADType;
} aci_gap_delete_ad_type_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_delete_ad_type_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} aci_gap_get_security_level_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Security_Mode;
  uint8_t Security_Level;
} aci_gap_get_security_level_rp0;

typedef PACKED(struct)
{
  uint16_t GAP_Evt_Mask;
} aci_gap_set_event_mask_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_set_event_mask_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_configure_whitelist_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Reason;
} aci_gap_terminate_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_terminate_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_clear_security_db_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} aci_gap_allow_rebond_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_allow_rebond_rp0;

typedef PACKED(struct)
{
  uint16_t LE_Scan_Interval;
  uint16_t LE_Scan_Window;
  uint8_t Own_Address_Type;
  uint8_t Filter_Duplicates;
} aci_gap_start_limited_discovery_proc_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_start_limited_discovery_proc_rp0;

typedef PACKED(struct)
{
  uint16_t LE_Scan_Interval;
  uint16_t LE_Scan_Window;
  uint8_t Own_Address_Type;
  uint8_t Filter_Duplicates;
} aci_gap_start_general_discovery_proc_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_start_general_discovery_proc_rp0;

typedef PACKED(struct)
{
  uint16_t LE_Scan_Interval;
  uint16_t LE_Scan_Window;
  uint8_t Own_Address_Type;
  uint16_t Conn_Interval_Min;
  uint16_t Conn_Interval_Max;
  uint16_t Conn_Latency;
  uint16_t Supervision_Timeout;
  uint16_t Minimum_CE_Length;
  uint16_t Maximum_CE_Length;
  uint8_t Num_of_Whitelist_Entries;
  Whitelist_Entry_t Whitelist_Entry[(BLE_CMD_MAX_PARAM_LEN - 18)/sizeof(Whitelist_Entry_t)];
} aci_gap_start_auto_connection_establish_proc_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_start_auto_connection_establish_proc_rp0;

typedef PACKED(struct)
{
  uint8_t LE_Scan_Type;
  uint16_t LE_Scan_Interval;
  uint16_t LE_Scan_Window;
  uint8_t Own_Address_Type;
  uint8_t Scanning_Filter_Policy;
  uint8_t Filter_Duplicates;
} aci_gap_start_general_connection_establish_proc_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_start_general_connection_establish_proc_rp0;

typedef PACKED(struct)
{
  uint8_t LE_Scan_Type;
  uint16_t LE_Scan_Interval;
  uint16_t LE_Scan_Window;
  uint8_t Own_Address_Type;
  uint8_t Scanning_Filter_Policy;
  uint8_t Filter_Duplicates;
  uint8_t Num_of_Whitelist_Entries;
  Whitelist_Entry_t Whitelist_Entry[(BLE_CMD_MAX_PARAM_LEN - 9)/sizeof(Whitelist_Entry_t)];
} aci_gap_start_selective_connection_establish_proc_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_start_selective_connection_establish_proc_rp0;

typedef PACKED(struct)
{
  uint16_t LE_Scan_Interval;
  uint16_t LE_Scan_Window;
  uint8_t Peer_Address_Type;
  uint8_t Peer_Address[6];
  uint8_t Own_Address_Type;
  uint16_t Conn_Interval_Min;
  uint16_t Conn_Interval_Max;
  uint16_t Conn_Latency;
  uint16_t Supervision_Timeout;
  uint16_t Minimum_CE_Length;
  uint16_t Maximum_CE_Length;
} aci_gap_create_connection_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_create_connection_rp0;

typedef PACKED(struct)
{
  uint8_t Procedure_Code;
} aci_gap_terminate_gap_proc_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_terminate_gap_proc_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Conn_Interval_Min;
  uint16_t Conn_Interval_Max;
  uint16_t Conn_Latency;
  uint16_t Supervision_Timeout;
  uint16_t Minimum_CE_Length;
  uint16_t Maximum_CE_Length;
} aci_gap_start_connection_update_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_start_connection_update_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Force_Rebond;
} aci_gap_send_pairing_req_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_send_pairing_req_rp0;

typedef PACKED(struct)
{
  uint8_t Address[6];
} aci_gap_resolve_private_addr_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Actual_Address[6];
} aci_gap_resolve_private_addr_rp0;

typedef PACKED(struct)
{
  uint16_t Advertising_Interval_Min;
  uint16_t Advertising_Interval_Max;
  uint8_t Advertising_Type;
  uint8_t Own_Address_Type;
  uint8_t Adv_Data_Length;
  uint8_t Adv_Data[BLE_CMD_MAX_PARAM_LEN - 8];
} aci_gap_set_broadcast_mode_cp0;

typedef PACKED(struct)
{
  uint8_t Num_of_Whitelist_Entries;
  Whitelist_Entry_t Whitelist_Entry[(BLE_CMD_MAX_PARAM_LEN - 8)/sizeof(Whitelist_Entry_t)];
} aci_gap_set_broadcast_mode_cp1;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_set_broadcast_mode_rp0;

typedef PACKED(struct)
{
  uint16_t LE_Scan_Interval;
  uint16_t LE_Scan_Window;
  uint8_t LE_Scan_Type;
  uint8_t Own_Address_Type;
  uint8_t Filter_Duplicates;
  uint8_t Scanning_Filter_Policy;
} aci_gap_start_observation_proc_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_start_observation_proc_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Num_of_Addresses;
  Bonded_Device_Entry_t Bonded_Device_Entry[((BLE_EVT_MAX_PARAM_LEN - 3) - 2)/sizeof(Bonded_Device_Entry_t)];
} aci_gap_get_bonded_devices_rp0;

typedef PACKED(struct)
{
  uint8_t Peer_Address_Type;
  uint8_t Peer_Address[6];
} aci_gap_is_device_bonded_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_is_device_bonded_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Confirm_Yes_No;
} aci_gap_numeric_comparison_value_confirm_yesno_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_numeric_comparison_value_confirm_yesno_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Input_Type;
} aci_gap_passkey_input_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_passkey_input_rp0;

typedef PACKED(struct)
{
  uint8_t OOB_Data_Type;
} aci_gap_get_oob_data_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Address_Type;
  uint8_t Address[6];
  uint8_t OOB_Data_Type;
  uint8_t OOB_Data_Len;
  uint8_t OOB_Data[16];
} aci_gap_get_oob_data_rp0;

typedef PACKED(struct)
{
  uint8_t Device_Type;
  uint8_t Address_Type;
  uint8_t Address[6];
  uint8_t OOB_Data_Type;
  uint8_t OOB_Data_Len;
  uint8_t OOB_Data[16];
} aci_gap_set_oob_data_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_set_oob_data_rp0;

typedef PACKED(struct)
{
  uint8_t Num_of_Resolving_list_Entries;
  Whitelist_Identity_Entry_t Whitelist_Identity_Entry[(BLE_CMD_MAX_PARAM_LEN - 2)/sizeof(Whitelist_Identity_Entry_t)];
} aci_gap_add_devices_to_resolving_list_cp0;

typedef PACKED(struct)
{
  uint8_t Clear_Resolving_List;
} aci_gap_add_devices_to_resolving_list_cp1;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_add_devices_to_resolving_list_rp0;

typedef PACKED(struct)
{
  uint8_t Peer_Identity_Address_Type;
  uint8_t Peer_Identity_Address[6];
} aci_gap_remove_bonded_device_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_remove_bonded_device_rp0;

typedef PACKED(struct)
{
  uint8_t Num_of_List_Entries;
  List_Entry_t List_Entry[(BLE_CMD_MAX_PARAM_LEN - 2)/sizeof(List_Entry_t)];
} aci_gap_add_devices_to_list_cp0;

typedef PACKED(struct)
{
  uint8_t Mode;
} aci_gap_add_devices_to_list_cp1;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_add_devices_to_list_rp0;

typedef PACKED(struct)
{
  uint16_t Adv_Interval_Min;
  uint16_t Adv_Interval_Max;
  uint8_t Adv_Channel_Map;
  uint8_t Own_Address_Type;
  uint8_t Own_Address[6];
  uint8_t PA_Level;
} aci_gap_additional_beacon_start_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_additional_beacon_start_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_additional_beacon_stop_rp0;

typedef PACKED(struct)
{
  uint8_t Adv_Data_Length;
  uint8_t Adv_Data[BLE_CMD_MAX_PARAM_LEN - 1];
} aci_gap_additional_beacon_set_data_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_additional_beacon_set_data_rp0;

typedef PACKED(struct)
{
  uint8_t Adv_Mode;
  uint8_t Advertising_Handle;
  uint16_t Adv_Event_Properties;
  uint32_t Primary_Adv_Interval_Min;
  uint32_t Primary_Adv_Interval_Max;
  uint8_t Primary_Adv_Channel_Map;
  uint8_t Own_Address_Type;
  uint8_t Peer_Address_Type;
  uint8_t Peer_Address[6];
  uint8_t Adv_Filter_Policy;
  uint8_t Adv_TX_Power;
  uint8_t Secondary_Adv_Max_Skip;
  uint8_t Secondary_Adv_PHY;
  uint8_t Adv_SID;
  uint8_t Scan_Req_Notification_Enable;
} aci_gap_adv_set_configuration_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_adv_set_configuration_rp0;

typedef PACKED(struct)
{
  uint8_t Enable;
  uint8_t Num_Sets;
  Adv_Set_t Adv_Set[(BLE_CMD_MAX_PARAM_LEN - 2)/sizeof(Adv_Set_t)];
} aci_gap_adv_set_enable_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_adv_set_enable_rp0;

typedef PACKED(struct)
{
  uint8_t Advertising_Handle;
  uint8_t Operation;
  uint8_t Fragment_Preference;
  uint8_t Advertising_Data_Length;
  uint8_t Advertising_Data[BLE_CMD_MAX_PARAM_LEN - 4];
} aci_gap_adv_set_adv_data_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_adv_set_adv_data_rp0;

typedef PACKED(struct)
{
  uint8_t Advertising_Handle;
  uint8_t Operation;
  uint8_t Fragment_Preference;
  uint8_t Scan_Response_Data_Length;
  uint8_t Scan_Response_Data[BLE_CMD_MAX_PARAM_LEN - 4];
} aci_gap_adv_set_scan_resp_data_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_adv_set_scan_resp_data_rp0;

typedef PACKED(struct)
{
  uint8_t Advertising_Handle;
} aci_gap_adv_remove_set_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_adv_remove_set_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gap_adv_clear_sets_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_init_rp0;

typedef PACKED(struct)
{
  uint8_t Service_UUID_Type;
  Service_UUID_t Service_UUID;
} aci_gatt_add_service_cp0;

typedef PACKED(struct)
{
  uint8_t Service_Type;
  uint8_t Max_Attribute_Records;
} aci_gatt_add_service_cp1;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Service_Handle;
} aci_gatt_add_service_rp0;

typedef PACKED(struct)
{
  uint16_t Service_Handle;
  uint16_t Include_Start_Handle;
  uint16_t Include_End_Handle;
  uint8_t Include_UUID_Type;
  Include_UUID_t Include_UUID;
} aci_gatt_include_service_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Include_Handle;
} aci_gatt_include_service_rp0;

typedef PACKED(struct)
{
  uint16_t Service_Handle;
  uint8_t Char_UUID_Type;
  Char_UUID_t Char_UUID;
} aci_gatt_add_char_cp0;

typedef PACKED(struct)
{
  uint16_t Char_Value_Length;
  uint8_t Char_Properties;
  uint8_t Security_Permissions;
  uint8_t GATT_Evt_Mask;
  uint8_t Enc_Key_Size;
  uint8_t Is_Variable;
} aci_gatt_add_char_cp1;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Char_Handle;
} aci_gatt_add_char_rp0;

typedef PACKED(struct)
{
  uint16_t Service_Handle;
  uint16_t Char_Handle;
  uint8_t Char_Desc_Uuid_Type;
  Char_Desc_Uuid_t Char_Desc_Uuid;
} aci_gatt_add_char_desc_cp0;

typedef PACKED(struct)
{
  uint8_t Char_Desc_Value_Max_Len;
  uint8_t Char_Desc_Value_Length;
  uint8_t Char_Desc_Value[BLE_CMD_MAX_PARAM_LEN - 12];
} aci_gatt_add_char_desc_cp1;

typedef PACKED(struct)
{
  uint8_t Security_Permissions;
  uint8_t Access_Permissions;
  uint8_t GATT_Evt_Mask;
  uint8_t Enc_Key_Size;
  uint8_t Is_Variable;
} aci_gatt_add_char_desc_cp2;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Char_Desc_Handle;
} aci_gatt_add_char_desc_rp0;

typedef PACKED(struct)
{
  uint16_t Service_Handle;
  uint16_t Char_Handle;
  uint8_t Val_Offset;
  uint8_t Char_Value_Length;
  uint8_t Char_Value[BLE_CMD_MAX_PARAM_LEN - 6];
} aci_gatt_update_char_value_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_update_char_value_rp0;

typedef PACKED(struct)
{
  uint16_t Serv_Handle;
  uint16_t Char_Handle;
} aci_gatt_del_char_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_del_char_rp0;

typedef PACKED(struct)
{
  uint16_t Serv_Handle;
} aci_gatt_del_service_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_del_service_rp0;

typedef PACKED(struct)
{
  uint16_t Serv_Handle;
  uint16_t Include_Handle;
} aci_gatt_del_include_service_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_del_include_service_rp0;

typedef PACKED(struct)
{
  uint32_t GATT_Evt_Mask;
} aci_gatt_set_event_mask_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_set_event_mask_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} aci_gatt_exchange_config_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_exchange_config_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Start_Handle;
  uint16_t End_Handle;
} aci_att_find_info_req_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_att_find_info_req_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Start_Handle;
  uint16_t End_Handle;
  uint16_t UUID;
  uint8_t Attribute_Val_Length;
  uint8_t Attribute_Val[BLE_CMD_MAX_PARAM_LEN - 9];
} aci_att_find_by_type_value_req_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_att_find_by_type_value_req_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Start_Handle;
  uint16_t End_Handle;
  uint8_t UUID_Type;
  UUID_t UUID;
} aci_att_read_by_type_req_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_att_read_by_type_req_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Start_Handle;
  uint16_t End_Handle;
  uint8_t UUID_Type;
  UUID_t UUID;
} aci_att_read_by_group_type_req_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_att_read_by_group_type_req_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attr_Handle;
  uint16_t Val_Offset;
  uint8_t Attribute_Val_Length;
  uint8_t Attribute_Val[BLE_CMD_MAX_PARAM_LEN - 7];
} aci_att_prepare_write_req_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_att_prepare_write_req_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Execute;
} aci_att_execute_write_req_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_att_execute_write_req_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} aci_gatt_disc_all_primary_services_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_disc_all_primary_services_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t UUID_Type;
  UUID_t UUID;
} aci_gatt_disc_primary_service_by_uuid_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_disc_primary_service_by_uuid_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Start_Handle;
  uint16_t End_Handle;
} aci_gatt_find_included_services_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_find_included_services_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Start_Handle;
  uint16_t End_Handle;
} aci_gatt_disc_all_char_of_service_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_disc_all_char_of_service_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Start_Handle;
  uint16_t End_Handle;
  uint8_t UUID_Type;
  UUID_t UUID;
} aci_gatt_disc_char_by_uuid_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_disc_char_by_uuid_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Char_Handle;
  uint16_t End_Handle;
} aci_gatt_disc_all_char_desc_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_disc_all_char_desc_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attr_Handle;
} aci_gatt_read_char_value_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_read_char_value_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Start_Handle;
  uint16_t End_Handle;
  uint8_t UUID_Type;
  UUID_t UUID;
} aci_gatt_read_using_char_uuid_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_read_using_char_uuid_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attr_Handle;
  uint16_t Val_Offset;
} aci_gatt_read_long_char_value_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_read_long_char_value_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Number_of_Handles;
  Handle_Entry_t Handle_Entry[(BLE_CMD_MAX_PARAM_LEN - 3)/sizeof(Handle_Entry_t)];
} aci_gatt_read_multiple_char_value_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_read_multiple_char_value_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attr_Handle;
  uint8_t Attribute_Val_Length;
  uint8_t Attribute_Val[BLE_CMD_MAX_PARAM_LEN - 5];
} aci_gatt_write_char_value_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_write_char_value_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attr_Handle;
  uint16_t Val_Offset;
  uint8_t Attribute_Val_Length;
  uint8_t Attribute_Val[BLE_CMD_MAX_PARAM_LEN - 7];
} aci_gatt_write_long_char_value_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_write_long_char_value_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attr_Handle;
  uint16_t Val_Offset;
  uint8_t Attribute_Val_Length;
  uint8_t Attribute_Val[BLE_CMD_MAX_PARAM_LEN - 7];
} aci_gatt_write_char_reliable_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_write_char_reliable_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attr_Handle;
  uint16_t Val_Offset;
  uint8_t Attribute_Val_Length;
  uint8_t Attribute_Val[BLE_CMD_MAX_PARAM_LEN - 7];
} aci_gatt_write_long_char_desc_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_write_long_char_desc_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attr_Handle;
  uint16_t Val_Offset;
} aci_gatt_read_long_char_desc_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_read_long_char_desc_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attr_Handle;
  uint8_t Attribute_Val_Length;
  uint8_t Attribute_Val[BLE_CMD_MAX_PARAM_LEN - 5];
} aci_gatt_write_char_desc_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_write_char_desc_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attr_Handle;
} aci_gatt_read_char_desc_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_read_char_desc_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attr_Handle;
  uint8_t Attribute_Val_Length;
  uint8_t Attribute_Val[BLE_CMD_MAX_PARAM_LEN - 5];
} aci_gatt_write_without_resp_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_write_without_resp_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attr_Handle;
  uint8_t Attribute_Val_Length;
  uint8_t Attribute_Val[BLE_CMD_MAX_PARAM_LEN - 5];
} aci_gatt_signed_write_without_resp_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_signed_write_without_resp_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} aci_gatt_confirm_indication_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_confirm_indication_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attr_Handle;
  uint8_t Write_status;
  uint8_t Error_Code;
  uint8_t Attribute_Val_Length;
  uint8_t Attribute_Val[BLE_CMD_MAX_PARAM_LEN - 7];
} aci_gatt_write_resp_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_write_resp_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} aci_gatt_allow_read_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_allow_read_rp0;

typedef PACKED(struct)
{
  uint16_t Serv_Handle;
  uint16_t Attr_Handle;
  uint8_t Security_Permissions;
} aci_gatt_set_security_permission_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_set_security_permission_rp0;

typedef PACKED(struct)
{
  uint16_t Serv_Handle;
  uint16_t Char_Handle;
  uint16_t Char_Desc_Handle;
  uint16_t Val_Offset;
  uint8_t Char_Desc_Value_Length;
  uint8_t Char_Desc_Value[BLE_CMD_MAX_PARAM_LEN - 9];
} aci_gatt_set_desc_value_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_set_desc_value_rp0;

typedef PACKED(struct)
{
  uint16_t Attr_Handle;
  uint16_t Offset;
  uint16_t Value_Length_Requested;
} aci_gatt_read_handle_value_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Length;
  uint16_t Value_Length;
  uint8_t Value[(BLE_EVT_MAX_PARAM_LEN - 3) - 5];
} aci_gatt_read_handle_value_rp0;

typedef PACKED(struct)
{
  uint16_t Conn_Handle_To_Notify;
  uint16_t Service_Handle;
  uint16_t Char_Handle;
  uint8_t Update_Type;
  uint16_t Char_Length;
  uint16_t Value_Offset;
  uint8_t Value_Length;
  uint8_t Value[BLE_CMD_MAX_PARAM_LEN - 12];
} aci_gatt_update_char_value_ext_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_update_char_value_ext_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Error_Code;
} aci_gatt_deny_read_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_deny_read_rp0;

typedef PACKED(struct)
{
  uint16_t Serv_Handle;
  uint16_t Attr_Handle;
  uint8_t Access_Permissions;
} aci_gatt_set_access_permission_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_gatt_set_access_permission_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Conn_Interval_Min;
  uint16_t Conn_Interval_Max;
  uint16_t Slave_latency;
  uint16_t Timeout_Multiplier;
} aci_l2cap_connection_parameter_update_req_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_l2cap_connection_parameter_update_req_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Conn_Interval_Min;
  uint16_t Conn_Interval_Max;
  uint16_t Slave_latency;
  uint16_t Timeout_Multiplier;
  uint16_t Minimum_CE_Length;
  uint16_t Maximum_CE_Length;
  uint8_t Identifier;
  uint8_t Accept;
} aci_l2cap_connection_parameter_update_resp_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_l2cap_connection_parameter_update_resp_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t SPSM;
  uint16_t MTU;
  uint16_t MPS;
  uint16_t Initial_Credits;
  uint8_t Channel_Number;
} aci_l2cap_coc_connect_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_l2cap_coc_connect_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t MTU;
  uint16_t MPS;
  uint16_t Initial_Credits;
  uint16_t Result;
} aci_l2cap_coc_connect_confirm_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Channel_Number;
  uint8_t Channel_Index_List[(BLE_EVT_MAX_PARAM_LEN - 3) - 2];
} aci_l2cap_coc_connect_confirm_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t MTU;
  uint16_t MPS;
  uint8_t Channel_Number;
  uint8_t Channel_Index_List[BLE_CMD_MAX_PARAM_LEN - 7];
} aci_l2cap_coc_reconf_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_l2cap_coc_reconf_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Result;
} aci_l2cap_coc_reconf_confirm_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_l2cap_coc_reconf_confirm_rp0;

typedef PACKED(struct)
{
  uint8_t Channel_Index;
} aci_l2cap_coc_disconnect_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_l2cap_coc_disconnect_rp0;

typedef PACKED(struct)
{
  uint8_t Channel_Index;
  uint16_t Credits;
} aci_l2cap_coc_flow_control_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_l2cap_coc_flow_control_rp0;

typedef PACKED(struct)
{
  uint8_t Channel_Index;
  uint16_t Length;
  uint8_t Data[BLE_CMD_MAX_PARAM_LEN - 3];
} aci_l2cap_coc_tx_data_cp0;

typedef PACKED(struct)
{
  uint8_t Status;
} aci_l2cap_coc_tx_data_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Connection_Handle;
  uint8_t Reason;
} hci_disconnection_complete_event_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Connection_Handle;
  uint8_t Encryption_Enabled;
} hci_encryption_change_event_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Connection_Handle;
  uint8_t Version;
  uint16_t Manufacturer_Name;
  uint16_t Subversion;
} hci_read_remote_version_information_complete_event_rp0;

typedef PACKED(struct)
{
  uint8_t Hardware_Code;
} hci_hardware_error_event_rp0;

typedef PACKED(struct)
{
  uint8_t Number_of_Handles;
  Handle_Packets_Pair_Entry_t Handle_Packets_Pair_Entry[(BLE_EVT_MAX_PARAM_LEN - 1)/sizeof(Handle_Packets_Pair_Entry_t)];
} hci_number_of_completed_packets_event_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Connection_Handle;
} hci_encryption_key_refresh_complete_event_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Connection_Handle;
  uint8_t Role;
  uint8_t Peer_Address_Type;
  uint8_t Peer_Address[6];
  uint16_t Conn_Interval;
  uint16_t Conn_Latency;
  uint16_t Supervision_Timeout;
  uint8_t Master_Clock_Accuracy;
} hci_le_connection_complete_event_rp0;

typedef PACKED(struct)
{
  uint8_t Num_Reports;
  Advertising_Report_t Advertising_Report[((BLE_EVT_MAX_PARAM_LEN - 1) - 1)/sizeof(Advertising_Report_t)];
} hci_le_advertising_report_event_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Connection_Handle;
  uint16_t Conn_Interval;
  uint16_t Conn_Latency;
  uint16_t Supervision_Timeout;
} hci_le_connection_update_complete_event_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Connection_Handle;
  uint8_t LE_Features[8];
} hci_le_read_remote_features_complete_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Random_Number[8];
  uint16_t Encrypted_Diversifier;
} hci_le_long_term_key_request_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t MaxTxOctets;
  uint16_t MaxTxTime;
  uint16_t MaxRxOctets;
  uint16_t MaxRxTime;
} hci_le_data_length_change_event_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Local_P256_Public_Key[64];
} hci_le_read_local_p256_public_key_complete_event_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t DHKey[32];
} hci_le_generate_dhkey_complete_event_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Connection_Handle;
  uint8_t Role;
  uint8_t Peer_Address_Type;
  uint8_t Peer_Address[6];
  uint8_t Local_Resolvable_Private_Address[6];
  uint8_t Peer_Resolvable_Private_Address[6];
  uint16_t Conn_Interval;
  uint16_t Conn_Latency;
  uint16_t Supervision_Timeout;
  uint8_t Master_Clock_Accuracy;
} hci_le_enhanced_connection_complete_event_rp0;

typedef PACKED(struct)
{
  uint8_t Num_Reports;
  Direct_Advertising_Report_t Direct_Advertising_Report[((BLE_EVT_MAX_PARAM_LEN - 1) - 1)/sizeof(Direct_Advertising_Report_t)];
} hci_le_direct_advertising_report_event_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint16_t Connection_Handle;
  uint8_t TX_PHY;
  uint8_t RX_PHY;
} hci_le_phy_update_complete_event_rp0;

typedef PACKED(struct)
{
  uint8_t Num_Reports;
  uint16_t Event_Type;
  uint8_t Address_Type;
  uint8_t Address[6];
  uint8_t Primary_PHY;
  uint8_t Secondary_PHY;
  uint8_t Advertising_SID;
  uint8_t TX_Power;
  uint8_t RSSI;
  uint16_t Periodic_Adv_Interval;
  uint8_t Direct_Address_Type;
  uint8_t Direct_Address[6];
  uint8_t Data_Length;
  uint8_t Data[(BLE_EVT_MAX_PARAM_LEN - 1) - 25];
} hci_le_extended_advertising_report_event_rp0;

typedef PACKED(struct)
{
  uint8_t Status;
  uint8_t Advertising_Handle;
  uint16_t Connection_Handle;
  uint8_t Num_Completed_Ext_Adv_Events;
} hci_le_advertising_set_terminated_event_rp0;

typedef PACKED(struct)
{
  uint8_t Advertising_Handle;
  uint8_t Scanner_Address_Type;
  uint8_t Scanner_Address[6];
} hci_le_scan_request_received_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Channel_Selection_Algorithm;
} hci_le_channel_selection_algorithm_event_rp0;

typedef PACKED(struct)
{
  uint8_t Last_State;
  uint8_t Next_State;
  uint32_t Next_State_SysTime;
} aci_hal_end_of_radio_activity_event_rp0;

typedef PACKED(struct)
{
  uint8_t RSSI;
  uint8_t Peer_Address_Type;
  uint8_t Peer_Address[6];
} aci_hal_scan_req_report_event_rp0;

typedef PACKED(struct)
{
  uint8_t FW_Error_Type;
  uint8_t Data_Length;
  uint8_t Data[(BLE_EVT_MAX_PARAM_LEN - 2) - 2];
} aci_hal_fw_error_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Status;
  uint8_t Reason;
} aci_gap_pairing_complete_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} aci_gap_pass_key_req_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} aci_gap_authorization_req_event_rp0;

typedef PACKED(struct)
{
  uint8_t Procedure_Code;
  uint8_t Status;
  uint8_t Data_Length;
  uint8_t Data[(BLE_EVT_MAX_PARAM_LEN - 2) - 3];
} aci_gap_proc_complete_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} aci_gap_addr_not_resolved_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint32_t Numeric_Value;
} aci_gap_numeric_comparison_value_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Notification_Type;
} aci_gap_keypress_notification_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Result;
} aci_l2cap_connection_update_resp_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Data_Length;
  uint8_t Data[(BLE_EVT_MAX_PARAM_LEN - 2) - 3];
} aci_l2cap_proc_timeout_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Identifier;
  uint16_t L2CAP_Length;
  uint16_t Interval_Min;
  uint16_t Interval_Max;
  uint16_t Slave_Latency;
  uint16_t Timeout_Multiplier;
} aci_l2cap_connection_update_req_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Identifier;
  uint16_t Reason;
  uint8_t Data_Length;
  uint8_t Data[(BLE_EVT_MAX_PARAM_LEN - 2) - 6];
} aci_l2cap_command_reject_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t SPSM;
  uint16_t MTU;
  uint16_t MPS;
  uint16_t Initial_Credits;
  uint8_t Channel_Number;
} aci_l2cap_coc_connect_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t MTU;
  uint16_t MPS;
  uint16_t Initial_Credits;
  uint16_t Result;
  uint8_t Channel_Number;
  uint8_t Channel_Index_List[(BLE_EVT_MAX_PARAM_LEN - 2) - 11];
} aci_l2cap_coc_connect_confirm_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t MTU;
  uint16_t MPS;
  uint8_t Channel_Number;
  uint8_t Channel_Index_List[(BLE_EVT_MAX_PARAM_LEN - 2) - 7];
} aci_l2cap_coc_reconf_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Result;
} aci_l2cap_coc_reconf_confirm_event_rp0;

typedef PACKED(struct)
{
  uint8_t Channel_Index;
} aci_l2cap_coc_disconnect_event_rp0;

typedef PACKED(struct)
{
  uint8_t Channel_Index;
  uint16_t Credits;
} aci_l2cap_coc_flow_control_event_rp0;

typedef PACKED(struct)
{
  uint8_t Channel_Index;
  uint16_t Length;
  uint8_t Data[(BLE_EVT_MAX_PARAM_LEN - 2) - 3];
} aci_l2cap_coc_rx_data_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attr_Handle;
  uint16_t Offset;
  uint16_t Attr_Data_Length;
  uint8_t Attr_Data[(BLE_EVT_MAX_PARAM_LEN - 2) - 8];
} aci_gatt_attribute_modified_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} aci_gatt_proc_timeout_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Server_RX_MTU;
} aci_att_exchange_mtu_resp_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Format;
  uint8_t Event_Data_Length;
  uint8_t Handle_UUID_Pair[(BLE_EVT_MAX_PARAM_LEN - 2) - 4];
} aci_att_find_info_resp_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Num_of_Handle_Pair;
  Attribute_Group_Handle_Pair_t Attribute_Group_Handle_Pair[((BLE_EVT_MAX_PARAM_LEN - 2) - 3)/sizeof(Attribute_Group_Handle_Pair_t)];
} aci_att_find_by_type_value_resp_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Handle_Value_Pair_Length;
  uint8_t Data_Length;
  uint8_t Handle_Value_Pair_Data[(BLE_EVT_MAX_PARAM_LEN - 2) - 4];
} aci_att_read_by_type_resp_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Event_Data_Length;
  uint8_t Attribute_Value[(BLE_EVT_MAX_PARAM_LEN - 2) - 3];
} aci_att_read_resp_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Event_Data_Length;
  uint8_t Attribute_Value[(BLE_EVT_MAX_PARAM_LEN - 2) - 3];
} aci_att_read_blob_resp_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Event_Data_Length;
  uint8_t Set_Of_Values[(BLE_EVT_MAX_PARAM_LEN - 2) - 3];
} aci_att_read_multiple_resp_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Attribute_Data_Length;
  uint8_t Data_Length;
  uint8_t Attribute_Data_List[(BLE_EVT_MAX_PARAM_LEN - 2) - 4];
} aci_att_read_by_group_type_resp_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attribute_Handle;
  uint16_t Offset;
  uint8_t Part_Attribute_Value_Length;
  uint8_t Part_Attribute_Value[(BLE_EVT_MAX_PARAM_LEN - 2) - 7];
} aci_att_prepare_write_resp_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} aci_att_exec_write_resp_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attribute_Handle;
  uint8_t Attribute_Value_Length;
  uint8_t Attribute_Value[(BLE_EVT_MAX_PARAM_LEN - 2) - 5];
} aci_gatt_indication_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attribute_Handle;
  uint8_t Attribute_Value_Length;
  uint8_t Attribute_Value[(BLE_EVT_MAX_PARAM_LEN - 2) - 5];
} aci_gatt_notification_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Error_Code;
} aci_gatt_proc_complete_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Req_Opcode;
  uint16_t Attribute_Handle;
  uint8_t Error_Code;
} aci_gatt_error_resp_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attribute_Handle;
  uint8_t Attribute_Value_Length;
  uint8_t Attribute_Value[(BLE_EVT_MAX_PARAM_LEN - 2) - 5];
} aci_gatt_disc_read_char_by_uuid_resp_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attribute_Handle;
  uint8_t Data_Length;
  uint8_t Data[(BLE_EVT_MAX_PARAM_LEN - 2) - 5];
} aci_gatt_write_permit_req_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attribute_Handle;
  uint16_t Offset;
} aci_gatt_read_permit_req_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint8_t Number_of_Handles;
  Handle_Item_t Handle_Item[((BLE_EVT_MAX_PARAM_LEN - 2) - 3)/sizeof(Handle_Item_t)];
} aci_gatt_read_multi_permit_req_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Available_Buffers;
} aci_gatt_tx_pool_available_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
} aci_gatt_server_confirmation_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attribute_Handle;
  uint16_t Offset;
  uint8_t Data_Length;
  uint8_t Data[(BLE_EVT_MAX_PARAM_LEN - 2) - 7];
} aci_gatt_prepare_write_permit_req_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Offset;
  uint16_t Event_Data_Length;
  uint8_t Attribute_Value[(BLE_EVT_MAX_PARAM_LEN - 2) - 6];
} aci_gatt_read_ext_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attribute_Handle;
  uint16_t Offset;
  uint16_t Attribute_Value_Length;
  uint8_t Attribute_Value[(BLE_EVT_MAX_PARAM_LEN - 2) - 8];
} aci_gatt_indication_ext_event_rp0;

typedef PACKED(struct)
{
  uint16_t Connection_Handle;
  uint16_t Attribute_Handle;
  uint16_t Offset;
  uint16_t Attribute_Value_Length;
  uint8_t Attribute_Value[(BLE_EVT_MAX_PARAM_LEN - 2) - 8];
} aci_gatt_notification_ext_event_rp0;


#endif /* BLE_TYPES_H__ */