hid-report 1.0.0

handle USB HID report descriptors
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
use crate::{UsagePage, __data_size, __data_to_unsigned, __set_data_size, macros::*};
use alloc::{borrow::Cow, format};
use std::{
    cmp::{Eq, PartialEq},
    fmt::Display,
};

__impls_for_short_items! {
    /// Determines the body part used for a control. Index
    /// points to a designator in the Physical descriptor.
    DesignatorIndex: 0b0011_1000;
    /// Defines the index of the starting designator
    /// associated with an array or bitmap.
    DesignatorMinimum: 0b0100_1000;
    /// Defines the index of the ending designator
    /// associated with an array or bitmap.
    DesignatorMaximum: 0b0101_1000;
    /// String index for a String descriptor; allows a string
    /// to be associated with a particular item or control.
    StringIndex: 0b0111_1000;
    /// Specifies the first string index when assigning a
    /// group of sequential strings to controls in an array
    /// or bitmap.
    StringMinimum: 0b1000_1000;
    /// Specifies the last string index when assigning a
    /// group of sequential strings to controls in an array
    /// or bitmap.
    StringMaximum: 0b1001_1000;
    /// Defines the beginning or end of a set of local items
    /// (1 = open set, 0 = close set).
    Delimiter: 0b1010_1000;
}

/// Usage index for an item usage; represents a
/// suggested usage for the item or collection.
///
/// In the case where an item represents multiple controls, a
/// Usage tag may suggest a usage for every variable
/// or element in an array.
///
/// # Data (Little Endian)
///
/// Depends on the value of [UsagePage](crate::UsagePage).
/// See [HID Usage Tables FOR Universal Serial Bus](https://usb.org/sites/default/files/hut1_5.pdf).
#[derive(Clone, Debug)]
pub struct Usage {
    raw: [u8; 5],
    usage_page: Option<UsagePage>,
}

/// Defines the starting usage associated with an array or bitmap.
///
/// # Data (Little Endian)
///
/// Depends on the value of [UsagePage](crate::UsagePage).
/// See [HID Usage Tables FOR Universal Serial Bus](https://usb.org/sites/default/files/hut1_5.pdf).
#[derive(Clone, Debug)]
pub struct UsageMinimum {
    raw: [u8; 5],
    usage_page: Option<UsagePage>,
}
/// Defines the ending usage associated with an array or bitmap.
///
/// # Data (Little Endian)
///
/// Depends on the value of [UsagePage](crate::UsagePage).
/// See [HID Usage Tables FOR Universal Serial Bus](https://usb.org/sites/default/files/hut1_5.pdf).
#[derive(Clone, Debug)]
pub struct UsageMaximum {
    raw: [u8; 5],
    usage_page: Option<UsagePage>,
}

impl AsRef<[u8]> for Usage {
    fn as_ref(&self) -> &[u8] {
        let end = __data_size(self.raw[0]) + 1;
        &self.raw[..end]
    }
}

impl Default for Usage {
    fn default() -> Self {
        Self {
            raw: [Self::PREFIX, 0, 0, 0, 0],
            usage_page: None,
        }
    }
}

impl Usage {
    /// Prefix consists of tag(bit 7-4), type(bit 3-2) and size(bit 1-0).
    /// The "size" part is set to `00` in this constant value.
    pub const PREFIX: u8 = 0b0000_1000;

    /// Create an item with prefix check.
    pub fn new(raw: &[u8]) -> Result<Self, crate::HidError> {
        if raw.is_empty() {
            return Err(crate::HidError::EmptyRawInput);
        };
        if raw[0] & 0b1111_1100 != Self::PREFIX {
            return Err(crate::HidError::PrefixNotMatch);
        }
        let expected = crate::__data_size(raw[0]);
        if expected + 1 != raw.len() {
            return Err(crate::HidError::DataSizeNotMatch {
                expected,
                provided: raw.len() - 1,
            });
        };
        let mut storage = [0; 5];
        storage[..raw.len()].copy_from_slice(raw);
        Ok(Self {
            raw: storage,
            usage_page: None,
        })
    }

    /// Create an item *WITHOUT* prefix check.
    ///
    /// # Safety
    ///
    /// Must ensure that the prefix part is correct.
    pub unsafe fn new_unchecked(raw: &[u8]) -> Self {
        let mut storage = [0; 5];
        storage[..raw.len()].copy_from_slice(raw);
        Self {
            raw: storage,
            usage_page: None,
        }
    }

    /// Get prefix part of the item. Equivalent to `item.as_ref()[0]`.
    pub fn prefix(&self) -> u8 {
        self.raw[0]
    }

    /// Get data part of the item. Equivalent to `&item.as_ref()[1..]`.
    pub fn data(&self) -> &[u8] {
        let end = __data_size(self.raw[0]) + 1;
        &self.raw[1..end]
    }

    /// If you want more detailed content printed when formatting,
    /// you need to set the related usage page.
    ///
    /// # Equality
    ///
    /// Equality between two Usage items ignores usage page.
    pub fn set_usage_page(&mut self, usage_page: UsagePage) {
        self.usage_page = Some(usage_page);
    }

    /// Get usage page.
    pub fn usage_page(&self) -> Option<&UsagePage> {
        self.usage_page.as_ref()
    }

    /// Create an item with specific data.
    ///
    /// *NOTE*: data size must be: 0, 1, 2 or 4.
    pub fn new_with(data: &[u8]) -> Result<Self, crate::HidError> {
        let mut item = Self {
            raw: [0; 5],
            usage_page: None,
        };
        item.raw[0] = 0b0000_1000;
        __set_data_size(&mut item.raw[0], data)?;
        item.data_mut().copy_from_slice(data);
        Ok(item)
    }

    /// Set data part of the item.
    ///
    /// *NOTE*: data size must be: 0, 1, 2 or 4.
    pub fn set_data(&mut self, data: &[u8]) -> Result<&mut Self, crate::HidError> {
        __set_data_size(&mut self.raw[0], data)?;
        self.data_mut().copy_from_slice(data);
        Ok(self)
    }

    /// Get mutable data part of the item.
    pub fn data_mut(&mut self) -> &mut [u8] {
        let end = __data_size(self.raw[0]) + 1;
        &mut self.raw[1..end]
    }
}

impl PartialEq for Usage {
    fn eq(&self, other: &Self) -> bool {
        self.raw.eq(&other.raw)
    }
}

impl Eq for Usage {}

impl AsRef<[u8]> for UsageMinimum {
    fn as_ref(&self) -> &[u8] {
        let end = __data_size(self.raw[0]) + 1;
        &self.raw[..end]
    }
}

impl Default for UsageMinimum {
    fn default() -> Self {
        Self {
            raw: [Self::PREFIX, 0, 0, 0, 0],
            usage_page: None,
        }
    }
}

impl UsageMinimum {
    /// Prefix consists of tag(bit 7-4), type(bit 3-2) and size(bit 1-0).
    /// The "size" part is set to `00` in this constant value.
    pub const PREFIX: u8 = 0b0001_1000;

    /// Create an item with prefix check.
    pub fn new(raw: &[u8]) -> Result<Self, crate::HidError> {
        if raw.is_empty() {
            return Err(crate::HidError::EmptyRawInput);
        };
        if raw[0] & 0b1111_1100 != Self::PREFIX {
            return Err(crate::HidError::PrefixNotMatch);
        }
        let expected = crate::__data_size(raw[0]);
        if expected + 1 != raw.len() {
            return Err(crate::HidError::DataSizeNotMatch {
                expected,
                provided: raw.len() - 1,
            });
        };
        let mut storage = [0; 5];
        storage[..raw.len()].copy_from_slice(raw);
        Ok(Self {
            raw: storage,
            usage_page: None,
        })
    }

    /// Create an item *WITHOUT* prefix check.
    ///
    /// # Safety
    ///
    /// Must ensure that the prefix part is correct.
    pub unsafe fn new_unchecked(raw: &[u8]) -> Self {
        let mut storage = [0; 5];
        storage[..raw.len()].copy_from_slice(raw);
        Self {
            raw: storage,
            usage_page: None,
        }
    }

    /// Get prefix part of the item. Equivalent to `item.as_ref()[0]`.
    pub fn prefix(&self) -> u8 {
        self.raw[0]
    }

    /// Get data part of the item. Equivalent to `&item.as_ref()[1..]`.
    pub fn data(&self) -> &[u8] {
        let end = __data_size(self.raw[0]) + 1;
        &self.raw[1..end]
    }

    /// If you want more detailed content printed when formatting,
    /// you need to set the related usage page.
    ///
    /// # Equality
    ///
    /// Equality between two UsageMinimum items ignores usage page.
    pub fn set_usage_page(&mut self, usage_page: UsagePage) {
        self.usage_page = Some(usage_page);
    }

    /// Get usage page.
    pub fn usage_page(&self) -> Option<&UsagePage> {
        self.usage_page.as_ref()
    }

    /// Create an item with specific data.
    ///
    /// *NOTE*: data size must be: 0, 1, 2 or 4.
    pub fn new_with(data: &[u8]) -> Result<Self, crate::HidError> {
        let mut item = Self {
            raw: [0; 5],
            usage_page: None,
        };
        item.raw[0] = 0b0001_1000;
        __set_data_size(&mut item.raw[0], data)?;
        item.data_mut().copy_from_slice(data);
        Ok(item)
    }

    /// Set data part of the item.
    ///
    /// *NOTE*: data size must be: 0, 1, 2 or 4.
    pub fn set_data(&mut self, data: &[u8]) -> Result<&mut Self, crate::HidError> {
        crate::__set_data_size(&mut self.raw[0], data)?;
        self.data_mut().copy_from_slice(data);
        Ok(self)
    }

    /// Get mutable data part of the item.
    pub fn data_mut(&mut self) -> &mut [u8] {
        let end = __data_size(self.raw[0]) + 1;
        &mut self.raw[1..end]
    }
}

impl PartialEq for UsageMinimum {
    fn eq(&self, other: &Self) -> bool {
        self.raw.eq(&other.raw)
    }
}

impl Eq for UsageMinimum {}

impl AsRef<[u8]> for UsageMaximum {
    fn as_ref(&self) -> &[u8] {
        let end = __data_size(self.raw[0]) + 1;
        &self.raw[..end]
    }
}

impl Default for UsageMaximum {
    fn default() -> Self {
        Self {
            raw: [Self::PREFIX, 0, 0, 0, 0],
            usage_page: None,
        }
    }
}

impl UsageMaximum {
    /// Prefix consists of tag(bit 7-4), type(bit 3-2) and size(bit 1-0).
    /// The "size" part is set to `00` in this constant value.
    pub const PREFIX: u8 = 0b0010_1000;

    /// Create an item with prefix check.
    pub fn new(raw: &[u8]) -> Result<Self, crate::HidError> {
        if raw.is_empty() {
            return Err(crate::HidError::EmptyRawInput);
        };
        if raw[0] & 0b1111_1100 != Self::PREFIX {
            return Err(crate::HidError::PrefixNotMatch);
        }
        let expected = crate::__data_size(raw[0]);
        if expected + 1 != raw.len() {
            return Err(crate::HidError::DataSizeNotMatch {
                expected,
                provided: raw.len() - 1,
            });
        };
        let mut storage = [0; 5];
        storage[..raw.len()].copy_from_slice(raw);
        Ok(Self {
            raw: storage,
            usage_page: None,
        })
    }

    /// Create an item *WITHOUT* prefix check.
    ///
    /// # Safety
    ///
    /// Must ensure that the prefix part is correct.
    pub unsafe fn new_unchecked(raw: &[u8]) -> Self {
        let mut storage = [0; 5];
        storage[..raw.len()].copy_from_slice(raw);
        Self {
            raw: storage,
            usage_page: None,
        }
    }

    /// Get prefix part of the item. Equivalent to `item.as_ref()[0]`.
    pub fn prefix(&self) -> u8 {
        self.raw[0]
    }

    /// Get data part of the item. Equivalent to `&item.as_ref()[1..]`.
    pub fn data(&self) -> &[u8] {
        let end = __data_size(self.raw[0]) + 1;
        &self.raw[1..end]
    }

    /// If you want more detailed content printed when formatting,
    /// you need to set the related usage page.
    ///
    /// # Equality
    ///
    /// Equality between two UsageMaximum items ignores usage page.
    pub fn set_usage_page(&mut self, usage_page: UsagePage) {
        self.usage_page = Some(usage_page);
    }

    /// Get usage page.
    pub fn usage_page(&self) -> Option<&UsagePage> {
        self.usage_page.as_ref()
    }

    /// Create an item with specific data.
    ///
    /// *NOTE*: data size must be: 0, 1, 2 or 4.
    pub fn new_with(data: &[u8]) -> Result<Self, crate::HidError> {
        let mut item = Self {
            raw: [0; 5],
            usage_page: None,
        };
        item.raw[0] = 0b0010_1000;
        crate::__set_data_size(&mut item.raw[0], data)?;
        item.data_mut().copy_from_slice(data);
        Ok(item)
    }

    /// Set data part of the item.
    ///
    /// *NOTE*: data size must be: 0, 1, 2 or 4.
    pub fn set_data(&mut self, data: &[u8]) -> Result<&mut Self, crate::HidError> {
        crate::__set_data_size(&mut self.raw[0], data)?;
        self.data_mut().copy_from_slice(data);
        Ok(self)
    }

    /// Get mutable data part of the item.
    pub fn data_mut(&mut self) -> &mut [u8] {
        let end = __data_size(self.raw[0]) + 1;
        &mut self.raw[1..end]
    }
}

impl PartialEq for UsageMaximum {
    fn eq(&self, other: &Self) -> bool {
        self.raw.eq(&other.raw)
    }
}

impl Eq for UsageMaximum {}

