lr2021 0.13.1

Driver for Semtech LR2021
Documentation
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
categories:
  ble:
    commands:
      SetBleModulationParams:
        opcode: 608
        description: Configure the modulation parameters for BLE packets
        parameters:
        - name: ble_mode
          bit_width: 2
          byte_positions:
          - - 2
            - '1:0'
          description: BLE PHY mode selection
          optional: false
          enum:
            LE_1MB: 0
            LE_2MB: 1
            LE_CODED_500K: 2
            LE_CODED_125K: 3
        - name: rx_bw
          bit_width: 8
          byte_positions:
          - - 3
            - '7:0'
          description: Manually force an RX bandwidth (optional parameter)
          optional: true
          enum:
            BW_AUTO: 255
            BW_3076: 0
            BW_2857: 64
            BW_2666: 128
            BW_2222: 192
            BW_1333: 136
            BW_1111: 200
            BW_888: 144
            BW_769: 24
            BW_740: 208
            BW_714: 88
            BW_666: 152
            BW_615: 32
            BW_571: 96
            BW_555: 216
            BW_533: 160
            BW_512: 17
            BW_476: 81
            BW_444: 224
            BW_384: 25
            BW_370: 209
            BW_357: 89
            BW_333: 153
            BW_307: 33
            BW_285: 97
            BW_277: 217
            BW_266: 161
            BW_256: 18
            BW_238: 82
            BW_222: 225
            BW_192: 26
            BW_185: 210
            BW_178: 90
            BW_166: 154
            BW_153: 34
            BW_142: 98
            BW_138: 218
            BW_133: 162
            BW_128: 19
            BW_119: 83
            BW_111: 226
            BW_96: 27
            BW_92: 211
            BW_89: 91
            BW_83: 155
            BW_76: 35
            BW_71: 99
            BW_69: 219
            BW_66: 163
            BW_64: 20
            BW_59: 84
            BW_55: 227
            BW_48: 28
            BW_46: 212
            BW_44: 92
            BW_41: 156
            BW_38: 36
            BW_35: 100
            BW_34: 220
            BW_33: 164
            BW_32: 21
            BW_29: 85
            BW_27: 228
            BW_24: 29
            BW_23: 213
            BW_22: 93
            BW_20: 157
            BW_19: 37
            BW_17: 101
            BW_16: 165
            BW_14: 86
            BW_13: 229
            BW_12: 30
            BW_11: 94
            BW_10: 158
            BW_9_6: 38
            BW_8_9: 102
            BW_8_7: 222
            BW_8_3: 166
            BW_8: 23
            BW_7_4: 87
            BW_6_9: 230
            BW_6: 31
            BW_5_8: 215
            BW_5_6: 95
            BW_5_2: 159
            BW_4_8: 39
            BW_4_5: 103
            BW_4_3: 223
            BW_4_2: 167
            BW_3_5: 231
      SetBleChannelParams:
        opcode: 609
        description: Sets the BLE channel/packet dependent parameters
        parameters:
        - name: crc_in_fifo
          bit_width: 1
          byte_positions:
          - - 2
            - '4'
          description: Flag when CRC is handle manually by the host
          optional: false
        - name: channel_type
          bit_width: 4
          byte_positions:
          - - 2
            - '3:0'
          description: BLE channel type selection
          optional: false
          enum:
            ADVERTISER: 0
            DATA_16BIT_HEADER: 1
            DATA_24BIT_HEADER: 2
        - name: whit_init
          bit_width: 8
          byte_positions:
          - - 3
            - '7:0'
          description: 'Whitening init value. Example: 0x53 for channel 37. Can be set to 0 to deactivate whitening (test
            mode)'
          optional: false
        - name: crc_init
          bit_width: 24
          byte_positions:
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          - - 6
            - '7:0'
          description: 'CRC seed. Example: 0x555555 for advertising'
          optional: false
        - name: syncword
          bit_width: 32
          byte_positions:
          - - 7
            - '7:0'
          - - 8
            - '7:0'
          - - 9
            - '7:0'
          - - 10
            - '7:0'
          description: 'Syncword. Example: 0x8e89bed6 for advertising'
          optional: false
      SetBleTx:
        opcode: 610
        description: Configure PDU length to transmit and send a BLE packet. This command is a concatenation of SetBlePduLen(pld_len)
          and SetTx(0)
        parameters:
        - name: pld_len
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: Length of the PDU (including the 16bit header), excluding the 3 byte CRC. The data to write into the
            FIFO corresponds to this PDU, including the 16bit header
          optional: false
      GetBlePacketStatus:
        opcode: 613
        description: Gets the status of the last received packet. Status is updated at the end of a reception (RxDone irq),
          but rssi_sync is already updated on SyncWordValid irq
        parameters: []
        status_fields:
        - name: pkt_len
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: Length of the last received packet in bytes (including optional data added in the FIFO, crc, ...)
          optional: false
        - name: rssi_avg
          bit_width: 9
          byte_positions:
          - - 4
            - '7:0'
          - - 6
            - '2'
          description: Average over last packet received of RSSI. Actual signal power is –rssi_avg/2 (dBm)
          optional: false
        - name: rssi_sync
          bit_width: 9
          byte_positions:
          - - 5
            - '7:0'
          - - 6
            - '0'
          description: Latch RSSI value after syncword detection. Actual signal power is –rssi_sync/2 (dBm)
          optional: false
        - name: lqi
          bit_width: 8
          byte_positions:
          - - 7
            - '7:0'
          description: Link quality indicator (0.25dB)
          optional: false
      GetBleRxStats:
        opcode: 612
        description: Gets the internal statistics of the received packets. Statistics are reset on a POR, sleep without memory
          retention and the command ResetRxStats
        parameters: []
        status_fields:
        - name: pkt_rx
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: Total number of received packets
          optional: false
        - name: crc_error
          bit_width: 16
          byte_positions:
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: Number of received packets with a CRC error
          optional: false
        - name: len_error
          bit_width: 16
          byte_positions:
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          description: Number of packets with a length error
          optional: false

      SetBleTxPduLen:
        opcode: 614
        description: Sets PDU length for TX
        parameters:
        - name: pdu_len
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: Length of the PDU (including the 16bit header), excluding the 3 byte CRC. The data to write into the
            FIFO corresponds to this PDU, including the 16bit header
          optional: false
  bpsk:
    commands:
      SetBpskModulationParams:
        opcode: 592
        description: Sets the modulation parameters for BPSK packets. FW configures respective modem registers
        parameters:
        - name: bitrate
          bit_width: 32
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: Bitrate (same as bitrate in SetAdvancedModulationParams command)
          optional: false
        - name: pulse_shape
          bit_width: 4
          byte_positions:
          - - 6
            - '7:4'
          description: Signal shape (same as shape_filter in the SetAdvancedModulationParams command)
          optional: false
          enum:
            NONE: 0
            CUSTOM: 1
            BT_0_3: 4
            BT_0_5: 5
            BT_0_7: 6
            BT_1_0: 7
            BT_2_0: 2
            RC_0_3: 8
            RC_0_5: 9
            RC_0_7: 10
            RC_1_0: 11
            RRC_0_3: 12
            RRC_0_4: 3
            RRC_0_5: 13
            RRC_0_7: 14
            RRC_1_0: 15
        - name: diff_mode_en
          bit_width: 1
          byte_positions:
          - - 6
            - '2'
          description: Enable Differential encoding
          optional: false
          enum:
            DISABLED: 0
            ENABLED: 1
        - name: diff_mode_init
          bit_width: 1
          byte_positions:
          - - 6
            - '1'
          description: Init value for differential encoding
          optional: false
        - name: diff_mode_parity
          bit_width: 1
          byte_positions:
          - - 6
            - '0'
          description: Parity for differential encoding
          optional: false
      SetBpskPacketParams:
        opcode: 593
        description: Sets the packet parameters for BPSK packets. FW configures respective modem registers
        parameters:
        - name: pld_len
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: Payload length in bits (raw encoded) or bytes (Sigfox PHY)
          optional: false
        - name: bpsk_mode
          bit_width: 2
          byte_positions:
          - - 3
            - '5:4'
          description: BPSK mode selection
          optional: false
          enum:
            RAW: 0
            SIGFOX: 1
        - name: sigfox_msg
          bit_width: 1
          byte_positions:
          - - 3
            - '1'
          description: Sigfox message type (only valid in Sigfox PHY mode)
          optional: false
          enum:
            APP: 0
            CTRL: 1
        - name: sigfox_rank
          bit_width: 2
          byte_positions:
          - - 3
            - '7:6'
          description: Sigfox frame emission rank (only valid in Sigfox PHY mode)
          optional: false
          enum:
            FIRST: 0
            SECOND: 1
            THIRD: 2
  common:
    commands:
      SetRfFrequency:
        opcode: 512
        description: Sets the RF frequency for subsequent radio operations. Will not work with the chip in TX mode. All frequency
          dependent parameters are automatically recomputed by the FW
        parameters:
        - name: rf_freq
          bit_width: 32
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: Frequency given in Hz
          optional: false
      SetRxPath:
        opcode: 513
        description: Sets the RX path and boost configuration. If rx_boost is changed, the SRC calibration (ADC offset) is
          run again for G12 and G13 with the updated boost configuration
        parameters:
        - name: rx_path
          bit_width: 1
          byte_positions:
          - - 2
            - '0'
          description: RX path selection
          optional: false
          enum:
            LF_PATH: 0
            HF_PATH: 1
        - name: rx_boost
          bit_width: 3
          byte_positions:
          - - 3
            - '2:0'
          description: RX boost configuration (0..7). Will keep previous value if not sent
          optional: true
          enum:
            'OFF': 0
            B1: 1
            B2: 2
            B3: 3
            B4: 4
            B5: 5
            B6: 6
            MAX: 7
      SetPaConfig:
        opcode: 514
        description: Chooses which PA to use and sets the parameters of the PA
        parameters:
        - name: pa_sel
          bit_width: 1
          byte_positions:
          - - 2
            - '7'
          description: Select which PA to use
          optional: false
          enum:
            LF_PA: 0
            HF_PA: 1
        - name: pa_lf_mode
          bit_width: 2
          byte_positions:
          - - 2
            - '1:0'
          description: PA LF mode (if unused set to 0)
          optional: false
          enum:
            LF_PA_FSM: 0
            LF_PA_FDM: 1
            LF_PA_HSM_RFO1: 2
            LF_PA_HSM_RFO2: 3
        - name: pa_lf_duty_cycle
          bit_width: 4
          byte_positions:
          - - 2
            - '7:4'
          description: PA LF duty cycle control (if unused set to 6). Controls the duty cycle and maximum output power of
            the PA in LF mode
          optional: false
        - name: pa_lf_slices
          bit_width: 4
          byte_positions:
          - - 3
            - '3:0'
          description: PA LF slices (if unused set to 7)
          optional: false
        - name: pa_hf_duty_cycle
          bit_width: 5
          byte_positions:
          - - 4
            - '4:0'
          description: PA HF duty cycle control (default/unused=16). Controls the duty cycle and maximum output power of the
            PA in HF mode
          optional: true
          default: 16
      SetTxParams:
        opcode: 515
        description: Sets the TX power and ramp time of the PA. The FW configures the corresponding registers, including OCP/OVP
        parameters:
        - name: tx_power
          bit_width: 8
          signed: true
          byte_positions:
          - - 2
            - '7:0'
          description: 'Output power in 0.5dBm steps. PA LF: -19..44 (-9.5..22dBm), PA HF: -39..24 (-19.5..12dBm). Values
            below minimum enable leakage mode (-22dBm)'
          optional: false
        - name: ramp_time
          bit_width: 8
          byte_positions:
          - - 3
            - '7:0'
          description: PA ramp time selection
          optional: false
          enum:
            RAMP_2U: 0
            RAMP_4U: 1
            RAMP_8U: 2
            RAMP_16U: 3
            RAMP_32U: 4
            RAMP_48U: 5
            RAMP_64U: 6
            RAMP_80U: 7
            RAMP_96U: 8
            RAMP_112U: 9
            RAMP_128U: 10
            RAMP_144U: 11
            RAMP_160U: 12
            RAMP_176U: 13
            RAMP_192U: 14
            RAMP_208U: 15
      SetRssiCalibration:
        opcode: 517
        description: Sets the RSSI calibration table for the requested RX path(s). If both paths are set, values for both
          tables must be provided
        parameters:
        - name: rx_path_lf
          bit_width: 1
          byte_positions:
          - - 2
            - '0'
          description: Enable LF path calibration
          optional: false
        - name: rx_path_hf
          bit_width: 1
          byte_positions:
          - - 2
            - '1'
          description: Enable HF path calibration
          optional: false
        - name: calibration_data
          bit_width: 0
          byte_positions: []
          description: Variable length calibration data - 27 entries of [gain(15:0), nf(7:0)] for each enabled path
          optional: false
      SetRxTxFallbackMode:
        opcode: 518
        description: Configures the fallback mode after a RX or TX operation (after transmission/reception or timeout)
        parameters:
        - name: fallback_mode
          bit_width: 2
          byte_positions:
          - - 2
            - '1:0'
          description: Fallback mode selection
          optional: false
          default: 1
          enum:
            STANDBY_RC: 1
            STANDBY_XOSC: 2
            FS: 3
      SetPacketType:
        opcode: 519
        description: Sets the current packet type. This is the first command to be sent when configuring the radio for transceiver
          operation. Will only work in Standby RC, Standby XOSC or FS mode
        parameters:
        - name: packet_type
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: Packet type selection
          optional: false
          default: 0
          enum:
            LORA: 0
            FSK_GENERIC: 1
            FSK_LEGACY: 2
            BLE: 3
            RANGING: 4
            FLRC: 5
            BPSK: 6
            LR_FHSS: 7
            WMBUS: 8
            WISUN: 9
            OOK: 10
            RAW: 11
            ZWAVE: 12
            ZIGBEE: 13
      GetPacketType:
        opcode: 520
        description: Returns the current packet type of the radio
        parameters: []
        status_fields:
        - name: packet_type
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: Current packet type (see SetPacketType for values)
          optional: false
      SetStopTimeout:
        opcode: 521
        description: Defines if the RX timeout should be stopped on Syncword/Header detection or on Preamble detection
        parameters:
        - name: stop_on_preamble
          bit_width: 1
          byte_positions:
          - - 2
            - '0'
          description: Timeout stop on preamble detection instead of syncword/header valid
          optional: false
          default: 0
      ResetRxStats:
        opcode: 522
        parameters: []
        description: Reset Rx Statistics
      GetRssiInst:
        opcode: 523
        description: Gets the instantaneous RSSI value during reception of the packet. Returned value corresponds to -rssi/2 [dBm]
        parameters: []
        status_fields:
        - name: rssi
          bit_width: 9
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '0'
          description: Instantaneous RSSI value. Actual signal power is -rssi/2 [dBm]. If only 1 dBm resolution is wanted, reading the fractional bit is optional
          optional: false
      SetRx:
        opcode: 524
        description: Sets the device into RX mode. The RTC is started with the given value. RxTimeout is in 1/32.768kHz steps, allowing a maximum of 512 seconds timeout. If image rejection calibration was not done for current RF frequency, error RXFREQ_NO_CAL_ERR is generated
        parameters:
        - name: rx_timeout
          bit_width: 24
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          description: RX timeout. 0=single mode (no timeout), 0xFFFFFF=continuous mode. Optional parameter - if not sent, uses SetDefaultRxTxTimeout value
          optional: true
      SetTx:
        opcode: 525
        description: Sets the device into TX mode. The RTC is started with the given value. TxTimeout is in 1/32.768kHz steps,
          allowing a maximum of 512 seconds timeout
        parameters:
        - name: tx_timeout
          bit_width: 24
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          description: TX timeout. 0=no timeout. Optional parameter - if not sent, uses SetDefaultRxTxTimeout value
          optional: true
      SetTxTestMode:
        opcode: 526
        description: Sets the device into TX test mode
        parameters:
        - name: test_mode
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: Test mode selection
          optional: false
          enum:
            PACKET: 0
            PREAMBLE: 1
            TONE: 2
            PRBS9: 3
      SelPA:
        opcode: 527
        description: Select which PA to use. Configuration must have been provided beforehand using SetPaConfig. Selection
          cannot be changed in TX mode
        parameters:
        - name: pa_sel
          bit_width: 1
          byte_positions:
          - - 2
            - '0'
          description: PA selection
          optional: false
          enum:
            LF_PA: 0
            HF_PA: 1
      SetRxDutyCycle:
        opcode: 528
        description: Start reception every cycle_time and listen for rx_max_time
        parameters:
        - name: rx_max_time
          bit_width: 24
          byte_positions: [[2, '7:0'], [3, '7:0'], [4, '7:0']]
          description: Max Listen time
          optional: false
        - name: cycle_time
          bit_width: 24
          byte_positions: [[5, '7:0'], [6, '7:0'], [7, '7:0']]
          description: Cycle time (period of RX in HF tick)
          optional: false
        - name: use_lora_cad
          bit_width: 1
          byte_positions: [[8, '4']]
          description: Perform CAD instead of RX. Valid only for LoRa packet
          optional: false
        - name: dram_ret
          bit_width: 3
          byte_positions: [[8, '2:0']]
          description: Bit mask for DRAM to keep in retention
          optional: false
      SetAutoRxTx:
        opcode: 529
        description: Activate or deactivate the auto TX/auto RX mode. In auto RX mode, chip automatically goes from TX to
          RX after TxDone. In auto TX mode, chip automatically goes from RX to TX after RxDone
        parameters:
        - name: clear
          bit_width: 1
          byte_positions:
          - - 2
            - '7'
          description: Auto mode configuration
          optional: false
        - name: auto_txrx_mode
          bit_width: 2
          byte_positions:
          - - 2
            - '1:0'
          description: Auto mode configuration
          optional: false
          enum:
            DISABLE: 0
            ALWAYS: 1
            RX_OK: 2
        - name: timeout
          bit_width: 24
          byte_positions:
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: Timeout for the auto operation in 1/32.768kHz steps
          optional: false
        - name: delay
          bit_width: 32
          byte_positions:
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          - - 8
            - '7:0'
          - - 9
            - '7:0'
          description: Delay before starting the auto operation in HF clock cycles
          optional: false
      GetRxPktLength:
        opcode: 530
        description: Get the length of the last received packet
        parameters: []
        status_fields:
        - name: pkt_length
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: Length of the last received packet in bytes
          optional: false
      SetPowerOffset:
        opcode: 532
        description: Set the global value of the power offset
        parameters:
        - name: power_offset
          bit_width: 6
          byte_positions:
          - - 2
            - '5:0'
          description: Global power offset value
          optional: false
      SetDefaultRxTxTimeout:
        opcode: 533
        description: Sets the default RX and TX timeouts to be used for DIO RX/TX triggers, or if the timeout parameters are
          not sent in the SetRx and SetTx commands
        parameters:
        - name: rx_timeout
          bit_width: 24
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          description: Default RX timeout in 1/32.768kHz steps
          optional: false
        - name: tx_timeout
          bit_width: 24
          byte_positions:
          - - 5
            - '7:0'
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          description: Default TX timeout in 1/32.768kHz steps
          optional: false
      SetTimestampSource:
        opcode: 534
        description: Sets the source event for time-stamping different radio events. 3 sources can be configured in parallel
        parameters:
        - name: timestamp_index
          bit_width: 2
          byte_positions:
          - - 2
            - '5:4'
          description: Index of the source to configure (0-2)
          optional: false
          enum:
            TS0 : 0
            TS1 : 1
            TS2 : 2
        - name: timestamp_source
          bit_width: 4
          byte_positions:
          - - 2
            - '3:0'
          description: Event source selection
          optional: false
          enum:
            NONE: 0
            TX_DONE: 1
            RX_DONE: 2
            SYNC: 3
            HEADER: 4
      GetTimestampValue:
        opcode: 535
        description: Get the delay in HF clk tick between the event and the SPI NSS falling edge of the request. Will not
          return a correct value if the event occurred before a sleep period
        parameters:
        - name: timestamp_index
          bit_width: 2
          byte_positions:
          - - 2
            - '1:0'
          description: Index of the timestamp source (0-2)
          optional: false
          enum:
            TS0 : 0
            TS1 : 1
            TS2 : 2
        status_fields:
        - name: timestamp
          bit_width: 32
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: Timestamp value in HF clock ticks
          optional: false
      SetCca:
        opcode: 536
        description: Set the radio into RX mode for Clear Channel Assessment measurements. The radio measures the RSSI for
          the given duration
        parameters:
        - name: duration
          bit_width: 24
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          description: Duration of CCA measurement in HF clock cycles
          optional: false
        - name: gain
          bit_width: 8
          byte_positions:
          - - 5
            - '7:0'
          description: Manual gain setting for CCA. Optional parameter - if not provided, AGC is used
          optional: true
      GetCcaResult:
        opcode: 537
        description: Get the RSSI statistics for the CCA measurement
        parameters: []
        status_fields:
        - name: rssi_min
          bit_width: 9
          byte_positions:
          - - 2
            - '7:0'
          - - 5
            - '2'
          description: Minimum RSSI value measured during CCA. Actual value is -rssi_min/2 [dBm]
          optional: false
        - name: rssi_max
          bit_width: 9
          byte_positions:
          - - 3
            - '7:0'
          - - 5
            - '1'
          description: Maximum RSSI value measured during CCA. Actual value is -rssi_max/2 [dBm]
          optional: false
        - name: rssi_avg
          bit_width: 9
          byte_positions:
          - - 4
            - '7:0'
          - - 5
            - '0'
          description: Average RSSI value measured during CCA. Actual value is -rssi_avg/2 [dBm]
          optional: false
      SetAgcGainManual:
        opcode: 538
        description: 'Set the manual gain of the AGC. A value of 0 enables the AGC: automatic gain'
        parameters:
        - name: gain_step
          bit_width: 4
          byte_positions:
          - - 2
            - '3:0'
          description: Manual gain step. 0=enable AGC, 1-15=manual gain steps
          optional: false
      SetCadParams:
        opcode: 539
        description: Set the CAD parameters for the Channel Activity Detect for packet types other than LoRa. This CAD is
          based on the measured RSSI
        parameters:
        - name: cad_timeout
          bit_width: 24
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          description: The maximum time spent measuring RSSI, in HF (32MHz) clock ticks
          optional: false
        - name: threshold
          bit_width: 8
          byte_positions:
          - - 5
            - '7:0'
          description: Level of the RSSI to determine if a signal is present (in -dBm)
          optional: false
        - name: exit_mode
          bit_width: 2
          byte_positions:
          - - 6
            - '1:0'
          description: Action taken after the CAD
          optional: false
          enum:
            FALLBACK: 0
            TX: 1
            RX: 2
        - name: trx_timeout
          bit_width: 24
          byte_positions:
          - - 7
            - '7:0'
          - - 8
            - '7:0'
          - - 9
            - '7:0'
          description: Timeout used in case RX or TX is triggered, as specified in SetTx and SetRx commands
          optional: false
      SetCad:
        opcode: 540
        description: Set device into RX CAD mode (not LoRa). Parameters must have been previously set using SetCadParams command
        parameters: []
  flrc:
    commands:
      SetFlrcModulationParams:
        opcode: 584
        description: Sets the modulation parameters for FLRC packets. FW configures respective modem registers. Will return
          CMD_FAIL in the status of the next command, if the packet type is not FLRC
        parameters:
        - name: flrc_bitrate
          bit_width: 3
          byte_positions:
          - - 2
            - '2:0'
          description: Bitrate and bandwidth combination
          optional: false
          enum:
            BR_2600: 0
            BR_2080: 1
            BR_1300: 2
            BR_1040: 3
            BR_0650: 4
            BR_0520: 5
            BR_0325: 6
            BR_0260: 7
        - name: flrc_cr
          bit_width: 4
          byte_positions:
          - - 3
            - '7:4'
          description: Coding rate selection
          optional: false
          enum:
            CR_12: 0
            CR_34: 1
            NONE: 2
            CR_23: 3
        - name: pulse_shape
          bit_width: 4
          byte_positions:
          - - 3
            - '3:0'
          description: Pulse shaping filter (same values as for FSK)
          optional: false
          enum:
            NONE: 0
            CUSTOM: 1
            BT_0_3: 4
            BT_0_5: 5
            BT_0_7: 6
            BT_1_0: 7
            BT_2_0: 2
            RC_0_3: 8
            RC_0_5: 9
            RC_0_7: 10
            RC_1_0: 11
            RRC_0_3: 12
            RRC_0_4: 3
            RRC_0_5: 13
            RRC_0_7: 14
            RRC_1_0: 15
      SetFlrcPacketParams:
        opcode: 585
        description: Sets the packet parameters for FLRC packets. FW configures respective modem registers
        parameters:
        - name: agc_pbl_len
          bit_width: 4
          byte_positions:
          - - 2
            - '5:2'
          description: AGC preamble length
          optional: false
          enum:
            LEN_4_BITS: 0
            LEN_8_BITS: 1
            LEN_12_BITS: 2
            LEN_16_BITS: 3
            LEN_20_BITS: 4
            LEN_24_BITS: 5
            LEN_28_BITS: 6
            LEN_32_BITS: 7
        - name: sw_len
          bit_width: 2
          byte_positions:
          - - 2
            - '1:0'
          description: 'Length of syncword (unit is 2 bytes: 0/16/32 bits). Must be 0 if sync_match is OFF'
          optional: false
          enum:
            SW_NONE: 0
            SW_16B: 1
            SW_32B: 2
        - name: sw_tx
          bit_width: 2
          byte_positions:
          - - 3
            - '7:6'
          description: Defines which syncword to use for TX operations
          optional: false
          enum:
            SW_NONE: 0
            SW1: 1
            SW2: 2
            SW3: 3
        - name: sw_match
          bit_width: 3
          byte_positions:
          - - 3
            - '5:3'
          description: Match syncword(s) configuration
          optional: false
          enum:
            MATCH_NONE: 0
            MATCH_1: 1
            MATCH_2: 2
            MATCH_12: 3
            MATCH_3: 4
            MATCH_13: 5
            MATCH_23: 6
            MATCH_123: 7
        - name: pkt_format
          bit_width: 1
          byte_positions:
          - - 3
            - '2'
          description: Packet format selection
          optional: false
          enum:
            DYNAMIC: 0
            FIXED: 1
        - name: crc
          bit_width: 2
          byte_positions:
          - - 3
            - '1:0'
          description: CRC configuration
          optional: false
          enum:
            CRC_OFF: 0
            CRC_16: 1
            CRC_24: 2
            CRC_32: 3
        - name: pld_len
          bit_width: 16
          byte_positions:
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: Payload length. Valid values are [6..511]. Note that on the sx1280, valid values are only [6..127].
            In Dynamic pkt_format, the device will output a LenError IRQ, but remain in RX mode
          optional: false
      GetFlrcRxStats:
        opcode: 586
        description: Gets the internal statistics of the received packets. Statistics are reset on a POR, sleep without memory
          retention and the command ResetRxStats
        parameters: []
        status_fields:
        - name: pkt_rx
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: Total number of received packets
          optional: false
        - name: crc_error
          bit_width: 16
          byte_positions:
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: Number of received packets with a CRC error
          optional: false
        - name: len_error
          bit_width: 16
          byte_positions:
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          description: Number of packets with a length error
          optional: false
      GetFlrcPacketStatus:
        opcode: 587
        description: Gets the status of the last received packet. Status is updated at the end of a reception (RxDone irq),
          but rssi_sync is already updated on SyncWordValid irq
        parameters: []
        status_fields:
        - name: pkt_len
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: Length of the last received packet in bytes
          optional: false
        - name: rssi_avg
          bit_width: 9
          byte_positions:
          - - 4
            - '7:0'
          - - 6
            - '2'
          description: Average over last packet received of RSSI. Actual signal power is –rssi_avg/2 (dBm)
          optional: false
        - name: rssi_sync
          bit_width: 9
          byte_positions:
          - - 5
            - '7:0'
          - - 6
            - '0'
          description: Latch RSSI value after syncword detection. Actual signal power is –rssi_sync/2 (dBm)
          optional: false
        - name: sw_num
          bit_width: 4
          byte_positions:
          - - 6
            - '7:4'
          description: Detected syncword number of latest received packet
          optional: false
      SetFlrcSyncword:
        opcode: 588
        description: Sets the syncword for FLRC packets. 16 or 32 bits can be sent for the syncword. Bytes 5 and 6 are optional
          if only 16bit syncword is required
        parameters:
        - name: sw_num
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: Syncword number (valid values are 1, 2, 3)
          optional: false
        - name: syncword
          bit_width: 32
          byte_positions:
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          - - 6
            - '7:0'
          description: Syncword value (16 or 32 bits)
          optional: false
  fsk:
    commands:
      SetFskModulationParams:
        opcode: 576
        description: Sets the modulation parameters for FSK packets. FW configures respective modem registers. Will return
          CMD_FAIL in the status of the next command, if the packet type is not FSK
        parameters:
        - name: bitrate
          bit_width: 32
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: 'Bitrate interpretation depends on bit 31. If bit 31=0: bitrate in bits/s is bitrate(30:0). If bit
            31=1: bitrate in bits/s is bitrate(30:0)/256'
          optional: false
        - name: pulse_shape
          bit_width: 4
          byte_positions:
          - - 6
            - '3:0'
          description: Pulse shaping filter selection
          optional: false
          enum:
            NONE: 0
            CUSTOM: 1
            BT_0_3: 4
            BT_0_5: 5
            BT_0_7: 6
            BT_1_0: 7
            BT_2_0: 2
            RC_0_3: 8
            RC_0_5: 9
            RC_0_7: 10
            RC_1_0: 11
            RRC_0_3: 12
            RRC_0_4: 3
            RRC_0_5: 13
            RRC_0_7: 14
            RRC_1_0: 15
        - name: rx_bw
          bit_width: 8
          byte_positions:
          - - 7
            - '7:0'
          description: RX bandwidth (same format as in the SetAdvancedModulationParams command)
          optional: false
          enum:
            BW_AUTO: 255
            BW_3076: 0
            BW_2857: 64
            BW_2666: 128
            BW_2222: 192
            BW_1333: 136
            BW_1111: 200
            BW_888: 144
            BW_769: 24
            BW_740: 208
            BW_714: 88
            BW_666: 152
            BW_615: 32
            BW_571: 96
            BW_555: 216
            BW_533: 160
            BW_512: 17
            BW_476: 81
            BW_444: 224
            BW_384: 25
            BW_370: 209
            BW_357: 89
            BW_333: 153
            BW_307: 33
            BW_285: 97
            BW_277: 217
            BW_266: 161
            BW_256: 18
            BW_238: 82
            BW_222: 225
            BW_192: 26
            BW_185: 210
            BW_178: 90
            BW_166: 154
            BW_153: 34
            BW_142: 98
            BW_138: 218
            BW_133: 162
            BW_128: 19
            BW_119: 83
            BW_111: 226
            BW_96: 27
            BW_92: 211
            BW_89: 91
            BW_83: 155
            BW_76: 35
            BW_71: 99
            BW_69: 219
            BW_66: 163
            BW_64: 20
            BW_59: 84
            BW_55: 227
            BW_48: 28
            BW_46: 212
            BW_44: 92
            BW_41: 156
            BW_38: 36
            BW_35: 100
            BW_34: 220
            BW_33: 164
            BW_32: 21
            BW_29: 85
            BW_27: 228
            BW_24: 29
            BW_23: 213
            BW_22: 93
            BW_20: 157
            BW_19: 37
            BW_17: 101
            BW_16: 165
            BW_14: 86
            BW_13: 229
            BW_12: 30
            BW_11: 94
            BW_10: 158
            BW_9_6: 38
            BW_8_9: 102
            BW_8_7: 222
            BW_8_3: 166
            BW_8: 23
            BW_7_4: 87
            BW_6_9: 230
            BW_6: 31
            BW_5_8: 215
            BW_5_6: 95
            BW_5_2: 159
            BW_4_8: 39
            BW_4_5: 103
            BW_4_3: 223
            BW_4_2: 167
            BW_3_5: 231
        - name: fdev
          bit_width: 24
          byte_positions:
          - - 8
            - '7:0'
          - - 9
            - '7:0'
          - - 10
            - '7:0'
          description: Frequency deviation in Hz
          optional: false
      SetFskPacketParams:
        opcode: 577
        description: Sets the packet parameters for FSK packets.. Command will fail
          if packet type is not FSK
        parameters:
        - name: pbl_len_tx
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: Preamble length in bits
          optional: false
        - name: pbl_len_detect
          bit_width: 8
          byte_positions:
          - - 4
            - '7:0'
          description: Preamble detection length. 0=off (detection on syncword), others=length of preamble detection. Enables/disables
            PreambleDetected IRQ
          optional: false
          enum:
            NONE: 0
            LEN_8_BITS: 8
            LEN_16_BITS: 16
            LEN_24_BITS: 24
            LEN_32_BITS: 32
        - name: pbl_long
          bit_width: 1
          byte_positions:
          - - 5
            - '4'
          description: Enable long preamble mode (more than 2kb)
          optional: false
        - name: pld_len_unit
          bit_width: 1
          byte_positions:
          - - 5
            - '4'
          description: Payload length unit
          optional: false
          enum:
            BYTES: 0
            BITS: 1
        - name: addr_comp
          bit_width: 2
          byte_positions:
          - - 5
            - '3:2'
          description: Address filtering mode. If address comparison fails, packet reception is aborted and addrErr flag is
            set
          optional: false
          enum:
            'OFF': 0
            NODE: 1
            NODE_BCAST: 2
        - name: fsk_pkt_format
          bit_width: 2
          byte_positions:
          - - 5
            - '1:0'
          description: Packet format selection (fixed or variable length)
          optional: false
          enum:
            FIXED_LENGTH: 0
            VARIABLE_8BIT: 1
            VARIABLE_9BIT: 2
            VARIABLE_16BIT: 3
        - name: pld_len
          bit_width: 16
          byte_positions:
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          description: 'Payload length in bytes. For fixed length: defines payload length. For variable length: defines max
            packet length. If received packet > pld_len, LenError IRQ is raised with RXDone IRQ'
          optional: false
        - name: crc
          bit_width: 4
          byte_positions:
          - - 8
            - '7:4'
          description: CRC mode selection
          optional: false
          enum:
            CRC_OFF: 0
            CRC_1_BYTE: 1
            CRC_2_BYTE: 2
            CRC_3_BYTE: 3
            CRC_4_BYTE: 4
            CRC_1_BYTE_INV: 9
            CRC_2_BYTE_INV: 10
            CRC_3_BYTE_INV: 11
            CRC_4_BYTE_INV: 12
        - name: dc_free
          bit_width: 1
          byte_positions:
          - - 8
            - '0'
          description: Whitening enable
          optional: false
      SetFskWhiteningParams:
        opcode: 578
        description: Configure the whitening params for FSK packets, SX126x/LR11xx or SX128x compatible
        parameters:
        - name: whiten_type
          bit_width: 1
          byte_positions:
          - - 2
            - '4:4'
          description: Whitening type compatibility
          optional: false
          enum:
            SX126X_LR11XX: 0
            SX128X: 1
        - name: init
          bit_width: 12
          byte_positions:
          - - 2
            - '3:0'
          - - 3
            - '7:0'
          description: Whitening seed value
          optional: false
      SetFskCrcParams:
        opcode: 579
        description: Configure the CRC params for FSK packets
        parameters:
        - name: polynom
          bit_width: 32
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: LFSR polynomial
          optional: false
        - name: init
          bit_width: 32
          byte_positions:
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          - - 8
            - '7:0'
          - - 9
            - '7:0'
          description: Initial LFSR value
          optional: false
      SetFskSyncWord:
        opcode: 580
        description: Configure the syncword for FSK packets
        parameters:
        - name: syncword
          bit_width: 64
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          - - 8
            - '7:0'
          - - 9
            - '7:0'
          description: Syncword value. Always the LSBs of the 64bit syncword are sent if nb_bits<64, not depending on bit_order
          optional: false
        - name: bit_order
          bit_width: 1
          byte_positions:
          - - 10
            - '7'
          description: Bit order for syncword transmission (over the air). Set MSB first for SX126x, LR11xx, SX1280 compatible
            value
          optional: false
          enum:
            LSB_FIRST: 0
            MSB_FIRST: 1
        - name: nb_bits
          bit_width: 7
          byte_positions:
          - - 10
            - '6:0'
          description: Length of syncword in bits
          optional: false
      SetFskAddress:
        opcode: 581
        description: Configure the addresses for filtering for FSK packets
        parameters:
        - name: addr_node
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: Node address
          optional: false
        - name: addr_bcast
          bit_width: 8
          byte_positions:
          - - 3
            - '7:0'
          description: Broadcast address
          optional: false
      GetFskRxStats:
        opcode: 582
        description: Get FSK RX stats
        parameters: []
        status_fields:
        - name: pkt_rx
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: Total number of received packets
          optional: false
        - name: crc_error
          bit_width: 16
          byte_positions:
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: Number of received packets with a CRC error
          optional: false
        - name: len_error
          bit_width: 16
          byte_positions:
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          description: Number of packets with a length error
          optional: false
        - name: pbl_det
          bit_width: 16
          byte_positions:
          - - 8
            - '7:0'
          - - 9
            - '7:0'
          description: Number of detections
          optional: false
        - name: sync_ok
          bit_width: 16
          byte_positions:
          - - 10
            - '7:0'
          - - 11
            - '7:0'
          description: Number of good found syncword
          optional: false
        - name: sync_fail
          bit_width: 16
          byte_positions:
          - - 12
            - '7:0'
          - - 13
            - '7:0'
          description: Number of failed syncword
          optional: false
        - name: timeout
          bit_width: 16
          byte_positions:
          - - 14
            - '7:0'
          - - 15
            - '7:0'
          description: Number of RTC timeouts
          optional: false
      GetFskPacketStatus:
        opcode: 583
        description: Gets the status of the last received packet. Status is updated at the end of a reception (RxDone irq),
          but rssi_sync is already updated on SyncWordValid irq
        parameters: []
        status_fields:
        - name: pkt_len
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: Length of the last received packet in bytes (including optional data added in the FIFO, crc, ...)
          optional: false
        - name: rssi_avg
          bit_width: 9
          byte_positions:
          - - 4
            - '7:0'
          - - 6
            - '2'
          description: Average over last packet received of RSSI. Actual signal power is –rssi_avg/2 (dBm)
          optional: false
        - name: rssi_sync
          bit_width: 9
          byte_positions:
          - - 5
            - '7:0'
          - - 6
            - '0'
          description: Latch RSSI value after syncword detection. Actual signal power is –rssi_sync/2 (dBm)
          optional: false
        - name: addr_match_bcast
          bit_width: 1
          byte_positions:
          - - 6
            - '5'
          description: Indicates if the last packet received matched the broadcast address
          optional: false
        - name: addr_match_node
          bit_width: 1
          byte_positions:
          - - 6
            - '4'
          description: Indicates if the last packet received matched the node address
          optional: false
        - name: lqi
          bit_width: 8
          byte_positions:
          - - 7
            - '7:0'
          description: Link quality indicator (0.25dB)
          optional: false
  lora:
    commands:
      SetLoraModulationParams:
        opcode: 544
        description: Sets the LoRa modulation parameters. FW configures respective modem registers. Will return CMD_FAIL in
          the status of the next command, if the packet type is not LoRa
        parameters:
        - name: sf
          bit_width: 4
          byte_positions:
          - - 2
            - '7:4'
          description: Spreading factor
          optional: false
          enum:
            SF5: 5
            SF6: 6
            SF7: 7
            SF8: 8
            SF9: 9
            SF10: 10
            SF11: 11
            SF12: 12
        - name: lora_bw
          bit_width: 4
          byte_positions:
          - - 2
            - '3:0'
          description: Bandwidth selection
          optional: false
          enum:
            BW_7: 0
            BW_15: 1
            BW_31: 2
            BW_62: 3
            BW_125: 4
            BW_250: 5
            BW_500: 6
            BW_1000: 7
            BW_10: 8
            BW_20: 9
            BW_41: 10
            BW_83: 11
            BW_101: 12
            BW_203: 13
            BW_406: 14
            BW_812: 15
        - name: lora_cr
          bit_width: 4
          byte_positions:
          - - 3
            - '7:4'
          description: Coding rate
          optional: false
          enum:
            NO_CODING: 0
            CR1_HAM_45_SI: 1
            CR2_HAM_23_SI: 2
            CR3_HAM_47_SI: 3
            CR4_HAM_12_SI: 4
            CR5_HAM_45_LI: 5
            CR6_HAM_23_LI: 6
            CR7_HAM_12_LI: 7
            CR8_CC_23: 8
            CR9_CC_12: 9
        - name: ldro
          bit_width: 2
          byte_positions:
          - - 3
            - '1:0'
          description: Low Data Rate Optimisation. Enable for high Spreading factor to increase tolerance to clock drift.
          optional: false
          enum:
            'OFF': 0
            'ON': 1
        - name: lora_filter
          bit_width: 2
          byte_positions:
          - - 3
            - '3:2'
          description: Configure extra filtering (for fractional bandwidth)
          optional: false
          enum:
            'AUTO': 0
            'CHF': 1
            'DCC': 2
            'DCC_F': 3
      SetLoraPacketParams:
        opcode: 545
        description: Sets the packet parameters for the LoRa packets. FW configures according modem registers
        parameters:
        - name: pbl_len
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: Preamble length in symbols
          optional: false
        - name: payload_len
          bit_width: 8
          byte_positions:
          - - 4
            - '7:0'
          description: 'Payload length in bytes. For explicit header mode: 0=accept any payload length, xx=accept only payload
            length from 1 to xx. Payloads length of 0 or >xx are rejected and result in a header error irq'
          optional: false
        - name: header_type
          bit_width: 1
          byte_positions:
          - - 5
            - '2'
          description: Header type selection
          optional: false
          enum:
            EXPLICIT: 0
            IMPLICIT: 1
        - name: crc_en
          bit_width: 1
          byte_positions:
          - - 5
            - '1'
          description: CRC enable
          optional: false
        - name: invert_iq
          bit_width: 1
          byte_positions:
          - - 5
            - '0'
          description: 'IQ setup. Note: invert IQ for SX1280 bandwidths (800, 400, 200) are defined the other way round and will result in inverted chirps'
          optional: false
      SetLoraSynchTimeout:
        opcode: 546
        description: Configure LoRa modem to search for a detect for N symbols. N can be given as number, or as mantissa/exponent.
          SymbolNum 0x00 means no timeout
        parameters:
        - name: symbols
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: Number of symbols for timeout (format dependent)
          optional: false
        - name: timeout_format
          bit_width: 1
          byte_positions:
          - - 3
            - '0'
          description: "Format selection for symbols parameter: either an integer number of symbol or a floating point representation (exponent on 3 MSB bits with mantissa on 5 LSB bits)
            Exponent has a resolution of 2 with an offset meaning the mantisse is multiplied by 2^(n+1)"
          optional: false
          enum:
            INTEGER: 0
            FLOAT: 1
      SetLoraSyncword:
        opcode: 547
        description: 'Sets the LoRa syncword. Default value is 0x12. Examples: Public Network: 0x34, Private Network: 0x12'
        parameters:
        - name: syncword
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: LoRa syncword
          optional: false
      ConfigLoraPreambleModulation:
        opcode: 550
        description: Configures the LoRa phase modulation demodulation during preamble feature. If enabled, for TX the preamble
          will have a phase modulation overlayed to the LoRa modulation
        parameters:
        - name: pmod_en
          bit_width: 1
          byte_positions:
          - - 2
            - '7'
          description: Enable preamble modulation
          optional: false
        - name: dram_ret
          bit_width: 3
          byte_positions:
          - - 2
            - '2:0'
          description: DRAM retention configuration
          optional: false
        - name: wakeup_time
          bit_width: 16
          byte_positions:
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          description: Wakeup time
          optional: false
        - name: min_sleep_time
          bit_width: 24
          byte_positions:
          - - 5
            - '7:0'
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          description: Minimum sleep time
          optional: false
        - name: err_thr
          bit_width: 7
          byte_positions:
          - - 8
            - '6:0'
          description: Error threshold
          optional: true
        - name: min_sym
          bit_width: 4
          byte_positions:
          - - 9
            - '7:4'
          description: Minimum symbols
          optional: true
        - name: detect_time_sym
          bit_width: 4
          byte_positions:
          - - 9
            - '3:0'
          description: Detection time in symbols
          optional: true
        - name: start_offset
          bit_width: 8
          byte_positions:
          - - 10
            - '7:0'
          description: Start offset
          optional: true
        - name: end_offset
          bit_width: 8
          byte_positions:
          - - 11
            - '7:0'
          description: End offset
          optional: true
      SetLoraCadParams:
        opcode: 551
        description: Configure LoRa CAD mode parameters. Sets up Channel Activity Detection which searches for presence of
          LoRa preamble symbols
        parameters:
        - name: nb_symbols
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: CAD length in symbols
          optional: false
        - name: pbl_any
          bit_width: 1
          byte_positions:
          - - 3
            - '4'
          description: Detect any preamble length
          optional: false
        - name: pnr_delta
          bit_width: 4
          byte_positions:
          - - 3
            - '3:0'
          description: Peak to noise ratio delta. Set to 8 for fast CAD reducing CAD time when there is no activity to detect.
          optional: false
        - name: exit_mode
          bit_width: 8
          byte_positions:
          - - 4
            - '7:0'
          description: Action taken after CAD
          optional: false
          enum:
            CAD_ONLY: 0
            CAD_RX: 1
            CAD_LBT: 16
        - name: timeout
          bit_width: 24
          byte_positions:
          - - 5
            - '7:0'
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          description: Timeout for CAD operation
          optional: false
        - name: det_peak
          bit_width: 8
          byte_positions:
          - - 8
            - '7:0'
          description: Detection peak threshold. Ratio between peak value and average, given in 3.4b fixed point format. Typical value are between 50 to 70.
          optional: false
      SetLoraCad:
        opcode: 552
        description: Set device into RX CAD mode (LoRa). The Channel Activity Detection searches for the presence of LoRa
          preamble symbols. Parameters must be previously set using SetLoraCadParams
        parameters: []
      GetLoraRxStats:
        opcode: 553
        description: Gets the internal statistics of the received packets. Statistics are reset on a POR, sleep without memory
          retention and the command ResetRxStats
        parameters: []
        status_fields:
        - name: pkt_rx
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: Total number of received packets
          optional: false
        - name: crc_error
          bit_width: 16
          byte_positions:
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: Number of received packets with a CRC error
          optional: false
        - name: header_error
          bit_width: 16
          byte_positions:
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          description: Number of received packets with a header error
          optional: false
        - name: detection
          bit_width: 16
          byte_positions:
          - - 8
            - '7:0'
          - - 9
            - '7:0'
          description: Number of preamble detection
          optional: false
        - name: false_sync
          bit_width: 16
          byte_positions:
          - - 10
            - '7:0'
          - - 11
            - '7:0'
          description: Number of false synchronizations
          optional: false
      GetLoraPacketStatus:
        opcode: 554
        description: Gets the status of the last received packet. Status is updated at the end of a reception (RxDone or CadDone
          irqs)
        parameters: []
        status_fields:
        - name: crc
          bit_width: 1
          byte_positions:
          - - 2
            - '4'
          description: CRC status from header (explicit mode) or configured setting (implicit mode). 1=CRC_ON, 0=CRC_OFF
          optional: false
        - name: coding_rate
          bit_width: 4
          byte_positions:
          - - 2
            - '3:0'
          description: Coding rate from header (explicit mode) or configured setting (implicit mode)
          optional: false
        - name: pkt_length
          bit_width: 8
          byte_positions:
          - - 3
            - '7:0'
          description: Length of the last packet received
          optional: false
        - name: snr_pkt
          bit_width: 8
          signed: true
          byte_positions:
          - - 4
            - '7:0'
          description: Estimation of SNR on last packet received. In two's complement format multiplied by 4. Actual SNR in
            dB is snr_pkt/4
          optional: false
        - name: rssi_pkt
          bit_width: 9
          byte_positions:
          - - 5
            - '7:0'
          - - 7
            - '1'
          description: Average over last packet received of RSSI. Actual signal power is –rssi_pkt/2 [dBm]
          optional: false
        - name: rssi_signal_pkt
          bit_width: 9
          byte_positions:
          - - 6
            - '7:0'
          - - 7
            - '0'
          description: Estimation of RSSI of the LoRa signal (after despreading) on last packet received. Actual value is
            -rssi_signal_pkt/2 [dBm]
          optional: false
        - name: detector
          bit_width: 4
          byte_positions:
          - - 7
            - '5:2'
          description: Flags which detector(s) received the packet. 0001=main, 0010=side1, 0100=side2, 1000=side3. In normal
            RX, only one flag is set. In CAD, all detector paths triggered are set
          optional: false
      SetLoraAddress:
        opcode: 555
        description: Sets the address for LoRa RX address filtering
        parameters:
        - name: addr_len
          bit_width: 4
          byte_positions:
          - - 2
            - '7:4'
          description: Number of bytes (0..8) used in address filtering. 0=no address filtering
          optional: false
          enum:
            ADDR_NONE: 0
            ADDR_1_B: 1
            ADDR_2_B: 2
            ADDR_3_B: 3
            ADDR_4_B: 4
            ADDR_5_B: 5
            ADDR_6_B: 6
            ADDR_7_B: 7
            ADDR_8_B: 8
        - name: addr_pos
          bit_width: 4
          byte_positions:
          - - 2
            - '3:0'
          description: Address position in byte in the frame (header not counted)
          optional: false
        - name: addr
          bit_width: 64
          le: true
          byte_positions:
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          - - 8
            - '7:0'
          - - 9
            - '7:0'
          - - 10
            - '7:0'
          description: Variable length address used to filter. 1-8 bytes can be sent, depending on addr_comp_len configured
          optional: false
      # SetLoraHopping:
      #   opcode: 556
      #   description: Configures the intra-packet hopping in LoRa mode. A maximum of 40 hopping frequencies are accepted
      #   parameters:
      #   - name: hop_ctrl
      #     bit_width: 2
      #     byte_positions:
      #     - - 2
      #       - '7:6'
      #     description: Hopping control configuration
      #     optional: false
      #   - name: hop_period
      #     bit_width: 13
      #     byte_positions:
      #     - - 2
      #       - '4:0'
      #     - - 3
      #       - '7:0'
      #     description: Hopping period in symbols
      #     optional: false
      #   - name: freq_hop
      #     bit_width: 32
      #     byte_positions: []
      #     description: Variable length array of hopping frequencies (up to 40)
      #     optional: false
      SetLoraSyncwordExtended:
        opcode: 557
        description: Extended version of the SetLoraSyncword command to set all 10bits of the syncword
        parameters:
        - name: sync1
          bit_width: 5
          byte_positions:
          - - 2
            - '4:0'
          description: First 5 bits of syncword
          optional: false
        - name: sync2
          bit_width: 5
          byte_positions:
          - - 3
            - '4:0'
          description: Second 5 bits of syncword
          optional: false
      SetLoraSideDetSyncwordExtended:
        opcode: 558
        description: Extended version of the SetLoraSideDetSyncword command to set all 10bits of the syncwords
        parameters:
        - name: sd1_sw1
          bit_width: 5
          byte_positions:
          - - 2
            - '4:0'
          description: First 5 bits of side detector 1 syncword
          optional: false
        - name: sd1_sw2
          bit_width: 5
          byte_positions:
          - - 3
            - '4:0'
          description: Second 5 bits of side detector 1 syncword
          optional: false
        - name: sd2_sw1
          bit_width: 5
          byte_positions:
          - - 4
            - '4:0'
          description: First 5 bits of side detector 2 syncword
          optional: false
        - name: sd2_sw2
          bit_width: 5
          byte_positions:
          - - 5
            - '4:0'
          description: Second 5 bits of side detector 2 syncword
          optional: false
        - name: sd3_sw1
          bit_width: 5
          byte_positions:
          - - 6
            - '4:0'
          description: First 5 bits of side detector 3 syncword
          optional: false
        - name: sd3_sw2
          bit_width: 5
          byte_positions:
          - - 7
            - '4:0'
          description: Second 5 bits of side detector 3 syncword
          optional: false
      SetLoraTxSync:
        opcode: 541
        description: Configures the LoRa Tx synchronization using dio
        parameters:
        - name: timing_sync_mode
          bit_width: 2
          byte_positions:
          - - 2
            - '7:6'
          description: TX Sync function
          optional: false
          enum:
            DISABLED: 0
            INITIATOR: 1
            RESPONDER: 2
        - name: dio_num
          bit_width: 4
          byte_positions:
          - - 2
            - '3:0'
          description: DIO used to start the sync or output a sync (5 to 11)
          optional: false
          enum:
            DIO5 : 5
            DIO6 : 6
            DIO7 : 7
            DIO8 : 8
            DIO9 : 9
            DIO10 : 10
            DIO11 : 11
      SetLoraBlanking:
        opcode: 0x021D
        description: "Configures the LoRa Tx synchronization using dio"
        parameters:
          - name: thr_gain
            bit_width: 2
            byte_positions: [[2, "7:6"]]
            description: "Symbol blanking gain"
            optional: false
          - name: thr
            bit_width: 4
            byte_positions: [[2, "5:2"]]
            description: "Blocker threshold"
            optional: false
          - name: lvl_gain
            bit_width: 2
            byte_positions: [[2, "1:0"]]
            description: "Blocker level gain"
            optional: false
          - name: detect
            bit_width: 1
            byte_positions: [[3, "4"]]
            description: "Unable blanking during detection"
            optional: false
          - name: rssi_thr
            bit_width: 4
            byte_positions: [[3, "3:0"]]
            description: "RSSI threshold for blocker detection"
            optional: false

  lrfhss:
    commands:
      LrFhssBuildFrame:
        opcode: 598
        description: Prepare LR-FHSS packet in the FIFO without sending it
        parameters:
        - name: sync_header_cnt
          bit_width: 4
          byte_positions:
          - - 2
            - '3:0'
          description: Number of sent sync headers (1, 2, 3, 4)
          optional: false
        - name: lrfhss_cr
          bit_width: 4
          byte_positions:
          - - 2
            - '7:4'
          description: Coding rate selection
          optional: false
          enum:
            CR5_6: 0
            CR2_3: 1
            CR1_2: 2
            CR1_3: 3
        # Only one enum possible, just ignore
        # - name: mod_type
        #   bit_width: 4
        #   byte_positions:
        #   - - 3
        #     - '3:0'
        #   description: Modulation type
        #   optional: false
        #   enum:
        #     GMSK_488_28125_HZ: 0
        - name: grid
          bit_width: 4
          byte_positions:
          - - 3
            - '7:4'
          description: Frequency grid selection (25.39kHz or 3.91kHz)
          optional: false
          enum:
            GRID_25: 0
            GRID_4: 1
        - name: hopping
          bit_width: 4
          byte_positions:
          - - 4
            - '3:0'
          description: Hopping mode selection
          optional: false
          enum:
            NO_HOPPING: 0
            HOPPING: 1
            TEST_PAYLOAD_ENCODED: 2
            TEST_PA_RAMP: 3
        - name: lrfhss_bw
          bit_width: 4
          byte_positions:
          - - 4
            - '7:4'
          optional: false
          description: 'Bandwidth occupied by hopping pattern'
          enum:
            BW_39_06: 0
            BW_85_94: 1
            BW_136_72: 2
            BW_183_59: 3
            BW_335_94: 4
            BW_386_72: 5
            BW_722_66: 6
            BW_773_44: 7
            BW_1523_4: 8
            BW_1574_2: 9
        - name: sequence
          bit_width: 9
          byte_positions:
          - - 5
            - '0'
          - - 6
            - '7:0'
          description: Seed for hopping sequence (9 bits)
          optional: false
        - name: offset
          bit_width: 8
          byte_positions:
          - - 7
            - '7:0'
          description: Frequency offset. Allowed signed values [-26, 25] for Grid = 25.4KHz and [-4, 3] for Grid = 3.9KHz
          signed: true
          optional: false
        # This will be handle by the API to call a second functio without raising the NSS in between
        # - name: payload
        #   bit_width: 0
        #   byte_positions: []
        #   description: Variable length payload to encode (up to 255 bytes)
        #   optional: false
      SetLrFhssSyncWord:
        opcode: 599
        description: Sets the LR-FHSS syncword. Reset value is { 0x2C, 0x0F, 0x79, 0x95 }
        parameters:
        - name: syncword
          bit_width: 32
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: LR-FHSS syncword
          optional: false
          default: 739211669
      WriteLrFhssHoppingTable:
        opcode: 0x0259
        description: "Writes the LR-FHSS hopping table."
        parameters:
        - name: hop_en
          bit_width: 1
          byte_positions: [[2, "0"]]
          description: "Enable hopping"
          optional: false
        - name: freq_hz
          bit_width: 1
          byte_positions: [[2, "7"]]
          description: "Frequency provided in Hz instead of PLL step"
          optional: false
        - name: pkt_length
          bit_width: 16
          byte_positions: [[3, "7:0"], [4, "7:0"]]
          description: "Packet length"
          optional: false
        - name: nb_used_freqs
          bit_width: 8
          byte_positions: [[5, "7:0"]]
          description: "How many frequencies are used"
          optional: false
        - name: nb_hopping_blocks
          bit_width: 8
          byte_positions: [[6, "7:0"]]
          description: "Number of hopping blocks"
          optional: false
        # Hopping data is n freq (4B) + length (2B) with n in [1:40]
        # - name: hopping_data
        #   bit_width: 0
        #   byte_positions: []

  ook:
    commands:
      SetOokModulationParams:
        opcode: 641
        description: Sets the OOK modulation parameters
        parameters:
        - name: bitrate
          bit_width: 32
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: 'Bit rate interpretation depends on bit 31. If bit 31=0: bit rate in bits/s is bitrate(30:0). If bit
            31=1: bit rate in bits/s is bitrate(30:0)/256'
          optional: false
        - name: pulse_shape
          bit_width: 4
          byte_positions:
          - - 6
            - '3:0'
          description: Pulse shaping filter (same as for FSK)
          optional: false
          enum:
            NONE: 0
            CUSTOM: 1
            BT_0_3: 4
            BT_0_5: 5
            BT_0_7: 6
            BT_1_0: 7
            BT_2_0: 2
            RC_0_3: 8
            RC_0_5: 9
            RC_0_7: 10
            RC_1_0: 11
            RRC_0_3: 12
            RRC_0_4: 3
            RRC_0_5: 13
            RRC_0_7: 14
            RRC_1_0: 15
        - name: rx_bw
          bit_width: 8
          byte_positions:
          - - 7
            - '7:0'
          description: RX bandwidth (same as for FSK, but should not be larger than bitrate*5)
          optional: false
          enum:
            BW_AUTO: 255
            BW_3076: 0
            BW_2857: 64
            BW_2666: 128
            BW_2222: 192
            BW_1333: 136
            BW_1111: 200
            BW_888: 144
            BW_769: 24
            BW_740: 208
            BW_714: 88
            BW_666: 152
            BW_615: 32
            BW_571: 96
            BW_555: 216
            BW_533: 160
            BW_512: 17
            BW_476: 81
            BW_444: 224
            BW_384: 25
            BW_370: 209
            BW_357: 89
            BW_333: 153
            BW_307: 33
            BW_285: 97
            BW_277: 217
            BW_266: 161
            BW_256: 18
            BW_238: 82
            BW_222: 225
            BW_192: 26
            BW_185: 210
            BW_178: 90
            BW_166: 154
            BW_153: 34
            BW_142: 98
            BW_138: 218
            BW_133: 162
            BW_128: 19
            BW_119: 83
            BW_111: 226
            BW_96: 27
            BW_92: 211
            BW_89: 91
            BW_83: 155
            BW_76: 35
            BW_71: 99
            BW_69: 219
            BW_66: 163
            BW_64: 20
            BW_59: 84
            BW_55: 227
            BW_48: 28
            BW_46: 212
            BW_44: 92
            BW_41: 156
            BW_38: 36
            BW_35: 100
            BW_34: 220
            BW_33: 164
            BW_32: 21
            BW_29: 85
            BW_27: 228
            BW_24: 29
            BW_23: 213
            BW_22: 93
            BW_20: 157
            BW_19: 37
            BW_17: 101
            BW_16: 165
            BW_14: 86
            BW_13: 229
            BW_12: 30
            BW_11: 94
            BW_10: 158
            BW_9_6: 38
            BW_8_9: 102
            BW_8_7: 222
            BW_8_3: 166
            BW_8: 23
            BW_7_4: 87
            BW_6_9: 230
            BW_6: 31
            BW_5_8: 215
            BW_5_6: 95
            BW_5_2: 159
            BW_4_8: 39
            BW_4_5: 103
            BW_4_3: 223
            BW_4_2: 167
            BW_3_5: 231
        - name: ook_depth
          bit_width: 1
          byte_positions:
          - - 8
            - '0'
          description: Magnitude depth
          optional: true
          default: 0
          enum:
            FULL: 0
            MAX_20_DB: 1
      SetOokPacketParams:
        opcode: 642
        description: Sets the OOK packet parameters. It is recommended to have either whitening or manchester encoding enabled
          for OOK
        parameters:
        - name: pre_len_tx
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: Preamble length for TX (same as FSK)
          optional: false
        - name: addr_comp
          bit_width: 2
          byte_positions:
          - - 4
            - '3:2'
          description: Address comparison mode (same as for FSK)
          optional: false
          enum:
            'OFF': 0
            NODE: 1
            NODE_BCAST: 2
        - name: pkt_format
          bit_width: 2
          byte_positions:
          - - 4
            - '1:0'
          description: Packet format
          optional: false
          enum:
            FIXED_LENGTH: 0
            VARIABLE_8BIT: 1
        - name: pld_len
          bit_width: 16
          byte_positions:
          - - 5
            - '7:0'
          - - 6
            - '7:0'
          description: Payload length (same as for FSK)
          optional: false
        - name: crc
          bit_width: 4
          byte_positions:
          - - 7
            - '7:4'
          description: CRC configuration (same as FSK)
          optional: false
          enum:
            CRC_OFF: 0
            CRC_1_BYTE: 1
            CRC_2_BYTE: 2
            CRC_3_BYTE: 3
            CRC_4_BYTE: 4
            CRC_1_BYTE_INV: 9
            CRC_2_BYTE_INV: 10
            CRC_3_BYTE_INV: 11
            CRC_4_BYTE_INV: 12
        - name: encoding
          bit_width: 4
          byte_positions:
          - - 7
            - '3:0'
          description: Encoding configuration
          optional: false
          enum:
            NONE: 0
            MANCHESTER: 1
            MANCHESTER_INV: 9
            BIPHASE_MARK: 2
            BIPHASE_MARK_INV: 10
      SetOokCrcParams:
        opcode: 643
        description: Sets the OOK CRC parameters (same as for FSK)
        parameters:
        - name: polynom
          bit_width: 32
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: CRC polynomial
          optional: false
        - name: init
          bit_width: 32
          byte_positions:
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          - - 8
            - '7:0'
          - - 9
            - '7:0'
          description: CRC initialization value
          optional: false
      SetOokSyncWord:
        opcode: 644
        description: Sets the OOK syncword. Limited to 32bits max
        parameters:
        - name: syncword
          bit_width: 32
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: Syncword value (limited to 32 bits max)
          optional: false
        - name: bit_order
          bit_width: 1
          byte_positions:
          - - 6
            - '7'
          description: Bit order for syncword transmission
          optional: false
          enum:
            LSB_FIRST: 0
            MSB_FIRST: 1
        - name: nb_bits
          bit_width: 7
          byte_positions:
          - - 6
            - '6:0'
          description: Number of bits in syncword
          optional: false
      SetOokAddress:
        opcode: 645
        description: Sets the OOK address (same as for FSK)
        parameters:
        - name: addr_node
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: Node address
          optional: false
        - name: addr_bcast
          bit_width: 8
          byte_positions:
          - - 3
            - '7:0'
          description: Broadcast address
          optional: false
      GetOokRxStats:
        opcode: 0x0286
        description: "Gets the internal statistics of the received packets. Statistics are reset on a POR, sleep without memory retention and the command ResetRxStats"
        parameters: []
        status_fields:
          - name: pkt_rx
            bit_width: 16
            byte_positions: [[2, "7:0"], [3, "7:0"]]
            description: "Total number of received packets"
            optional: false
          - name: crc_error
            bit_width: 16
            byte_positions: [[4, "7:0"], [5, "7:0"]]
            description: "Number of received packets with a CRC error"
            optional: false
          - name: len_error
            bit_width: 16
            byte_positions: [[6, "7:0"], [7, "7:0"]]
            description: "Number of packets with a length error"
            optional: false
          - name: pbl_det
            bit_width: 16
            byte_positions: [[8, "7:0"], [9, "7:0"]]
            description: "Number of detections"
            optional: true
          - name: sync_ok
            bit_width: 16
            byte_positions: [[10, "7:0"], [11, "7:0"]]
            description: "Number of good found syncword"
            optional: true
          - name: sync_fail
            bit_width: 16
            byte_positions: [[12, "7:0"], [13, "7:0"]]
            description: "Number of failed syncword"
            optional: true
          - name: timeout
            bit_width: 16
            byte_positions: [[14, "7:0"], [15, "7:0"]]
            description: "Number of timeouts"
            optional: true
      GetOokPacketStatus:
        opcode: 647
        description: Gets the status of the last received OOK packet. Status is updated at the end of a reception (RxDone
          irq), but rssi_sync is already updated on SyncWordValid irq
        parameters: []
        status_fields:
        - name: pkt_len
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: Length of the last received packet in bytes (including optional data added in the FIFO, crc, ...)
          optional: false
        - name: rssi_avg
          bit_width: 9
          byte_positions:
          - - 4
            - '7:0'
          - - 6
            - '2'
          description: Average RSSI over the last packet received. Actual signal power is –rssi_avg/2 (dBm)
          optional: false
        - name: rssi_high
          bit_width: 9
          byte_positions:
          - - 5
            - '7:0'
          - - 6
            - '0'
          description: RSSI value of high bits. Actual signal power is –rssi_high/2 (dBm)
          optional: false
        - name: addr_match_bcast
          bit_width: 1
          byte_positions:
          - - 6
            - '5'
          description: Broadcast address match indication
          optional: false
        - name: addr_match_node
          bit_width: 1
          byte_positions:
          - - 6
            - '4'
          description: Node address match indication
          optional: false
        - name: lqi
          bit_width: 8
          byte_positions:
          - - 7
            - '7:0'
          description: Link quality indicator (0.25dB)
          optional: false
      SetOokDetector:
        opcode: 648
        description: Configures the OOK detection. This API is for RX only. Detection pattern for TX has directly to be put
          into the TX FIFO
        parameters:
        - name: preamble_pattern
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: 'The detection pattern. The LSBit is the first bit received. The pattern''s 2 least significant bits
            must be either 01 or 10. Examples: ADS-B=0x0285, RTS=0x1E, INOVA=0x2A6D'
          optional: false
        - name: pattern_length
          bit_width: 4
          byte_positions:
          - - 4
            - '3:0'
          description: 'Pattern length - 1 (i.e. for a pattern length of 2, set this to 1). The actual pattern length must
            be of even length (i.e. the argument must be odd). Examples: ADS-B=15, RTS=7, INOVA=15'
          optional: false
        - name: pattern_num_repeats
          bit_width: 5
          byte_positions:
          - - 5
            - '4:0'
          description: 'Number of repetitions of the preamble pattern. Used to control the timeout for SyncWord search. Max
            value (31) disables the synchronization timeout. Examples: ADS-B=0, RTS=1, INOVA=18'
          optional: false
        - name: sw_is_raw
          bit_width: 1
          byte_positions:
          - - 6
            - '5'
          description: 'Syncword encoding mode: 0=syncword is encoded same way as the payload, 1=syncword is not encoded'
          optional: false
        - name: sfd_kind
          bit_width: 1
          byte_positions:
          - - 6
            - '4'
          description: Start of frame delimiter kind. Set to 0 for ADS-B, RTS and INOVA
          optional: false
          enum:
            FALLING_EDGE: 0
            RISING_EDGE: 1
        - name: sfd_length
          bit_width: 4
          byte_positions:
          - - 6
            - '3:0'
          description: 'Length in bits of the SFD. Examples: RTS=9, ADS-B=0, INOVA=0'
          optional: false
      SetOokWhiteningParams:
        opcode: 649
        description: Configure the whitening for OOK packets. Setting a polynomial of 0 will disable the whitening. It is
          recommended to have either whitening or manchester encoding enabled for OOK
        parameters:
        - name: bit_idx
          bit_width: 4
          byte_positions:
          - - 2
            - '7:4'
          description: Index of the LFSR bit used to whitened data
          optional: false
        - name: polynom
          bit_width: 12
          byte_positions:
          - - 2
            - '3:0'
          - - 3
            - '7:0'
          description: 12-bit whitening polynomial
          optional: false
        - name: init
          bit_width: 12
          byte_positions:
          - - 4
            - '3:0'
          - - 5
            - '7:0'
          description: 12-bit whitening init value
          optional: false
  ranging:
    commands:
      SetRangingAddr:
        opcode: 632
        description: Sets the ranging Id for this device (used by the responder)
        parameters:
        - name: addr
          bit_width: 32
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: 32-bit ranging address for this device
          optional: false
          default: 25
        - name: check_length
          bit_width: 3
          byte_positions:
          - - 6
            - '2:0'
          description: Defines how many of the 4 bytes of the address are checked against the request address sent by the
            initiator. Checked bytes are the LSB if check_length<4
          enum:
            ADDR_8B: 1
            ADDR_16B: 2
            ADDR_24B: 3
            ADDR_32B: 4

      SetRangingReqAddr:
        opcode: 633
        description: Sets the ranging Id for the requests (used by the initiator)
        parameters:
        - name: req_addr
          bit_width: 32
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: 32-bit request address for ranging requests
          optional: false
          default: 25
      GetRangingResult:
        opcode: 634
        description: Gets the ranging result (For Master or spy only). Based on type parameter, different results are returned.
          The Distance [m] = rng1*150/(2^12*LoraBW), with LoraBW in MHz. For extended mode type=1 results, rng1 and rng2 values
          should be averaged to get a distance estimation unaffected by Doppler effect
        parameters:
        - name: ranging_res_kind
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: Type of ranging result to return
          optional: false
          enum:
            LATEST_RAW: 0
            EXTENDED_RAW: 1
            GAIN_STEPS: 2
        status_fields:
        - name: rng
          bit_width: 24
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          description: Ranging measurement value. Distance in meter is given by rng*150/(2^12*Bandwidth),
          signed: true
          optional: false
        - name: rssi
          bit_width: 8
          byte_positions:
          - - 5
            - '7:0'
          description: RSSI value
          optional: false
      GetRangingExtResult:
        opcode: -1
        parameters: []
        status_fields:
        - name: rng1
          bit_width: 24
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          description: First ranging measurement value
          signed: true
          optional: false
        - name: rssi1
          bit_width: 8
          byte_positions:
          - - 5
            - '7:0'
          description: RSSI value for first ranging measurement
          optional: false
        - name: rng2
          bit_width: 24
          byte_positions:
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          - - 8
            - '7:0'
          description: Second ranging measurement value
          signed: true
          optional: false
        # - name: rssi2
        #   bit_width: 8
        #   byte_positions:
        #   - - 9
        #     - '7:0'
        #   description: RSSI value for second ranging measurement
        #   optional: false
      GetRangingGainStep:
        opcode: -1
        parameters: []
        status_fields:
        - name: gain1
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: Radio gain used for first measurement
          optional: false
        - name: gain2
          bit_width: 8
          byte_positions:
          - - 3
            - '7:0'
          description: Radio gain used for second measurement (if available)
          optional: false
      SetRangingTxRxDelay:
        opcode: 635
        description: Sets the Tx->Rx delay for the ranging calibration
        parameters:
        - name: delay
          bit_width: 32
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: Tx to Rx delay for ranging calibration
          optional: false
      SetRangingParams:
        opcode: 636
        description: Sets the ranging specific parameters
        parameters:
        - name: extended
          bit_width: 1
          byte_positions:
          - - 2
            - '7'
          description: 'Enable extended mode (second exchange with inverted direction'
          optional: false
        - name: spy_mode
          bit_width: 1
          byte_positions:
          - - 2
            - '6'
          description: 'Enable spy mode on the next set_rx. In this mode, the radio acts like
            a normal device in responder mode and will send a response to any request for its address,
            but will also listen to requests/responses pairs not addressed to it to measure time-of-flight between those two devices'
          optional: false
        - name: nb_symbols
          bit_width: 6
          byte_positions:
          - - 2
            - '5:0'
          description: Sets the number of chirps sent in the responses
          optional: false
      GetRangingStats:
        opcode: 637
        description: 'Gets the ranging counters for ranging exchanges. Statistics are reset on a POR, sleep without memory
          retention and the command ResetRxStats. Note: for extended ranging mode, the counters are incremented twice, once
          for each request/response'
        parameters: []
        status_fields:
        - name: exchange_valid
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: Number of valid ranging exchanges
          optional: false
        - name: request_valid
          bit_width: 16
          byte_positions:
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: Number of valid ranging requests
          optional: false
        - name: response_done
          bit_width: 16
          byte_positions:
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          description: Number of completed responses
          optional: false
        - name: timeout
          bit_width: 16
          byte_positions:
          - - 8
            - '7:0'
          - - 9
            - '7:0'
          description: 'Number of timeouts (For Initiator role: no response received from responder; For Responder role: no extended
            request received in extended mode)'
          optional: false
        - name: request_discarded
          bit_width: 16
          byte_positions:
          - - 10
            - '7:0'
          - - 11
            - '7:0'
          description: Number of discarded requests
          optional: false
  regmem:
    commands:
      WriteRegMem32:
        opcode: 260
        description: Writes a block of 32-bit words in register/memory space starting at a specific address. The address is
          auto-incremented after each data word so that data is stored in contiguous register/memory locations. Address must
          be 32-bit aligned and data length must be a multiple of 4. Maximum 32 words
        parameters:
        - name: addr
          bit_width: 24
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          description: 24-bit starting address (must be 32-bit aligned)
          optional: false
        - name: data
          bit_width: 32
          byte_positions:
          - - 5
            - '7:0'
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          - - 8
            - '7:0'
          description: Variable length array of 32-bit data words to write (1-64 words, each 4 bytes)
          optional: false
      WriteRegMemMask32:
        opcode: 261
        description: Read-Modify-Writes data at given register/memory address. Only the masked bits (Mask bits = 1) of a single
          32-bit word are modified. Address must be 32-bit aligned
        parameters:
        - name: addr
          bit_width: 24
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          description: 24-bit register/memory address (must be 32-bit aligned)
          optional: false
        - name: mask
          bit_width: 32
          byte_positions:
          - - 5
            - '7:0'
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          - - 8
            - '7:0'
          description: 32-bit mask indicating which bits to modify (1=modify, 0=preserve)
          optional: false
        - name: data
          bit_width: 32
          byte_positions:
          - - 9
            - '7:0'
          - - 10
            - '7:0'
          - - 11
            - '7:0'
          - - 12
            - '7:0'
          description: 32-bit data to write (only masked bits will be applied)
          optional: false
      ReadRegMem32:
        opcode: 262
        description: Reads a block of 32-bit words in register/memory space starting at a specific address. The address is
          auto-incremented after each data word so that data is read from contiguous register locations. Address must be 32-bit
          aligned. Maximum 64 words
        parameters:
        - name: addr
          bit_width: 24
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          description: 24-bit starting address (must be 32-bit aligned)
          optional: false
        - name: len
          bit_width: 8
          byte_positions:
          - - 5
            - '7:0'
          description: Number of 32-bit words to read (maximum 64)
          optional: false
        status_fields:
        - name: value
          bit_width: 32
          byte_positions: [[2, "7:0"], [3, "7:0"], [4, "7:0"], [5, "7:0"]]
          description: Variable length array of 32-bit data words read from memory (len words, each 4 bytes)
          optional: false
  system:
    commands:
      GetStatus:
        opcode: 256
        description: Returns status of device. If the previous command was not a read command, returns the status register.
          If previous transaction was a read command, returns the result of the read command. Also clears the reset status
          returned in the Stat variable
        parameters: []
        status_fields:
        - name: stat
          bit_width: 16
          byte_positions:
          - - 0
            - '7:0'
          - - 1
            - '7:0'
          description: Status register with command status, interrupt status, reset source, and chip mode
          optional: false
        - name: intr
          bit_width: 32
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: IRQ status register
          optional: false
      GetVersion:
        opcode: 257
        description: Returns version of firmware
        parameters: []
        status_fields:
        - name: major
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: Firmware major version
          optional: false
        - name: minor
          bit_width: 8
          byte_positions:
          - - 3
            - '7:0'
          description: Firmware minor version
          optional: false
      GetErrors:
        opcode: 272
        description: Returns current pending errors that occurred since the last ClearErrors() call, or the startup of the
          circuit. It is possible to generate an Irq on DIO when an error occurs
        parameters: []
        status_fields:
        - name: hf_xosc_start
          bit_width: 1
          byte_positions:
          - - 3
            - '0'
          description: High frequency xosc did not start correctly. This is most likely a hardware problem, which might be
            resolved by doing a reset.
          optional: false
        - name: lf_xosc_start
          bit_width: 1
          byte_positions:
          - - 3
            - '1'
          description: Low frequency xosc did not start correctly. This is either a hardware problem, which might be resolved
            by doing a reset, or there is a TCXO instead which must be enabled through SetTcxoMode command.
          optional: false
        - name: pll_lock
          bit_width: 1
          byte_positions:
          - - 3
            - '2'
          description: The pll did not lock. This can come from too high or too low a frequency, or if the pll was not calibrated.
            To fix it try redoing a pll calibration, or using other frequencies
          optional: false
        - name: lf_rc_calib
          bit_width: 1
          byte_positions:
          - - 3
            - '3'
          description: Error during calibration of the low frequency RC, thus no calibration is available. To fix it try redoing
            a calibration. Might come from a hardware issue.
          optional: false
        - name: hf_rc_calib
          bit_width: 1
          byte_positions:
          - - 3
            - '4'
          description: Error during calibration of the high frequency RC, thus no calibration is available. To fix it try
            redoing a calibration. Might come from a hardware issue.
          optional: false
        - name: pll_calib
          bit_width: 1
          byte_positions:
          - - 3
            - '5'
          description: Error during calibration of the PLL (max-min, bank estim, type2), thus no calibration is available.
            To fix it redo the pll calibration. Might come from a hardware issue.
          optional: false
        - name: aaf_calib
          bit_width: 1
          byte_positions:
          - - 3
            - '6'
          description: Error during calibration of the aaf (anti-aliasing filter), thus no calibration is available. To fix
            it try redoing a calibration. Might come from a hardware issue.
          optional: false
        - name: img_calib
          bit_width: 1
          byte_positions:
          - - 3
            - '7'
          description: Error during calibration of the image rejection (IQ comp), thus no calibration is available. To fix
            it redo the image calibration.
          optional: false
        - name: chip_busy
          bit_width: 1
          byte_positions:
          - - 2
            - '0'
          description: Error asserted when a DIO TX or RX trigger could not be executed because chip was busy changing mode.
          optional: false
        - name: rxfreq_no_fe_cal
          bit_width: 1
          byte_positions:
          - - 2
            - '1'
          description: Front End (Image rejection, PPF, ADC offset) calibration was not available for rx operation with specified
            rf frequency. To fix this do the front end calibration for specific rx rf frequency.
          optional: false
        - name: meas_unit_adc_calib
          bit_width: 1
          byte_positions:
          - - 2
            - '2'
          description: Error during calibration of the measure unit adc, thus no calibration is available. To fix it try redoing
            a calibration. Might come from a hardware issue.
          optional: false
        - name: pa_offset_calib
          bit_width: 1
          byte_positions:
          - - 2
            - '3'
          description: Error during calibration of the PA offset, thus no calibration is available. To fix it try redoing
            a calibration. Might come from a hardware issue.
          optional: false
        - name: ppf_calib
          bit_width: 1
          byte_positions:
          - - 2
            - '4'
          description: Error during calibration of the PPF (Poly-Phase Filter), thus no calibration is available. To fix it
            try redoing a calibration. Might come from a hardware issue.
          optional: false
        - name: src_calib
          bit_width: 1
          byte_positions:
          - - 2
            - '5'
          description: Error during calibration of the SRC (Self Reception Cancelation), thus no calibration is available.
            To fix it try redoing a calibration. Might come from a hardware issue.
      ClearErrors:
        opcode: 273
        description: Clears all error flags in the status. The flags cannot be cleared individually. Calling ClearErrors will
          not clear the Error IRQ - the IRQ has to be cleared explicitly with the ClearIrq command
        parameters: []
      SetDioFunction:
        opcode: 274
        description: Configure the functionality of the freely configurable DIOs, as well as the pull-up/down configuration
          for sleep modes. On DIO5, only DIO_SLEEP_PULL_UP is accepted. DIO5/6 have pull-up by default
        parameters:
        - name: dio_num
          bit_width: 4
          byte_positions:
          - - 2
            - '3:0'
          description: DIO number (allowed values are 5-11)
          optional: false
          enum:
            DIO5 : 5
            DIO6 : 6
            DIO7 : 7
            DIO8 : 8
            DIO9 : 9
            DIO10 : 10
            DIO11 : 11
        - name: dio_func
          bit_width: 4
          byte_positions:
          - - 3
            - '7:4'
          description: DIO function selection
          optional: false
          enum:
            NONE: 0
            IRQ: 1
            RF_SWITCH: 2
            GPIO_OUTPUT_LOW: 5
            GPIO_OUTPUT_HIGH: 6
            HF_CLK_OUT: 7
            LF_CLK_OUT: 8
            TX_TRIGGER: 9
            RX_TRIGGER: 10
        - name: pull_drive
          bit_width: 4
          byte_positions:
          - - 3
            - '3:0'
          description: Pull-up/down configuration for sleep mode. DIO_PULL_AUTO means if DIO value in Standby was '1', it
            will be pulled-up, if '0' it will be pulled-down
          optional: false
          enum:
            PULL_NONE: 0
            PULL_DOWN: 1
            PULL_UP: 2
            PULL_AUTO: 3
      SetDioRfSwitchConfig:
        opcode: 275
        description: Configure the value of the specified DIO pin when configured as RF switch with the SetDioFunction command
        parameters:
        - name: dio_num
          bit_width: 4
          byte_positions:
          - - 2
            - '3:0'
          description: DIO number (allowed values are 5-11)
          optional: false
          enum:
            DIO5 : 5
            DIO6 : 6
            DIO7 : 7
            DIO8 : 8
            DIO9 : 9
            DIO10 : 10
            DIO11 : 11
        - name: tx_hf
          bit_width: 1
          byte_positions:
          - - 3
            - '4'
          description: DIO value when in TX HF mode
          optional: false
        - name: rx_hf
          bit_width: 1
          byte_positions:
          - - 3
            - '3'
          description: DIO value when in RX HF mode
          optional: false
        - name: tx_lf
          bit_width: 1
          byte_positions:
          - - 3
            - '2'
          description: DIO value when in TX LF mode
          optional: false
        - name: rx_lf
          bit_width: 1
          byte_positions:
          - - 3
            - '1'
          description: DIO value when in RX LF mode
          optional: false
        - name: standby
          bit_width: 1
          byte_positions:
          - - 3
            - '0'
          description: DIO value when in standby mode
          optional: false
      ClearFifoIrqFlags:
        opcode: 276
        description: Clears specific fifo irq flags
        parameters:
        - name: rx_fifo_flags_to_clear
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: RX FIFO flags to clear
          optional: false
        - name: tx_fifo_flags_to_clear
          bit_width: 8
          byte_positions:
          - - 3
            - '7:0'
          description: TX FIFO flags to clear
          optional: false
      SetDioIrqConfig:
        opcode: 277
        description: Configure IRQs which assert DIO pin
        parameters:
        - name: dio_num
          bit_width: 4
          byte_positions:
          - - 2
            - '3:0'
          description: DIO number (allowed values are 5-11)
          optional: false
          enum:
            DIO5 : 5
            DIO6 : 6
            DIO7 : 7
            DIO8 : 8
            DIO9 : 9
            DIO10 : 10
            DIO11 : 11
        - name: irqs
          bit_width: 32
          byte_positions:
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          - - 6
            - '7:0'
          description: IRQ mask to enable on the specified DIO
          optional: false
      ClearIrq:
        opcode: 278
        description: Clear pending irqs
        parameters:
        - name: irqs
          bit_width: 32
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: IRQs to clear
          optional: false
      GetAndClearIrq:
        opcode: 279
        description: Read out the pending IRQs and clear all pending IRQs
        parameters: []
        status_fields:
        - name: intr
          bit_width: 32
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: Current pending IRQ status (cleared after reading)
          optional: false
      ConfigLfClock:
        opcode: 280
        description: Configures the used Low Frequency clock
        parameters:
        - name: lf_clock
          bit_width: 2
          byte_positions:
          - - 2
            - '1:0'
          description: LF clock source selection
          optional: false
          enum:
            RC: 0
            XTAL: 1
            DIO11: 2
      ConfigClkOutputs:
        opcode: 281
        description: Configure LF and HF clock configuration for DIO output
        parameters:
        - name: clk_scaling
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: 32Mhz clock division factor
          optional: false
          enum:
            DIV_1: 0
            DIV_2: 1
            DIV_4: 2
            DIV_8: 3
            DIV_16: 4
            DIV_32: 5
            DIV_64: 6
            DIV_128: 7
            DIV_256: 8
            DIV_512: 9
            DIV_1024: 10
            DIV_2048: 11
            DIV_4096: 12
            DIV_8192: 13
            DIV_16384: 14
            DIV_32768: 15
      ConfigFifoIrq:
        opcode: 282
        description: Configure which FIFO status flags generate FIFO IRQs as well as the threshold levels
        parameters:
        - name: rx_fifo_irq_enable
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: RX FIFO IRQ enable flags (bit0=FifoEmpty, bit1=FifoLow, bit2=FifoHigh, bit3=FifoFull, bit4=FifoOverflow,
            bit5=FifoUnderflow)
          optional: false
        - name: tx_fifo_irq_enable
          bit_width: 8
          byte_positions:
          - - 3
            - '7:0'
          description: TX FIFO IRQ enable flags (same bit mapping as RX)
          optional: false
        - name: rx_high_threshold
          bit_width: 16
          byte_positions:
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: Threshold level for RX FIFO high flag
          optional: true
        - name: tx_low_threshold
          bit_width: 16
          byte_positions:
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          description: Threshold level for TX FIFO low flag
          optional: true
        - name: rx_low_threshold
          bit_width: 16
          byte_positions:
          - - 8
            - '7:0'
          - - 9
            - '7:0'
          description: Threshold level for RX FIFO low flag
          optional: true
        - name: tx_high_threshold
          bit_width: 16
          byte_positions:
          - - 10
            - '7:0'
          - - 11
            - '7:0'
          description: Threshold level for TX FIFO high flag
          optional: true
      GetFifoIrqFlags:
        opcode: 283
        description: Returns all FIFO flags that have been triggered since the last flags clear. It does not depend on enabled
          flags for the IRQs
        parameters: []
        status_fields:
        - name: rx_fifo_flags
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: RX FIFO flags status
          optional: false
        - name: tx_fifo_flags
          bit_width: 8
          byte_positions:
          - - 3
            - '7:0'
          description: TX FIFO flags status
          optional: false
      GetRxFifoLevel:
        opcode: 284
        description: Read out the RX FIFO level in bytes
        parameters: []
        status_fields:
        - name: level
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: RX FIFO level in bytes
          optional: false
      GetTxFifoLevel:
        opcode: 285
        description: Read out the TX FIFO level in bytes
        parameters: []
        status_fields:
        - name: level
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: TX FIFO level in bytes
          optional: false
      ClearRxFifo:
        opcode: 286
        description: Clears the RX FIFO
        parameters: []
      ClearTxFifo:
        opcode: 287
        description: Clears the TX FIFO
        parameters: []
      SetRegMode:
        opcode: 289
        description: Configures the SIMO mode and ramp times
        parameters:
        - name: simo_usage
          bit_width: 2
          byte_positions:
          - - 2
            - '1:0'
          description: SIMO usage configuration
          optional: false
          enum:
            'OFF': 0
            ALL: 1
            AUTO: 2
            VDCC: 3
        - name: ramp_time_rc2ru_unit
          bit_width: 2
          byte_positions:
          - - 3
            - '6:5'
          description: Ramp time RC to RU resolution
          optional: true
          enum:
            RES_2U: 0
            RES_4U: 1
            RES_8U: 2
            RES_16U: 3
        - name: ramp_time_rc2ru
          bit_width: 5
          byte_positions:
          - - 3
            - '4:0'
          description: Ramp time RC to RU
          optional: true
          default: 31
        - name: ramp_time_tx2ru_unit
          bit_width: 2
          byte_positions:
          - - 4
            - '6:5'
          description: Ramp time TX to RU resolution
          optional: true
          enum:
            RES_2U: 0
            RES_4U: 1
            RES_8U: 2
            RES_16U: 3
        - name: ramp_time_tx2ru
          bit_width: 5
          byte_positions:
          - - 4
            - '4:0'
          description: Ramp time TX to RU
          optional: true
          default: 6
        - name: ramp_time_ru2rc_unit
          bit_width: 2
          byte_positions:
          - - 5
            - '6:5'
          description: Ramp time RU to RC resolution
          optional: true
          enum:
            RES_2U: 0
            RES_4U: 1
            RES_8U: 2
            RES_16U: 3
        - name: ramp_time_ru2rc
          bit_width: 5
          byte_positions:
          - - 5
            - '4:0'
          description: Ramp time RU to RC
          optional: true
          default: 10
        - name: ramp_time_ramp_down_unit
          bit_width: 2
          byte_positions:
          - - 6
            - '6:5'
          description: Ramp down time
          optional: true
          enum:
            RES_2U: 0
            RES_4U: 1
            RES_8U: 2
            RES_16U: 3
        - name: ramp_time_ramp_down
          bit_width: 5
          byte_positions:
          - - 6
            - '4:0'
          description: Ramp down time
          optional: true
          default: 1
      Calibrate:
        opcode: 290
        description: Calibrates the requested blocks defined by the blocks_to_calibrate parameter. Will work in any mode of
          the chip. On exit the chip will be in Standby RC
        parameters:
        - name: pa_offset
          bit_width: 1
          byte_positions:
          - - 2
            - '6'
          description: PA Offset
          optional: false
        - name: meas_unit
          bit_width: 1
          byte_positions:
          - - 2
            - '4'
          description: Measurement Unit
          optional: false
        - name: aaf
          bit_width: 1
          byte_positions:
          - - 2
            - '3'
          description: Anti-alias filter
          optional: false
        - name: pll
          bit_width: 1
          byte_positions:
          - - 2
            - '2'
          description: PLL
          optional: false
        - name: hf_rc
          bit_width: 1
          byte_positions:
          - - 2
            - '1'
          description: HF RC
          optional: false
        - name: lf_rc
          bit_width: 1
          byte_positions:
          - - 2
            - '0'
          description: LF RC
          optional: false
      CalibFe:
        opcode: 291
        description: Launches all Front End calibrations (ADC Offset, PPF, Image) at the given frequencies. Will not work
          if device is in Rx or Tx mode
        parameters:
        - name: freq1
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: Frequency 1 in 4MHz steps (MSB=0 for LF path, MSB=1 for HF path)
          optional: false
        - name: freq2
          bit_width: 16
          byte_positions:
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: Frequency 2 in 4MHz steps (MSB=0 for LF path, MSB=1 for HF path)
          optional: false
        - name: freq3
          bit_width: 16
          byte_positions:
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          description: Frequency 3 in 4MHz steps (MSB=0 for LF path, MSB=1 for HF path)
          optional: false
      GetVBat:
        opcode: 292
        description: Measure and return current VBAT value
        parameters:
        - name: vbat_format
          bit_width: 1
          byte_positions:
          - - 2
            - '3'
          description: Format of returned value
          optional: false
          enum:
            RAW: 0
            MILLIVOLTS: 1
        - name: adc_res
          bit_width: 3
          byte_positions:
          - - 2
            - '2:0'
          description: ADC resolution for measurement
          optional: false
          enum:
            RES_8BIT: 0
            RES_9BIT: 1
            RES_10BIT: 2
            RES_11BIT: 3
            RES_12BIT: 4
            RES_13BIT: 5
        status_fields:
        - name: vbat_raw
          bit_width: 13
          byte_positions:
          - - 2
            - '4:0'
          - - 3
            - '7:0'
          description: Raw VBAT measurement (format=0)
          optional: false
        - name: vbat_mv
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: VBAT in millivolts (format=1)
          optional: false
      GetTemp:
        opcode: 293
        description: Measure and return temperature value
        parameters:
        - name: temp_src
          bit_width: 2
          byte_positions:
          - - 2
            - '5:4'
          description: Temperature sensor source
          optional: false
          enum:
            VBE: 0
            XOSC: 1
            NTC: 2
        - name: temp_format
          bit_width: 1
          byte_positions:
          - - 2
            - '3'
          description: Format of returned value
          optional: false
          enum:
            RAW: 0
            CELSIUS: 1
        - name: adc_res
          bit_width: 3
          byte_positions:
          - - 2
            - '2:0'
          description: ADC resolution for measurement
          optional: false
          enum:
            RES_8BIT: 0
            RES_9BIT: 1
            RES_10BIT: 2
            RES_11BIT: 3
            RES_12BIT: 4
            RES_13BIT: 5
        status_fields:
        - name: temp_celsius
          bit_width: 13
          signed: true
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:3'
          description: Temperature in degrees Celsius (format=1)
          optional: false
      GetRandomNumber:
        opcode: 294
        description: Return a 32-bit random number
        parameters:
        - name: source
          bit_width: 2
          byte_positions:
          - - 2
            - '1:0'
          description: Entropy source selection (bit 0=PLL, bit 1=ADC)
          optional: true
          default: 3
        status_fields:
        - name: random_number
          bit_width: 32
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: 32-bit random number
          optional: false
      SetSleep:
        opcode: 295
        description: Put device in sleep mode
        parameters:
        - name: clk_32k_en
          bit_width: 1
          byte_positions:
          - - 2
            - '0'
          description: Enable LF clock
          optional: false
        - name: ret_en
          bit_width: 4
          byte_positions:
          - - 2
            - '4:1'
          description: Enable Retention for ram0 to 3 (1-3 are for the patch ram)
          optional: false
        - name: sleep_time
          bit_width: 32
          byte_positions:
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          - - 6
            - '7:0'
          description: Optional sleep time (required when clk_32k_en is enabled)
          optional: true
      SetStandby:
        opcode: 296
        description: Put device in standby mode (XOSC or RC)
        parameters:
        - name: standby_mode
          bit_width: 1
          byte_positions:
          - - 2
            - '0'
          description: Standby mode selection
          optional: false
          enum:
            RC: 0
            XOSC: 1
      SetFs:
        opcode: 297
        description: Put device in Frequency Synthesis Mode
        parameters: []
      SetAdditionalRegToRetain:
        opcode: 298
        description: Specify address of additional register to save for sleep modes with retention
        parameters:
        - name: slot
          bit_width: 5
          byte_positions:
          - - 2
            - '4:0'
          description: Slot index (0-31)
          optional: false
        - name: addr
          bit_width: 24
          byte_positions:
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: Register address to retain
          optional: false
      GetAndClearFifoIrqFlags:
        opcode: 302
        description: Read out and clear FIFO flags that generated FIFO IRQs
        parameters: []
        status_fields:
        - name: rx_fifo_flags
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: RX FIFO flags
          optional: false
        - name: tx_fifo_flags
          bit_width: 8
          byte_positions:
          - - 3
            - '7:0'
          description: TX FIFO flags
          optional: false
      SetEolConfig:
        opcode: 304
        description: Enable/disable end of life detection and setup trigger voltage
        parameters:
        - name: eol_trim
          bit_width: 3
          byte_positions:
          - - 2
            - '2:0'
          description: Threshold voltage for EOL interrupt
          optional: false
          enum:
            EOL_1_60: 0
            EOL_1_67: 1
            EOL_1_74: 2
            EOL_1_80: 3
            EOL_1_88: 4
            EOL_1_95: 5
            EOL_2_00: 6
            EOL_2_10: 7
        - name: enable
          bit_width: 1
          byte_positions:
          - - 2
            - '3'
          description: Enable or disable EOL detection
          optional: false
      SetTcxoMode:
        opcode: 288
        description: Configure the chip to use a TCXO
        parameters:
        - name: tcxo_voltage
          bit_width: 3
          byte_positions: [[2, "2:0"]]
          description: Control Voltage provided to the TCXO
          optional: false
          enum:
            TCXO_1V6: 0
            TCXO_1V7: 1
            TCXO_1V8: 2
            TCXO_2V2: 3
            TCXO_2V4: 4
            TCXO_2V7: 5
            TCXO_3V0: 6
            TCXO_3V3: 7
        - name: start_time
          bit_width: 32
          byte_positions: [[3, "7:0"],[4, "7:0"],[5, "7:0"],[6, "7:0"]]
          description: Timeout before checking XoscReady
          optional: false
      SetXoscCpTrim:
        opcode: 305
        description: Configure XOSC foot capacitor trim
        parameters:
        - name: xta
          bit_width: 6
          byte_positions:
          - - 2
            - '5:0'
          description: Trimming of foot capacitor on XTA pin (0=11.3pF, max=47=33.4pF, 1LSB=0.47pF)
          optional: false
        - name: xtb
          bit_width: 6
          byte_positions:
          - - 3
            - '5:0'
          description: Trimming of foot capacitor on XTB pin (0=10.1pF, max=47=32.2pF, 1LSB=0.47pF)
          optional: false
        - name: delay_us
          bit_width: 8
          byte_positions:
          - - 4
            - '7:0'
          description: Additional delay in us for XTAL starting (RC->XOSC mode)
          optional: true
          default: 0
      SetTempCompCfg:
        opcode: 306
        description: Configure temperature compensation mode for TX and RX
        parameters:
        - name: ntc_en
          bit_width: 1
          byte_positions:
          - - 2
            - '2'
          description: Use external NTC to measure crystal temperature
          optional: false
        - name: comp_mode
          bit_width: 2
          byte_positions:
          - - 2
            - '1:0'
          description: Temperature compensation mode
          optional: false
          enum:
            DISABLED: 0
            RELATIVE: 1
            ABSOLUTE: 2
      SetNtcParams:
        opcode: 307
        description: Configure NTC parameters
        parameters:
        - name: ntc_r_ratio
          bit_width: 10
          byte_positions:
          - - 2
            - '1:0'
          - - 3
            - '7:0'
          description: Resistance bias ratio (10.9b format) - ratio between resistance bias and NTC resistance at 25°C
          optional: false
        - name: ntc_beta
          bit_width: 12
          byte_positions:
          - - 4
            - '3:0'
          - - 5
            - '7:0'
          description: Beta coefficient (unit is 2 Kelvin)
          optional: false
        - name: delay
          bit_width: 8
          byte_positions:
          - - 6
            - '7:0'
          description: First order time delay coefficient
          optional: false
  wisun:
    commands:
      SetWisunMode:
        opcode: 624
        description: Configure the wisun mode (1a, 1b, 2a, 2b, 3, 4a, 4b, 5)
        parameters:
        - name: wisun_mode
          bit_width: 3
          byte_positions:
          - - 2
            - '2:0'
          description: WISun mode selection
          optional: false
          enum:
            MODE_1A: 0
            MODE_1B: 1
            MODE_2A: 2
            MODE_2B: 3
            MODE_3: 4
            MODE_4A: 5
            MODE_4B: 6
            MODE_5: 7
        - name: rx_bw
          bit_width: 8
          byte_positions:
          - - 3
            - '7:0'
          description: RX bandwidth. 0xFF means bandwidth is automatically set by the firmware
          optional: false
          enum:
            BW_AUTO: 255
            BW_3076: 0
            BW_2857: 64
            BW_2666: 128
            BW_2222: 192
            BW_1333: 136
            BW_1111: 200
            BW_888: 144
            BW_769: 24
            BW_740: 208
            BW_714: 88
            BW_666: 152
            BW_615: 32
            BW_571: 96
            BW_555: 216
            BW_533: 160
            BW_512: 17
            BW_476: 81
            BW_444: 224
            BW_384: 25
            BW_370: 209
            BW_357: 89
            BW_333: 153
            BW_307: 33
            BW_285: 97
            BW_277: 217
            BW_266: 161
            BW_256: 18
            BW_238: 82
            BW_222: 225
            BW_192: 26
            BW_185: 210
            BW_178: 90
            BW_166: 154
            BW_153: 34
            BW_142: 98
            BW_138: 218
            BW_133: 162
            BW_128: 19
            BW_119: 83
            BW_111: 226
            BW_96: 27
            BW_92: 211
            BW_89: 91
            BW_83: 155
            BW_76: 35
            BW_71: 99
            BW_69: 219
            BW_66: 163
            BW_64: 20
            BW_59: 84
            BW_55: 227
            BW_48: 28
            BW_46: 212
            BW_44: 92
            BW_41: 156
            BW_38: 36
            BW_35: 100
            BW_34: 220
            BW_33: 164
            BW_32: 21
            BW_29: 85
            BW_27: 228
            BW_24: 29
            BW_23: 213
            BW_22: 93
            BW_20: 157
            BW_19: 37
            BW_17: 101
            BW_16: 165
            BW_14: 86
            BW_13: 229
            BW_12: 30
            BW_11: 94
            BW_10: 158
            BW_9_6: 38
            BW_8_9: 102
            BW_8_7: 222
            BW_8_3: 166
            BW_8: 23
            BW_7_4: 87
            BW_6_9: 230
            BW_6: 31
            BW_5_8: 215
            BW_5_6: 95
            BW_5_2: 159
            BW_4_8: 39
            BW_4_5: 103
            BW_4_3: 223
            BW_4_2: 167
            BW_3_5: 231
      SetWisunPacketParams:
        opcode: 625
        description: Configure the wisun packet parameters
        parameters:
        - name: wisun_fcs_len
          bit_width: 1
          byte_positions:
          - - 2
            - '5'
          description: FCS selection for TX
          optional: false
          enum:
            FCS_32B: 0
            FCS_16B: 1
        - name: whitening_en
          bit_width: 1
          byte_positions:
          - - 2
            - '4'
          description: Whitening enable
        - name: crc_hw
          bit_width: 1
          byte_positions:
          - - 2
            - '3'
          description: Set false when CRC is handled by host
          optional: false
        - name: mode_switch_tx
          bit_width: 1
          byte_positions:
          - - 2
            - '2'
          description: Packet is a header-only Mode-Switch
          optional: false
        - name: wisun_fec
          bit_width: 2
          byte_positions:
          - - 2
            - '1:0'
          description: FEC encoding selection for TX packet
          optional: false
          enum:
            NONE: 0
            NRNSC: 1
            RSC: 2
            RSC_INTLVR: 3
        - name: frame_len_tx
          bit_width: 16
          byte_positions:
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          description: Length of frame for TX for normal packets, or header value for mode_switch packets
          optional: false
        - name: pbl_len_tx
          bit_width: 8
          byte_positions:
          - - 5
            - '7:0'
          description: Length of transmitted preamble
          optional: false
        - name: pbl_detect
          bit_width: 8
          byte_positions:
          - - 6
            - '7:0'
          description: 'Detection on preamble (16,32), or on syncword (0), or automatic (0xff): always 24bits'
          optional: false
          default: 255
      GetWisunPacketStatus:
        opcode: 627
        description: Gets the status of the last received packet. Status is updated at the end of a reception (RxDone irq),
          but syncword_idx and rssi_sync are already updated on SyncWordValid irq
        parameters: []
        status_fields:
        - name: header
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: Raw 16bit received header
          optional: false
        - name: pkt_len
          bit_width: 16
          byte_positions:
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: Length of the last received packet in bytes (including optional data added in the FIFO, crc, ...)
          optional: false
        - name: rssi_avg
          bit_width: 9
          byte_positions:
          - - 6
            - '7:0'
          - - 9
            - '2'
          description: Average over last packet received of RSSI. Actual signal power is –rssi_avg/2 (dBm)
          optional: false
        - name: rssi_sync
          bit_width: 9
          byte_positions:
          - - 7
            - '7:0'
          - - 9
            - '0'
          description: Latch RSSI value after syncword detection. Actual signal power is –rssi_sync/2 (dBm)
          optional: false
        - name: syncword_idx
          bit_width: 1
          byte_positions:
          - - 8
            - '7'
          description: Index of detected syncword (0/1)
          optional: false
        - name: lqi
          bit_width: 8
          byte_positions:
          - - 10
            - '7:0'
          description: Link quality indicator (0.25dB)
          optional: false
      SetWisunPacketLen:
        opcode: 628
        description: Sets length of frame for TX for normal packets, or header value for mode_switch packets
        parameters:
        - name: frame_len_tx
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: Frame length for TX for normal packets, or header value for mode_switch packets
          optional: false
      GetWisunRxStats:
        opcode: 0x026C
        description: Get the Rx statistics for WiSUN packets
        parameters: []
        status_fields:
        - name: pkt_rx
          bit_width: 16
          byte_positions: [[2, "7:0"], [3, "7:0"]]
          description: Total number of received packets
        - name: crc_error
          bit_width: 16
          byte_positions: [[4, "7:0"], [5, "7:0"]]
          description: Number of received packets with a CRC error
        - name: len_error
          bit_width: 16
          byte_positions: [[6, "7:0"], [7, "7:0"]]
          description: Number of packets with a length error

  zigbee:
    commands:
      SetZigbeeParams:
        opcode: 671
        description: Sets the parameters for Zigbee packets
        parameters:
        - name: zigbee_mode
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: The modulation and data rate to be used for RX and TX
          optional: false
          enum:
            OQPSK_250: 0
            OQPSK_100: 1
            OQPSK_25: 2
            BPSK_20: 3
            BPSK_40: 4
        - name: rx_bw
          bit_width: 8
          byte_positions:
          - - 3
            - '7:0'
          description: Bandwidth in RX mode, or 0xFF to automatically select bandwidth depending on selected mode
          optional: false
          enum:
            BW_AUTO: 255
            BW_3076: 0
            BW_2857: 64
            BW_2666: 128
            BW_2222: 192
            BW_1333: 136
            BW_1111: 200
            BW_888: 144
            BW_769: 24
            BW_740: 208
            BW_714: 88
            BW_666: 152
            BW_615: 32
            BW_571: 96
            BW_555: 216
            BW_533: 160
            BW_512: 17
            BW_476: 81
            BW_444: 224
            BW_384: 25
            BW_370: 209
            BW_357: 89
            BW_333: 153
            BW_307: 33
            BW_285: 97
            BW_277: 217
            BW_266: 161
            BW_256: 18
            BW_238: 82
            BW_222: 225
            BW_192: 26
            BW_185: 210
            BW_178: 90
            BW_166: 154
            BW_153: 34
            BW_142: 98
            BW_138: 218
            BW_133: 162
            BW_128: 19
            BW_119: 83
            BW_111: 226
            BW_96: 27
            BW_92: 211
            BW_89: 91
            BW_83: 155
            BW_76: 35
            BW_71: 99
            BW_69: 219
            BW_66: 163
            BW_64: 20
            BW_59: 84
            BW_55: 227
            BW_48: 28
            BW_46: 212
            BW_44: 92
            BW_41: 156
            BW_38: 36
            BW_35: 100
            BW_34: 220
            BW_33: 164
            BW_32: 21
            BW_29: 85
            BW_27: 228
            BW_24: 29
            BW_23: 213
            BW_22: 93
            BW_20: 157
            BW_19: 37
            BW_17: 101
            BW_16: 165
            BW_14: 86
            BW_13: 229
            BW_12: 30
            BW_11: 94
            BW_10: 158
            BW_9_6: 38
            BW_8_9: 102
            BW_8_7: 222
            BW_8_3: 166
            BW_8: 23
            BW_7_4: 87
            BW_6_9: 230
            BW_6: 31
            BW_5_8: 215
            BW_5_6: 95
            BW_5_2: 159
            BW_4_8: 39
            BW_4_5: 103
            BW_4_3: 223
            BW_4_2: 167
            BW_3_5: 231
        - name: pld_len
          bit_width: 8
          byte_positions:
          - - 4
            - '7:0'
          description: 'In RX: maximum accepted MPDU size. In TX: total bytes to transmit. Maximum value: 127'
          optional: false
        - name: pbl_len_tx
          bit_width: 16
          byte_positions:
          - - 5
            - '7:0'
          - - 6
            - '7:0'
          description: Size in bits of the preamble to send. Typically set to 32
          optional: false
        - name: addr_filt_en
          bit_width: 1
          byte_positions:
          - - 7
            - '2'
          description: Address filtering enable/disable. Addresses are set using the SetZigbeeAddress command
          optional: false
        - name: fcs_mode
          bit_width: 1
          byte_positions:
          - - 7
            - '0'
          description: Set the Rx/Tx mode for FCS (16 bits)
          optional: false
          enum:
            FCS_ON: 0
            FCS_IN_FIFO: 1
      GetZigbeePacketStatus:
        opcode: 673
        description: Gets the status of the last received packet. Status is updated at the end of a reception (RxDone irq),
          but rssi_sync is already updated on SyncWordValid irq
        parameters: []
        status_fields:
        - name: rx_header
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: Content of the received PHY header (the frame length)
          optional: false
        - name: pkt_len
          bit_width: 16
          byte_positions:
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          description: Length of the last received packet in bytes (including optional data added in the FIFO, crc, ...)
          optional: false
        - name: rssi_avg
          bit_width: 9
          byte_positions:
          - - 5
            - '7:0'
          - - 7
            - '2'
          description: RSSI average over the last packet received. Actual signal power is –rssi_pkt/2 (dBm)
          optional: false
        - name: rssi_sync
          bit_width: 9
          byte_positions:
          - - 6
            - '7:0'
          - - 7
            - '0'
          description: Latched RSSI value after syncword detection. Actual signal power is –rssi_sync/2 (dBm)
          optional: false
        - name: lqi
          bit_width: 8
          byte_positions:
          - - 8
            - '7:0'
          description: Link quality indicator (0.25dB)
          optional: false
      SetZigbeePacketLen:
        opcode: 674
        description: Sets the zigbee packet length without the need to call the full SetZigbeeParams command (slower to run)
        parameters:
        - name: pld_len
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: 'In RX: maximum accepted MPDU size. In TX: total bytes to transmit. Maximum value: 127'
          optional: false
      SetZigbeeAddress:
        opcode: 675
        description: Sets the Zigbee addresses for filtering in Rx. Frames that don't match the addresses raise an address
          error IRQ. When a packet is received, the destination address and PAN ID are both checked. Broadcast addresses are
          matched as well. Multi-cast is not supported or filtered
        parameters:
        - name: long_dest_addr
          bit_width: 64
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          - - 8
            - '7:0'
          - - 9
            - '7:0'
          description: The 64bit physical device address
          optional: false
        - name: short_dest_addr
          bit_width: 16
          byte_positions:
          - - 10
            - '7:0'
          - - 11
            - '7:0'
          description: The 16bit network device address
          optional: false
        - name: pan_id
          bit_width: 16
          byte_positions:
          - - 12
            - '7:0'
          - - 13
            - '7:0'
          description: Personal area network ID
          optional: false
        - name: trans_id
          bit_width: 8
          byte_positions:
          - - 14
            - '7:0'
          description: Transaction ID
          optional: false
      GetZigbeeRxStats:
        opcode: 0x02A0
        description: "Gets the internal statistics of the received packets. Statistics are reset on a POR, sleep without memory retention and the command ResetRxStats"
        parameters: []
        status_fields:
          - name: pkt_rx
            bit_width: 16
            byte_positions: [[2, "7:0"], [3, "7:0"]]
            description: "Total number of received packets"
            optional: false
          - name: crc_error
            bit_width: 16
            byte_positions: [[4, "7:0"], [5, "7:0"]]
            description: "Number of received packets with a CRC error"
            optional: false
          - name: len_error
            bit_width: 16
            byte_positions: [[6, "7:0"], [7, "7:0"]]
            description: "Number of packets with a length error"
            optional: false
  zwave:
    commands:
      SetZwaveParams:
        opcode: 663
        description: Sets the parameters for Z-Wave packets
        parameters:
        - name: zwave_mode
          bit_width: 2
          byte_positions:
          - - 2
            - '1:0'
          description: The data rate to be used for the RX and the TX
          optional: false
          enum:
            LR1: 0
            R1: 1
            R2: 2
            R3: 3
        - name: rx_bw
          bit_width: 8
          byte_positions:
          - - 3
            - '7:0'
          description: Bandwidth in RX mode, or 0xFF to automatically select the bandwidth depending on the selected mode
          optional: false
          enum:
            BW_AUTO: 255
            BW_3076: 0
            BW_2857: 64
            BW_2666: 128
            BW_2222: 192
            BW_1333: 136
            BW_1111: 200
            BW_888: 144
            BW_769: 24
            BW_740: 208
            BW_714: 88
            BW_666: 152
            BW_615: 32
            BW_571: 96
            BW_555: 216
            BW_533: 160
            BW_512: 17
            BW_476: 81
            BW_444: 224
            BW_384: 25
            BW_370: 209
            BW_357: 89
            BW_333: 153
            BW_307: 33
            BW_285: 97
            BW_277: 217
            BW_266: 161
            BW_256: 18
            BW_238: 82
            BW_222: 225
            BW_192: 26
            BW_185: 210
            BW_178: 90
            BW_166: 154
            BW_153: 34
            BW_142: 98
            BW_138: 218
            BW_133: 162
            BW_128: 19
            BW_119: 83
            BW_111: 226
            BW_96: 27
            BW_92: 211
            BW_89: 91
            BW_83: 155
            BW_76: 35
            BW_71: 99
            BW_69: 219
            BW_66: 163
            BW_64: 20
            BW_59: 84
            BW_55: 227
            BW_48: 28
            BW_46: 212
            BW_44: 92
            BW_41: 156
            BW_38: 36
            BW_35: 100
            BW_34: 220
            BW_33: 164
            BW_32: 21
            BW_29: 85
            BW_27: 228
            BW_24: 29
            BW_23: 213
            BW_22: 93
            BW_20: 157
            BW_19: 37
            BW_17: 101
            BW_16: 165
            BW_14: 86
            BW_13: 229
            BW_12: 30
            BW_11: 94
            BW_10: 158
            BW_9_6: 38
            BW_8_9: 102
            BW_8_7: 222
            BW_8_3: 166
            BW_8: 23
            BW_7_4: 87
            BW_6_9: 230
            BW_6: 31
            BW_5_8: 215
            BW_5_6: 95
            BW_5_2: 159
            BW_4_8: 39
            BW_4_5: 103
            BW_4_3: 223
            BW_4_2: 167
            BW_3_5: 231
        - name: zwave_addr_comp
          bit_width: 8
          byte_positions:
          - - 4
            - '7:0'
          description: Enable or disable the filtering of the HomeID
          optional: false
          enum:
            'OFF': 0
            HOMEID: 1
            HOMEID_BEAM: 2
        - name: pld_len
          bit_width: 8
          byte_positions:
          - - 5
            - '7:0'
          description: 'In RX: maximum accepted MPDU size. In TX: total bytes to transmit'
          optional: false
        - name: pbl_len_tx
          bit_width: 16
          byte_positions:
          - - 6
            - '7:0'
          - - 7
            - '7:0'
          description: Size in bits of the preamble to send, or 0 to automatically set the preamble size to the minimum possible
            for the selected mode
          optional: false
        - name: pbl_len_detect
          bit_width: 8
          byte_positions:
          - - 8
            - '7:0'
          description: Preamble size, in bits, that is used for the detection. Recommended value is 32 in all modes, or 0xff
            to automatically set the size to the optimal value. Setting to 0 forces detection on start of frame instead of
            preamble
          optional: false
        - name: fcs_mode
          bit_width: 1
          byte_positions:
          - - 9
            - '0'
          description: 'FCS mode: auto to automatically generate FCS in TX and remove it in RX. In fifo mode, the FCS is expected
            to be part of the payload and is not checked in RX.'
          optional: false
          enum:
            AUTO: 0
            FIFO: 1
      SetZwaveHomeIdFiltering:
        opcode: 664
        description: Sets the HomeID address to use as a filter in Rx. The MSB is the first bit sent/received. Frames that
          don't match the home_id raise an address error IRQ
        parameters:
        - name: home_id
          bit_width: 32
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          - - 4
            - '7:0'
          - - 5
            - '7:0'
          description: HomeID address for filtering
          optional: false
      GetZwavePacketStatus:
        opcode: 666
        description: Gets the status of the last received packet. Status is updated at the end of a reception (RxDone irq),
          but rssi_sync is already updated on SyncWordValid irq
        parameters: []
        status_fields:
        - name: pkt_len
          bit_width: 16
          byte_positions:
          - - 2
            - '7:0'
          - - 3
            - '7:0'
          description: Length of the last received packet in bytes (including optional data added in the FIFO, crc, ...)
          optional: false
        - name: rssi_avg
          bit_width: 9
          byte_positions:
          - - 4
            - '7:0'
          - - 7
            - '2'
          description: Average over last packet received of RSSI. Actual signal power is –rssi_pkt/2 (dBm)
          optional: false
        - name: rssi_sync
          bit_width: 9
          byte_positions:
          - - 5
            - '7:0'
          - - 7
            - '0'
          description: Latch RSSI value after syncword detection. Actual signal power is –rssi_sync/2 (dBm)
          optional: false
        - name: last_detect
          bit_width: 2
          byte_positions:
          - - 6
            - '1:0'
          description: Last detected packet data rate
          optional: false
          enum:
            R1: 1
            R2: 2
            R3: 3
        - name: lqi
          bit_width: 8
          byte_positions:
          - - 8
            - '7:0'
          description: Link quality indicator (0.25dB)
          optional: false
      SetZwaveBeamFiltering:
        opcode: 667
        description: Settings for filtering incoming beam frames in Rx
        parameters:
        - name: beam_tag
          bit_width: 8
          byte_positions:
          - - 2
            - '7:0'
          description: The beam tag value to accept, typically 0x55
          optional: false
        - name: addr_len
          bit_width: 1
          byte_positions:
          - - 3
            - '7'
          description: Address length selection
          optional: false
          enum:
            ADDR_8BIT: 0
            ADDR_12BIT: 1
        - name: node_id
          bit_width: 12
          byte_positions:
          - - 3
            - '3:0'
          - - 4
            - '7:0'
          description: The node id value to accept. This is an 8 bits value, or 12 bits. Note that a value of 0xFF is always
            accepted
          optional: false
        - name: id_hash
          bit_width: 8
          byte_positions:
          - - 5
            - '7:0'
          description: The Home ID Hash to accept. Note that a value of 0x55, 0x0A or 0x4A is always accepted
          optional: false

      SetZwaveScan:
        opcode: 669
        description: This command is used to enter the Zwave RX scan mode. The scan mode will alternate between data rates
          and channels and attempt to detect an incoming packet
        parameters: []

      GetZwaveRxStats:
        opcode: 0x0299
        description: "Gets the internal statistics of the received packets. Statistics are reset on a POR, sleep without memory retention and the command ResetRxStats"
        parameters: []
        status_fields:
          - name: pkt_rx
            bit_width: 16
            byte_positions: [[2, "7:0"], [3, "7:0"]]
            description: "Total number of received packets"
            optional: false
          - name: crc_error
            bit_width: 16
            byte_positions: [[4, "7:0"], [5, "7:0"]]
            description: "Number of received packets with a CRC error"
            optional: false
          - name: len_error
            bit_width: 16
            byte_positions: [[6, "7:0"], [7, "7:0"]]
            description: "Number of packets with a length error"
            optional: false
  wmbus:
    commands:
      SetWmbusParams:
        opcode: 0x026A
        description: Configure the wm-bus mode according to EN13757-4 2019
        parameters:
        - name: wmbus_mode
          bit_width : 4
          byte_positions: [[2, "3:0"]]
          description: WM-Bus mode selection
          enum:
            MODE_S: 0
            MODE_T1: 1
            MODE_T2_O2M: 2
            MODE_T2_M2O: 3
            MODE_R2: 4
            MODE_C1: 5
            MODE_C2_O2M: 6
            MODE_C2_M2O: 7
            MODE_N_4_8: 8
            MODE_N_2_4: 9
            MODE_N_6_4: 10
            MODE_N_19_2: 11
            MODE_F2: 12
        - name: rx_bw
          bit_width: 8
          byte_positions: [[3, "7:0"]]
          description: Configures the rx_bw. 0xFF means automatic rx_bw chosen by the firmware
          enum:
            BW_AUTO: 255
            BW_3076: 0
            BW_2857: 64
            BW_2666: 128
            BW_2222: 192
            BW_1333: 136
            BW_1111: 200
            BW_888: 144
            BW_769: 24
            BW_740: 208
            BW_714: 88
            BW_666: 152
            BW_615: 32
            BW_571: 96
            BW_555: 216
            BW_533: 160
            BW_512: 17
            BW_476: 81
            BW_444: 224
            BW_384: 25
            BW_370: 209
            BW_357: 89
            BW_333: 153
            BW_307: 33
            BW_285: 97
            BW_277: 217
            BW_266: 161
            BW_256: 18
            BW_238: 82
            BW_222: 225
            BW_192: 26
            BW_185: 210
            BW_178: 90
            BW_166: 154
            BW_153: 34
            BW_142: 98
            BW_138: 218
            BW_133: 162
            BW_128: 19
            BW_119: 83
            BW_111: 226
            BW_96: 27
            BW_92: 211
            BW_89: 91
            BW_83: 155
            BW_76: 35
            BW_71: 99
            BW_69: 219
            BW_66: 163
            BW_64: 20
            BW_59: 84
            BW_55: 227
            BW_48: 28
            BW_46: 212
            BW_44: 92
            BW_41: 156
            BW_38: 36
            BW_35: 100
            BW_34: 220
            BW_33: 164
            BW_32: 21
            BW_29: 85
            BW_27: 228
            BW_24: 29
            BW_23: 213
            BW_22: 93
            BW_20: 157
            BW_19: 37
            BW_17: 101
            BW_16: 165
            BW_14: 86
            BW_13: 229
            BW_12: 30
            BW_11: 94
            BW_10: 158
            BW_9_6: 38
            BW_8_9: 102
            BW_8_7: 222
            BW_8_3: 166
            BW_8: 23
            BW_7_4: 87
            BW_6_9: 230
            BW_6: 31
            BW_5_8: 215
            BW_5_6: 95
            BW_5_2: 159
            BW_4_8: 39
            BW_4_5: 103
            BW_4_3: 223
            BW_4_2: 167
            BW_3_5: 231
        - name: wmbus_format
          bit_width: 1
          byte_positions: [[4, "0"]]
          description: "Packet format (A or B)"
          enum:
            FORMAT_A: 0
            FORMAT_B: 1
        - name: addr_filt_en
          bit_width: 1
          byte_positions: [[5, "0"]]
          description: Enable address filtering
        - name: pld_len
          bit_width: 8
          byte_positions: [[6, "7:0"]]
          description: "In Tx: payload size to send (including C, M, A and CI fields, excluding CRCs). In Rx: max L-field size to accept"
        - name: pbl_len_tx
          bit_width: 16
          byte_positions: [[7, "7:0"], [8, "7:0"]]
          description: "Length of sent preamble in bits. For 4-FSK, number of symbols sent is pbl_len_tx/2"
        - name: pbl_len_detect
          bit_width: 8
          byte_positions: [[9, "7:0"]]
          description: "How many bits in the preamble to use for detection, or 0xff for auto-setting (based on pbl_len_tx)"
      GetWmbusRxStats:
        opcode: 0x026C
        description: Get the Rx statistics for wmbus packets
        parameters: []
        status_fields:
        - name: pkt_rx
          bit_width: 16
          byte_positions: [[2, "7:0"], [3, "7:0"]]
          description: Total number of received packets
        - name: crc_error
          bit_width: 16
          byte_positions: [[4, "7:0"], [5, "7:0"]]
          description: Number of received packets with a CRC error
        - name: len_error
          bit_width: 16
          byte_positions: [[6, "7:0"], [7, "7:0"]]
          description: Number of packets with a length error
      GetWmbusPacketStatus:
        opcode: 0x026D
        description: Get Rx packet status informations for wmbus packets
        parameters: []
        status_fields:
        - name: l_field
          bit_width: 8
          byte_positions: [[2, "7:0"]]
          description: "The demodulated length field. This can be different from get_rx_packet_length (in mode A)"
          optional: false
        - name: pkt_len
          bit_width: 16
          byte_positions: [[3, "7:0"], [4, "7:0"]]
          description: "Length of the last received packet in bytes (including optional data added in the FIFO, crc, ...)"
          optional: false
        - name: rssi_avg
          bit_width: 9
          byte_positions: [[5, "7:0"], [9, "4"]]
          description: "Average over last packet received of RSSI. Actual signal power is –rssi_avg/2 (dBm)"
          optional: false
        - name: rssi_sync
          bit_width: 9
          byte_positions: [[6, "7:0"], [9, "0"]]
          description: "Latch RSSI value after syncword detection. Actual signal power is –rssi_sync/2 (dBm)"
          optional: false
        - name: crc_err
          bit_width: 17
          byte_positions: [[7, "7:0"], [8, "7:0"], [9, "6"]]
          description: "Indicates which crc has failed. In A mode, bit0 is the crc of the header, then each bit is the crc of the subsequent chunks"
          optional: false
        - name: syncword_idx
          bit_width: 1
          byte_positions: [[9, "7"]]
          description: "Index of detected syncword (0/1)"
          optional: false
        - name: lqi
          bit_width: 8
          byte_positions: [[10, "7:0"]]
          description: "Link quality indicator (0.25dB)"
          optional: false
      SetWmbusAddress:
        opcode: 0x026E
        description: Set the WM-Bus address for RX filtering (A-field)
        parameters:
        - name: address
          bit_width: 48
          byte_positions: [[2, "7:0"], [3, "7:0"], [4, "7:0"], [5, "7:0"], [6, "7:0"], [7, "7:0"]]
          description: WM-Bus address for RX filtering (A-field), 48 bits total