fn __usage_format_helper(usage: u32, usage_page: u32) -> Cow<'static, str> {
    match usage_page {
        // Generic Desktop
        0x01 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Pointer",
            0x02 => "Mouse",
            0x04 => "Joystick",
            0x05 => "Gamepad",
            0x06 => "Keyboard",
            0x07 => "Keypad",
            0x08 => "Multi-Axis Controller",
            0x09 => "Tablet PC System Controls",
            0x0A => "Water Cooling Device",
            0x0B => "Computer Chassis Device",
            0x0C => "Wireless Radio Controls",
            0x0D => "Portable Device Control",
            0x0E => "System Multi-Axis Controller",
            0x0F => "Spatial Controller",
            0x10 => "Assistive Control",
            0x11 => "Device Dock",
            0x12 => "Dockable Device",
            0x13 => "Call State Management Control",
            0x30 => "X",
            0x31 => "Y",
            0x32 => "Z",
            0x33 => "Rx",
            0x34 => "Ry",
            0x35 => "Rz",
            0x36 => "Slider",
            0x37 => "Dial",
            0x38 => "Wheel",
            0x39 => "Hat Switch",
            0x3A => "Counted Buffer",
            0x3B => "Byte Count",
            0x3C => "Motion Wakeup",
            0x3D => "Start",
            0x3E => "Select",
            0x40 => "Vx",
            0x41 => "Vy",
            0x42 => "Vz",
            0x43 => "Vbrx",
            0x44 => "Vbry",
            0x45 => "Vbrz",
            0x46 => "Vno",
            0x47 => "Feature Notification",
            0x48 => "Resolution Multiplier",
            0x49 => "Qx",
            0x4A => "Qy",
            0x4B => "Qz",
            0x4C => "Qw",
            0x80 => "System Control",
            0x81 => "System Power Down",
            0x82 => "System Sleep",
            0x83 => "System Wake Up",
            0x84 => "System Context Menu",
            0x85 => "System Main Menu",
            0x86 => "System App Menu",
            0x87 => "System Menu Help",
            0x88 => "System Menu Exit",
            0x89 => "System Menu Select",
            0x8A => "System Menu Right",
            0x8B => "System Menu Left",
            0x8C => "System Menu Up",
            0x8D => "System Menu Down",
            0x8E => "System Cold Restart",
            0x8F => "System Warm Restart",
            0x90 => "D-pad Up",
            0x91 => "D-pad Down",
            0x92 => "D-pad Right",
            0x93 => "D-pad Left",
            0x94 => "Index Trigger",
            0x95 => "Palm Trigger",
            0x96 => "Thumbstick",
            0x97 => "System Function Shift",
            0x98 => "System Function Shift Lock",
            0x99 => "System Function Shift Lock Indicator",
            0x9A => "System Dismiss Notification",
            0x9B => "System Do Not Disturb",
            0xA0 => "System Dock",
            0xA1 => "System Undock",
            0xA2 => "System Setup",
            0xA3 => "System Break",
            0xA4 => "System Debugger Break",
            0xA5 => "Application Break",
            0xA6 => "Application Debugger Break",
            0xA7 => "System Speaker Mute",
            0xA8 => "System Hibernate",
            0xA9 => "System Microphone Mute",
            0xB0 => "System Display Invert",
            0xB1 => "System Display Internal",
            0xB2 => "System Display External",
            0xB3 => "System Display Both",
            0xB4 => "System Display Dual",
            0xB5 => "System Display Toggle Int/Ext",
            0xB6 => "System Display Swap Primary/Secondary",
            0xB7 => "System Display LCD Autoscale",
            0xC0 => "Sensor Zone",
            0xC1 => "RPM",
            0xC2 => "Coolant Level",
            0xC3 => "Coolant Critical Level",
            0xC4 => "Coolant Pump",
            0xC5 => "Chassis Enclosure",
            0xC6 => "Wireless Radio Button",
            0xC7 => "Wireless Radio LED",
            0xC8 => "Wireless Radio Slider Switch",
            0xC9 => "System Display Rotation Lock Button",
            0xCA => "System Display Rotation Lock Slider Switch",
            0xCB => "Control Enable",
            0xD0 => "Dockable Device Unique ID",
            0xD1 => "Dockable Device Vendor ID",
            0xD2 => "Dockable Device Primary Usage Page",
            0xD3 => "Dockable Device Primary Usage ID",
            0xD4 => "Dockable Device Docking State",
            0xD5 => "Dockable Device Display Occlusion",
            0xD6 => "Dockable Device Object Type",
            0xE0 => "Call Active LED",
            0xE1 => "Call Mute Toggle",
            0xE2 => "Call Mute LED",
            _ => "Reserved",
        }),
        // Simulation Controls
        0x02 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Flight Simulation Device",
            0x02 => "Automobile Simulation Device",
            0x03 => "Tank Simulation Device",
            0x04 => "Spaceship Simulation Device",
            0x05 => "Submarine Simulation Device",
            0x06 => "Sailing Simulation Device",
            0x07 => "Motorcycle Simulation Device",
            0x08 => "Sports Simulation Device",
            0x09 => "Airplane Simulation Device",
            0x0A => "Helicopter Simulation Device",
            0x0B => "Magic Carpet Simulation Device",
            0x0C => "Bicycle Simulation Device",
            0x20 => "Flight Control Stick",
            0x21 => "Flight Stick",
            0x22 => "Cyclic Control",
            0x23 => "Cyclic Trim",
            0x24 => "Flight Yoke",
            0x25 => "Track Control",
            0xB0 => "Aileron",
            0xB1 => "Aileron Trim",
            0xB2 => "Anti-Torque Control",
            0xB3 => "Autopilot Enable",
            0xB4 => "Chaff Release",
            0xB5 => "Collective Control",
            0xB6 => "Dive Brake",
            0xB7 => "Electronic Countermeasures",
            0xB8 => "Elevator",
            0xB9 => "Elevator Trim",
            0xBA => "Rudder",
            0xBB => "Throttle",
            0xBC => "Flight Communications",
            0xBD => "Flare Release",
            0xBE => "Landing Gear",
            0xBF => "Toe Brake",
            0xC0 => "Trigger",
            0xC1 => "Weapons Arm",
            0xC2 => "Weapons Select",
            0xC3 => "Wing Flaps",
            0xC4 => "Accelerator",
            0xC5 => "Brake",
            0xC6 => "Clutch",
            0xC7 => "Shifter",
            0xC8 => "Steering",
            0xC9 => "Turret Direction",
            0xCA => "Barrel Elevation",
            0xCB => "Dive Plane",
            0xCC => "Ballast",
            0xCD => "Bicycle Crank",
            0xCE => "Handle Bars",
            0xCF => "Front Brake",
            0xD0 => "Rear Brake",
            _ => "Reserved",
        }),
        // VR Controls
        0x03 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Belt",
            0x02 => "Body Suit",
            0x03 => "Flexor",
            0x04 => "Glove",
            0x05 => "Head Tracker",
            0x06 => "Head Mounted Display",
            0x07 => "Hand Tracker",
            0x08 => "Oculometer",
            0x09 => "Vest",
            0x0A => "Animatronic Device",
            0x20 => "Stereo Enable",
            0x21 => "Display Enable",
            _ => "Reserved",
        }),
        // Sport Controls
        0x04 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Baseball Bat",
            0x02 => "Golf Club",
            0x03 => "Rowing Machine",
            0x04 => "Treadmill",
            0x30 => "Oar",
            0x31 => "Slope",
            0x32 => "Rate",
            0x33 => "Stick Speed",
            0x34 => "Stick Face Angle",
            0x35 => "Stick Heel/Toe",
            0x36 => "Stick Follow Through",
            0x37 => "Stick Tempo",
            0x38 => "Stick Type",
            0x39 => "Stick Height",
            0x50 => "Putter",
            0x51 => "1 Iron",
            0x52 => "2 Iron",
            0x53 => "3 Iron",
            0x54 => "4 Iron",
            0x55 => "5 Iron",
            0x56 => "6 Iron",
            0x57 => "7 Iron",
            0x58 => "8 Iron",
            0x59 => "9 Iron",
            0x5A => "10 Iron",
            0x5B => "11 Iron",
            0x5C => "Sand Wedge",
            0x5D => "Loft Wedge",
            0x5E => "Power Wedge",
            0x5F => "1 Wood",
            0x60 => "3 Wood",
            0x61 => "5 Wood",
            0x62 => "7 Wood",
            0x63 => "9 Wood",
            _ => "Reserved",
        }),
        // Game Controls
        0x05 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "3D Game Controller",
            0x02 => "Pinball Device",
            0x03 => "Gun Device",
            0x20 => "Point of View",
            0x21 => "Turn Right/Left",
            0x22 => "Pitch Forward/Backward",
            0x23 => "Roll Right/Left",
            0x24 => "Move Right/Left",
            0x25 => "Move Forward/Backward",
            0x26 => "Move Up/Down",
            0x27 => "Lean Right/Left",
            0x28 => "Lean Forward/Backward",
            0x29 => "Height of POV",
            0x2A => "Flipper",
            0x2B => "Secondary Flipper",
            0x2C => "Bump",
            0x2D => "New Game",
            0x2E => "Shoot Ball",
            0x2F => "Player",
            0x30 => "Gun Bolt",
            0x31 => "Gun Clip",
            0x32 => "Gun Selector",
            0x33 => "Gun Single Shot",
            0x34 => "Gun Burst",
            0x35 => "Gun Automatic",
            0x36 => "Gun Safety",
            0x37 => "Gamepad Fire/Jump",
            0x39 => "Gamepad Trigger",
            0x3A => "Form-fitting Gamepad",
            _ => "Reserved",
        }),
        // Generic Device Controls
        0x06 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Background/Nonuser Controls",
            0x20 => "Battery Strength",
            0x21 => "Wireless Channel",
            0x22 => "Wireless ID",
            0x23 => "Discover Wireless Control",
            0x24 => "Security Code Character Entered",
            0x25 => "Security Code Character Erased",
            0x26 => "Security Code Cleared",
            0x27 => "Sequence ID",
            0x28 => "Sequence ID Reset",
            0x29 => "RF Signal Strength",
            0x2A => "Software Version",
            0x2B => "Protocol Version",
            0x2C => "Hardware Version",
            0x2D => "Major",
            0x2E => "Minor",
            0x2F => "Revision",
            0x30 => "Handedness",
            0x31 => "Either Hand",
            0x32 => "Left Hand",
            0x33 => "Right Hand",
            0x34 => "Both Hands",
            0x40 => "Grip Pose Offset",
            0x41 => "Pointer Pose Offset",
            _ => "Reserved",
        }),
        // Keyboard/Keypad
        0x07 => Cow::Borrowed(match usage {
            0x01 => "Keyboard ErrorRollOver",
            0x02 => "Keyboard POSTFail",
            0x03 => "Keyboard ErrorUndefined",
            0x04 => "Keyboard a and A",
            0x05 => "Keyboard b and B",
            0x06 => "Keyboard c and C",
            0x07 => "Keyboard d and D",
            0x08 => "Keyboard e and E",
            0x09 => "Keyboard f and F",
            0x0A => "Keyboard g and G",
            0x0B => "Keyboard h and H",
            0x0C => "Keyboard i and I",
            0x0D => "Keyboard j and J",
            0x0E => "Keyboard k and K",
            0x0F => "Keyboard l and L",
            0x10 => "Keyboard m and M",
            0x11 => "Keyboard n and N",
            0x12 => "Keyboard o and O",
            0x13 => "Keyboard p and P",
            0x14 => "Keyboard q and Q",
            0x15 => "Keyboard r and R",
            0x16 => "Keyboard s and S",
            0x17 => "Keyboard t and T",
            0x18 => "Keyboard u and U",
            0x19 => "Keyboard v and V",
            0x1A => "Keyboard w and W",
            0x1B => "Keyboard x and X",
            0x1C => "Keyboard y and Y",
            0x1D => "Keyboard z and Z",
            0x1E => "Keyboard 1 and !",
            0x1F => "Keyboard 2 and @",
            0x20 => "Keyboard 3 and #",
            0x21 => "Keyboard 4 and $",
            0x22 => "Keyboard 5 and %",
            0x23 => "Keyboard 6 and ∧",
            0x24 => "Keyboard 7 and &",
            0x25 => "Keyboard 8 and *",
            0x26 => "Keyboard 9 and (",
            0x27 => "Keyboard 0 and )",
            0x28 => "Keyboard Return (ENTER)",
            0x29 => "Keyboard ESCAPE",
            0x2A => "Keyboard DELETE (Backspace)",
            0x2B => "Keyboard Tab",
            0x2C => "Keyboard Spacebar",
            0x2D => "Keyboard - and (underscore)",
            0x2E => "Keyboard = and +",
            0x2F => "Keyboard [ and {",
            0x30 => "Keyboard ] and }",
            0x31 => "Keyboard \\ and |",
            0x32 => "Keyboard Non-US # and ˜",
            0x33 => "Keyboard ; and :",
            0x34 => "Keyboard ‘ and “",
            0x35 => "Keyboard Grave Accent and Tilde",
            0x36 => "Keyboard , and <",
            0x37 => "Keyboard . and >",
            0x38 => "Keyboard / and ?",
            0x39 => "Keyboard Caps Lock",
            0x3A => "Keyboard F1",
            0x3B => "Keyboard F2",
            0x3C => "Keyboard F3",
            0x3D => "Keyboard F4",
            0x3E => "Keyboard F5",
            0x3F => "Keyboard F6",
            0x40 => "Keyboard F7",
            0x41 => "Keyboard F8",
            0x42 => "Keyboard F9",
            0x43 => "Keyboard F10",
            0x44 => "Keyboard F11",
            0x45 => "Keyboard F12",
            0x46 => "Keyboard PrintScreen",
            0x47 => "Keyboard Scroll Lock",
            0x48 => "Keyboard Pause",
            0x49 => "Keyboard Insert",
            0x4A => "Keyboard Home",
            0x4B => "Keyboard PageUp",
            0x4C => "Keyboard Delete Forward",
            0x4D => "Keyboard End",
            0x4E => "Keyboard PageDown",
            0x4F => "Keyboard RightArrow",
            0x50 => "Keyboard LeftArrow",
            0x51 => "Keyboard DownArrow",
            0x52 => "Keyboard UpArrow",
            0x53 => "Keypad Num Lock and Clear",
            0x54 => "Keypad /",
            0x55 => "Keypad *",
            0x56 => "Keypad -",
            0x57 => "Keypad +",
            0x58 => "Keypad ENTER",
            0x59 => "Keypad 1 and End",
            0x5A => "Keypad 2 and Down Arrow",
            0x5B => "Keypad 3 and PageDn",
            0x5C => "Keypad 4 and Left Arrow",
            0x5D => "Keypad 5",
            0x5E => "Keypad 6 and Right Arrow",
            0x5F => "Keypad 7 and Home",
            0x60 => "Keypad 8 and Up Arrow",
            0x61 => "Keypad 9 and PageUp",
            0x62 => "Keypad 0 and Insert",
            0x63 => "Keypad . and Delete",
            0x64 => "Keyboard Non-US \\ and |",
            0x65 => "Keyboard Application",
            0x66 => "Keyboard Power",
            0x67 => "Keypad =",
            0x68 => "Keyboard F13",
            0x69 => "Keyboard F14",
            0x6A => "Keyboard F15",
            0x6B => "Keyboard F16",
            0x6C => "Keyboard F17",
            0x6D => "Keyboard F18",
            0x6E => "Keyboard F19",
            0x6F => "Keyboard F20",
            0x70 => "Keyboard F21",
            0x71 => "Keyboard F22",
            0x72 => "Keyboard F23",
            0x73 => "Keyboard F24",
            0x74 => "Keyboard Execute",
            0x75 => "Keyboard Help",
            0x76 => "Keyboard Menu",
            0x77 => "Keyboard",
            0x78 => "Keyboard Stop",
            0x79 => "Keyboard Again",
            0x7A => "Keyboard Undo",
            0x7B => "Keyboard Cut",
            0x7C => "Keyboard Copy",
            0x7D => "Keyboard Paste",
            0x7E => "Keyboard Find",
            0x7F => "Keyboard Mute",
            0x80 => "Keyboard Volume Up",
            0x81 => "Keyboard Volume Down",
            0x82 => "Keyboard Locking Caps Lock",
            0x83 => "Keyboard Locking Num Lock",
            0x84 => "Keyboard Locking Scroll Lock",
            0x85 => "Keypad Comma",
            0x86 => "Keypad Equal Sign",
            0x87 => "Keyboard International1",
            0x88 => "Keyboard International2",
            0x89 => "Keyboard International3",
            0x8A => "Keyboard International4",
            0x8B => "Keyboard International5",
            0x8C => "Keyboard International6",
            0x8D => "Keyboard International7",
            0x8E => "Keyboard International8",
            0x8F => "Keyboard International9",
            0x90 => "Keyboard LANG1",
            0x91 => "Keyboard LANG2",
            0x92 => "Keyboard LANG3",
            0x93 => "Keyboard LANG4",
            0x94 => "Keyboard LANG5",
            0x95 => "Keyboard LANG6",
            0x96 => "Keyboard LANG7",
            0x97 => "Keyboard LANG8",
            0x98 => "Keyboard LANG9",
            0x99 => "Keyboard Alternate Erase",
            0x9A => "Keyboard SysReq/Attention",
            0x9B => "Keyboard Cancel",
            0x9C => "Keyboard Clear",
            0x9D => "Keyboard Prior",
            0x9E => "Keyboard Return",
            0x9F => "Keyboard Separator",
            0xA0 => "Keyboard Out",
            0xA1 => "Keyboard Oper",
            0xA2 => "Keyboard Clear/Again",
            0xA3 => "Keyboard CrSel/Props",
            0xA4 => "Keyboard ExSel",
            0xB0 => "Keypad 00",
            0xB1 => "Keypad 000",
            0xB2 => "Thousands Separator",
            0xB3 => "Decimal Separator",
            0xB4 => "Currency Unit",
            0xB5 => "Currency Sub-unit",
            0xB6 => "Keypad (",
            0xB7 => "Keypad )",
            0xB8 => "Keypad {",
            0xB9 => "Keypad }",
            0xBA => "Keypad Tab",
            0xBB => "Keypad Backspace",
            0xBC => "Keypad A",
            0xBD => "Keypad B",
            0xBE => "Keypad C",
            0xBF => "Keypad D",
            0xC0 => "Keypad E",
            0xC1 => "Keypad F",
            0xC2 => "Keypad XOR",
            0xC3 => "Keypad ∧",
            0xC4 => "Keypad %",
            0xC5 => "Keypad <",
            0xC6 => "Keypad >",
            0xC7 => "Keypad &",
            0xC8 => "Keypad &&",
            0xC9 => "Keypad |",
            0xCA => "Keypad ||",
            0xCB => "Keypad :",
            0xCC => "Keypad #",
            0xCD => "Keypad Space",
            0xCE => "Keypad @",
            0xCF => "Keypad !",
            0xD0 => "Keypad Memory Store",
            0xD1 => "Keypad Memory Recall",
            0xD2 => "Keypad Memory Clear",
            0xD3 => "Keypad Memory Add",
            0xD4 => "Keypad Memory Subtract",
            0xD5 => "Keypad Memory Multiply",
            0xD6 => "Keypad Memory Divide",
            0xD7 => "Keypad +/-",
            0xD8 => "Keypad Clear",
            0xD9 => "Keypad Clear Entry",
            0xDA => "Keypad Binary",
            0xDB => "Keypad Octal",
            0xDC => "Keypad Decimal",
            0xDD => "Keypad Hexadecimal",
            0xE0 => "Keyboard LeftControl",
            0xE1 => "Keyboard LeftShift",
            0xE2 => "Keyboard LeftAlt",
            0xE3 => "Keyboard Left GUI",
            0xE4 => "Keyboard RightControl",
            0xE5 => "Keyboard RightShift",
            0xE6 => "Keyboard RightAlt",
            0xE7 => "Keyboard Right GUI",
            _ => "Reserved",
        }),
        // LED
        0x08 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Num Lock",
            0x02 => "Caps Lock",
            0x03 => "Scroll Lock",
            0x04 => "Compose",
            0x05 => "Kana",
            0x06 => "Power",
            0x07 => "Shift",
            0x08 => "Do Not Disturb",
            0x09 => "Mute",
            0x0A => "Tone Enable",
            0x0B => "High Cut Filter",
            0x0C => "Low Cut Filter",
            0x0D => "Equalizer Enable",
            0x0E => "Sound Field On",
            0x0F => "Surround On",
            0x10 => "Repeat",
            0x11 => "Stereo",
            0x12 => "Sampling Rate Detect",
            0x13 => "Spinning",
            0x14 => "CAV",
            0x15 => "CLV",
            0x16 => "Recording Format Detect",
            0x17 => "Off-Hook",
            0x18 => "Ring",
            0x19 => "Message Waiting",
            0x1A => "Data Mode",
            0x1B => "Battery Operation",
            0x1C => "Battery OK",
            0x1D => "Battery Low",
            0x1E => "Speaker",
            0x1F => "Headset",
            0x20 => "Hold",
            0x21 => "Microphone",
            0x22 => "Coverage",
            0x23 => "Night Mode",
            0x24 => "Send Calls",
            0x25 => "Call Pickup",
            0x26 => "Conference",
            0x27 => "Stand-by",
            0x28 => "Camera On",
            0x29 => "Camera Off",
            0x2A => "On-Line",
            0x2B => "Off-Line",
            0x2C => "Busy",
            0x2D => "Ready",
            0x2E => "Paper-Out",
            0x2F => "Paper-Jam",
            0x30 => "Remote",
            0x31 => "Forward",
            0x32 => "Reverse",
            0x33 => "Stop",
            0x34 => "Rewind",
            0x35 => "Fast Forward",
            0x36 => "Play",
            0x37 => "Pause",
            0x38 => "Record",
            0x39 => "Error",
            0x3A => "Usage Selected Indicator",
            0x3B => "Usage In Use Indicator",
            0x3C => "Usage Multi Mode Indicator",
            0x3D => "Indicator On",
            0x3E => "Indicator Flash",
            0x3F => "Indicator Slow Blink",
            0x40 => "Indicator Fast Blink",
            0x41 => "Indicator Off",
            0x42 => "Flash On Time",
            0x43 => "Slow Blink On Time",
            0x44 => "Slow Blink Off Time",
            0x45 => "Fast Blink On Time",
            0x46 => "Fast Blink Off Time",
            0x47 => "Usage Indicator Color",
            0x48 => "Indicator Red",
            0x49 => "Indicator Green",
            0x4A => "Indicator Amber",
            0x4B => "Generic Indicator",
            0x4C => "System Suspend",
            0x4D => "External Power Connected",
            0x4E => "Indicator Blue",
            0x4F => "Indicator Orange",
            0x50 => "Good Status",
            0x51 => "Warning Status",
            0x52 => "RGB LED",
            0x53 => "Red LED Channel",
            0x54 => "Blue LED Channel",
            0x55 => "Green LED Channel",
            0x56 => "LED Intensity",
            0x57 => "System Microphone Mute",
            0x60 => "Player Indicator",
            0x61 => "Player 1",
            0x62 => "Player 2",
            0x63 => "Player 3",
            0x64 => "Player 4",
            0x65 => "Player 5",
            0x66 => "Player 6",
            0x67 => "Player 7",
            0x68 => "Player 8",
            _ => "Reserved",
        }),
        // Button
        0x09 => match usage {
            0x00 => Cow::Borrowed("No Button Pressed"),
            _ => Cow::Owned(format!("Button {}", usage)),
        },
        // Ordinal
        0x0A => match usage {
            0x00 => Cow::Borrowed("Reserved"),
            _ => Cow::Owned(format!("Instance {}", usage)),
        },
        // Telephony Device
        0x0B => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Phone",
            0x02 => "Answering Machine",
            0x03 => "Message Controls",
            0x04 => "Handset",
            0x05 => "Headset CL/CA 14.1",
            0x06 => "Telephony Key Pad",
            0x07 => "Programmable Button",
            0x20 => "Hook Switch",
            0x21 => "Flash",
            0x22 => "Feature",
            0x23 => "Hold",
            0x24 => "Redial",
            0x25 => "Transfer",
            0x26 => "Drop",
            0x27 => "Park",
            0x28 => "Forward Calls",
            0x29 => "Alternate Function",
            0x2A => "Line OSC/NAry 14.3",
            0x2B => "Speaker Phone",
            0x2C => "Conference",
            0x2D => "Ring Enable",
            0x2E => "Ring Select",
            0x2F => "Phone Mute",
            0x30 => "Caller ID",
            0x31 => "Send",
            0x50 => "Speed Dial",
            0x51 => "Store Number",
            0x52 => "Recall Number",
            0x53 => "Phone Directory",
            0x70 => "Voice Mail",
            0x71 => "Screen Calls",
            0x72 => "Do Not Disturb",
            0x73 => "Message",
            0x74 => "Answer On/Off",
            0x90 => "Inside Dial Tone",
            0x91 => "Outside Dial Tone",
            0x92 => "Inside Ring Tone",
            0x93 => "Outside Ring Tone",
            0x94 => "Priority Ring Tone",
            0x95 => "Inside Ringback",
            0x96 => "Priority Ringback",
            0x97 => "Line Busy Tone",
            0x98 => "Reorder Tone",
            0x99 => "Call Waiting Tone",
            0x9A => "Confirmation Tone 1",
            0x9B => "Confirmation Tone 2",
            0x9C => "Tones Off",
            0x9D => "Outside Ringback",
            0x9E => "Ringer",
            0xB0 => "Phone Key 0",
            0xB1 => "Phone Key 1",
            0xB2 => "Phone Key 2",
            0xB3 => "Phone Key 3",
            0xB4 => "Phone Key 4",
            0xB5 => "Phone Key 5",
            0xB6 => "Phone Key 6",
            0xB7 => "Phone Key 7",
            0xB8 => "Phone Key 8",
            0xB9 => "Phone Key 9",
            0xBA => "Phone Key Star",
            0xBB => "Phone Key Pound",
            0xBC => "Phone Key A",
            0xBD => "Phone Key B",
            0xBE => "Phone Key C",
            0xBF => "Phone Key D",
            0xC0 => "Phone Call History Key",
            0xC1 => "Phone Caller ID Key",
            0xC2 => "Phone Settings Key",
            0xF0 => "Host Control",
            0xF1 => "Host Available",
            0xF2 => "Host Call Active",
            0xF3 => "Activate Handset Audio",
            0xF4 => "Ring Type",
            0xF5 => "Re-dialable Phone Number",
            0xF8 => "Stop Ring Tone",
            0xF9 => "PSTN Ring Tone",
            0xFA => "Host Ring Tone",
            0xFB => "Alert Sound Error",
            0xFC => "Alert Sound Confirm",
            0xFD => "Alert Sound Notification",
            0xFE => "Silent Ring",
            0x108 => "Email Message Waiting",
            0x109 => "Voicemail Message Waiting",
            0x10A => "Host Hold",
            0x110 => "Incoming Call History Count",
            0x111 => "Outgoing Call History Count",
            0x112 => "Incoming Call History",
            0x113 => "Outgoing Call History",
            0x114 => "Phone Locale",
            0x140 => "Phone Time Second",
            0x141 => "Phone Time Minute",
            0x142 => "Phone Time Hour",
            0x143 => "Phone Date Day",
            0x144 => "Phone Date Month",
            0x145 => "Phone Date Year",
            0x146 => "Handset Nickname",
            0x147 => "Address Book ID",
            0x14A => "Call Duration",
            0x14B => "Dual Mode Phone",
            _ => "Reserved",
        }),
        // Consumer
        0x0C => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Consumer Control",
            0x02 => "Numeric Key Pad",
            0x03 => "Programmable Buttons",
            0x04 => "Microphone",
            0x05 => "Headphone",
            0x06 => "Graphic Equalizer",
            0x20 => "+10",
            0x21 => "+100",
            0x22 => "AM/PM",
            0x30 => "Power",
            0x31 => "Reset",
            0x32 => "Sleep",
            0x33 => "Sleep After",
            0x34 => "Sleep Mode",
            0x35 => "Illumination",
            0x36 => "Function Buttons",
            0x40 => "Menu",
            0x41 => "Menu Pick",
            0x42 => "Menu Up",
            0x43 => "Menu Down",
            0x44 => "Menu Left",
            0x45 => "Menu Right",
            0x46 => "Menu Escape",
            0x47 => "Menu Value Increase",
            0x48 => "Menu Value Decrease",
            0x60 => "Data On Screen",
            0x61 => "Closed Caption",
            0x62 => "Closed Caption Select",
            0x63 => "VCR/TV",
            0x64 => "Broadcast Mode",
            0x65 => "Snapshot",
            0x66 => "Still",
            0x67 => "Picture-in-Picture Toggle",
            0x68 => "Picture-in-Picture Swap",
            0x69 => "Red Menu Button",
            0x6A => "Green Menu Button",
            0x6B => "Blue Menu Button",
            0x6C => "Yellow Menu Button",
            0x6D => "Aspect",
            0x6E => "3D Mode Select",
            0x6F => "Display Brightness Increment",
            0x70 => "Display Brightness Decrement",
            0x71 => "Display Brightness",
            0x72 => "Display Backlight Toggle",
            0x73 => "Display Set Brightness to Minimum",
            0x74 => "Display Set Brightness to Maximum",
            0x75 => "Display Set Auto Brightness",
            0x76 => "Camera Access Enabled",
            0x77 => "Camera Access Disabled",
            0x78 => "Camera Access Toggle",
            0x79 => "Keyboard Brightness Increment",
            0x7A => "Keyboard Brightness Decrement",
            0x7B => "Keyboard Backlight Set Level",
            0x7C => "Keyboard Backlight OOC",
            0x7D => "Keyboard Backlight Set Minimum",
            0x7E => "Keyboard Backlight Set Maximum",
            0x7F => "Keyboard Backlight Auto",
            0x80 => "Selection",
            0x81 => "Assign Selection",
            0x82 => "Mode Step",
            0x83 => "Recall Last",
            0x84 => "Enter Channel",
            0x85 => "Order Movie",
            0x86 => "Channel",
            0x87 => "Media Selection",
            0x88 => "Media Select Computer",
            0x89 => "Media Select TV",
            0x8A => "Media Select WWW",
            0x8B => "Media Select DVD",
            0x8C => "Media Select Telephone",
            0x8D => "Media Select Program Guide",
            0x8E => "Media Select Video Phone",
            0x8F => "Media Select Games",
            0x90 => "Media Select Messages",
            0x91 => "Media Select CD",
            0x92 => "Media Select VCR",
            0x93 => "Media Select Tuner",
            0x94 => "Quit",
            0x95 => "Help",
            0x96 => "Media Select Tape",
            0x97 => "Media Select Cable",
            0x98 => "Media Select Satellite",
            0x99 => "Media Select Security",
            0x9A => "Media Select Home",
            0x9B => "Media Select Call",
            0x9C => "Channel Increment",
            0x9D => "Channel Decrement",
            0x9E => "Media Select SAP",
            0xA0 => "VCR Plus",
            0xA1 => "Once",
            0xA2 => "Daily",
            0xA3 => "Weekly",
            0xA4 => "Monthly",
            0xB0 => "Play",
            0xB1 => "Pause",
            0xB2 => "Record",
            0xB3 => "Fast Forward",
            0xB4 => "Rewind",
            0xB5 => "Scan Next Track",
            0xB6 => "Scan Previous Track",
            0xB7 => "Stop",
            0xB8 => "Eject",
            0xB9 => "Random Play",
            0xBA => "Select Disc",
            0xBB => "Enter Disc",
            0xBC => "Repeat",
            0xBD => "Tracking",
            0xBE => "Track Normal",
            0xBF => "Slow Tracking",
            0xC0 => "Frame Forward",
            0xC1 => "Frame Back",
            0xC2 => "Mark",
            0xC3 => "Clear Mark",
            0xC4 => "Repeat From Mark",
            0xC5 => "Return To Mark",
            0xC6 => "Search Mark Forward",
            0xC7 => "Search Mark Backwards",
            0xC8 => "Counter Reset",
            0xC9 => "Show Counter",
            0xCA => "Tracking Increment",
            0xCB => "Tracking Decrement",
            0xCC => "Stop/Eject",
            0xCD => "Play/Pause",
            0xCE => "Play/Skip",
            0xCF => "Voice Command",
            0xD0 => "Invoke Capture Interface",
            0xD1 => "Start or Stop Game Recording",
            0xD2 => "Historical Game Capture",
            0xD3 => "Capture Game Screenshot",
            0xD4 => "Show or Hide Recording Indicator",
            0xD5 => "Start or Stop Microphone Capture",
            0xD6 => "Start or Stop Camera Capture",
            0xD7 => "Start or Stop Game Broadcast",
            0xD8 => "Start or Stop Voice Dictation Session",
            0xD9 => "Invoke/Dismiss Emoji Picker",
            0xE0 => "Volume",
            0xE1 => "Balance",
            0xE2 => "Mute",
            0xE3 => "Bass",
            0xE4 => "Treble",
            0xE5 => "Bass Boost",
            0xE6 => "Surround Mode",
            0xE7 => "Loudness",
            0xE8 => "MPX",
            0xE9 => "Volume Increment",
            0xEA => "Volume Decrement",
            0xF0 => "Speed Select",
            0xF1 => "Playback Speed",
            0xF2 => "Standard Play",
            0xF3 => "Long Play",
            0xF4 => "Extended Play",
            0xF5 => "Slow",
            0x100 => "Fan Enable",
            0x101 => "Fan Speed",
            0x102 => "Light Enable",
            0x103 => "Light Illumination Level",
            0x104 => "Climate Control Enable",
            0x105 => "Room Temperature",
            0x106 => "Security Enable",
            0x107 => "Fire Alarm",
            0x108 => "Police Alarm",
            0x109 => "Proximity",
            0x10A => "Motion",
            0x10B => "Duress Alarm",
            0x10C => "Holdup Alarm",
            0x10D => "Medical Alarm",
            0x150 => "Balance Right",
            0x151 => "Balance Left",
            0x152 => "Bass Increment",
            0x153 => "Bass Decrement",
            0x154 => "Treble Increment",
            0x155 => "Treble Decrement",
            0x160 => "Speaker System",
            0x161 => "Channel Left",
            0x162 => "Channel Right",
            0x163 => "Channel Center",
            0x164 => "Channel Front",
            0x165 => "Channel Center Front",
            0x166 => "Channel Side",
            0x167 => "Channel Surround",
            0x168 => "Channel Low Frequency Enhancement",
            0x169 => "Channel Top",
            0x16A => "Channel Unknown",
            0x170 => "Sub-channel",
            0x171 => "Sub-channel Increment",
            0x172 => "Sub-channel Decrement",
            0x173 => "Alternate Audio Increment",
            0x174 => "Alternate Audio Decrement",
            0x180 => "Application Launch Buttons",
            0x181 => "AL Launch Button Configuration Tool",
            0x182 => "AL Programmable Button Configuration",
            0x183 => "AL Consumer Control Configuration",
            0x184 => "AL Word Processor",
            0x185 => "AL Text Editor",
            0x186 => "AL Spreadsheet",
            0x187 => "AL Graphics Editor",
            0x188 => "AL Presentation App",
            0x189 => "AL Database App",
            0x18A => "AL Email Reader",
            0x18B => "AL Newsreader",
            0x18C => "AL Voicemail",
            0x18D => "AL Contacts/Address Book",
            0x18E => "AL Calendar/Schedule",
            0x18F => "AL Task/Project Manager",
            0x190 => "AL Log/Journal/Timecard",
            0x191 => "AL Checkbook/Finance",
            0x192 => "AL Calculator",
            0x193 => "AL A/V Capture/Playback",
            0x194 => "AL Local Machine Browser",
            0x195 => "AL LAN/WAN Browser",
            0x196 => "AL Internet Browser",
            0x197 => "AL Remote Networking/ISP Connect",
            0x198 => "AL Network Conference",
            0x199 => "AL Network Chat",
            0x19A => "AL Telephony/Dialer",
            0x19B => "AL Logon",
            0x19C => "AL Logoff",
            0x19D => "AL Logon/Logoff",
            0x19E => "AL Terminal Lock/Screensaver",
            0x19F => "AL Control Panel",
            0x1A0 => "AL Command Line Processor/Run",
            0x1A1 => "AL Process/Task Manager",
            0x1A2 => "AL Select Task/Application",
            0x1A3 => "AL Next Task/Application",
            0x1A4 => "AL Previous Task/Application",
            0x1A5 => "AL Preemptive Halt Task/Application",
            0x1A6 => "AL Integrated Help Center",
            0x1A7 => "AL Documents",
            0x1A8 => "AL Thesaurus",
            0x1A9 => "AL Dictionary",
            0x1AA => "AL Desktop",
            0x1AB => "AL Spell Check",
            0x1AC => "AL Grammar Check",
            0x1AD => "AL Wireless Status",
            0x1AE => "AL Keyboard Layout",
            0x1AF => "AL Virus Protection",
            0x1B0 => "AL Encryption",
            0x1B1 => "AL Screen Saver",
            0x1B2 => "AL Alarms",
            0x1B3 => "AL Clock",
            0x1B4 => "AL File Browser",
            0x1B5 => "AL Power Status",
            0x1B6 => "AL Image Browser",
            0x1B7 => "AL Audio Browser",
            0x1B8 => "AL Movie Browser",
            0x1B9 => "AL Digital Rights Manager",
            0x1BA => "AL Digital Wallet",
            0x1BC => "AL Instant Messaging",
            0x1BD => "AL OEM Features/ Tips/Tutorial Browser",
            0x1BE => "AL OEM Help",
            0x1BF => "AL Online Community",
            0x1C0 => "AL Entertainment Content Browser",
            0x1C1 => "AL Online Shopping Browser",
            0x1C2 => "AL SmartCard Information/Help",
            0x1C3 => "AL Market Monitor/Finance Browser",
            0x1C4 => "AL Customized Corporate News Browser",
            0x1C5 => "AL Online Activity Browser",
            0x1C6 => "AL Research/Search Browser",
            0x1C7 => "AL Audio Player",
            0x1C8 => "AL Message Status",
            0x1C9 => "AL Contact Sync",
            0x1CA => "AL Navigation",
            0x1CB => "AL Context-aware Desktop Assistant",
            0x200 => "Generic GUI Application Controls",
            0x201 => "AC New",
            0x202 => "AC Open",
            0x203 => "AC Close",
            0x204 => "AC Exit",
            0x205 => "AC Maximize",
            0x206 => "AC Minimize",
            0x207 => "AC Save",
            0x208 => "AC Print",
            0x209 => "AC Properties",
            0x21A => "AC Undo",
            0x21B => "AC Copy",
            0x21C => "AC Cut",
            0x21D => "AC Paste",
            0x21E => "AC Select All",
            0x21F => "AC Find",
            0x220 => "AC Find and Replace",
            0x221 => "AC Search",
            0x222 => "AC Go To",
            0x223 => "AC Home",
            0x224 => "AC Back",
            0x225 => "AC Forward",
            0x226 => "AC Stop",
            0x227 => "AC Refresh",
            0x228 => "AC Previous Link",
            0x229 => "AC Next Link",
            0x22A => "AC Bookmarks",
            0x22B => "AC History",
            0x22C => "AC Subscriptions",
            0x22D => "AC Zoom In",
            0x22E => "AC Zoom Out",
            0x22F => "AC Zoom",
            0x230 => "AC Full Screen View",
            0x231 => "AC Normal View",
            0x232 => "AC View Toggle",
            0x233 => "AC Scroll Up",
            0x234 => "AC Scroll Down",
            0x235 => "AC Scroll",
            0x236 => "AC Pan Left",
            0x237 => "AC Pan Right",
            0x238 => "AC Pan",
            0x239 => "AC New Window",
            0x23A => "AC Tile Horizontally",
            0x23B => "AC Tile Vertically",
            0x23C => "AC Format",
            0x23D => "AC Edit",
            0x23E => "AC Bold",
            0x23F => "AC Italics",
            0x240 => "AC Underline",
            0x241 => "AC Strikethrough",
            0x242 => "AC Subscript",
            0x243 => "AC Superscript",
            0x244 => "AC All Caps",
            0x245 => "AC Rotate",
            0x246 => "AC Resize",
            0x247 => "AC Flip Horizontal",
            0x248 => "AC Flip Vertical",
            0x249 => "AC Mirror Horizontal",
            0x24A => "AC Mirror Vertical",
            0x24B => "AC Font Select",
            0x24C => "AC Font Color",
            0x24D => "AC Font Size",
            0x24E => "AC Justify Left",
            0x24F => "AC Justify Center H",
            0x250 => "AC Justify Right",
            0x251 => "AC Justify Block H",
            0x252 => "AC Justify Top",
            0x253 => "AC Justify Center V",
            0x254 => "AC Justify Bottom",
            0x255 => "AC Justify Block V",
            0x256 => "AC Indent Decrease",
            0x257 => "AC Indent Increase",
            0x258 => "AC Numbered List",
            0x259 => "AC Restart Numbering",
            0x25A => "AC Bulleted List",
            0x25B => "AC Promote",
            0x25C => "AC Demote",
            0x25D => "AC Yes",
            0x25E => "AC No",
            0x25F => "AC Cancel",
            0x260 => "AC Catalog",
            0x261 => "AC Buy/Checkout",
            0x262 => "AC Add to Cart",
            0x263 => "AC Expand",
            0x264 => "AC Expand All",
            0x265 => "AC Collapse",
            0x266 => "AC Collapse All",
            0x267 => "AC Print Preview",
            0x268 => "AC Paste Special",
            0x269 => "AC Insert Mode",
            0x26A => "AC Delete",
            0x26B => "AC Lock",
            0x26C => "AC Unlock",
            0x26D => "AC Protect",
            0x26E => "AC Unprotect",
            0x26F => "AC Attach Comment",
            0x270 => "AC Delete Comment",
            0x271 => "AC View Comment",
            0x272 => "AC Select Word",
            0x273 => "AC Select Sentence",
            0x274 => "AC Select Paragraph",
            0x275 => "AC Select Column",
            0x276 => "AC Select Row",
            0x277 => "AC Select Table",
            0x278 => "AC Select Object",
            0x279 => "AC Redo/Repeat",
            0x27A => "AC Sort",
            0x27B => "AC Sort Ascending",
            0x27C => "AC Sort Descending",
            0x27D => "AC Filter",
            0x27E => "AC Set Clock",
            0x27F => "AC View Clock",
            0x280 => "AC Select Time Zone",
            0x281 => "AC Edit Time Zones",
            0x282 => "AC Set Alarm",
            0x283 => "AC Clear Alarm",
            0x284 => "AC Snooze Alarm",
            0x285 => "AC Reset Alarm",
            0x286 => "AC Synchronize",
            0x287 => "AC Send/Receive",
            0x288 => "AC Send To",
            0x289 => "AC Reply",
            0x28A => "AC Reply All",
            0x28B => "AC Forward Msg",
            0x28C => "AC Send",
            0x28D => "AC Attach File",
            0x28E => "AC Upload",
            0x28F => "AC Download (Save Target As)",
            0x290 => "AC Set Borders",
            0x291 => "AC Insert Row",
            0x292 => "AC Insert Column",
            0x293 => "AC Insert File",
            0x294 => "AC Insert Picture",
            0x295 => "AC Insert Object",
            0x296 => "AC Insert Symbol",
            0x297 => "AC Save and Close",
            0x298 => "AC Rename",
            0x299 => "AC Merge",
            0x29A => "AC Split",
            0x29B => "AC Disribute Horizontally",
            0x29C => "AC Distribute Vertically",
            0x29D => "AC Next Keyboard Layout Select",
            0x29E => "AC Navigation Guidance",
            0x29F => "AC Desktop Show All Windows",
            0x2A0 => "AC Soft Key Left",
            0x2A1 => "AC Soft Key Right",
            0x2A2 => "AC Desktop Show All Applications",
            0x2B0 => "AC Idle Keep Alive",
            0x2C0 => "Extended Keyboard Attributes Collection",
            0x2C1 => "Keyboard Form Factor",
            0x2C2 => "Keyboard Key Type",
            0x2C3 => "Keyboard Physical Layout",
            0x2C4 => "Vendor-Specific Keyboard Physical Layout",
            0x2C5 => "Keyboard IETF Language Tag Index",
            0x2C6 => "Implemented Keyboard Input Assist Controls",
            0x2C7 => "Keyboard Input Assist Previous",
            0x2C8 => "Keyboard Input Assist Next",
            0x2C9 => "Keyboard Input Assist Previous Group",
            0x2CA => "Keyboard Input Assist Next Group",
            0x2CB => "Keyboard Input Assist Accept",
            0x2CC => "Keyboard Input Assist Cancel",
            0x2D0 => "Privacy Screen Toggle",
            0x2D1 => "Privacy Screen Level Decrement",
            0x2D2 => "Privacy Screen Level Increment",
            0x2D3 => "Privacy Screen Level Minimum",
            0x2D4 => "Privacy Screen Level Maximum",
            0x500 => "Contact Edited",
            0x501 => "Contact Added",
            0x502 => "Contact Record Active",
            0x503 => "Contact Index",
            0x504 => "Contact Nickname",
            0x505 => "Contact First Name",
            0x506 => "Contact Last Name",
            0x507 => "Contact Full Name",
            0x508 => "Contact Phone Number Personal",
            0x509 => "Contact Phone Number Business",
            0x50A => "Contact Phone Number Mobile",
            0x50B => "Contact Phone Number Pager",
            0x50C => "Contact Phone Number Fax",
            0x50D => "Contact Phone Number Other",
            0x50E => "Contact Email Personal",
            0x50F => "Contact Email Business",
            0x510 => "Contact Email Other",
            0x511 => "Contact Email Main",
            0x512 => "Contact Speed Dial Number",
            0x513 => "Contact Status Flag",
            0x514 => "Contact Misc",
            _ => "Reserved",
        }),
        // Digitizers
        0x0D => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Digitizer",
            0x02 => "Pen",
            0x03 => "Light Pen",
            0x04 => "Touch Screen",
            0x05 => "Touch Pad",
            0x06 => "Whiteboard",
            0x07 => "Coordinate Measuring Machine",
            0x08 => "3D Digitizer",
            0x09 => "Stereo Plotter",
            0x0A => "Articulated Arm",
            0x0B => "Armature",
            0x0C => "Multiple Point Digitizer",
            0x0D => "Free Space Wand",
            0x0E => "Device Configuration",
            0x0F => "Capacitive Heat Map Digitizer",
            0x20 => "Stylus [55] CA/CL 16.2",
            0x21 => "Puck",
            0x22 => "Finger",
            0x23 => "Device settings",
            0x24 => "Character Gesture",
            0x30 => "Tip Pressure",
            0x31 => "Barrel Pressure",
            0x32 => "In Range",
            0x33 => "Touch",
            0x34 => "Untouch",
            0x35 => "Tap",
            0x36 => "Quality",
            0x37 => "Data Valid",
            0x38 => "Transducer Index",
            0x39 => "Tablet Function Keys",
            0x3A => "Program Change Keys",
            0x3B => "Battery Strength",
            0x3C => "Invert",
            0x3D => "X Tilt",
            0x3E => "Y Tilt",
            0x3F => "Azimuth",
            0x40 => "Altitude",
            0x41 => "Twist",
            0x42 => "Tip Switch",
            0x43 => "Secondary Tip Switch",
            0x44 => "Barrel Switch",
            0x45 => "Eraser",
            0x46 => "Tablet Pick",
            0x47 => "Touch Valid",
            0x48 => "Width",
            0x49 => "Height",
            0x51 => "Contact Identifier",
            0x52 => "Device Mode",
            0x53 => "Device Identifier [7] DV/SV 16.7",
            0x54 => "Contact Count",
            0x55 => "Contact Count Maximum",
            0x56 => "Scan Time",
            0x57 => "Surface Switch",
            0x58 => "Button Switch",
            0x59 => "Pad Type",
            0x5A => "Secondary Barrel Switch",
            0x5B => "Transducer Serial Number",
            0x5C => "Preferred Color",
            0x5D => "Preferred Color is Locked",
            0x5E => "Preferred Line Width",
            0x5F => "Preferred Line Width is Locked",
            0x60 => "Latency Mode",
            0x61 => "Gesture Character Quality",
            0x62 => "Character Gesture Data Length",
            0x63 => "Character Gesture Data",
            0x64 => "Gesture Character Encoding",
            0x65 => "UTF8 Character Gesture Encoding",
            0x66 => "UTF16 Little Endian Character Gesture Encoding",
            0x67 => "UTF16 Big Endian Character Gesture Encoding",
            0x68 => "UTF32 Little Endian Character Gesture Encoding",
            0x69 => "UTF32 Big Endian Character Gesture Encoding",
            0x6A => "Capacitive Heat Map Protocol Vendor ID",
            0x6B => "Capacitive Heat Map Protocol Version",
            0x6C => "Capacitive Heat Map Frame Data",
            0x6D => "Gesture Character Enable",
            0x6E => "Transducer Serial Number Part 2",
            0x6F => "No Preferred Color",
            0x70 => "Preferred Line Style",
            0x71 => "Preferred Line Style is Locked",
            0x72 => "Ink",
            0x73 => "Pencil",
            0x74 => "Highlighter",
            0x75 => "Chisel Marker",
            0x76 => "Brush",
            0x77 => "No Preference",
            0x80 => "Digitizer Diagnostic",
            0x81 => "Digitizer Error",
            0x82 => "Err Normal Status",
            0x83 => "Err Transducers Exceeded",
            0x84 => "Err Full Trans Features Unavailable",
            0x85 => "Err Charge Low",
            0x90 => "Transducer Software Info",
            0x91 => "Transducer Vendor Id",
            0x92 => "Transducer Product Id",
            0x93 => "Device Supported Protocols [36] NAry/CL 16.3.1",
            0x94 => "Transducer Supported Protocols [36] NAry/CL 16.3.1",
            0x95 => "No Protocol",
            0x96 => "Wacom AES Protocol",
            0x97 => "USI Protocol",
            0x98 => "Microsoft Pen Protocol",
            0xA0 => "Supported Report Rates [36] SV/CL 16.3.1",
            0xA1 => "Report Rate",
            0xA2 => "Transducer Connected",
            0xA3 => "Switch Disabled",
            0xA4 => "Switch Unimplemented",
            0xA5 => "Transducer Switches",
            0xA6 => "Transducer Index Selector",
            0xB0 => "Button Press Threshold",
            _ => "Reserved",
        }),
        // Haptics
        0x0E => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Simple Haptic Controller CA/CL 17.1",
            0x10 => "Waveform List",
            0x11 => "Duration List",
            0x20 => "Auto Trigger",
            0x21 => "Manual Trigger",
            0x22 => "Auto Trigger Associated Control",
            0x23 => "Intensity",
            0x24 => "Repeat Count",
            0x25 => "Retrigger Period",
            0x26 => "Waveform Vendor Page",
            0x27 => "Waveform Vendor ID",
            0x28 => "Waveform Cutoff Time",
            0x1001 => "Waveform None",
            0x1002 => "Waveform Stop",
            0x1003 => "Waveform Click",
            0x1004 => "Waveform Buzz Continuous",
            0x1005 => "Waveform Rumble Continuous",
            0x1006 => "Waveform Press",
            0x1007 => "Waveform Release",
            0x1008 => "Waveform Hover",
            0x1009 => "Waveform Success",
            0x100A => "Waveform Error",
            0x100B => "Waveform Ink Continuous",
            0x100C => "Waveform Pencil Continuous",
            0x100D => "Waveform Marker Continuous",
            0x100E => "Waveform Chisel Marker Continuous",
            0x100F => "Waveform Brush Continuous",
            0x1010 => "Waveform Eraser Continuous",
            0x1011 => "Waveform Sparkle Continuous",
            _ => "Reserved",
        }),
        // Physical Input Device
        0x0F => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Physical Input Device",
            0x20 => "Normal",
            0x21 => "Set Effect Report",
            0x22 => "Effect Parameter Block Index",
            0x23 => "Parameter Block Offset",
            0x24 => "ROM Flag",
            0x25 => "Effect Type",
            0x26 => "ET Constant-Force",
            0x27 => "ET Ramp",
            0x28 => "ET Custom-Force",
            0x30 => "ET Square",
            0x31 => "ET Sine",
            0x32 => "ET Triangle",
            0x33 => "ET Sawtooth Up",
            0x34 => "ET Sawtooth Down",
            0x40 => "ET Spring",
            0x41 => "ET Damper",
            0x42 => "ET Inertia",
            0x43 => "ET Friction",
            0x50 => "Duration",
            0x51 => "Sample Period",
            0x52 => "Gain",
            0x53 => "Trigger Button",
            0x54 => "Trigger Repeat Interval",
            0x55 => "Axes Enable",
            0x56 => "Direction Enable",
            0x57 => "Direction",
            0x58 => "Type Specific Block Offset",
            0x59 => "Block Type",
            0x5A => "Set Envelope Report CL/SV 18.5",
            0x5B => "Attack Level",
            0x5C => "Attack Time",
            0x5D => "Fade Level",
            0x5E => "Fade Time",
            0x5F => "Set Condition Report CL/SV 18.6",
            0x60 => "Center-Point Offset",
            0x61 => "Positive Coefficient",
            0x62 => "Negative Coefficient",
            0x63 => "Positive Saturation",
            0x64 => "Negative Saturation",
            0x65 => "Dead Band",
            0x66 => "Download Force Sample",
            0x67 => "Isoch Custom-Force Enable",
            0x68 => "Custom-Force Data Report",
            0x69 => "Custom-Force Data",
            0x6A => "Custom-Force Vendor Defined Data",
            0x6B => "Set Custom-Force Report CL/SV 18.10",
            0x6C => "Custom-Force Data Offset",
            0x6D => "Sample Count",
            0x6E => "Set Periodic Report CL/SV 18.7",
            0x6F => "Offset",
            0x70 => "Magnitude",
            0x71 => "Phase",
            0x72 => "Period",
            0x73 => "Set Constant-Force Report CL/SV 18.8",
            0x74 => "Set Ramp-Force Report CL/SV 18.9",
            0x75 => "Ramp Start",
            0x76 => "Ramp End",
            0x77 => "Effect Operation Report",
            0x78 => "Effect Operation",
            0x79 => "Op Effect Start",
            0x7A => "Op Effect Start Solo",
            0x7B => "Op Effect Stop",
            0x7C => "Loop Count",
            0x7D => "Device Gain Report",
            0x7E => "Device Gain",
            0x7F => "Parameter Block Pools Report",
            0x80 => "RAM Pool Size",
            0x81 => "ROM Pool Size",
            0x82 => "ROM Effect Block Count",
            0x83 => "Simultaneous Effects Max",
            0x84 => "Pool Alignment",
            0x85 => "Parameter Block Move Report",
            0x86 => "Move Source",
            0x87 => "Move Destination",
            0x88 => "Move Length",
            0x89 => "Effect Parameter Block Load Report",
            0x8B => "Effect Parameter Block Load Status",
            0x8C => "Block Load Success",
            0x8D => "Block Load Full",
            0x8E => "Block Load Error",
            0x8F => "Block Handle",
            0x90 => "Effect Parameter Block Free Report",
            0x91 => "Type Specific Block Handle",
            0x92 => "PID State Report",
            0x94 => "Effect Playing",
            0x95 => "PID Device Control Report",
            0x96 => "PID Device Control",
            0x97 => "DC Enable Actuators",
            0x98 => "DC Disable Actuators",
            0x99 => "DC Stop All Effects",
            0x9A => "DC Reset",
            0x9B => "DC Pause",
            0x9C => "DC Continue",
            0x9F => "Device Paused",
            0xA0 => "Actuators Enabled",
            0xA4 => "Safety Switch",
            0xA5 => "Actuator Override Switch",
            0xA6 => "Actuator Power",
            0xA7 => "Start Delay",
            0xA8 => "Parameter Block Size",
            0xA9 => "Device-Managed Pool",
            0xAA => "Shared Parameter Blocks",
            0xAB => "Create New Effect Parameter Block Report",
            0xAC => "RAM Pool Available",
            _ => "Reserved",
        }),
        // Unicode
        0x10 => Cow::Owned(format!(
            "\"{}\"",
            char::from_u32(usage).unwrap_or('\u{FFFD}')
        )),
        // SoC
        0x11 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "SocControl",
            0x02 => "FirmwareTransfer",
            0x03 => "FirmwareFileId",
            0x04 => "FileOffsetInBytes",
            0x05 => "FileTransferSizeMaxInBytes",
            0x06 => "FilePayload",
            0x07 => "FilePayloadSizeInBytes",
            0x08 => "FilePayloadContainsLastBytes",
            0x09 => "FileTransferStop",
            0x0A => "FileTransferTillEnd",
            _ => "Reserved",
        }),
        // Eye and Head Trackers
        0x12 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Eye Tracker",
            0x02 => "Head Tracker",
            0x10 => "Tracking Data",
            0x11 => "Capabilities",
            0x12 => "Configuration",
            0x13 => "Status",
            0x14 => "Control",
            0x20 => "Sensor Timestamp",
            0x21 => "Position X",
            0x22 => "Position Y",
            0x23 => "Position Z",
            0x24 => "Gaze Point",
            0x25 => "Left Eye Position",
            0x26 => "Right Eye Position",
            0x27 => "Head Position",
            0x28 => "Head Direction Point",
            0x29 => "Rotation about X axis",
            0x2A => "Rotation about Y axis",
            0x2B => "Rotation about Z axis",
            0x100 => "Tracker Quality",
            0x101 => "Minimum Tracking Distance",
            0x102 => "Optimum Tracking Distance",
            0x103 => "Maximum Tracking Distance",
            0x104 => "Maximum Screen Plane Width",
            0x105 => "Maximum Screen Plane Height",
            0x200 => "Display Manufacturer ID",
            0x201 => "Display Product ID",
            0x202 => "Display Serial Number",
            0x203 => "Display Manufacturer Date",
            0x204 => "Calibrated Screen Width",
            0x205 => "Calibrated Screen Height",
            0x300 => "Sampling Frequency",
            0x301 => "Configuration Status",
            0x400 => "Device Mode Request",
            _ => "Reserved",
        }),
        // Auxiliary Display
        0x14 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Alphanumeric Display",
            0x02 => "Auxiliary Display",
            0x20 => "Display Attributes Report",
            0x21 => "ASCII Character Set",
            0x22 => "Data Read Back",
            0x23 => "Font Read Back",
            0x24 => "Display Control Report",
            0x25 => "Clear Display",
            0x26 => "Display Enable",
            0x27 => "Screen Saver Delay",
            0x28 => "Screen Saver Enable",
            0x29 => "Vertical Scroll",
            0x2A => "Horizontal Scroll",
            0x2B => "Character Report",
            0x2C => "Display Data",
            0x2D => "Display Status",
            0x2E => "Stat Not Ready",
            0x2F => "Stat Ready",
            0x30 => "Err Not a loadable character",
            0x31 => "Err Font data cannot be read",
            0x32 => "Cursor Position Report",
            0x33 => "Row",
            0x34 => "Column",
            0x35 => "Rows",
            0x36 => "Columns",
            0x37 => "Cursor Pixel Positioning",
            0x38 => "Cursor Mode",
            0x39 => "Cursor Enable",
            0x3A => "Cursor Blink",
            0x3B => "Font Report",
            0x3C => "Font Data",
            0x3D => "Character Width",
            0x3E => "Character Height",
            0x3F => "Character Spacing Horizontal",
            0x40 => "Character Spacing Vertical",
            0x41 => "Unicode Character Set",
            0x42 => "Font 7-Segment",
            0x43 => "7-Segment Direct Map",
            0x44 => "Font 14-Segment",
            0x45 => "14-Segment Direct Map",
            0x46 => "Display Brightness",
            0x47 => "Display Contrast",
            0x48 => "Character Attribute",
            0x49 => "Attribute Readback",
            0x4A => "Attribute Data",
            0x4B => "Char Attr Enhance",
            0x4C => "Char Attr Underline",
            0x4D => "Char Attr Blink",
            0x80 => "Bitmap Size X",
            0x81 => "Bitmap Size Y",
            0x82 => "Max Blit Size",
            0x83 => "Bit Depth Format",
            0x84 => "Display Orientation",
            0x85 => "Palette Report",
            0x86 => "Palette Data Size",
            0x87 => "Palette Data Offset",
            0x88 => "Palette Data",
            0x8A => "Blit Report",
            0x8B => "Blit Rectangle X1",
            0x8C => "Blit Rectangle Y1",
            0x8D => "Blit Rectangle X2",
            0x8E => "Blit Rectangle Y2",
            0x8F => "Blit Data",
            0x90 => "Soft Button",
            0x91 => "Soft Button ID",
            0x92 => "Soft Button Side",
            0x93 => "Soft Button Offset 1",
            0x94 => "Soft Button Offset 2",
            0x95 => "Soft Button Report",
            0xC2 => "Soft Keys",
            0xCC => "Display Data Extensions",
            0xCF => "Character Mapping",
            0xDD => "Unicode Equivalent",
            0xDF => "Character Page Mapping",
            0xFF => "Request Report",
            _ => "Reserved",
        }),
        // Sensors
        0x20 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Sensor",
            0x10 => "Biometric",
            0x11 => "Biometric: Human Presence",
            0x12 => "Biometric: Human Proximity",
            0x13 => "Biometric: Human Touch",
            0x14 => "Biometric: Blood Pressure",
            0x15 => "Biometric: Body Temperature",
            0x16 => "Biometric: Heart Rate",
            0x17 => "Biometric: Heart Rate Variability",
            0x18 => "Biometric: Peripheral Oxygen Saturation",
            0x19 => "Biometric: Respiratory Rate",
            0x20 => "Electrical",
            0x21 => "Electrical: Capacitance",
            0x22 => "Electrical: Current",
            0x23 => "Electrical: Power",
            0x24 => "Electrical: Inductance",
            0x25 => "Electrical: Resistance",
            0x26 => "Electrical: Voltage",
            0x27 => "Electrical: Potentiometer",
            0x28 => "Electrical: Frequency",
            0x29 => "Electrical: Period",
            0x30 => "Environmental",
            0x31 => "Environmental: Atmospheric Pressure",
            0x32 => "Environmental: Humidity",
            0x33 => "Environmental: Temperature",
            0x34 => "Environmental: Wind Direction",
            0x35 => "Environmental: Wind Speed",
            0x36 => "Environmental: Air Quality",
            0x37 => "Environmental: Heat Index",
            0x38 => "Environmental: Surface Temperature",
            0x39 => "Environmental: Volatile Organic Compounds",
            0x3A => "Environmental: Object Presence",
            0x3B => "Environmental: Object Proximity",
            0x40 => "Light",
            0x41 => "Light: Ambient Light",
            0x42 => "Light: Consumer Infrared",
            0x43 => "Light: Infrared Light",
            0x44 => "Light: Visible Light",
            0x45 => "Light: Ultraviolet Light",
            0x50 => "Location",
            0x51 => "Location: Broadcast",
            0x52 => "Location: Dead Reckoning",
            0x53 => "Location: GPS (Global Positioning System)",
            0x54 => "Location: Lookup",
            0x55 => "Location: Other",
            0x56 => "Location: Static",
            0x57 => "Location: Triangulation",
            0x60 => "Mechanical",
            0x61 => "Mechanical: Boolean Switch",
            0x62 => "Mechanical: Boolean Switch Array",
            0x63 => "Mechanical: Multivalue Switch",
            0x64 => "Mechanical: Force",
            0x65 => "Mechanical: Pressure",
            0x66 => "Mechanical: Strain",
            0x67 => "Mechanical: Weight",
            0x68 => "Mechanical: Haptic Vibrator",
            0x69 => "Mechanical: Hall Effect Switch",
            0x70 => "Motion",
            0x71 => "Motion: Accelerometer 1D",
            0x72 => "Motion: Accelerometer 2D",
            0x73 => "Motion: Accelerometer 3D",
            0x74 => "Motion: Gyrometer 1D",
            0x75 => "Motion: Gyrometer 2D",
            0x76 => "Motion: Gyrometer 3D",
            0x77 => "Motion: Motion Detector",
            0x78 => "Motion: Speedometer",
            0x79 => "Motion: Accelerometer",
            0x7A => "Motion: Gyrometer",
            0x7B => "Motion: Gravity Vector",
            0x7C => "Motion: Linear Accelerometer",
            0x80 => "Orientation",
            0x81 => "Orientation: Compass 1D",
            0x82 => "Orientation: Compass 2D",
            0x83 => "Orientation: Compass 3D",
            0x84 => "Orientation: Inclinometer 1D",
            0x85 => "Orientation: Inclinometer 2D",
            0x86 => "Orientation: Inclinometer 3D",
            0x87 => "Orientation: Distance 1D",
            0x88 => "Orientation: Distance 2D",
            0x89 => "Orientation: Distance 3D",
            0x8A => "Orientation: Device Orientation",
            0x8B => "Orientation: Compass",
            0x8C => "Orientation: Inclinometer",
            0x8D => "Orientation: Distance",
            0x8E => "Orientation: Relative Orientation",
            0x8F => "Orientation: Simple Orientation",
            0x90 => "Scanner",
            0x91 => "Scanner: Barcode",
            0x92 => "Scanner: RFID",
            0x93 => "Scanner: NFC",
            0xA0 => "Time",
            0xA1 => "Time: Alarm Timer",
            0xA2 => "Time: Real Time Clock",
            0xB0 => "Personal Activity",
            0xB1 => "Personal Activity: Activity Detection",
            0xB2 => "Personal Activity: Device Position",
            0xB3 => "Personal Activity: Floor Tracker",
            0xB4 => "Personal Activity: Pedometer",
            0xB5 => "Personal Activity: Step Detection",
            0xC0 => "Orientation Extended",
            0xC1 => "Orientation Extended: Geomagnetic Orientation",
            0xC2 => "Orientation Extended: Magnetometer",
            0xD0 => "Gesture",
            0xD1 => "Gesture: Chassis Flip Gesture",
            0xD2 => "Gesture: Hinge Fold Gesture",
            0xE0 => "Other",
            0xE1 => "Other: Custom",
            0xE2 => "Other: Generic",
            0xE3 => "Other: Generic Enumerator",
            0xE4 => "Other: Hinge Angle",
            0xF0 => "Vendor Reserved 1",
            0xF1 => "Vendor Reserved 2",
            0xF2 => "Vendor Reserved 3",
            0xF3 => "Vendor Reserved 4",
            0xF4 => "Vendor Reserved 5",
            0xF5 => "Vendor Reserved 6",
            0xF6 => "Vendor Reserved 7",
            0xF7 => "Vendor Reserved 8",
            0xF8 => "Vendor Reserved 9",
            0xF9 => "Vendor Reserved 10",
            0xFA => "Vendor Reserved 11",
            0xFB => "Vendor Reserved 12",
            0xFC => "Vendor Reserved 13",
            0xFD => "Vendor Reserved 14",
            0xFE => "Vendor Reserved 15",
            0xFF => "Vendor Reserved 16",
            0x200 => "Event",
            0x201 => "Event: Sensor State",
            0x202 => "Event: Sensor Event",
            0x300 => "Property",
            0x301 => "Property: Friendly Name",
            0x302 => "Property: Persistent Unique ID",
            0x303 => "Property: Sensor Status",
            0x304 => "Property: Minimum Report Interval",
            0x305 => "Property: Sensor Manufacturer",
            0x306 => "Property: Sensor Model",
            0x307 => "Property: Sensor Serial Number",
            0x308 => "Property: Sensor Description",
            0x309 => "Property: Sensor Connection Type",
            0x30A => "Property: Sensor Device Path",
            0x30B => "Property: Hardware Revision",
            0x30C => "Property: Firmware Version",
            0x30D => "Property: Release Date",
            0x30E => "Property: Report Interval",
            0x30F => "Property: Change Sensitivity Absolute",
            0x310 => "Property: Change Sensitivity Percent of Range",
            0x311 => "Property: Change Sensitivity Percent Relative",
            0x312 => "Property: Accuracy",
            0x313 => "Property: Resolution",
            0x314 => "Property: Maximum",
            0x315 => "Property: Minimum",
            0x316 => "Property: Reporting State",
            0x317 => "Property: Sampling Rate",
            0x318 => "Property: Response Curve",
            0x319 => "Property: Power State",
            0x31A => "Property: Maximum FIFO Events",
            0x31B => "Property: Report Latency",
            0x31C => "Property: Flush FIFO Events",
            0x31D => "Property: Maximum Power Consumption",
            0x31E => "Property: Is Primary",
            0x31F => "Property: Human Presence Detection Type",
            0x400 => "Data Field: Location",
            0x402 => "Data Field: Altitude Antenna Sea Level",
            0x403 => "Data Field: Differential Reference Station ID",
            0x404 => "Data Field: Altitude Ellipsoid Error",
            0x405 => "Data Field: Altitude Ellipsoid",
            0x406 => "Data Field: Altitude Sea Level Error",
            0x407 => "Data Field: Altitude Sea Level",
            0x408 => "Data Field: Differential GPS Data Age",
            0x409 => "Data Field: Error Radius",
            0x40A => "Data Field: Fix Quality",
            0x40B => "Data Field: Fix Type",
            0x40C => "Data Field: Geoidal Separation",
            0x40D => "Data Field: GPS Operation Mode",
            0x40E => "Data Field: GPS Selection Mode",
            0x40F => "Data Field: GPS Status",
            0x410 => "Data Field: Position Dilution of Precision",
            0x411 => "Data Field: Horizontal Dilution of Precision",
            0x412 => "Data Field: Vertical Dilution of Precision",
            0x413 => "Data Field: Latitude",
            0x414 => "Data Field: Longitude",
            0x415 => "Data Field: True Heading",
            0x416 => "Data Field: Magnetic Heading",
            0x417 => "Data Field: Magnetic Variation",
            0x418 => "Data Field: Speed",
            0x419 => "Data Field: Satellites in View",
            0x41A => "Data Field: Satellites in View Azimuth",
            0x41B => "Data Field: Satellites in View Elevation",
            0x41C => "Data Field: Satellites in View IDs",
            0x41D => "Data Field: Satellites in View PRNs",
            0x41E => "Data Field: Satellites in View S/N Ratios",
            0x41F => "Data Field: Satellites Used Count",
            0x420 => "Data Field: Satellites Used PRNs",
            0x421 => "Data Field: NMEA Sentence",
            0x422 => "Data Field: Address Line 1",
            0x423 => "Data Field: Address Line 2",
            0x424 => "Data Field: City",
            0x425 => "Data Field: State or Province",
            0x426 => "Data Field: Country or Region",
            0x427 => "Data Field: Postal Code",
            0x42A => "Property: Location",
            0x42B => "Property: Location Desired Accuracy",
            0x430 => "Data Field: Environmental",
            0x431 => "Data Field: Atmospheric Pressure",
            0x433 => "Data Field: Relative Humidity",
            0x434 => "Data Field: Temperature",
            0x435 => "Data Field: Wind Direction",
            0x436 => "Data Field: Wind Speed",
            0x437 => "Data Field: Air Quality Index",
            0x438 => "Data Field: Equivalent CO2",
            0x439 => "Data Field: Volatile Organic Compound Concentration",
            0x43A => "Data Field: Object Presence",
            0x43B => "Data Field: Object Proximity Range",
            0x43C => "Data Field: Object Proximity Out of Range",
            0x440 => "Property: Environmental",
            0x441 => "Property: Reference Pressure",
            0x450 => "Data Field: Motion",
            0x451 => "Data Field: Motion State",
            0x452 => "Data Field: Acceleration",
            0x453 => "Data Field: Acceleration Axis X",
            0x454 => "Data Field: Acceleration Axis Y",
            0x455 => "Data Field: Acceleration Axis Z",
            0x456 => "Data Field: Angular Velocity",
            0x457 => "Data Field: Angular Velocity about X Axis",
            0x458 => "Data Field: Angular Velocity about Y Axis",
            0x459 => "Data Field: Angular Velocity about Z Axis",
            0x45A => "Data Field: Angular Position",
            0x45B => "Data Field: Angular Position about X Axis",
            0x45C => "Data Field: Angular Position about Y Axis",
            0x45D => "Data Field: Angular Position about Z Axis",
            0x45E => "Data Field: Motion Speed",
            0x45F => "Data Field: Motion Intensity",
            0x470 => "Data Field: Orientation",
            0x471 => "Data Field: Heading",
            0x472 => "Data Field: Heading X Axis",
            0x473 => "Data Field: Heading Y Axis",
            0x474 => "Data Field: Heading Z Axis",
            0x475 => "Data Field: Heading Compensated Magnetic North",
            0x476 => "Data Field: Heading Compensated True North",
            0x477 => "Data Field: Heading Magnetic North",
            0x478 => "Data Field: Heading True North",
            0x479 => "Data Field: Distance",
            0x47A => "Data Field: Distance X Axis",
            0x47B => "Data Field: Distance Y Axis",
            0x47C => "Data Field: Distance Z Axis",
            0x47D => "Data Field: Distance Out-of-Range",
            0x47E => "Data Field: Tilt",
            0x47F => "Data Field: Tilt X Axis",
            0x480 => "Data Field: Tilt Y Axis",
            0x481 => "Data Field: Tilt Z Axis",
            0x482 => "Data Field: Rotation Matrix",
            0x483 => "Data Field: Quaternion",
            0x484 => "Data Field: Magnetic Flux",
            0x485 => "Data Field: Magnetic Flux X Axis",
            0x486 => "Data Field: Magnetic Flux Y Axis",
            0x487 => "Data Field: Magnetic Flux Z Axis",
            0x488 => "Data Field: Magnetometer Accuracy",
            0x489 => "Data Field: Simple Orientation Direction",
            0x490 => "Data Field: Mechanical",
            0x491 => "Data Field: Boolean Switch State",
            0x492 => "Data Field: Boolean Switch Array States",
            0x493 => "Data Field: Multivalue Switch Value",
            0x494 => "Data Field: Force",
            0x495 => "Data Field: Absolute Pressure",
            0x496 => "Data Field: Gauge Pressure",
            0x497 => "Data Field: Strain",
            0x498 => "Data Field: Weight",
            0x4A0 => "Property: Mechanical",
            0x4A1 => "Property: Vibration State",
            0x4A2 => "Property: Forward Vibration Speed",
            0x4A3 => "Property: Backward Vibration Speed",
            0x4B0 => "Data Field: Biometric",
            0x4B1 => "Data Field: Human Presence",
            0x4B2 => "Data Field: Human Proximity Range",
            0x4B3 => "Data Field: Human Proximity Out of Range",
            0x4B4 => "Data Field: Human Touch State",
            0x4B5 => "Data Field: Blood Pressure",
            0x4B6 => "Data Field: Blood Pressure Diastolic",
            0x4B7 => "Data Field: Blood Pressure Systolic",
            0x4B8 => "Data Field: Heart Rate",
            0x4B9 => "Data Field: Resting Heart Rate",
            0x4BA => "Data Field: Heartbeat Interval",
            0x4BB => "Data Field: Respiratory Rate",
            0x4BC => "Data Field: SpO2",
            0x4BD => "Data Field: Human Attention Detected",
            0x4BE => "Data Field: Human Head Azimuth",
            0x4BF => "Data Field: Human Head Altitude",
            0x4C0 => "Data Field: Human Head Roll",
            0x4C1 => "Data Field: Human Head Pitch",
            0x4C2 => "Data Field: Human Head Yaw",
            0x4C3 => "Data Field: Human Correlation Id",
            0x4D0 => "Data Field: Light",
            0x4D1 => "Data Field: Illuminance",
            0x4D2 => "Data Field: Color Temperature",
            0x4D3 => "Data Field: Chromaticity",
            0x4D4 => "Data Field: Chromaticity X",
            0x4D5 => "Data Field: Chromaticity Y",
            0x4D6 => "Data Field: Consumer IR Sentence Receive",
            0x4D7 => "Data Field: Infrared Light",
            0x4D8 => "Data Field: Red Light",
            0x4D9 => "Data Field: Green Light",
            0x4DA => "Data Field: Blue Light",
            0x4DB => "Data Field: Ultraviolet A Light",
            0x4DC => "Data Field: Ultraviolet B Light",
            0x4DD => "Data Field: Ultraviolet Index",
            0x4DE => "Data Field: Near Infrared Light",
            0x4DF => "Property: Light",
            0x4E0 => "Property: Consumer IR Sentence Send",
            0x4E2 => "Property: Auto Brightness Preferred",
            0x4E3 => "Property: Auto Color Preferred",
            0x4F0 => "Data Field: Scanner",
            0x4F1 => "Data Field: RFID Tag 40 Bit",
            0x4F2 => "Data Field: NFC Sentence Receive",
            0x4F8 => "Property: Scanner",
            0x4F9 => "Property: NFC Sentence Send",
            0x500 => "Data Field: Electrical",
            0x501 => "Data Field: Capacitance",
            0x502 => "Data Field: Current",
            0x503 => "Data Field: Electrical Power",
            0x504 => "Data Field: Inductance",
            0x505 => "Data Field: Resistance",
            0x506 => "Data Field: Voltage",
            0x507 => "Data Field: Frequency",
            0x508 => "Data Field: Period",
            0x509 => "Data Field: Percent of Range",
            0x520 => "Data Field: Time",
            0x521 => "Data Field: Year",
            0x522 => "Data Field: Month",
            0x523 => "Data Field: Day",
            0x524 => "Data Field: Day of Week",
            0x525 => "Data Field: Hour",
            0x526 => "Data Field: Minute",
            0x527 => "Data Field: Second",
            0x528 => "Data Field: Millisecond",
            0x529 => "Data Field: Timestamp",
            0x52A => "Data Field: Julian Day of Year",
            0x52B => "Data Field: Time Since System Boot",
            0x530 => "Property: Time",
            0x531 => "Property: Time Zone Offset from UTC",
            0x532 => "Property: Time Zone Name",
            0x533 => "Property: Daylight Savings Time Observed",
            0x534 => "Property: Time Trim Adjustment",
            0x535 => "Property: Arm Alarm",
            0x540 => "Data Field: Custom",
            0x541 => "Data Field: Custom Usage",
            0x542 => "Data Field: Custom Boolean Array",
            0x543 => "Data Field: Custom Value",
            0x544 => "Data Field: Custom Value 1",
            0x545 => "Data Field: Custom Value 2",
            0x546 => "Data Field: Custom Value 3",
            0x547 => "Data Field: Custom Value 4",
            0x548 => "Data Field: Custom Value 5",
            0x549 => "Data Field: Custom Value 6",
            0x54A => "Data Field: Custom Value 7",
            0x54B => "Data Field: Custom Value 8",
            0x54C => "Data Field: Custom Value 9",
            0x54D => "Data Field: Custom Value 10",
            0x54E => "Data Field: Custom Value 11",
            0x54F => "Data Field: Custom Value 12",
            0x550 => "Data Field: Custom Value 13",
            0x551 => "Data Field: Custom Value 14",
            0x552 => "Data Field: Custom Value 15",
            0x553 => "Data Field: Custom Value 16",
            0x554 => "Data Field: Custom Value 17",
            0x555 => "Data Field: Custom Value 18",
            0x556 => "Data Field: Custom Value 19",
            0x557 => "Data Field: Custom Value 20",
            0x558 => "Data Field: Custom Value 21",
            0x559 => "Data Field: Custom Value 22",
            0x55A => "Data Field: Custom Value 23",
            0x55B => "Data Field: Custom Value 24",
            0x55C => "Data Field: Custom Value 25",
            0x55D => "Data Field: Custom Value 26",
            0x55E => "Data Field: Custom Value 27",
            0x55F => "Data Field: Custom Value 28",
            0x560 => "Data Field: Generic",
            0x561 => "Data Field: Generic GUID or PROPERTYKEY",
            0x562 => "Data Field: Generic Category GUID",
            0x563 => "Data Field: Generic Type GUID",
            0x564 => "Data Field: Generic Event PROPERTYKEY",
            0x565 => "Data Field: Generic Property PROPERTYKEY",
            0x566 => "Data Field: Generic Data Field PROPERTYKEY",
            0x567 => "Data Field: Generic Event",
            0x568 => "Data Field: Generic Property",
            0x569 => "Data Field: Generic Data Field",
            0x56A => "Data Field: Enumerator Table Row Index",
            0x56B => "Data Field: Enumerator Table Row Count",
            0x56C => "Data Field: Generic GUID or PROPERTYKEY kind",
            0x56D => "Data Field: Generic GUID",
            0x56E => "Data Field: Generic PROPERTYKEY",
            0x56F => "Data Field: Generic Top Level Collection ID",
            0x570 => "Data Field: Generic Report ID",
            0x571 => "Data Field: Generic Report Item Position Index",
            0x572 => "Data Field: Generic Firmware VARTYPE",
            0x573 => "Data Field: Generic Unit of Measure",
            0x574 => "Data Field: Generic Unit Exponent",
            0x575 => "Data Field: Generic Report Size",
            0x576 => "Data Field: Generic Report Count",
            0x580 => "Property: Generic",
            0x581 => "Property: Enumerator Table Row Index",
            0x582 => "Property: Enumerator Table Row Count",
            0x590 => "Data Field: Personal Activity",
            0x591 => "Data Field: Activity Type",
            0x592 => "Data Field: Activity State",
            0x593 => "Data Field: Device Position",
            0x594 => "Data Field: Step Count",
            0x595 => "Data Field: Step Count Reset",
            0x596 => "Data Field: Step Duration",
            0x597 => "Data Field: Step Type",
            0x5A0 => "Property: Minimum Activity Detection Interval",
            0x5A1 => "Property: Supported Activity Types",
            0x5A2 => "Property: Subscribed Activity Types",
            0x5A3 => "Property: Supported Step Types",
            0x5A4 => "Property: Subscribed Step Types",
            0x5A5 => "Property: Floor Height",
            0x5B0 => "Data Field: Custom Type ID",
            0x5C0 => "Property: Custom",
            0x5C1 => "Property: Custom Value 1",
            0x5C2 => "Property: Custom Value 2",
            0x5C3 => "Property: Custom Value 3",
            0x5C4 => "Property: Custom Value 4",
            0x5C5 => "Property: Custom Value 5",
            0x5C6 => "Property: Custom Value 6",
            0x5C7 => "Property: Custom Value 7",
            0x5C8 => "Property: Custom Value 8",
            0x5C9 => "Property: Custom Value 9",
            0x5CA => "Property: Custom Value 10",
            0x5CB => "Property: Custom Value 11",
            0x5CC => "Property: Custom Value 12",
            0x5CD => "Property: Custom Value 13",
            0x5CE => "Property: Custom Value 14",
            0x5CF => "Property: Custom Value 15",
            0x5D0 => "Property: Custom Value 16",
            0x5E0 => "Data Field: Hinge",
            0x5E1 => "Data Field: Hinge Angle",
            0x5F0 => "Data Field: Gesture Sensor",
            0x5F1 => "Data Field: Gesture State",
            0x5F2 => "Data Field: Hinge Fold Initial Angle",
            0x5F3 => "Data Field: Hinge Fold Final Angle",
            0x5F4 => "Data Field: Hinge Fold Contributing Panel",
            0x5F5 => "Data Field: Hinge Fold Type",
            0x800 => "Sensor State: Undefined",
            0x801 => "Sensor State: Ready",
            0x802 => "Sensor State: Not Available",
            0x803 => "Sensor State: No Data",
            0x804 => "Sensor State: Initializing",
            0x805 => "Sensor State: Access Denied",
            0x806 => "Sensor State: Error",
            0x810 => "Sensor Event: Unknown",
            0x811 => "Sensor Event: State Changed",
            0x812 => "Sensor Event: Property Changed",
            0x813 => "Sensor Event: Data Updated",
            0x814 => "Sensor Event: Poll Response",
            0x815 => "Sensor Event: Change Sensitivity",
            0x816 => "Sensor Event: Range Maximum Reached",
            0x817 => "Sensor Event: Range Minimum Reached",
            0x818 => "Sensor Event: High Threshold Cross Upward",
            0x819 => "Sensor Event: High Threshold Cross Downward",
            0x81A => "Sensor Event: Low Threshold Cross Upward",
            0x81B => "Sensor Event: Low Threshold Cross Downward",
            0x81C => "Sensor Event: Zero Threshold Cross Upward",
            0x81D => "Sensor Event: Zero Threshold Cross Downward",
            0x81E => "Sensor Event: Period Exceeded",
            0x81F => "Sensor Event: Frequency Exceeded",
            0x820 => "Sensor Event: Complex Trigger",
            0x830 => "Connection Type: PC Integrated",
            0x831 => "Connection Type: PC Attached",
            0x832 => "Connection Type: PC External",
            0x840 => "Reporting State: Report No Events",
            0x841 => "Reporting State: Report All Events",
            0x842 => "Reporting State: Report Threshold Events",
            0x843 => "Reporting State: Wake On No Events",
            0x844 => "Reporting State: Wake On All Events",
            0x845 => "Reporting State: Wake On Threshold Events",
            0x846 => "Reporting State: Anytime",
            0x850 => "Power State: Undefined",
            0x851 => "Power State: D0 Full Power",
            0x852 => "Power State: D1 Low Power",
            0x853 => "Power State: D2 Standby Power with Wakeup",
            0x854 => "Power State: D3 Sleep with Wakeup",
            0x855 => "Power State: D4 Power Off",
            0x860 => "Accuracy: Default",
            0x861 => "Accuracy: High",
            0x862 => "Accuracy: Medium",
            0x863 => "Accuracy: Low",
            0x870 => "Fix Quality: No Fix",
            0x871 => "Fix Quality: GPS",
            0x872 => "Fix Quality: DGPS",
            0x880 => "Fix Type: No Fix",
            0x881 => "Fix Type: GPS SPS Mode, Fix Valid",
            0x882 => "Fix Type: DGPS SPS Mode, Fix Valid",
            0x883 => "Fix Type: GPS PPS Mode, Fix Valid",
            0x884 => "Fix Type: Real Time Kinematic",
            0x885 => "Fix Type: Float RTK",
            0x886 => "Fix Type: Estimated (dead reckoned)",
            0x887 => "Fix Type: Manual Input Mode",
            0x888 => "Fix Type: Simulator Mode",
            0x890 => "GPS Operation Mode: Manual",
            0x891 => "GPS Operation Mode: Automatic",
            0x8A0 => "GPS Selection Mode: Autonomous",
            0x8A1 => "GPS Selection Mode: DGPS",
            0x8A2 => "GPS Selection Mode: Estimated (dead reckoned)",
            0x8A3 => "GPS Selection Mode: Manual Input",
            0x8A4 => "GPS Selection Mode: Simulator",
            0x8A5 => "GPS Selection Mode: Data Not Valid",
            0x8B0 => "GPS Status Data: Valid",
            0x8B1 => "GPS Status Data: Not Valid",
            0x8C0 => "Day of Week: Sunday",
            0x8C1 => "Day of Week: Monday",
            0x8C2 => "Day of Week: Tuesday",
            0x8C3 => "Day of Week: Wednesday",
            0x8C4 => "Day of Week: Thursday",
            0x8C5 => "Day of Week: Friday",
            0x8C6 => "Day of Week: Saturday",
            0x8D0 => "Kind: Category",
            0x8D1 => "Kind: Type",
            0x8D2 => "Kind: Event",
            0x8D3 => "Kind: Property",
            0x8D4 => "Kind: Data Field",
            0x8E0 => "Magnetometer Accuracy: Low",
            0x8E1 => "Magnetometer Accuracy: Medium",
            0x8E2 => "Magnetometer Accuracy: High",
            0x8F0 => "Simple Orientation Direction: Not Rotated",
            0x8F1 => "Simple Orientation Direction: Rotated 90 Degrees CCW",
            0x8F2 => "Simple Orientation Direction: Degrees CCW",
            0x8F3 => "Simple Orientation Direction: Degrees CCW",
            0x8F4 => "Simple Orientation Direction: Face Up",
            0x8F5 => "Simple Orientation Direction: Face Down",
            0x900 => "VT_NULL",
            0x901 => "VT_BOOL",
            0x902 => "VT_UI1",
            0x903 => "VT_I1",
            0x904 => "VT_UI2",
            0x905 => "VT_I2",
            0x906 => "VT_UI4",
            0x907 => "VT_I4",
            0x908 => "VT_UI8",
            0x909 => "VT_I8",
            0x90A => "VT_R4",
            0x90B => "VT_R8",
            0x90C => "VT_WSTR",
            0x90D => "VT_STR",
            0x90E => "VT_CLSID",
            0x90F => "VT_VECTOR VT_UI1",
            0x910 => "VT_F16E0",
            0x911 => "VT_F16E1",
            0x912 => "VT_F16E2",
            0x913 => "VT_F16E3",
            0x914 => "VT_F16E4",
            0x915 => "VT_F16E5",
            0x916 => "VT_F16E6",
            0x917 => "VT_F16E7",
            0x918 => "VT_F16E8",
            0x919 => "VT_F16E9",
            0x91A => "VT_F16EA",
            0x91B => "VT_F16EB",
            0x91C => "VT_F16EC",
            0x91D => "VT_F16ED",
            0x91E => "VT_F16EE",
            0x91F => "VT_F16EF",
            0x920 => "VT_F32E0",
            0x921 => "VT_F32E1",
            0x922 => "VT_F32E2",
            0x923 => "VT_F32E3",
            0x924 => "VT_F32E4",
            0x925 => "VT_F32E5",
            0x926 => "VT_F32E6",
            0x927 => "VT_F32E7",
            0x928 => "VT_F32E8",
            0x929 => "VT_F32E9",
            0x92A => "VT_F32EA",
            0x92B => "VT_F32EB",
            0x92C => "VT_F32EC",
            0x92D => "VT_F32ED",
            0x92E => "VT_F32EE",
            0x92F => "VT_F32EF",
            0x930 => "Activity Type: Unknown",
            0x931 => "Activity Type: Stationary",
            0x932 => "Activity Type: Fidgeting",
            0x933 => "Activity Type: Walking",
            0x934 => "Activity Type: Running",
            0x935 => "Activity Type: In Vehicle",
            0x936 => "Activity Type: Biking",
            0x937 => "Activity Type: Idle",
            0x940 => "Unit: Not Specified",
            0x941 => "Unit: Lux",
            0x942 => "Unit: Degrees Kelvin",
            0x943 => "Unit: Degrees Celsius",
            0x944 => "Unit: Pascal",
            0x945 => "Unit: Newton",
            0x946 => "Unit: Meters/Second",
            0x947 => "Unit: Kilogram",
            0x948 => "Unit: Meter",
            0x949 => "Unit: Meters/Second/Second",
            0x94A => "Unit: Farad",
            0x94B => "Unit: Ampere",
            0x94C => "Unit: Watt",
            0x94D => "Unit: Henry",
            0x94E => "Unit: Ohm",
            0x94F => "Unit: Volt",
            0x950 => "Unit: Hertz",
            0x951 => "Unit: Bar",
            0x952 => "Unit: Degrees Anti-clockwise",
            0x953 => "Unit: Degrees Clockwise",
            0x954 => "Unit: Degrees",
            0x955 => "Unit: Degrees/Second",
            0x956 => "Unit: Degrees/Second/Second",
            0x957 => "Unit: Knot",
            0x958 => "Unit: Percent",
            0x959 => "Unit: Second",
            0x95A => "Unit: Millisecond",
            0x95B => "Unit: G",
            0x95C => "Unit: Bytes",
            0x95D => "Unit: Milligauss",
            0x95E => "Unit: Bits",
            0x960 => "Activity State: No State Change",
            0x961 => "Activity State: Start Activity",
            0x962 => "Activity State: End Activity",
            0x970 => "Exponent 0",
            0x971 => "Exponent 1",
            0x972 => "Exponent 2",
            0x973 => "Exponent 3",
            0x974 => "Exponent 4",
            0x975 => "Exponent 5",
            0x976 => "Exponent 6",
            0x977 => "Exponent 7",
            0x978 => "Exponent 8",
            0x979 => "Exponent 9",
            0x97A => "Exponent A",
            0x97B => "Exponent B",
            0x97C => "Exponent C",
            0x97D => "Exponent D",
            0x97E => "Exponent E",
            0x97F => "Exponent F",
            0x980 => "Device Position: Unknown",
            0x981 => "Device Position: Unchanged",
            0x982 => "Device Position: On Desk",
            0x983 => "Device Position: In Hand",
            0x984 => "Device Position: Moving in Bag",
            0x985 => "Device Position: Stationary in Bag",
            0x990 => "Step Type: Unknown",
            0x991 => "Step Type: Walking",
            0x992 => "Step Type: Running",
            0x9A0 => "Gesture State: Unknown",
            0x9A1 => "Gesture State: Started",
            0x9A2 => "Gesture State: Completed",
            0x9A3 => "Gesture State: Cancelled",
            0x9B0 => "Hinge Fold Contributing Panel: Unknown",
            0x9B1 => "Hinge Fold Contributing Panel: Panel 1",
            0x9B2 => "Hinge Fold Contributing Panel: Panel 2",
            0x9B3 => "Hinge Fold Contributing Panel: Both",
            0x9B4 => "Hinge Fold Type: Unknown",
            0x9B5 => "Hinge Fold Type: Increasing",
            0x9B6 => "Hinge Fold Type: Decreasing",
            0x9C0 => "Human Presence Detection Type: Vendor-Defined Non-Biometric",
            0x9C1 => "Human Presence Detection Type: Vendor-Defined Biometric",
            0x9C2 => "Human Presence Detection Type: Facial Biometric",
            0x9C3 => "Human Presence Detection Type: Audio Biometric",
            0x1000 => "Modifier: Change Sensitivity Absolute",
            0x2000 => "Modifier: Maximum",
            0x3000 => "Modifier: Minimum",
            0x4000 => "Modifier: Accuracy",
            0x5000 => "Modifier: Resolution",
            0x6000 => "Modifier: Threshold High",
            0x7000 => "Modifier: Threshold Low",
            0x8000 => "Modifier: Calibration Offset",
            0x9000 => "Modifier: Calibration Multiplier",
            0xA000 => "Modifier: Report Interval",
            0xB000 => "Modifier: Frequency Max",
            0xC000 => "Modifier: Period Max",
            0xD000 => "Modifier: Change Sensitivity Percent of Range",
            0xE000 => "Modifier: Change Sensitivity Percent Relative",
            0xF000 => "Modifier: Vendor Reserved",
            _ => "Reserved",
        }),
        // Medical Instrument
        0x40 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Medical Ultrasound",
            0x20 => "VCR/Acquisition",
            0x21 => "Freeze/Thaw",
            0x22 => "Clip Store",
            0x23 => "Update",
            0x24 => "Next",
            0x25 => "Save",
            0x26 => "Print",
            0x27 => "Microphone Enable",
            0x40 => "Cine",
            0x41 => "Transmit Power",
            0x42 => "Volume",
            0x43 => "Focus",
            0x44 => "Depth",
            0x60 => "Soft Step - Primary",
            0x61 => "Soft Step - Secondary",
            0x70 => "Depth Gain Compensation",
            0x80 => "Zoom Select",
            0x81 => "Zoom Adjust",
            0x82 => "Spectral Doppler Mode Select",
            0x83 => "Spectral Doppler Adjust",
            0x84 => "Color Doppler Mode Select",
            0x85 => "Color Doppler Adjust",
            0x86 => "Motion Mode Select",
            0x87 => "Motion Mode Adjust",
            0x88 => "2-D Mode Select",
            0x89 => "2-D Mode Adjust",
            0xA0 => "Soft Control Select",
            0xA1 => "Soft Control Adjust",
            _ => "Reserved",
        }),
        // Braille Display
        0x41 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Braille Display",
            0x02 => "Braille Row",
            0x03 => "8 Dot Braille Cell",
            0x04 => "6 Dot Braille Cell",
            0x05 => "Number of Braille Cells",
            0x06 => "Screen Reader Control",
            0x07 => "Screen Reader Identifier",
            0xFA => "Router Set 1",
            0xFB => "Router Set 2",
            0xFC => "Router Set 3",
            0x100 => "Router Key",
            0x101 => "Row Router Key",
            0x200 => "Braille Buttons",
            0x201 => "Braille Keyboard Dot 1",
            0x202 => "Braille Keyboard Dot 2",
            0x203 => "Braille Keyboard Dot 3",
            0x204 => "Braille Keyboard Dot 4",
            0x205 => "Braille Keyboard Dot 5",
            0x206 => "Braille Keyboard Dot 6",
            0x207 => "Braille Keyboard Dot 7",
            0x208 => "Braille Keyboard Dot 8",
            0x209 => "Braille Keyboard Space",
            0x20A => "Braille Keyboard Left Space",
            0x20B => "Braille Keyboard Right Space",
            0x20C => "Braille Face Controls",
            0x20D => "Braille Left Controls",
            0x20E => "Braille Right Controls",
            0x20F => "Braille Top Controls",
            0x210 => "Braille Joystick Center",
            0x211 => "Braille Joystick Up",
            0x212 => "Braille Joystick Down",
            0x213 => "Braille Joystick Left",
            0x214 => "Braille Joystick Right",
            0x215 => "Braille D-Pad Center",
            0x216 => "Braille D-Pad Up",
            0x217 => "Braille D-Pad Down",
            0x218 => "Braille D-Pad Left",
            0x219 => "Braille D-Pad Right",
            0x21A => "Braille Pan Left",
            0x21B => "Braille Pan Right",
            0x21C => "Braille Rocker Up",
            0x21D => "Braille Rocker Down",
            0x21E => "Braille Rocker Press",
            _ => "Reserved",
        }),
        // Lighting And Illumination
        0x59 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "LampArray",
            0x02 => "LampArrayAttributesReport",
            0x03 => "LampCount",
            0x04 => "BoundingBoxWidthInMicrometers",
            0x05 => "BoundingBoxHeightInMicrometers",
            0x06 => "BoundingBoxDepthInMicrometers",
            0x07 => "LampArrayKind",
            0x08 => "MinUpdateIntervalInMicroseconds",
            0x20 => "LampAttributesRequestReport",
            0x21 => "LampId",
            0x22 => "LampAttributesResponseReport",
            0x23 => "PositionXInMicrometers",
            0x24 => "PositionYInMicrometers",
            0x25 => "PositionZInMicrometers",
            0x26 => "LampPurposes",
            0x27 => "UpdateLatencyInMicroseconds",
            0x28 => "RedLevelCount",
            0x29 => "GreenLevelCount",
            0x2A => "BlueLevelCount",
            0x2B => "IntensityLevelCount",
            0x2C => "IsProgrammable",
            0x2D => "InputBinding",
            0x50 => "LampMultiUpdateReport",
            0x51 => "RedUpdateChannel",
            0x52 => "GreenUpdateChannel",
            0x53 => "BlueUpdateChannel",
            0x54 => "IntensityUpdateChannel",
            0x55 => "LampUpdateFlags",
            0x60 => "LampRangeUpdateReport",
            0x61 => "LampIdStart",
            0x62 => "LampIdEnd",
            0x70 => "LampArrayControlReport",
            0x71 => "AutonomousMode",
            _ => "Reserved",
        }),
        // Monitor
        0x80 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Monitor Control",
            0x02 => "EDID Information",
            0x03 => "VDIF Information",
            0x04 => "VESA Version",
            _ => "Reserved",
        }),
        // Monitor Enumerated
        0x81 => match usage {
            0x00 => Cow::Borrowed("Reserved"),
            _ => Cow::Owned(format!("Enum {}", usage)),
        },
        // VESA Virtual Controls
        0x82 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Degauss",
            0x10 => "Brightness",
            0x12 => "Contrast",
            0x16 => "Red Video Gain",
            0x18 => "Green Video Gain",
            0x1A => "Blue Video Gain",
            0x1C => "Focus",
            0x20 => "Horizontal Position",
            0x22 => "Horizontal Size",
            0x24 => "Horizontal Pincushion",
            0x26 => "Horizontal Pincushion Balance",
            0x28 => "Horizontal Misconvergence",
            0x2A => "Horizontal Linearity",
            0x2C => "Horizontal Linearity Balance",
            0x30 => "Vertical Position",
            0x32 => "Vertical Size",
            0x34 => "Vertical Pincushion",
            0x36 => "Vertical Pincushion Balance",
            0x38 => "Vertical Misconvergence",
            0x3A => "Vertical Linearity",
            0x3C => "Vertical Linearity Balance",
            0x40 => "Parallelogram Distortion (Key Balance)",
            0x42 => "Trapezoidal Distortion (Key)",
            0x44 => "Tilt (Rotation)",
            0x46 => "Top Corner Distortion Control",
            0x48 => "Top Corner Distortion Balance",
            0x4A => "Bottom Corner Distortion Control",
            0x4C => "Bottom Corner Distortion Balance",
            0x56 => "Horizontal Moiré",
            0x58 => "Vertical Moiré",
            0x5E => "Input Level Select",
            0x60 => "Input Source Select",
            0x6C => "Red Video Black Level",
            0x6E => "Green Video Black Level",
            0x70 => "Blue Video Black Level",
            0xA2 => "Auto Size Center",
            0xA4 => "Polarity Horizontal Synchronization",
            0xA6 => "Polarity Vertical Synchronization",
            0xA8 => "Synchronization Type",
            0xAA => "Screen Orientation",
            0xAC => "Horizontal Frequency",
            0xAE => "Vertical Frequency",
            0xB0 => "Settings",
            0xCA => "On Screen Display",
            0xD4 => "Stereo Mode",
            _ => "Reserved",
        }),
        // Power
        0x84 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "iName",
            0x02 => "Present Status",
            0x03 => "Changed Status",
            0x04 => "UPS",
            0x05 => "Power Supply",
            0x10 => "Battery System",
            0x11 => "Battery System Id",
            0x12 => "Battery",
            0x13 => "Battery Id",
            0x14 => "Charger",
            0x15 => "Charger Id",
            0x16 => "Power Converter",
            0x17 => "Power Converter Id",
            0x18 => "Outlet System",
            0x19 => "Outlet System Id",
            0x1A => "Input",
            0x1B => "Input Id",
            0x1C => "Output",
            0x1D => "Output Id",
            0x1E => "Flow",
            0x1F => "Flow Id",
            0x20 => "Outlet",
            0x21 => "Outlet Id",
            0x22 => "Gang",
            0x23 => "Gang Id",
            0x24 => "Power Summary",
            0x25 => "Power Summary Id",
            0x30 => "Voltage",
            0x31 => "Current",
            0x32 => "Frequency",
            0x33 => "Apparent Power",
            0x34 => "Active Power",
            0x35 => "Percent Load",
            0x36 => "Temperature",
            0x37 => "Humidity",
            0x38 => "Bad Count",
            0x40 => "Config Voltage",
            0x41 => "Config Current",
            0x42 => "Config Frequency",
            0x43 => "Config Apparent Power",
            0x44 => "Config Active Power",
            0x45 => "Config Percent Load",
            0x46 => "Config Temperature",
            0x47 => "Config Humidity",
            0x50 => "Switch On Control",
            0x51 => "Switch Off Control",
            0x52 => "Toggle Control",
            0x53 => "Low Voltage Transfer",
            0x54 => "High Voltage Transfer",
            0x55 => "Delay Before Reboot",
            0x56 => "Delay Before Startup",
            0x57 => "Delay Before Shutdown",
            0x58 => "Test",
            0x59 => "Module Reset",
            0x5A => "Audible Alarm Control",
            0x60 => "Present",
            0x61 => "Good",
            0x62 => "Internal Failure",
            0x63 => "Voltag Out Of Range",
            0x64 => "Frequency Out Of Range",
            0x65 => "Overload",
            0x66 => "Over Charged",
            0x67 => "Over Temperature",
            0x68 => "Shutdown Requested",
            0x69 => "Shutdown Imminent",
            0x6B => "Switch On/Off",
            0x6C => "Switchable",
            0x6D => "Used",
            0x6E => "Boost",
            0x6F => "Buck",
            0x70 => "Initialized",
            0x71 => "Tested",
            0x72 => "Awaiting Power",
            0x73 => "Communication Lost",
            0xFD => "iManufacturer",
            0xFE => "iProduct",
            0xFF => "iSerialNumber",
            _ => "Reserved",
        }),
        // Battery System
        0x85 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Smart Battery Battery Mode",
            0x02 => "Smart Battery Battery Status",
            0x03 => "Smart Battery Alarm Warning",
            0x04 => "Smart Battery Charger Mode",
            0x05 => "Smart Battery Charger Status",
            0x06 => "Smart Battery Charger Spec Info",
            0x07 => "Smart Battery Selector State",
            0x08 => "Smart Battery Selector Presets",
            0x09 => "Smart Battery Selector Info",
            0x10 => "Optional Mfg Function 1",
            0x11 => "Optional Mfg Function 2",
            0x12 => "Optional Mfg Function 3",
            0x13 => "Optional Mfg Function 4",
            0x14 => "Optional Mfg Function 5",
            0x15 => "Connection To SM Bus",
            0x16 => "Output Connection",
            0x17 => "Charger Connection",
            0x18 => "Battery Insertion",
            0x19 => "Use Next",
            0x1A => "OK To Use",
            0x1B => "Battery Supported",
            0x1C => "Selector Revision",
            0x1D => "Charging Indicator",
            0x28 => "Manufacturer Access",
            0x29 => "Remaining Capacity Limit",
            0x2A => "Remaining Time Limit",
            0x2B => "At Rate",
            0x2C => "Capacity Mode",
            0x2D => "Broadcast To Charger",
            0x2E => "Primary Battery",
            0x2F => "Charge Controller",
            0x40 => "Terminate Charge",
            0x41 => "Terminate Discharge",
            0x42 => "Below Remaining Capacity Limit",
            0x43 => "Remaining Time Limit Expired",
            0x44 => "Charging",
            0x45 => "Discharging",
            0x46 => "Fully Charged",
            0x47 => "Fully Discharged",
            0x48 => "Conditioning Flag",
            0x49 => "At Rate OK",
            0x4A => "Smart Battery Error Code",
            0x4B => "Need Replacement",
            0x60 => "At Rate Time To Full",
            0x61 => "At Rate Time To Empty",
            0x62 => "Average Current",
            0x63 => "Max Error",
            0x64 => "Relative State Of Charge",
            0x65 => "Absolute State Of Charge",
            0x66 => "Remaining Capacity",
            0x67 => "Full Charge Capacity",
            0x68 => "Run Time To Empty",
            0x69 => "Average Time To Empty",
            0x6A => "Average Time To Full",
            0x6B => "Cycle Count",
            0x80 => "Battery Pack Model Level",
            0x81 => "Internal Charge Controller",
            0x82 => "Primary Battery Support",
            0x83 => "Design Capacity",
            0x84 => "Specification Info",
            0x85 => "Manufacture Date",
            0x86 => "Serial Number",
            0x87 => "iManufacturer Name",
            0x88 => "iDevice Name",
            0x89 => "iDevice Chemistry",
            0x8A => "Manufacturer Data",
            0x8B => "Rechargable",
            0x8C => "Warning Capacity Limit",
            0x8D => "Capacity Granularity 1",
            0x8E => "Capacity Granularity 2",
            0x8F => "iOEM Information",
            0xC0 => "Inhibit Charge",
            0xC1 => "Enable Polling",
            0xC2 => "Reset To Zero",
            0xD0 => "AC Present",
            0xD1 => "Battery Present",
            0xD2 => "Power Fail",
            0xD3 => "Alarm Inhibited",
            0xD4 => "Thermistor Under Range",
            0xD5 => "Thermistor Hot",
            0xD6 => "Thermistor Cold",
            0xD7 => "Thermistor Over Range",
            0xD8 => "Voltage Out Of Range",
            0xD9 => "Current Out Of Range",
            0xDA => "Current Not Regulated",
            0xDB => "Voltage Not Regulated",
            0xDC => "Master Mode",
            0xF0 => "Charger Selector Support",
            0xF1 => "Charger Spec",
            0xF2 => "Level 2",
            0xF3 => "Level 3",
            _ => "Reserved",
        }),
        // Bar Code Scanner
        0x8C => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Barcode Badge Reader",
            0x02 => "Barcode Scanner",
            0x03 => "Dumb Bar Code Scanner",
            0x04 => "Cordless Scanner Base",
            0x05 => "Bar Code Scanner Cradle",
            0x10 => "Attribute Report",
            0x11 => "Settings Report",
            0x12 => "Scanned Data Report",
            0x13 => "Raw Scanned Data Report",
            0x14 => "Trigger Report",
            0x15 => "Status Report",
            0x16 => "UPC/EAN Control Report",
            0x17 => "EAN 2/3 Label Control Report",
            0x18 => "Code 39 Control Report",
            0x19 => "Interleaved 2 of 5 Control Report",
            0x1A => "Standard 2 of 5 Control Report",
            0x1B => "MSI Plessey Control Report",
            0x1C => "Codabar Control Report",
            0x1D => "Code 128 Control Report",
            0x1E => "Misc 1D Control Report",
            0x1F => "2D Control Report",
            0x30 => "Aiming/Pointer Mode",
            0x31 => "Bar Code Present Sensor",
            0x32 => "Class 1A Laser",
            0x33 => "Class 2 Laser",
            0x34 => "Heater Present",
            0x35 => "Contact Scanner",
            0x36 => "Electronic Article Surveillance Notification",
            0x37 => "Constant Electronic Article Surveillance",
            0x38 => "Error Indication",
            0x39 => "Fixed Beeper",
            0x3A => "Good Decode Indication",
            0x3B => "Hands Free Scanning",
            0x3C => "Intrinsically Safe",
            0x3D => "Klasse Eins Laser",
            0x3E => "Long Range Scanner",
            0x3F => "Mirror Speed Control",
            0x40 => "Not On File Indication",
            0x41 => "Programmable Beeper",
            0x42 => "Triggerless",
            0x43 => "Wand",
            0x44 => "Water Resistant",
            0x45 => "Multi-Range Scanner",
            0x46 => "Proximity Sensor",
            0x4D => "Fragment Decoding",
            0x4E => "Scanner Read Confidence",
            0x4F => "Data Prefix",
            0x50 => "Prefix AIMI",
            0x51 => "Prefix None",
            0x52 => "Prefix Proprietary",
            0x55 => "Active Time",
            0x56 => "Aiming Laser Pattern",
            0x57 => "Bar Code Present",
            0x58 => "Beeper State",
            0x59 => "Laser On Time",
            0x5A => "Laser State",
            0x5B => "Lockout Time",
            0x5C => "Motor State",
            0x5D => "Motor Timeout",
            0x5E => "Power On Reset Scanner",
            0x5F => "Prevent Read of Barcodes",
            0x60 => "Initiate Barcode Read",
            0x61 => "Trigger State",
            0x62 => "Trigger Mode",
            0x63 => "Trigger Mode Blinking Laser On",
            0x64 => "Trigger Mode Continuous Laser On",
            0x65 => "Trigger Mode Laser on while Pulled",
            0x66 => "Trigger Mode Laser stays on after release",
            0x6D => "Commit Parameters to NVM",
            0x6E => "Parameter Scanning",
            0x6F => "Parameters Changed",
            0x70 => "Set parameter default values",
            0x75 => "Scanner In Cradle",
            0x76 => "Scanner In Range",
            0x7A => "Aim Duration",
            0x7B => "Good Read Lamp Duration",
            0x7C => "Good Read Lamp Intensity",
            0x7D => "Good Read LED",
            0x7E => "Good Read Tone Frequency",
            0x7F => "Good Read Tone Length",
            0x80 => "Good Read Tone Volume",
            0x82 => "No Read Message",
            0x83 => "Not on File Volume",
            0x84 => "Powerup Beep",
            0x85 => "Sound Error Beep",
            0x86 => "Sound Good Read Beep",
            0x87 => "Sound Not On File Beep",
            0x88 => "Good Read When to Write",
            0x89 => "GRWTI After Decode",
            0x8A => "GRWTI Beep/Lamp after transmit",
            0x8B => "GRWTI No Beep/Lamp use at all",
            0x91 => "Bookland EAN",
            0x92 => "Convert EAN 8 to 13 Type",
            0x93 => "Convert UPC A to EAN-13",
            0x94 => "Convert UPC-E to A",
            0x95 => "EAN-13",
            0x96 => "EAN-8",
            0x97 => "EAN-99 128 Mandatory",
            0x98 => "EAN-99 P5/128 Optional",
            0x99 => "Enable EAN Two Label",
            0x9A => "UPC/EAN",
            0x9B => "UPC/EAN Coupon Code",
            0x9C => "UPC/EAN Periodicals",
            0x9D => "UPC-A",
            0x9E => "UPC-A Mandatory",
            0x9F => "UPC-A Optional",
            0xA0 => "UPC-A with P5 Optional",
            0xA1 => "UPC-E",
            0xA2 => "UPC-E1",
            0xA9 => "Periodical",
            0xAA => "Periodical Auto-Discriminate +2",
            0xAB => "Periodical Only Decode with +2",
            0xAC => "Periodical Ignore +2",
            0xAD => "Periodical Auto-Discriminate +5",
            0xAE => "Periodical Only Decode with +5",
            0xAF => "Periodical Ignore +5",
            0xB0 => "Check",
            0xB1 => "Check Disable Price",
            0xB2 => "Check Enable 4 digit Price",
            0xB3 => "Check Enable 5 digit Price",
            0xB4 => "Check Enable European 4 digit Price",
            0xB5 => "Check Enable European 5 digit Price",
            0xB7 => "EAN Two Label",
            0xB8 => "EAN Three Label",
            0xB9 => "EAN 8 Flag Digit 1",
            0xBA => "EAN 8 Flag Digit 2",
            0xBB => "EAN 8 Flag Digit 3",
            0xBC => "EAN 13 Flag Digit 1",
            0xBD => "EAN 13 Flag Digit 2",
            0xBE => "EAN 13 Flag Digit 3",
            0xBF => "Add Label Definition",
            0xC0 => "Clear all Label Definitions",
            0xC3 => "Codabar",
            0xC4 => "Code 128",
            0xC7 => "Code 39",
            0xC8 => "Code 93",
            0xC9 => "Full ASCII Conversion",
            0xCA => "Interleaved 2 of 5",
            0xCB => "Italian Pharmacy Code",
            0xCC => "MSI/Plessey",
            0xCD => "Standard 2 of 5 IATA",
            0xCE => "Standard 2 of 5",
            0xD3 => "Transmit Start/Stop",
            0xD4 => "Tri-Optic",
            0xD5 => "UCC/EAN-128",
            0xD6 => "Check Digit",
            0xD7 => "Check Digit Disable",
            0xD8 => "Check Digit Enable Interleaved 2 of 5 OPCC",
            0xD9 => "Check Digit Enable Interleaved 2 of 5 USS",
            0xDA => "Check Digit Enable Standard 2 of 5 OPCC",
            0xDB => "Check Digit Enable Standard 2 of 5 USS",
            0xDC => "Check Digit Enable One MSI Plessey",
            0xDD => "Check Digit Enable Two MSI Plessey",
            0xDE => "Check Digit Codabar Enable",
            0xDF => "Check Digit Code 39 Enable",
            0xF0 => "Transmit Check Digit",
            0xF1 => "Disable Check Digit Transmit",
            0xF2 => "Enable Check Digit Transmit",
            0xFB => "Symbology Identifier 1",
            0xFC => "Symbology Identifier 2",
            0xFD => "Symbology Identifier 3",
            0xFE => "Decoded Data",
            0xFF => "Decode Data Continued",
            0x100 => "Bar Space Data",
            0x101 => "Scanner Data Accuracy",
            0x102 => "Raw Data Polarity",
            0x103 => "Polarity Inverted Bar Code",
            0x104 => "Polarity Normal Bar Code",
            0x106 => "Minimum Length to Decode",
            0x107 => "Maximum Length to Decode",
            0x108 => "Discrete Length to Decode 1",
            0x109 => "Discrete Length to Decode 2",
            0x10A => "Data Length Method",
            0x10B => "DL Method Read any",
            0x10C => "DL Method Check in Range",
            0x10D => "DL Method Check for Discrete",
            0x110 => "Aztec Code",
            0x111 => "BC412",
            0x112 => "Channel Code",
            0x113 => "Code 16",
            0x114 => "Code 32",
            0x115 => "Code 49",
            0x116 => "Code One",
            0x117 => "Colorcode",
            0x118 => "Data Matrix",
            0x119 => "MaxiCode",
            0x11A => "MicroPDF",
            0x11B => "PDF-417",
            0x11C => "PosiCode",
            0x11D => "QR Code",
            0x11E => "SuperCode",
            0x11F => "UltraCode",
            0x120 => "USD-5 (Slug Code)",
            0x121 => "VeriCode",
            _ => "Reserved",
        }),
        // Scale
        0x8D => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "Scales",
            0x20 => "Scale Device",
            0x21 => "Scale Class",
            0x22 => "Scale Class I Metric",
            0x23 => "Scale Class II Metric",
            0x24 => "Scale Class III Metric",
            0x25 => "Scale Class IIIL Metric",
            0x26 => "Scale Class IV Metric",
            0x27 => "Scale Class III English",
            0x28 => "Scale Class IIIL English",
            0x29 => "Scale Class IV English",
            0x2A => "Scale Class Generic",
            0x30 => "Scale Attribute Report",
            0x31 => "Scale Control Report",
            0x32 => "Scale Data Report",
            0x33 => "Scale Status Report",
            0x34 => "Scale Weight Limit Report",
            0x35 => "Scale Statistics Report",
            0x40 => "Data Weight",
            0x41 => "Data Scaling",
            0x50 => "Weight Unit",
            0x51 => "Weight Unit Milligram",
            0x52 => "Weight Unit Gram",
            0x53 => "Weight Unit Kilogram",
            0x54 => "Weight Unit Carats",
            0x55 => "Weight Unit Taels",
            0x56 => "Weight Unit Grains",
            0x57 => "Weight Unit Pennyweights",
            0x58 => "Weight Unit Metric Ton",
            0x59 => "Weight Unit Avoir Ton",
            0x5A => "Weight Unit Troy Ounce",
            0x5B => "Weight Unit Ounce",
            0x5C => "Weight Unit Pound",
            0x60 => "Calibration Count",
            0x61 => "Re-Zero Count",
            0x70 => "Scale Status",
            0x71 => "Scale Status Fault",
            0x72 => "Scale Status Stable at Center of Zero",
            0x73 => "Scale Status In Motion",
            0x74 => "Scale Status Weight Stable",
            0x75 => "Scale Status Under Zero",
            0x76 => "Scale Status Over Weight Limit",
            0x77 => "Scale Status Requires Calibration",
            0x78 => "Scale Status Requires Rezeroing",
            0x80 => "Zero Scale",
            0x81 => "Enforced Zero Return",
            _ => "Reserved",
        }),
        // Magnetic Stripe Reading
        0x8E => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "MSR Device Read-Only",
            0x11 => "Track 1 Length",
            0x12 => "Track 2 Length",
            0x13 => "Track 3 Length",
            0x14 => "Track JIS Length",
            0x20 => "Track Data",
            0x21 => "Track 1 Data",
            0x22 => "Track 2 Data",
            0x23 => "Track 3 Data",
            0x24 => "Track JIS Data",
            _ => "Reserved",
        }),
        // Camera Control
        0x90 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x20 => "Camera Auto-focus",
            0x21 => "Camera Shutter",
            _ => "Reserved",
        }),
        // Arcade
        0x91 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "General Purpose IO Card",
            0x02 => "Coin Door",
            0x03 => "Watchdog Timer",
            0x30 => "General Purpose Analog Input State",
            0x31 => "General Purpose Digital Input State",
            0x32 => "General Purpose Optical Input State",
            0x33 => "General Purpose Digital Output State",
            0x34 => "Number of Coin Doors",
            0x35 => "Coin Drawer Drop Count",
            0x36 => "Coin Drawer Start",
            0x37 => "Coin Drawer Service",
            0x38 => "Coin Drawer Tilt",
            0x39 => "Coin Door Test",
            0x40 => "Coin Door Lockout",
            0x41 => "Watchdog Timeout",
            0x42 => "Watchdog Action",
            0x43 => "Watchdog Reboot",
            0x44 => "Watchdog Restart",
            0x45 => "Alarm Input",
            0x46 => "Coin Door Counter",
            0x47 => "I/O Direction Mapping",
            0x48 => "Set I/O Direction Mapping",
            0x49 => "Extended Optical Input State",
            0x4A => "Pin Pad Input State",
            0x4B => "Pin Pad Status",
            0x4C => "Pin Pad Output",
            0x4D => "Pin Pad Command",
            _ => "Reserved",
        }),
        // Gaming Device
        0x92 => Cow::Borrowed(match usage {
            0x40 => "ACK",
            0x41 => "Enable",
            0x42 => "Disable",
            0x43 => "Self Test",
            0x44 => "Request GAT Report",
            0x47 => "Calculate CRC",
            0x210 => "Number of Note Data Entries",
            0x211 => "Read Note Table",
            0x212 => "Extend Timeout",
            0x213 => "Accept Note/Ticket",
            0x214 => "Return Note/Ticket",
            0x21A => "Read Note Acceptor Metrics",
            _ => "Reserved",
        }),
        // FIDO Alliance
        0xF1D0 => Cow::Borrowed(match usage {
            0x00 => "Undefined",
            0x01 => "U2F Authenticator Device",
            0x20 => "Input Report Data",
            0x21 => "Output Report Data",
            _ => "Reserved",
        }),
        _ => Cow::Borrowed(""),
    }
}

impl Display for Usage {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match &self.usage_page {
            Some(usage_page) => {
                let usage = __usage_format_helper(
                    __data_to_unsigned(self.data()),
                    __data_to_unsigned(usage_page.data()),
                );
                if usage.is_empty() {
                    write!(f, "Usage")
                } else {
                    write!(f, "Usage ({})", usage)
                }
            }
            None => write!(f, "Usage"),
        }
    }
}

impl Display for UsageMinimum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match &self.usage_page {
            Some(usage_page) => {
                let usage = __usage_format_helper(
                    __data_to_unsigned(self.data()),
                    __data_to_unsigned(usage_page.data()),
                );
                if usage.is_empty() {
                    write!(f, "Usage Minimum")
                } else {
                    write!(f, "Usage Minimum ({})", usage)
                }
            }
            None => write!(f, "Usage Minimum"),
        }
    }
}

impl Display for UsageMaximum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match &self.usage_page {
            Some(usage_page) => {
                let usage = __usage_format_helper(
                    __data_to_unsigned(self.data()),
                    __data_to_unsigned(usage_page.data()),
                );
                if usage.is_empty() {
                    write!(f, "Usage Maximum")
                } else {
                    write!(f, "Usage Maximum ({})", usage)
                }
            }
            None => write!(f, "Usage Maximum"),
        }
    }
}

impl Display for DesignatorIndex {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self.data().len() {
            0 => write!(f, "Designator Index"),
            1.. => write!(f, "Designator Index ({})", __data_to_unsigned(self.data())),
        }
    }
}

impl Display for DesignatorMinimum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self.data().len() {
            0 => write!(f, "Designator Minimum"),
            1.. => write!(
                f,
                "Designator Minimum ({})",
                __data_to_unsigned(self.data())
            ),
        }
    }
}

impl Display for DesignatorMaximum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self.data().len() {
            0 => write!(f, "Designator Maximum"),
            1.. => write!(
                f,
                "Designator Maximum ({})",
                __data_to_unsigned(self.data())
            ),
        }
    }
}

impl Display for StringIndex {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self.data().len() {
            0 => write!(f, "String Index"),
            1.. => write!(f, "String Index ({})", __data_to_unsigned(self.data())),
        }
    }
}

impl Display for StringMinimum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self.data().len() {
            0 => write!(f, "String Minimum"),
            1.. => write!(f, "String Minimum ({})", __data_to_unsigned(self.data())),
        }
    }
}

impl Display for StringMaximum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self.data().len() {
            0 => write!(f, "String Maximum"),
            1.. => write!(f, "String Maximum ({})", __data_to_unsigned(self.data())),
        }
    }
}

impl Display for Delimiter {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self.data().len() {
            0 => write!(f, "Delimiter"),
            1.. => write!(f, "Delimiter ({})", __data_to_unsigned(self.data())),
        }
    }
}