1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
|
//*****************************************************************************
//
// hw_usb.h - Macros for use in accessing the USB registers.
//
// Copyright (c) 2007-2012 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// This is part of revision 9453 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
#ifndef __HW_USB_H__
#define __HW_USB_H__
//*****************************************************************************
//
// The following are defines for the Univeral Serial Bus register offsets.
//
//*****************************************************************************
#define USB_O_FADDR 0x00000000 // USB Device Functional Address
#define USB_O_POWER 0x00000001 // USB Power
#define USB_O_TXIS 0x00000002 // USB Transmit Interrupt Status
#define USB_O_RXIS 0x00000004 // USB Receive Interrupt Status
#define USB_O_TXIE 0x00000006 // USB Transmit Interrupt Enable
#define USB_O_RXIE 0x00000008 // USB Receive Interrupt Enable
#define USB_O_IS 0x0000000A // USB General Interrupt Status
#define USB_O_IE 0x0000000B // USB Interrupt Enable
#define USB_O_FRAME 0x0000000C // USB Frame Value
#define USB_O_EPIDX 0x0000000E // USB Endpoint Index
#define USB_O_TEST 0x0000000F // USB Test Mode
#define USB_O_FIFO0 0x00000020 // USB FIFO Endpoint 0
#define USB_O_FIFO1 0x00000024 // USB FIFO Endpoint 1
#define USB_O_FIFO2 0x00000028 // USB FIFO Endpoint 2
#define USB_O_FIFO3 0x0000002C // USB FIFO Endpoint 3
#define USB_O_FIFO4 0x00000030 // USB FIFO Endpoint 4
#define USB_O_FIFO5 0x00000034 // USB FIFO Endpoint 5
#define USB_O_FIFO6 0x00000038 // USB FIFO Endpoint 6
#define USB_O_FIFO7 0x0000003C // USB FIFO Endpoint 7
#define USB_O_FIFO8 0x00000040 // USB FIFO Endpoint 8
#define USB_O_FIFO9 0x00000044 // USB FIFO Endpoint 9
#define USB_O_FIFO10 0x00000048 // USB FIFO Endpoint 10
#define USB_O_FIFO11 0x0000004C // USB FIFO Endpoint 11
#define USB_O_FIFO12 0x00000050 // USB FIFO Endpoint 12
#define USB_O_FIFO13 0x00000054 // USB FIFO Endpoint 13
#define USB_O_FIFO14 0x00000058 // USB FIFO Endpoint 14
#define USB_O_FIFO15 0x0000005C // USB FIFO Endpoint 15
#define USB_O_DEVCTL 0x00000060 // USB Device Control
#define USB_O_TXFIFOSZ 0x00000062 // USB Transmit Dynamic FIFO Sizing
#define USB_O_RXFIFOSZ 0x00000063 // USB Receive Dynamic FIFO Sizing
#define USB_O_TXFIFOADD 0x00000064 // USB Transmit FIFO Start Address
#define USB_O_RXFIFOADD 0x00000066 // USB Receive FIFO Start Address
#define USB_O_CONTIM 0x0000007A // USB Connect Timing
#define USB_O_VPLEN 0x0000007B // USB OTG VBUS Pulse Timing
#define USB_O_FSEOF 0x0000007D // USB Full-Speed Last Transaction
// to End of Frame Timing
#define USB_O_LSEOF 0x0000007E // USB Low-Speed Last Transaction
// to End of Frame Timing
#define USB_O_TXFUNCADDR0 0x00000080 // USB Transmit Functional Address
// Endpoint 0
#define USB_O_TXHUBADDR0 0x00000082 // USB Transmit Hub Address
// Endpoint 0
#define USB_O_TXHUBPORT0 0x00000083 // USB Transmit Hub Port Endpoint 0
#define USB_O_TXFUNCADDR1 0x00000088 // USB Transmit Functional Address
// Endpoint 1
#define USB_O_TXHUBADDR1 0x0000008A // USB Transmit Hub Address
// Endpoint 1
#define USB_O_TXHUBPORT1 0x0000008B // USB Transmit Hub Port Endpoint 1
#define USB_O_RXFUNCADDR1 0x0000008C // USB Receive Functional Address
// Endpoint 1
#define USB_O_RXHUBADDR1 0x0000008E // USB Receive Hub Address Endpoint
// 1
#define USB_O_RXHUBPORT1 0x0000008F // USB Receive Hub Port Endpoint 1
#define USB_O_TXFUNCADDR2 0x00000090 // USB Transmit Functional Address
// Endpoint 2
#define USB_O_TXHUBADDR2 0x00000092 // USB Transmit Hub Address
// Endpoint 2
#define USB_O_TXHUBPORT2 0x00000093 // USB Transmit Hub Port Endpoint 2
#define USB_O_RXFUNCADDR2 0x00000094 // USB Receive Functional Address
// Endpoint 2
#define USB_O_RXHUBADDR2 0x00000096 // USB Receive Hub Address Endpoint
// 2
#define USB_O_RXHUBPORT2 0x00000097 // USB Receive Hub Port Endpoint 2
#define USB_O_TXFUNCADDR3 0x00000098 // USB Transmit Functional Address
// Endpoint 3
#define USB_O_TXHUBADDR3 0x0000009A // USB Transmit Hub Address
// Endpoint 3
#define USB_O_TXHUBPORT3 0x0000009B // USB Transmit Hub Port Endpoint 3
#define USB_O_RXFUNCADDR3 0x0000009C // USB Receive Functional Address
// Endpoint 3
#define USB_O_RXHUBADDR3 0x0000009E // USB Receive Hub Address Endpoint
// 3
#define USB_O_RXHUBPORT3 0x0000009F // USB Receive Hub Port Endpoint 3
#define USB_O_TXFUNCADDR4 0x000000A0 // USB Transmit Functional Address
// Endpoint 4
#define USB_O_TXHUBADDR4 0x000000A2 // USB Transmit Hub Address
// Endpoint 4
#define USB_O_TXHUBPORT4 0x000000A3 // USB Transmit Hub Port Endpoint 4
#define USB_O_RXFUNCADDR4 0x000000A4 // USB Receive Functional Address
// Endpoint 4
#define USB_O_RXHUBADDR4 0x000000A6 // USB Receive Hub Address Endpoint
// 4
#define USB_O_RXHUBPORT4 0x000000A7 // USB Receive Hub Port Endpoint 4
#define USB_O_TXFUNCADDR5 0x000000A8 // USB Transmit Functional Address
// Endpoint 5
#define USB_O_TXHUBADDR5 0x000000AA // USB Transmit Hub Address
// Endpoint 5
#define USB_O_TXHUBPORT5 0x000000AB // USB Transmit Hub Port Endpoint 5
#define USB_O_RXFUNCADDR5 0x000000AC // USB Receive Functional Address
// Endpoint 5
#define USB_O_RXHUBADDR5 0x000000AE // USB Receive Hub Address Endpoint
// 5
#define USB_O_RXHUBPORT5 0x000000AF // USB Receive Hub Port Endpoint 5
#define USB_O_TXFUNCADDR6 0x000000B0 // USB Transmit Functional Address
// Endpoint 6
#define USB_O_TXHUBADDR6 0x000000B2 // USB Transmit Hub Address
// Endpoint 6
#define USB_O_TXHUBPORT6 0x000000B3 // USB Transmit Hub Port Endpoint 6
#define USB_O_RXFUNCADDR6 0x000000B4 // USB Receive Functional Address
// Endpoint 6
#define USB_O_RXHUBADDR6 0x000000B6 // USB Receive Hub Address Endpoint
// 6
#define USB_O_RXHUBPORT6 0x000000B7 // USB Receive Hub Port Endpoint 6
#define USB_O_TXFUNCADDR7 0x000000B8 // USB Transmit Functional Address
// Endpoint 7
#define USB_O_TXHUBADDR7 0x000000BA // USB Transmit Hub Address
// Endpoint 7
#define USB_O_TXHUBPORT7 0x000000BB // USB Transmit Hub Port Endpoint 7
#define USB_O_RXFUNCADDR7 0x000000BC // USB Receive Functional Address
// Endpoint 7
#define USB_O_RXHUBADDR7 0x000000BE // USB Receive Hub Address Endpoint
// 7
#define USB_O_RXHUBPORT7 0x000000BF // USB Receive Hub Port Endpoint 7
#define USB_O_TXFUNCADDR8 0x000000C0 // USB Transmit Functional Address
// Endpoint 8
#define USB_O_TXHUBADDR8 0x000000C2 // USB Transmit Hub Address
// Endpoint 8
#define USB_O_TXHUBPORT8 0x000000C3 // USB Transmit Hub Port Endpoint 8
#define USB_O_RXFUNCADDR8 0x000000C4 // USB Receive Functional Address
// Endpoint 8
#define USB_O_RXHUBADDR8 0x000000C6 // USB Receive Hub Address Endpoint
// 8
#define USB_O_RXHUBPORT8 0x000000C7 // USB Receive Hub Port Endpoint 8
#define USB_O_TXFUNCADDR9 0x000000C8 // USB Transmit Functional Address
// Endpoint 9
#define USB_O_TXHUBADDR9 0x000000CA // USB Transmit Hub Address
// Endpoint 9
#define USB_O_TXHUBPORT9 0x000000CB // USB Transmit Hub Port Endpoint 9
#define USB_O_RXFUNCADDR9 0x000000CC // USB Receive Functional Address
// Endpoint 9
#define USB_O_RXHUBADDR9 0x000000CE // USB Receive Hub Address Endpoint
// 9
#define USB_O_RXHUBPORT9 0x000000CF // USB Receive Hub Port Endpoint 9
#define USB_O_TXFUNCADDR10 0x000000D0 // USB Transmit Functional Address
// Endpoint 10
#define USB_O_TXHUBADDR10 0x000000D2 // USB Transmit Hub Address
// Endpoint 10
#define USB_O_TXHUBPORT10 0x000000D3 // USB Transmit Hub Port Endpoint
// 10
#define USB_O_RXFUNCADDR10 0x000000D4 // USB Receive Functional Address
// Endpoint 10
#define USB_O_RXHUBADDR10 0x000000D6 // USB Receive Hub Address Endpoint
// 10
#define USB_O_RXHUBPORT10 0x000000D7 // USB Receive Hub Port Endpoint 10
#define USB_O_TXFUNCADDR11 0x000000D8 // USB Transmit Functional Address
// Endpoint 11
#define USB_O_TXHUBADDR11 0x000000DA // USB Transmit Hub Address
// Endpoint 11
#define USB_O_TXHUBPORT11 0x000000DB // USB Transmit Hub Port Endpoint
// 11
#define USB_O_RXFUNCADDR11 0x000000DC // USB Receive Functional Address
// Endpoint 11
#define USB_O_RXHUBADDR11 0x000000DE // USB Receive Hub Address Endpoint
// 11
#define USB_O_RXHUBPORT11 0x000000DF // USB Receive Hub Port Endpoint 11
#define USB_O_TXFUNCADDR12 0x000000E0 // USB Transmit Functional Address
// Endpoint 12
#define USB_O_TXHUBADDR12 0x000000E2 // USB Transmit Hub Address
// Endpoint 12
#define USB_O_TXHUBPORT12 0x000000E3 // USB Transmit Hub Port Endpoint
// 12
#define USB_O_RXFUNCADDR12 0x000000E4 // USB Receive Functional Address
// Endpoint 12
#define USB_O_RXHUBADDR12 0x000000E6 // USB Receive Hub Address Endpoint
// 12
#define USB_O_RXHUBPORT12 0x000000E7 // USB Receive Hub Port Endpoint 12
#define USB_O_TXFUNCADDR13 0x000000E8 // USB Transmit Functional Address
// Endpoint 13
#define USB_O_TXHUBADDR13 0x000000EA // USB Transmit Hub Address
// Endpoint 13
#define USB_O_TXHUBPORT13 0x000000EB // USB Transmit Hub Port Endpoint
// 13
#define USB_O_RXFUNCADDR13 0x000000EC // USB Receive Functional Address
// Endpoint 13
#define USB_O_RXHUBADDR13 0x000000EE // USB Receive Hub Address Endpoint
// 13
#define USB_O_RXHUBPORT13 0x000000EF // USB Receive Hub Port Endpoint 13
#define USB_O_TXFUNCADDR14 0x000000F0 // USB Transmit Functional Address
// Endpoint 14
#define USB_O_TXHUBADDR14 0x000000F2 // USB Transmit Hub Address
// Endpoint 14
#define USB_O_TXHUBPORT14 0x000000F3 // USB Transmit Hub Port Endpoint
// 14
#define USB_O_RXFUNCADDR14 0x000000F4 // USB Receive Functional Address
// Endpoint 14
#define USB_O_RXHUBADDR14 0x000000F6 // USB Receive Hub Address Endpoint
// 14
#define USB_O_RXHUBPORT14 0x000000F7 // USB Receive Hub Port Endpoint 14
#define USB_O_TXFUNCADDR15 0x000000F8 // USB Transmit Functional Address
// Endpoint 15
#define USB_O_TXHUBADDR15 0x000000FA // USB Transmit Hub Address
// Endpoint 15
#define USB_O_TXHUBPORT15 0x000000FB // USB Transmit Hub Port Endpoint
// 15
#define USB_O_RXFUNCADDR15 0x000000FC // USB Receive Functional Address
// Endpoint 15
#define USB_O_RXHUBADDR15 0x000000FE // USB Receive Hub Address Endpoint
// 15
#define USB_O_RXHUBPORT15 0x000000FF // USB Receive Hub Port Endpoint 15
#define USB_O_CSRL0 0x00000102 // USB Control and Status Endpoint
// 0 Low
#define USB_O_CSRH0 0x00000103 // USB Control and Status Endpoint
// 0 High
#define USB_O_COUNT0 0x00000108 // USB Receive Byte Count Endpoint
// 0
#define USB_O_TYPE0 0x0000010A // USB Type Endpoint 0
#define USB_O_NAKLMT 0x0000010B // USB NAK Limit
#define USB_O_TXMAXP1 0x00000110 // USB Maximum Transmit Data
// Endpoint 1
#define USB_O_TXCSRL1 0x00000112 // USB Transmit Control and Status
// Endpoint 1 Low
#define USB_O_TXCSRH1 0x00000113 // USB Transmit Control and Status
// Endpoint 1 High
#define USB_O_RXMAXP1 0x00000114 // USB Maximum Receive Data
// Endpoint 1
#define USB_O_RXCSRL1 0x00000116 // USB Receive Control and Status
// Endpoint 1 Low
#define USB_O_RXCSRH1 0x00000117 // USB Receive Control and Status
// Endpoint 1 High
#define USB_O_RXCOUNT1 0x00000118 // USB Receive Byte Count Endpoint
// 1
#define USB_O_TXTYPE1 0x0000011A // USB Host Transmit Configure Type
// Endpoint 1
#define USB_O_TXINTERVAL1 0x0000011B // USB Host Transmit Interval
// Endpoint 1
#define USB_O_RXTYPE1 0x0000011C // USB Host Configure Receive Type
// Endpoint 1
#define USB_O_RXINTERVAL1 0x0000011D // USB Host Receive Polling
// Interval Endpoint 1
#define USB_O_TXMAXP2 0x00000120 // USB Maximum Transmit Data
// Endpoint 2
#define USB_O_TXCSRL2 0x00000122 // USB Transmit Control and Status
// Endpoint 2 Low
#define USB_O_TXCSRH2 0x00000123 // USB Transmit Control and Status
// Endpoint 2 High
#define USB_O_RXMAXP2 0x00000124 // USB Maximum Receive Data
// Endpoint 2
#define USB_O_RXCSRL2 0x00000126 // USB Receive Control and Status
// Endpoint 2 Low
#define USB_O_RXCSRH2 0x00000127 // USB Receive Control and Status
// Endpoint 2 High
#define USB_O_RXCOUNT2 0x00000128 // USB Receive Byte Count Endpoint
// 2
#define USB_O_TXTYPE2 0x0000012A // USB Host Transmit Configure Type
// Endpoint 2
#define USB_O_TXINTERVAL2 0x0000012B // USB Host Transmit Interval
// Endpoint 2
#define USB_O_RXTYPE2 0x0000012C // USB Host Configure Receive Type
// Endpoint 2
#define USB_O_RXINTERVAL2 0x0000012D // USB Host Receive Polling
// Interval Endpoint 2
#define USB_O_TXMAXP3 0x00000130 // USB Maximum Transmit Data
// Endpoint 3
#define USB_O_TXCSRL3 0x00000132 // USB Transmit Control and Status
// Endpoint 3 Low
#define USB_O_TXCSRH3 0x00000133 // USB Transmit Control and Status
// Endpoint 3 High
#define USB_O_RXMAXP3 0x00000134 // USB Maximum Receive Data
// Endpoint 3
#define USB_O_RXCSRL3 0x00000136 // USB Receive Control and Status
// Endpoint 3 Low
#define USB_O_RXCSRH3 0x00000137 // USB Receive Control and Status
// Endpoint 3 High
#define USB_O_RXCOUNT3 0x00000138 // USB Receive Byte Count Endpoint
// 3
#define USB_O_TXTYPE3 0x0000013A // USB Host Transmit Configure Type
// Endpoint 3
#define USB_O_TXINTERVAL3 0x0000013B // USB Host Transmit Interval
// Endpoint 3
#define USB_O_RXTYPE3 0x0000013C // USB Host Configure Receive Type
// Endpoint 3
#define USB_O_RXINTERVAL3 0x0000013D // USB Host Receive Polling
// Interval Endpoint 3
#define USB_O_TXMAXP4 0x00000140 // USB Maximum Transmit Data
// Endpoint 4
#define USB_O_TXCSRL4 0x00000142 // USB Transmit Control and Status
// Endpoint 4 Low
#define USB_O_TXCSRH4 0x00000143 // USB Transmit Control and Status
// Endpoint 4 High
#define USB_O_RXMAXP4 0x00000144 // USB Maximum Receive Data
// Endpoint 4
#define USB_O_RXCSRL4 0x00000146 // USB Receive Control and Status
// Endpoint 4 Low
#define USB_O_RXCSRH4 0x00000147 // USB Receive Control and Status
// Endpoint 4 High
#define USB_O_RXCOUNT4 0x00000148 // USB Receive Byte Count Endpoint
// 4
#define USB_O_TXTYPE4 0x0000014A // USB Host Transmit Configure Type
// Endpoint 4
#define USB_O_TXINTERVAL4 0x0000014B // USB Host Transmit Interval
// Endpoint 4
#define USB_O_RXTYPE4 0x0000014C // USB Host Configure Receive Type
// Endpoint 4
#define USB_O_RXINTERVAL4 0x0000014D // USB Host Receive Polling
// Interval Endpoint 4
#define USB_O_TXMAXP5 0x00000150 // USB Maximum Transmit Data
// Endpoint 5
#define USB_O_TXCSRL5 0x00000152 // USB Transmit Control and Status
// Endpoint 5 Low
#define USB_O_TXCSRH5 0x00000153 // USB Transmit Control and Status
// Endpoint 5 High
#define USB_O_RXMAXP5 0x00000154 // USB Maximum Receive Data
// Endpoint 5
#define USB_O_RXCSRL5 0x00000156 // USB Receive Control and Status
// Endpoint 5 Low
#define USB_O_RXCSRH5 0x00000157 // USB Receive Control and Status
// Endpoint 5 High
#define USB_O_RXCOUNT5 0x00000158 // USB Receive Byte Count Endpoint
// 5
#define USB_O_TXTYPE5 0x0000015A // USB Host Transmit Configure Type
// Endpoint 5
#define USB_O_TXINTERVAL5 0x0000015B // USB Host Transmit Interval
// Endpoint 5
#define USB_O_RXTYPE5 0x0000015C // USB Host Configure Receive Type
// Endpoint 5
#define USB_O_RXINTERVAL5 0x0000015D // USB Host Receive Polling
// Interval Endpoint 5
#define USB_O_TXMAXP6 0x00000160 // USB Maximum Transmit Data
// Endpoint 6
#define USB_O_TXCSRL6 0x00000162 // USB Transmit Control and Status
// Endpoint 6 Low
#define USB_O_TXCSRH6 0x00000163 // USB Transmit Control and Status
// Endpoint 6 High
#define USB_O_RXMAXP6 0x00000164 // USB Maximum Receive Data
// Endpoint 6
#define USB_O_RXCSRL6 0x00000166 // USB Receive Control and Status
// Endpoint 6 Low
#define USB_O_RXCSRH6 0x00000167 // USB Receive Control and Status
// Endpoint 6 High
#define USB_O_RXCOUNT6 0x00000168 // USB Receive Byte Count Endpoint
// 6
#define USB_O_TXTYPE6 0x0000016A // USB Host Transmit Configure Type
// Endpoint 6
#define USB_O_TXINTERVAL6 0x0000016B // USB Host Transmit Interval
// Endpoint 6
#define USB_O_RXTYPE6 0x0000016C // USB Host Configure Receive Type
// Endpoint 6
#define USB_O_RXINTERVAL6 0x0000016D // USB Host Receive Polling
// Interval Endpoint 6
#define USB_O_TXMAXP7 0x00000170 // USB Maximum Transmit Data
// Endpoint 7
#define USB_O_TXCSRL7 0x00000172 // USB Transmit Control and Status
// Endpoint 7 Low
#define USB_O_TXCSRH7 0x00000173 // USB Transmit Control and Status
// Endpoint 7 High
#define USB_O_RXMAXP7 0x00000174 // USB Maximum Receive Data
// Endpoint 7
#define USB_O_RXCSRL7 0x00000176 // USB Receive Control and Status
// Endpoint 7 Low
#define USB_O_RXCSRH7 0x00000177 // USB Receive Control and Status
// Endpoint 7 High
#define USB_O_RXCOUNT7 0x00000178 // USB Receive Byte Count Endpoint
// 7
#define USB_O_TXTYPE7 0x0000017A // USB Host Transmit Configure Type
// Endpoint 7
#define USB_O_TXINTERVAL7 0x0000017B // USB Host Transmit Interval
// Endpoint 7
#define USB_O_RXTYPE7 0x0000017C // USB Host Configure Receive Type
// Endpoint 7
#define USB_O_RXINTERVAL7 0x0000017D // USB Host Receive Polling
// Interval Endpoint 7
#define USB_O_TXMAXP8 0x00000180 // USB Maximum Transmit Data
// Endpoint 8
#define USB_O_TXCSRL8 0x00000182 // USB Transmit Control and Status
// Endpoint 8 Low
#define USB_O_TXCSRH8 0x00000183 // USB Transmit Control and Status
// Endpoint 8 High
#define USB_O_RXMAXP8 0x00000184 // USB Maximum Receive Data
// Endpoint 8
#define USB_O_RXCSRL8 0x00000186 // USB Receive Control and Status
// Endpoint 8 Low
#define USB_O_RXCSRH8 0x00000187 // USB Receive Control and Status
// Endpoint 8 High
#define USB_O_RXCOUNT8 0x00000188 // USB Receive Byte Count Endpoint
// 8
#define USB_O_TXTYPE8 0x0000018A // USB Host Transmit Configure Type
// Endpoint 8
#define USB_O_TXINTERVAL8 0x0000018B // USB Host Transmit Interval
// Endpoint 8
#define USB_O_RXTYPE8 0x0000018C // USB Host Configure Receive Type
// Endpoint 8
#define USB_O_RXINTERVAL8 0x0000018D // USB Host Receive Polling
// Interval Endpoint 8
#define USB_O_TXMAXP9 0x00000190 // USB Maximum Transmit Data
// Endpoint 9
#define USB_O_TXCSRL9 0x00000192 // USB Transmit Control and Status
// Endpoint 9 Low
#define USB_O_TXCSRH9 0x00000193 // USB Transmit Control and Status
// Endpoint 9 High
#define USB_O_RXMAXP9 0x00000194 // USB Maximum Receive Data
// Endpoint 9
#define USB_O_RXCSRL9 0x00000196 // USB Receive Control and Status
// Endpoint 9 Low
#define USB_O_RXCSRH9 0x00000197 // USB Receive Control and Status
// Endpoint 9 High
#define USB_O_RXCOUNT9 0x00000198 // USB Receive Byte Count Endpoint
// 9
#define USB_O_TXTYPE9 0x0000019A // USB Host Transmit Configure Type
// Endpoint 9
#define USB_O_TXINTERVAL9 0x0000019B // USB Host Transmit Interval
// Endpoint 9
#define USB_O_RXTYPE9 0x0000019C // USB Host Configure Receive Type
// Endpoint 9
#define USB_O_RXINTERVAL9 0x0000019D // USB Host Receive Polling
// Interval Endpoint 9
#define USB_O_TXMAXP10 0x000001A0 // USB Maximum Transmit Data
// Endpoint 10
#define USB_O_TXCSRL10 0x000001A2 // USB Transmit Control and Status
// Endpoint 10 Low
#define USB_O_TXCSRH10 0x000001A3 // USB Transmit Control and Status
// Endpoint 10 High
#define USB_O_RXMAXP10 0x000001A4 // USB Maximum Receive Data
// Endpoint 10
#define USB_O_RXCSRL10 0x000001A6 // USB Receive Control and Status
// Endpoint 10 Low
#define USB_O_RXCSRH10 0x000001A7 // USB Receive Control and Status
// Endpoint 10 High
#define USB_O_RXCOUNT10 0x000001A8 // USB Receive Byte Count Endpoint
// 10
#define USB_O_TXTYPE10 0x000001AA // USB Host Transmit Configure Type
// Endpoint 10
#define USB_O_TXINTERVAL10 0x000001AB // USB Host Transmit Interval
// Endpoint 10
#define USB_O_RXTYPE10 0x000001AC // USB Host Configure Receive Type
// Endpoint 10
#define USB_O_RXINTERVAL10 0x000001AD // USB Host Receive Polling
// Interval Endpoint 10
#define USB_O_TXMAXP11 0x000001B0 // USB Maximum Transmit Data
// Endpoint 11
#define USB_O_TXCSRL11 0x000001B2 // USB Transmit Control and Status
// Endpoint 11 Low
#define USB_O_TXCSRH11 0x000001B3 // USB Transmit Control and Status
// Endpoint 11 High
#define USB_O_RXMAXP11 0x000001B4 // USB Maximum Receive Data
// Endpoint 11
#define USB_O_RXCSRL11 0x000001B6 // USB Receive Control and Status
// Endpoint 11 Low
#define USB_O_RXCSRH11 0x000001B7 // USB Receive Control and Status
// Endpoint 11 High
#define USB_O_RXCOUNT11 0x000001B8 // USB Receive Byte Count Endpoint
// 11
#define USB_O_TXTYPE11 0x000001BA // USB Host Transmit Configure Type
// Endpoint 11
#define USB_O_TXINTERVAL11 0x000001BB // USB Host Transmit Interval
// Endpoint 11
#define USB_O_RXTYPE11 0x000001BC // USB Host Configure Receive Type
// Endpoint 11
#define USB_O_RXINTERVAL11 0x000001BD // USB Host Receive Polling
// Interval Endpoint 11
#define USB_O_TXMAXP12 0x000001C0 // USB Maximum Transmit Data
// Endpoint 12
#define USB_O_TXCSRL12 0x000001C2 // USB Transmit Control and Status
// Endpoint 12 Low
#define USB_O_TXCSRH12 0x000001C3 // USB Transmit Control and Status
// Endpoint 12 High
#define USB_O_RXMAXP12 0x000001C4 // USB Maximum Receive Data
// Endpoint 12
#define USB_O_RXCSRL12 0x000001C6 // USB Receive Control and Status
// Endpoint 12 Low
#define USB_O_RXCSRH12 0x000001C7 // USB Receive Control and Status
// Endpoint 12 High
#define USB_O_RXCOUNT12 0x000001C8 // USB Receive Byte Count Endpoint
// 12
#define USB_O_TXTYPE12 0x000001CA // USB Host Transmit Configure Type
// Endpoint 12
#define USB_O_TXINTERVAL12 0x000001CB // USB Host Transmit Interval
// Endpoint 12
#define USB_O_RXTYPE12 0x000001CC // USB Host Configure Receive Type
// Endpoint 12
#define USB_O_RXINTERVAL12 0x000001CD // USB Host Receive Polling
// Interval Endpoint 12
#define USB_O_TXMAXP13 0x000001D0 // USB Maximum Transmit Data
// Endpoint 13
#define USB_O_TXCSRL13 0x000001D2 // USB Transmit Control and Status
// Endpoint 13 Low
#define USB_O_TXCSRH13 0x000001D3 // USB Transmit Control and Status
// Endpoint 13 High
#define USB_O_RXMAXP13 0x000001D4 // USB Maximum Receive Data
// Endpoint 13
#define USB_O_RXCSRL13 0x000001D6 // USB Receive Control and Status
// Endpoint 13 Low
#define USB_O_RXCSRH13 0x000001D7 // USB Receive Control and Status
// Endpoint 13 High
#define USB_O_RXCOUNT13 0x000001D8 // USB Receive Byte Count Endpoint
// 13
#define USB_O_TXTYPE13 0x000001DA // USB Host Transmit Configure Type
// Endpoint 13
#define USB_O_TXINTERVAL13 0x000001DB // USB Host Transmit Interval
// Endpoint 13
#define USB_O_RXTYPE13 0x000001DC // USB Host Configure Receive Type
// Endpoint 13
#define USB_O_RXINTERVAL13 0x000001DD // USB Host Receive Polling
// Interval Endpoint 13
#define USB_O_TXMAXP14 0x000001E0 // USB Maximum Transmit Data
// Endpoint 14
#define USB_O_TXCSRL14 0x000001E2 // USB Transmit Control and Status
// Endpoint 14 Low
#define USB_O_TXCSRH14 0x000001E3 // USB Transmit Control and Status
// Endpoint 14 High
#define USB_O_RXMAXP14 0x000001E4 // USB Maximum Receive Data
// Endpoint 14
#define USB_O_RXCSRL14 0x000001E6 // USB Receive Control and Status
// Endpoint 14 Low
#define USB_O_RXCSRH14 0x000001E7 // USB Receive Control and Status
// Endpoint 14 High
#define USB_O_RXCOUNT14 0x000001E8 // USB Receive Byte Count Endpoint
// 14
#define USB_O_TXTYPE14 0x000001EA // USB Host Transmit Configure Type
// Endpoint 14
#define USB_O_TXINTERVAL14 0x000001EB // USB Host Transmit Interval
// Endpoint 14
#define USB_O_RXTYPE14 0x000001EC // USB Host Configure Receive Type
// Endpoint 14
#define USB_O_RXINTERVAL14 0x000001ED // USB Host Receive Polling
// Interval Endpoint 14
#define USB_O_TXMAXP15 0x000001F0 // USB Maximum Transmit Data
// Endpoint 15
#define USB_O_TXCSRL15 0x000001F2 // USB Transmit Control and Status
// Endpoint 15 Low
#define USB_O_TXCSRH15 0x000001F3 // USB Transmit Control and Status
// Endpoint 15 High
#define USB_O_RXMAXP15 0x000001F4 // USB Maximum Receive Data
// Endpoint 15
#define USB_O_RXCSRL15 0x000001F6 // USB Receive Control and Status
// Endpoint 15 Low
#define USB_O_RXCSRH15 0x000001F7 // USB Receive Control and Status
// Endpoint 15 High
#define USB_O_RXCOUNT15 0x000001F8 // USB Receive Byte Count Endpoint
// 15
#define USB_O_TXTYPE15 0x000001FA // USB Host Transmit Configure Type
// Endpoint 15
#define USB_O_TXINTERVAL15 0x000001FB // USB Host Transmit Interval
// Endpoint 15
#define USB_O_RXTYPE15 0x000001FC // USB Host Configure Receive Type
// Endpoint 15
#define USB_O_RXINTERVAL15 0x000001FD // USB Host Receive Polling
// Interval Endpoint 15
#define USB_O_RQPKTCOUNT1 0x00000304 // USB Request Packet Count in
// Block Transfer Endpoint 1
#define USB_O_RQPKTCOUNT2 0x00000308 // USB Request Packet Count in
// Block Transfer Endpoint 2
#define USB_O_RQPKTCOUNT3 0x0000030C // USB Request Packet Count in
// Block Transfer Endpoint 3
#define USB_O_RQPKTCOUNT4 0x00000310 // USB Request Packet Count in
// Block Transfer Endpoint 4
#define USB_O_RQPKTCOUNT5 0x00000314 // USB Request Packet Count in
// Block Transfer Endpoint 5
#define USB_O_RQPKTCOUNT6 0x00000318 // USB Request Packet Count in
// Block Transfer Endpoint 6
#define USB_O_RQPKTCOUNT7 0x0000031C // USB Request Packet Count in
// Block Transfer Endpoint 7
#define USB_O_RQPKTCOUNT8 0x00000320 // USB Request Packet Count in
// Block Transfer Endpoint 8
#define USB_O_RQPKTCOUNT9 0x00000324 // USB Request Packet Count in
// Block Transfer Endpoint 9
#define USB_O_RQPKTCOUNT10 0x00000328 // USB Request Packet Count in
// Block Transfer Endpoint 10
#define USB_O_RQPKTCOUNT11 0x0000032C // USB Request Packet Count in
// Block Transfer Endpoint 11
#define USB_O_RQPKTCOUNT12 0x00000330 // USB Request Packet Count in
// Block Transfer Endpoint 12
#define USB_O_RQPKTCOUNT13 0x00000334 // USB Request Packet Count in
// Block Transfer Endpoint 13
#define USB_O_RQPKTCOUNT14 0x00000338 // USB Request Packet Count in
// Block Transfer Endpoint 14
#define USB_O_RQPKTCOUNT15 0x0000033C // USB Request Packet Count in
// Block Transfer Endpoint 15
#define USB_O_RXDPKTBUFDIS 0x00000340 // USB Receive Double Packet Buffer
// Disable
#define USB_O_TXDPKTBUFDIS 0x00000342 // USB Transmit Double Packet
// Buffer Disable
#define USB_O_EPC 0x00000400 // USB External Power Control
#define USB_O_EPCRIS 0x00000404 // USB External Power Control Raw
// Interrupt Status
#define USB_O_EPCIM 0x00000408 // USB External Power Control
// Interrupt Mask
#define USB_O_EPCISC 0x0000040C // USB External Power Control
// Interrupt Status and Clear
#define USB_O_DRRIS 0x00000410 // USB Device RESUME Raw Interrupt
// Status
#define USB_O_DRIM 0x00000414 // USB Device RESUME Interrupt Mask
#define USB_O_DRISC 0x00000418 // USB Device RESUME Interrupt
// Status and Clear
#define USB_O_GPCS 0x0000041C // USB General-Purpose Control and
// Status
#define USB_O_VDC 0x00000430 // USB VBUS Droop Control
#define USB_O_VDCRIS 0x00000434 // USB VBUS Droop Control Raw
// Interrupt Status
#define USB_O_VDCIM 0x00000438 // USB VBUS Droop Control Interrupt
// Mask
#define USB_O_VDCISC 0x0000043C // USB VBUS Droop Control Interrupt
// Status and Clear
#define USB_O_IDVRIS 0x00000444 // USB ID Valid Detect Raw
// Interrupt Status
#define USB_O_IDVIM 0x00000448 // USB ID Valid Detect Interrupt
// Mask
#define USB_O_IDVISC 0x0000044C // USB ID Valid Detect Interrupt
// Status and Clear
#define USB_O_DMASEL 0x00000450 // USB DMA Select
#define USB_O_PP 0x00000FC0 // USB Peripheral Properties
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FADDR register.
//
//*****************************************************************************
#define USB_FADDR_M 0x0000007F // Function Address
#define USB_FADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_POWER register.
//
//*****************************************************************************
#define USB_POWER_ISOUP 0x00000080 // Isochronous Update
#define USB_POWER_SOFTCONN 0x00000040 // Soft Connect/Disconnect
#define USB_POWER_RESET 0x00000008 // RESET Signaling
#define USB_POWER_RESUME 0x00000004 // RESUME Signaling
#define USB_POWER_SUSPEND 0x00000002 // SUSPEND Mode
#define USB_POWER_PWRDNPHY 0x00000001 // Power Down PHY
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXIS register.
//
//*****************************************************************************
#define USB_TXIS_EP15 0x00008000 // TX Endpoint 15 Interrupt
#define USB_TXIS_EP14 0x00004000 // TX Endpoint 14 Interrupt
#define USB_TXIS_EP13 0x00002000 // TX Endpoint 13 Interrupt
#define USB_TXIS_EP12 0x00001000 // TX Endpoint 12 Interrupt
#define USB_TXIS_EP11 0x00000800 // TX Endpoint 11 Interrupt
#define USB_TXIS_EP10 0x00000400 // TX Endpoint 10 Interrupt
#define USB_TXIS_EP9 0x00000200 // TX Endpoint 9 Interrupt
#define USB_TXIS_EP8 0x00000100 // TX Endpoint 8 Interrupt
#define USB_TXIS_EP7 0x00000080 // TX Endpoint 7 Interrupt
#define USB_TXIS_EP6 0x00000040 // TX Endpoint 6 Interrupt
#define USB_TXIS_EP5 0x00000020 // TX Endpoint 5 Interrupt
#define USB_TXIS_EP4 0x00000010 // TX Endpoint 4 Interrupt
#define USB_TXIS_EP3 0x00000008 // TX Endpoint 3 Interrupt
#define USB_TXIS_EP2 0x00000004 // TX Endpoint 2 Interrupt
#define USB_TXIS_EP1 0x00000002 // TX Endpoint 1 Interrupt
#define USB_TXIS_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXIS register.
//
//*****************************************************************************
#define USB_RXIS_EP15 0x00008000 // RX Endpoint 15 Interrupt
#define USB_RXIS_EP14 0x00004000 // RX Endpoint 14 Interrupt
#define USB_RXIS_EP13 0x00002000 // RX Endpoint 13 Interrupt
#define USB_RXIS_EP12 0x00001000 // RX Endpoint 12 Interrupt
#define USB_RXIS_EP11 0x00000800 // RX Endpoint 11 Interrupt
#define USB_RXIS_EP10 0x00000400 // RX Endpoint 10 Interrupt
#define USB_RXIS_EP9 0x00000200 // RX Endpoint 9 Interrupt
#define USB_RXIS_EP8 0x00000100 // RX Endpoint 8 Interrupt
#define USB_RXIS_EP7 0x00000080 // RX Endpoint 7 Interrupt
#define USB_RXIS_EP6 0x00000040 // RX Endpoint 6 Interrupt
#define USB_RXIS_EP5 0x00000020 // RX Endpoint 5 Interrupt
#define USB_RXIS_EP4 0x00000010 // RX Endpoint 4 Interrupt
#define USB_RXIS_EP3 0x00000008 // RX Endpoint 3 Interrupt
#define USB_RXIS_EP2 0x00000004 // RX Endpoint 2 Interrupt
#define USB_RXIS_EP1 0x00000002 // RX Endpoint 1 Interrupt
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXIE register.
//
//*****************************************************************************
#define USB_TXIE_EP15 0x00008000 // TX Endpoint 15 Interrupt Enable
#define USB_TXIE_EP14 0x00004000 // TX Endpoint 14 Interrupt Enable
#define USB_TXIE_EP13 0x00002000 // TX Endpoint 13 Interrupt Enable
#define USB_TXIE_EP12 0x00001000 // TX Endpoint 12 Interrupt Enable
#define USB_TXIE_EP11 0x00000800 // TX Endpoint 11 Interrupt Enable
#define USB_TXIE_EP10 0x00000400 // TX Endpoint 10 Interrupt Enable
#define USB_TXIE_EP9 0x00000200 // TX Endpoint 9 Interrupt Enable
#define USB_TXIE_EP8 0x00000100 // TX Endpoint 8 Interrupt Enable
#define USB_TXIE_EP7 0x00000080 // TX Endpoint 7 Interrupt Enable
#define USB_TXIE_EP6 0x00000040 // TX Endpoint 6 Interrupt Enable
#define USB_TXIE_EP5 0x00000020 // TX Endpoint 5 Interrupt Enable
#define USB_TXIE_EP4 0x00000010 // TX Endpoint 4 Interrupt Enable
#define USB_TXIE_EP3 0x00000008 // TX Endpoint 3 Interrupt Enable
#define USB_TXIE_EP2 0x00000004 // TX Endpoint 2 Interrupt Enable
#define USB_TXIE_EP1 0x00000002 // TX Endpoint 1 Interrupt Enable
#define USB_TXIE_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
// Enable
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXIE register.
//
//*****************************************************************************
#define USB_RXIE_EP15 0x00008000 // RX Endpoint 15 Interrupt Enable
#define USB_RXIE_EP14 0x00004000 // RX Endpoint 14 Interrupt Enable
#define USB_RXIE_EP13 0x00002000 // RX Endpoint 13 Interrupt Enable
#define USB_RXIE_EP12 0x00001000 // RX Endpoint 12 Interrupt Enable
#define USB_RXIE_EP11 0x00000800 // RX Endpoint 11 Interrupt Enable
#define USB_RXIE_EP10 0x00000400 // RX Endpoint 10 Interrupt Enable
#define USB_RXIE_EP9 0x00000200 // RX Endpoint 9 Interrupt Enable
#define USB_RXIE_EP8 0x00000100 // RX Endpoint 8 Interrupt Enable
#define USB_RXIE_EP7 0x00000080 // RX Endpoint 7 Interrupt Enable
#define USB_RXIE_EP6 0x00000040 // RX Endpoint 6 Interrupt Enable
#define USB_RXIE_EP5 0x00000020 // RX Endpoint 5 Interrupt Enable
#define USB_RXIE_EP4 0x00000010 // RX Endpoint 4 Interrupt Enable
#define USB_RXIE_EP3 0x00000008 // RX Endpoint 3 Interrupt Enable
#define USB_RXIE_EP2 0x00000004 // RX Endpoint 2 Interrupt Enable
#define USB_RXIE_EP1 0x00000002 // RX Endpoint 1 Interrupt Enable
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_IS register.
//
//*****************************************************************************
#define USB_IS_VBUSERR 0x00000080 // VBUS Error
#define USB_IS_SESREQ 0x00000040 // SESSION REQUEST
#define USB_IS_DISCON 0x00000020 // Session Disconnect
#define USB_IS_CONN 0x00000010 // Session Connect
#define USB_IS_SOF 0x00000008 // Start of Frame
#define USB_IS_BABBLE 0x00000004 // Babble Detected
#define USB_IS_RESET 0x00000004 // RESET Signaling Detected
#define USB_IS_RESUME 0x00000002 // RESUME Signaling Detected
#define USB_IS_SUSPEND 0x00000001 // SUSPEND Signaling Detected
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_IE register.
//
//*****************************************************************************
#define USB_IE_VBUSERR 0x00000080 // Enable VBUS Error Interrupt
#define USB_IE_SESREQ 0x00000040 // Enable Session Request
#define USB_IE_DISCON 0x00000020 // Enable Disconnect Interrupt
#define USB_IE_CONN 0x00000010 // Enable Connect Interrupt
#define USB_IE_SOF 0x00000008 // Enable Start-of-Frame Interrupt
#define USB_IE_BABBLE 0x00000004 // Enable Babble Interrupt
#define USB_IE_RESET 0x00000004 // Enable RESET Interrupt
#define USB_IE_RESUME 0x00000002 // Enable RESUME Interrupt
#define USB_IE_SUSPND 0x00000001 // Enable SUSPEND Interrupt
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FRAME register.
//
//*****************************************************************************
#define USB_FRAME_M 0x000007FF // Frame Number
#define USB_FRAME_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_EPIDX register.
//
//*****************************************************************************
#define USB_EPIDX_EPIDX_M 0x0000000F // Endpoint Index
#define USB_EPIDX_EPIDX_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TEST register.
//
//*****************************************************************************
#define USB_TEST_FORCEH 0x00000080 // Force Host Mode
#define USB_TEST_FIFOACC 0x00000040 // FIFO Access
#define USB_TEST_FORCEFS 0x00000020 // Force Full-Speed Mode
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FIFO0 register.
//
//*****************************************************************************
#define USB_FIFO0_EPDATA_M 0xFFFFFFFF // Endpoint Data
#define USB_FIFO0_EPDATA_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FIFO1 register.
//
//*****************************************************************************
#define USB_FIFO1_EPDATA_M 0xFFFFFFFF // Endpoint Data
#define USB_FIFO1_EPDATA_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FIFO2 register.
//
//*****************************************************************************
#define USB_FIFO2_EPDATA_M 0xFFFFFFFF // Endpoint Data
#define USB_FIFO2_EPDATA_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FIFO3 register.
//
//*****************************************************************************
#define USB_FIFO3_EPDATA_M 0xFFFFFFFF // Endpoint Data
#define USB_FIFO3_EPDATA_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FIFO4 register.
//
//*****************************************************************************
#define USB_FIFO4_EPDATA_M 0xFFFFFFFF // Endpoint Data
#define USB_FIFO4_EPDATA_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FIFO5 register.
//
//*****************************************************************************
#define USB_FIFO5_EPDATA_M 0xFFFFFFFF // Endpoint Data
#define USB_FIFO5_EPDATA_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FIFO6 register.
//
//*****************************************************************************
#define USB_FIFO6_EPDATA_M 0xFFFFFFFF // Endpoint Data
#define USB_FIFO6_EPDATA_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FIFO7 register.
//
//*****************************************************************************
#define USB_FIFO7_EPDATA_M 0xFFFFFFFF // Endpoint Data
#define USB_FIFO7_EPDATA_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FIFO8 register.
//
//*****************************************************************************
#define USB_FIFO8_EPDATA_M 0xFFFFFFFF // Endpoint Data
#define USB_FIFO8_EPDATA_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FIFO9 register.
//
//*****************************************************************************
#define USB_FIFO9_EPDATA_M 0xFFFFFFFF // Endpoint Data
#define USB_FIFO9_EPDATA_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FIFO10 register.
//
//*****************************************************************************
#define USB_FIFO10_EPDATA_M 0xFFFFFFFF // Endpoint Data
#define USB_FIFO10_EPDATA_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FIFO11 register.
//
//*****************************************************************************
#define USB_FIFO11_EPDATA_M 0xFFFFFFFF // Endpoint Data
#define USB_FIFO11_EPDATA_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FIFO12 register.
//
//*****************************************************************************
#define USB_FIFO12_EPDATA_M 0xFFFFFFFF // Endpoint Data
#define USB_FIFO12_EPDATA_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FIFO13 register.
//
//*****************************************************************************
#define USB_FIFO13_EPDATA_M 0xFFFFFFFF // Endpoint Data
#define USB_FIFO13_EPDATA_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FIFO14 register.
//
//*****************************************************************************
#define USB_FIFO14_EPDATA_M 0xFFFFFFFF // Endpoint Data
#define USB_FIFO14_EPDATA_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FIFO15 register.
//
//*****************************************************************************
#define USB_FIFO15_EPDATA_M 0xFFFFFFFF // Endpoint Data
#define USB_FIFO15_EPDATA_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_DEVCTL register.
//
//*****************************************************************************
#define USB_DEVCTL_DEV 0x00000080 // Device Mode
#define USB_DEVCTL_FSDEV 0x00000040 // Full-Speed Device Detected
#define USB_DEVCTL_LSDEV 0x00000020 // Low-Speed Device Detected
#define USB_DEVCTL_VBUS_M 0x00000018 // VBUS Level
#define USB_DEVCTL_VBUS_NONE 0x00000000 // Below SessionEnd
#define USB_DEVCTL_VBUS_SEND 0x00000008 // Above SessionEnd, below AValid
#define USB_DEVCTL_VBUS_AVALID 0x00000010 // Above AValid, below VBUSValid
#define USB_DEVCTL_VBUS_VALID 0x00000018 // Above VBUSValid
#define USB_DEVCTL_HOST 0x00000004 // Host Mode
#define USB_DEVCTL_HOSTREQ 0x00000002 // Host Request
#define USB_DEVCTL_SESSION 0x00000001 // Session Start/End
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFIFOSZ register.
//
//*****************************************************************************
#define USB_TXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
#define USB_TXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
#define USB_TXFIFOSZ_SIZE_8 0x00000000 // 8
#define USB_TXFIFOSZ_SIZE_16 0x00000001 // 16
#define USB_TXFIFOSZ_SIZE_32 0x00000002 // 32
#define USB_TXFIFOSZ_SIZE_64 0x00000003 // 64
#define USB_TXFIFOSZ_SIZE_128 0x00000004 // 128
#define USB_TXFIFOSZ_SIZE_256 0x00000005 // 256
#define USB_TXFIFOSZ_SIZE_512 0x00000006 // 512
#define USB_TXFIFOSZ_SIZE_1024 0x00000007 // 1024
#define USB_TXFIFOSZ_SIZE_2048 0x00000008 // 2048
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFIFOSZ register.
//
//*****************************************************************************
#define USB_RXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
#define USB_RXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
#define USB_RXFIFOSZ_SIZE_8 0x00000000 // 8
#define USB_RXFIFOSZ_SIZE_16 0x00000001 // 16
#define USB_RXFIFOSZ_SIZE_32 0x00000002 // 32
#define USB_RXFIFOSZ_SIZE_64 0x00000003 // 64
#define USB_RXFIFOSZ_SIZE_128 0x00000004 // 128
#define USB_RXFIFOSZ_SIZE_256 0x00000005 // 256
#define USB_RXFIFOSZ_SIZE_512 0x00000006 // 512
#define USB_RXFIFOSZ_SIZE_1024 0x00000007 // 1024
#define USB_RXFIFOSZ_SIZE_2048 0x00000008 // 2048
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFIFOADD
// register.
//
//*****************************************************************************
#define USB_TXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
#define USB_TXFIFOADD_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFIFOADD
// register.
//
//*****************************************************************************
#define USB_RXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
#define USB_RXFIFOADD_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_CONTIM register.
//
//*****************************************************************************
#define USB_CONTIM_WTCON_M 0x000000F0 // Connect Wait
#define USB_CONTIM_WTID_M 0x0000000F // Wait ID
#define USB_CONTIM_WTCON_S 4
#define USB_CONTIM_WTID_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_VPLEN register.
//
//*****************************************************************************
#define USB_VPLEN_VPLEN_M 0x000000FF // VBUS Pulse Length
#define USB_VPLEN_VPLEN_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_FSEOF register.
//
//*****************************************************************************
#define USB_FSEOF_FSEOFG_M 0x000000FF // Full-Speed End-of-Frame Gap
#define USB_FSEOF_FSEOFG_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_LSEOF register.
//
//*****************************************************************************
#define USB_LSEOF_LSEOFG_M 0x000000FF // Low-Speed End-of-Frame Gap
#define USB_LSEOF_LSEOFG_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR0
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR0_ADDR_M 0x0000007F // Device Address
#define USB_TXFUNCADDR0_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR0
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR0_ADDR_M 0x0000007F // Hub Address
#define USB_TXHUBADDR0_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT0
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT0_PORT_M 0x0000007F // Hub Port
#define USB_TXHUBPORT0_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR1
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR1_ADDR_M 0x0000007F // Device Address
#define USB_TXFUNCADDR1_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR1
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR1_ADDR_M 0x0000007F // Hub Address
#define USB_TXHUBADDR1_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT1
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT1_PORT_M 0x0000007F // Hub Port
#define USB_TXHUBPORT1_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFUNCADDR1
// register.
//
//*****************************************************************************
#define USB_RXFUNCADDR1_ADDR_M 0x0000007F // Device Address
#define USB_RXFUNCADDR1_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR1
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR1_ADDR_M 0x0000007F // Hub Address
#define USB_RXHUBADDR1_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT1
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT1_PORT_M 0x0000007F // Hub Port
#define USB_RXHUBPORT1_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR2
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR2_ADDR_M 0x0000007F // Device Address
#define USB_TXFUNCADDR2_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR2
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR2_ADDR_M 0x0000007F // Hub Address
#define USB_TXHUBADDR2_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT2
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT2_PORT_M 0x0000007F // Hub Port
#define USB_TXHUBPORT2_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFUNCADDR2
// register.
//
//*****************************************************************************
#define USB_RXFUNCADDR2_ADDR_M 0x0000007F // Device Address
#define USB_RXFUNCADDR2_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR2
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR2_ADDR_M 0x0000007F // Hub Address
#define USB_RXHUBADDR2_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT2
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT2_PORT_M 0x0000007F // Hub Port
#define USB_RXHUBPORT2_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR3
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR3_ADDR_M 0x0000007F // Device Address
#define USB_TXFUNCADDR3_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR3
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR3_ADDR_M 0x0000007F // Hub Address
#define USB_TXHUBADDR3_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT3
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT3_PORT_M 0x0000007F // Hub Port
#define USB_TXHUBPORT3_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFUNCADDR3
// register.
//
//*****************************************************************************
#define USB_RXFUNCADDR3_ADDR_M 0x0000007F // Device Address
#define USB_RXFUNCADDR3_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR3
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR3_ADDR_M 0x0000007F // Hub Address
#define USB_RXHUBADDR3_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT3
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT3_PORT_M 0x0000007F // Hub Port
#define USB_RXHUBPORT3_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR4
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR4_ADDR_M 0x0000007F // Device Address
#define USB_TXFUNCADDR4_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR4
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR4_ADDR_M 0x0000007F // Hub Address
#define USB_TXHUBADDR4_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT4
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT4_PORT_M 0x0000007F // Hub Port
#define USB_TXHUBPORT4_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFUNCADDR4
// register.
//
//*****************************************************************************
#define USB_RXFUNCADDR4_ADDR_M 0x0000007F // Device Address
#define USB_RXFUNCADDR4_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR4
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR4_ADDR_M 0x0000007F // Hub Address
#define USB_RXHUBADDR4_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT4
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT4_PORT_M 0x0000007F // Hub Port
#define USB_RXHUBPORT4_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR5
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR5_ADDR_M 0x0000007F // Device Address
#define USB_TXFUNCADDR5_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR5
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR5_ADDR_M 0x0000007F // Hub Address
#define USB_TXHUBADDR5_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT5
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT5_PORT_M 0x0000007F // Hub Port
#define USB_TXHUBPORT5_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFUNCADDR5
// register.
//
//*****************************************************************************
#define USB_RXFUNCADDR5_ADDR_M 0x0000007F // Device Address
#define USB_RXFUNCADDR5_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR5
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR5_ADDR_M 0x0000007F // Hub Address
#define USB_RXHUBADDR5_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT5
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT5_PORT_M 0x0000007F // Hub Port
#define USB_RXHUBPORT5_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR6
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR6_ADDR_M 0x0000007F // Device Address
#define USB_TXFUNCADDR6_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR6
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR6_ADDR_M 0x0000007F // Hub Address
#define USB_TXHUBADDR6_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT6
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT6_PORT_M 0x0000007F // Hub Port
#define USB_TXHUBPORT6_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFUNCADDR6
// register.
//
//*****************************************************************************
#define USB_RXFUNCADDR6_ADDR_M 0x0000007F // Device Address
#define USB_RXFUNCADDR6_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR6
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR6_ADDR_M 0x0000007F // Hub Address
#define USB_RXHUBADDR6_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT6
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT6_PORT_M 0x0000007F // Hub Port
#define USB_RXHUBPORT6_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR7
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR7_ADDR_M 0x0000007F // Device Address
#define USB_TXFUNCADDR7_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR7
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR7_ADDR_M 0x0000007F // Hub Address
#define USB_TXHUBADDR7_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT7
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT7_PORT_M 0x0000007F // Hub Port
#define USB_TXHUBPORT7_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFUNCADDR7
// register.
//
//*****************************************************************************
#define USB_RXFUNCADDR7_ADDR_M 0x0000007F // Device Address
#define USB_RXFUNCADDR7_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR7
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR7_ADDR_M 0x0000007F // Hub Address
#define USB_RXHUBADDR7_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT7
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT7_PORT_M 0x0000007F // Hub Port
#define USB_RXHUBPORT7_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR8
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR8_ADDR_M 0x0000007F // Device Address
#define USB_TXFUNCADDR8_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR8
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR8_ADDR_M 0x0000007F // Hub Address
#define USB_TXHUBADDR8_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT8
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT8_PORT_M 0x0000007F // Hub Port
#define USB_TXHUBPORT8_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFUNCADDR8
// register.
//
//*****************************************************************************
#define USB_RXFUNCADDR8_ADDR_M 0x0000007F // Device Address
#define USB_RXFUNCADDR8_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR8
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR8_ADDR_M 0x0000007F // Hub Address
#define USB_RXHUBADDR8_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT8
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT8_PORT_M 0x0000007F // Hub Port
#define USB_RXHUBPORT8_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR9
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR9_ADDR_M 0x0000007F // Device Address
#define USB_TXFUNCADDR9_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR9
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR9_ADDR_M 0x0000007F // Hub Address
#define USB_TXHUBADDR9_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT9
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT9_PORT_M 0x0000007F // Hub Port
#define USB_TXHUBPORT9_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFUNCADDR9
// register.
//
//*****************************************************************************
#define USB_RXFUNCADDR9_ADDR_M 0x0000007F // Device Address
#define USB_RXFUNCADDR9_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR9
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR9_ADDR_M 0x0000007F // Hub Address
#define USB_RXHUBADDR9_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT9
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT9_PORT_M 0x0000007F // Hub Port
#define USB_RXHUBPORT9_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR10
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR10_ADDR_M 0x0000007F // Device Address
#define USB_TXFUNCADDR10_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR10
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR10_ADDR_M 0x0000007F // Hub Address
#define USB_TXHUBADDR10_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT10
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT10_PORT_M 0x0000007F // Hub Port
#define USB_TXHUBPORT10_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFUNCADDR10
// register.
//
//*****************************************************************************
#define USB_RXFUNCADDR10_ADDR_M 0x0000007F // Device Address
#define USB_RXFUNCADDR10_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR10
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR10_ADDR_M 0x0000007F // Hub Address
#define USB_RXHUBADDR10_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT10
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT10_PORT_M 0x0000007F // Hub Port
#define USB_RXHUBPORT10_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR11
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR11_ADDR_M 0x0000007F // Device Address
#define USB_TXFUNCADDR11_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR11
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR11_ADDR_M 0x0000007F // Hub Address
#define USB_TXHUBADDR11_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT11
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT11_PORT_M 0x0000007F // Hub Port
#define USB_TXHUBPORT11_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFUNCADDR11
// register.
//
//*****************************************************************************
#define USB_RXFUNCADDR11_ADDR_M 0x0000007F // Device Address
#define USB_RXFUNCADDR11_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR11
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR11_ADDR_M 0x0000007F // Hub Address
#define USB_RXHUBADDR11_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT11
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT11_PORT_M 0x0000007F // Hub Port
#define USB_RXHUBPORT11_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR12
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR12_ADDR_M 0x0000007F // Device Address
#define USB_TXFUNCADDR12_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR12
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR12_ADDR_M 0x0000007F // Hub Address
#define USB_TXHUBADDR12_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT12
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT12_PORT_M 0x0000007F // Hub Port
#define USB_TXHUBPORT12_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFUNCADDR12
// register.
//
//*****************************************************************************
#define USB_RXFUNCADDR12_ADDR_M 0x0000007F // Device Address
#define USB_RXFUNCADDR12_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR12
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR12_ADDR_M 0x0000007F // Hub Address
#define USB_RXHUBADDR12_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT12
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT12_PORT_M 0x0000007F // Hub Port
#define USB_RXHUBPORT12_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR13
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR13_ADDR_M 0x0000007F // Device Address
#define USB_TXFUNCADDR13_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR13
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR13_ADDR_M 0x0000007F // Hub Address
#define USB_TXHUBADDR13_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT13
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT13_PORT_M 0x0000007F // Hub Port
#define USB_TXHUBPORT13_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFUNCADDR13
// register.
//
//*****************************************************************************
#define USB_RXFUNCADDR13_ADDR_M 0x0000007F // Device Address
#define USB_RXFUNCADDR13_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR13
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR13_ADDR_M 0x0000007F // Hub Address
#define USB_RXHUBADDR13_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT13
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT13_PORT_M 0x0000007F // Hub Port
#define USB_RXHUBPORT13_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR14
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR14_ADDR_M 0x0000007F // Device Address
#define USB_TXFUNCADDR14_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR14
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR14_ADDR_M 0x0000007F // Hub Address
#define USB_TXHUBADDR14_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT14
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT14_PORT_M 0x0000007F // Hub Port
#define USB_TXHUBPORT14_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFUNCADDR14
// register.
//
//*****************************************************************************
#define USB_RXFUNCADDR14_ADDR_M 0x0000007F // Device Address
#define USB_RXFUNCADDR14_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR14
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR14_ADDR_M 0x0000007F // Hub Address
#define USB_RXHUBADDR14_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT14
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT14_PORT_M 0x0000007F // Hub Port
#define USB_RXHUBPORT14_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR15
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR15_ADDR_M 0x0000007F // Device Address
#define USB_TXFUNCADDR15_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR15
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR15_ADDR_M 0x0000007F // Hub Address
#define USB_TXHUBADDR15_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT15
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT15_PORT_M 0x0000007F // Hub Port
#define USB_TXHUBPORT15_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFUNCADDR15
// register.
//
//*****************************************************************************
#define USB_RXFUNCADDR15_ADDR_M 0x0000007F // Device Address
#define USB_RXFUNCADDR15_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR15
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR15_ADDR_M 0x0000007F // Hub Address
#define USB_RXHUBADDR15_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT15
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT15_PORT_M 0x0000007F // Hub Port
#define USB_RXHUBPORT15_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_CSRL0 register.
//
//*****************************************************************************
#define USB_CSRL0_NAKTO 0x00000080 // NAK Timeout
#define USB_CSRL0_SETENDC 0x00000080 // Setup End Clear
#define USB_CSRL0_STATUS 0x00000040 // STATUS Packet
#define USB_CSRL0_RXRDYC 0x00000040 // RXRDY Clear
#define USB_CSRL0_REQPKT 0x00000020 // Request Packet
#define USB_CSRL0_STALL 0x00000020 // Send Stall
#define USB_CSRL0_SETEND 0x00000010 // Setup End
#define USB_CSRL0_ERROR 0x00000010 // Error
#define USB_CSRL0_DATAEND 0x00000008 // Data End
#define USB_CSRL0_SETUP 0x00000008 // Setup Packet
#define USB_CSRL0_STALLED 0x00000004 // Endpoint Stalled
#define USB_CSRL0_TXRDY 0x00000002 // Transmit Packet Ready
#define USB_CSRL0_RXRDY 0x00000001 // Receive Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_CSRH0 register.
//
//*****************************************************************************
#define USB_CSRH0_DTWE 0x00000004 // Data Toggle Write Enable
#define USB_CSRH0_DT 0x00000002 // Data Toggle
#define USB_CSRH0_FLUSH 0x00000001 // Flush FIFO
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_COUNT0 register.
//
//*****************************************************************************
#define USB_COUNT0_COUNT_M 0x0000007F // FIFO Count
#define USB_COUNT0_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TYPE0 register.
//
//*****************************************************************************
#define USB_TYPE0_SPEED_M 0x000000C0 // Operating Speed
#define USB_TYPE0_SPEED_FULL 0x00000080 // Full
#define USB_TYPE0_SPEED_LOW 0x000000C0 // Low
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_NAKLMT register.
//
//*****************************************************************************
#define USB_NAKLMT_NAKLMT_M 0x0000001F // EP0 NAK Limit
#define USB_NAKLMT_NAKLMT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXMAXP1 register.
//
//*****************************************************************************
#define USB_TXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_TXMAXP1_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRL1 register.
//
//*****************************************************************************
#define USB_TXCSRL1_NAKTO 0x00000080 // NAK Timeout
#define USB_TXCSRL1_CLRDT 0x00000040 // Clear Data Toggle
#define USB_TXCSRL1_STALLED 0x00000020 // Endpoint Stalled
#define USB_TXCSRL1_STALL 0x00000010 // Send STALL
#define USB_TXCSRL1_SETUP 0x00000010 // Setup Packet
#define USB_TXCSRL1_FLUSH 0x00000008 // Flush FIFO
#define USB_TXCSRL1_ERROR 0x00000004 // Error
#define USB_TXCSRL1_UNDRN 0x00000004 // Underrun
#define USB_TXCSRL1_FIFONE 0x00000002 // FIFO Not Empty
#define USB_TXCSRL1_TXRDY 0x00000001 // Transmit Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRH1 register.
//
//*****************************************************************************
#define USB_TXCSRH1_AUTOSET 0x00000080 // Auto Set
#define USB_TXCSRH1_ISO 0x00000040 // Isochronous Transfers
#define USB_TXCSRH1_MODE 0x00000020 // Mode
#define USB_TXCSRH1_DMAEN 0x00000010 // DMA Request Enable
#define USB_TXCSRH1_FDT 0x00000008 // Force Data Toggle
#define USB_TXCSRH1_DMAMOD 0x00000004 // DMA Request Mode
#define USB_TXCSRH1_DTWE 0x00000002 // Data Toggle Write Enable
#define USB_TXCSRH1_DT 0x00000001 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXMAXP1 register.
//
//*****************************************************************************
#define USB_RXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_RXMAXP1_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRL1 register.
//
//*****************************************************************************
#define USB_RXCSRL1_CLRDT 0x00000080 // Clear Data Toggle
#define USB_RXCSRL1_STALLED 0x00000040 // Endpoint Stalled
#define USB_RXCSRL1_STALL 0x00000020 // Send STALL
#define USB_RXCSRL1_REQPKT 0x00000020 // Request Packet
#define USB_RXCSRL1_FLUSH 0x00000010 // Flush FIFO
#define USB_RXCSRL1_DATAERR 0x00000008 // Data Error
#define USB_RXCSRL1_NAKTO 0x00000008 // NAK Timeout
#define USB_RXCSRL1_OVER 0x00000004 // Overrun
#define USB_RXCSRL1_ERROR 0x00000004 // Error
#define USB_RXCSRL1_FULL 0x00000002 // FIFO Full
#define USB_RXCSRL1_RXRDY 0x00000001 // Receive Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRH1 register.
//
//*****************************************************************************
#define USB_RXCSRH1_AUTOCL 0x00000080 // Auto Clear
#define USB_RXCSRH1_AUTORQ 0x00000040 // Auto Request
#define USB_RXCSRH1_ISO 0x00000040 // Isochronous Transfers
#define USB_RXCSRH1_DMAEN 0x00000020 // DMA Request Enable
#define USB_RXCSRH1_DISNYET 0x00000010 // Disable NYET
#define USB_RXCSRH1_PIDERR 0x00000010 // PID Error
#define USB_RXCSRH1_DMAMOD 0x00000008 // DMA Request Mode
#define USB_RXCSRH1_DTWE 0x00000004 // Data Toggle Write Enable
#define USB_RXCSRH1_DT 0x00000002 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCOUNT1 register.
//
//*****************************************************************************
#define USB_RXCOUNT1_COUNT_M 0x00001FFF // Receive Packet Count
#define USB_RXCOUNT1_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXTYPE1 register.
//
//*****************************************************************************
#define USB_TXTYPE1_SPEED_M 0x000000C0 // Operating Speed
#define USB_TXTYPE1_SPEED_DFLT 0x00000000 // Default
#define USB_TXTYPE1_SPEED_FULL 0x00000080 // Full
#define USB_TXTYPE1_SPEED_LOW 0x000000C0 // Low
#define USB_TXTYPE1_PROTO_M 0x00000030 // Protocol
#define USB_TXTYPE1_PROTO_CTRL 0x00000000 // Control
#define USB_TXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
#define USB_TXTYPE1_PROTO_BULK 0x00000020 // Bulk
#define USB_TXTYPE1_PROTO_INT 0x00000030 // Interrupt
#define USB_TXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
#define USB_TXTYPE1_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXINTERVAL1
// register.
//
//*****************************************************************************
#define USB_TXINTERVAL1_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_TXINTERVAL1_TXPOLL_M \
0x000000FF // TX Polling
#define USB_TXINTERVAL1_TXPOLL_S \
0
#define USB_TXINTERVAL1_NAKLMT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXTYPE1 register.
//
//*****************************************************************************
#define USB_RXTYPE1_SPEED_M 0x000000C0 // Operating Speed
#define USB_RXTYPE1_SPEED_DFLT 0x00000000 // Default
#define USB_RXTYPE1_SPEED_FULL 0x00000080 // Full
#define USB_RXTYPE1_SPEED_LOW 0x000000C0 // Low
#define USB_RXTYPE1_PROTO_M 0x00000030 // Protocol
#define USB_RXTYPE1_PROTO_CTRL 0x00000000 // Control
#define USB_RXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
#define USB_RXTYPE1_PROTO_BULK 0x00000020 // Bulk
#define USB_RXTYPE1_PROTO_INT 0x00000030 // Interrupt
#define USB_RXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
#define USB_RXTYPE1_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXINTERVAL1
// register.
//
//*****************************************************************************
#define USB_RXINTERVAL1_TXPOLL_M \
0x000000FF // RX Polling
#define USB_RXINTERVAL1_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_RXINTERVAL1_TXPOLL_S \
0
#define USB_RXINTERVAL1_NAKLMT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXMAXP2 register.
//
//*****************************************************************************
#define USB_TXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_TXMAXP2_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRL2 register.
//
//*****************************************************************************
#define USB_TXCSRL2_NAKTO 0x00000080 // NAK Timeout
#define USB_TXCSRL2_CLRDT 0x00000040 // Clear Data Toggle
#define USB_TXCSRL2_STALLED 0x00000020 // Endpoint Stalled
#define USB_TXCSRL2_SETUP 0x00000010 // Setup Packet
#define USB_TXCSRL2_STALL 0x00000010 // Send STALL
#define USB_TXCSRL2_FLUSH 0x00000008 // Flush FIFO
#define USB_TXCSRL2_ERROR 0x00000004 // Error
#define USB_TXCSRL2_UNDRN 0x00000004 // Underrun
#define USB_TXCSRL2_FIFONE 0x00000002 // FIFO Not Empty
#define USB_TXCSRL2_TXRDY 0x00000001 // Transmit Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRH2 register.
//
//*****************************************************************************
#define USB_TXCSRH2_AUTOSET 0x00000080 // Auto Set
#define USB_TXCSRH2_ISO 0x00000040 // Isochronous Transfers
#define USB_TXCSRH2_MODE 0x00000020 // Mode
#define USB_TXCSRH2_DMAEN 0x00000010 // DMA Request Enable
#define USB_TXCSRH2_FDT 0x00000008 // Force Data Toggle
#define USB_TXCSRH2_DMAMOD 0x00000004 // DMA Request Mode
#define USB_TXCSRH2_DTWE 0x00000002 // Data Toggle Write Enable
#define USB_TXCSRH2_DT 0x00000001 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXMAXP2 register.
//
//*****************************************************************************
#define USB_RXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_RXMAXP2_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRL2 register.
//
//*****************************************************************************
#define USB_RXCSRL2_CLRDT 0x00000080 // Clear Data Toggle
#define USB_RXCSRL2_STALLED 0x00000040 // Endpoint Stalled
#define USB_RXCSRL2_REQPKT 0x00000020 // Request Packet
#define USB_RXCSRL2_STALL 0x00000020 // Send STALL
#define USB_RXCSRL2_FLUSH 0x00000010 // Flush FIFO
#define USB_RXCSRL2_DATAERR 0x00000008 // Data Error
#define USB_RXCSRL2_NAKTO 0x00000008 // NAK Timeout
#define USB_RXCSRL2_ERROR 0x00000004 // Error
#define USB_RXCSRL2_OVER 0x00000004 // Overrun
#define USB_RXCSRL2_FULL 0x00000002 // FIFO Full
#define USB_RXCSRL2_RXRDY 0x00000001 // Receive Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRH2 register.
//
//*****************************************************************************
#define USB_RXCSRH2_AUTOCL 0x00000080 // Auto Clear
#define USB_RXCSRH2_AUTORQ 0x00000040 // Auto Request
#define USB_RXCSRH2_ISO 0x00000040 // Isochronous Transfers
#define USB_RXCSRH2_DMAEN 0x00000020 // DMA Request Enable
#define USB_RXCSRH2_DISNYET 0x00000010 // Disable NYET
#define USB_RXCSRH2_PIDERR 0x00000010 // PID Error
#define USB_RXCSRH2_DMAMOD 0x00000008 // DMA Request Mode
#define USB_RXCSRH2_DTWE 0x00000004 // Data Toggle Write Enable
#define USB_RXCSRH2_DT 0x00000002 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCOUNT2 register.
//
//*****************************************************************************
#define USB_RXCOUNT2_COUNT_M 0x00001FFF // Receive Packet Count
#define USB_RXCOUNT2_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXTYPE2 register.
//
//*****************************************************************************
#define USB_TXTYPE2_SPEED_M 0x000000C0 // Operating Speed
#define USB_TXTYPE2_SPEED_DFLT 0x00000000 // Default
#define USB_TXTYPE2_SPEED_FULL 0x00000080 // Full
#define USB_TXTYPE2_SPEED_LOW 0x000000C0 // Low
#define USB_TXTYPE2_PROTO_M 0x00000030 // Protocol
#define USB_TXTYPE2_PROTO_CTRL 0x00000000 // Control
#define USB_TXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
#define USB_TXTYPE2_PROTO_BULK 0x00000020 // Bulk
#define USB_TXTYPE2_PROTO_INT 0x00000030 // Interrupt
#define USB_TXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
#define USB_TXTYPE2_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXINTERVAL2
// register.
//
//*****************************************************************************
#define USB_TXINTERVAL2_TXPOLL_M \
0x000000FF // TX Polling
#define USB_TXINTERVAL2_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_TXINTERVAL2_NAKLMT_S \
0
#define USB_TXINTERVAL2_TXPOLL_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXTYPE2 register.
//
//*****************************************************************************
#define USB_RXTYPE2_SPEED_M 0x000000C0 // Operating Speed
#define USB_RXTYPE2_SPEED_DFLT 0x00000000 // Default
#define USB_RXTYPE2_SPEED_FULL 0x00000080 // Full
#define USB_RXTYPE2_SPEED_LOW 0x000000C0 // Low
#define USB_RXTYPE2_PROTO_M 0x00000030 // Protocol
#define USB_RXTYPE2_PROTO_CTRL 0x00000000 // Control
#define USB_RXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
#define USB_RXTYPE2_PROTO_BULK 0x00000020 // Bulk
#define USB_RXTYPE2_PROTO_INT 0x00000030 // Interrupt
#define USB_RXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
#define USB_RXTYPE2_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXINTERVAL2
// register.
//
//*****************************************************************************
#define USB_RXINTERVAL2_TXPOLL_M \
0x000000FF // RX Polling
#define USB_RXINTERVAL2_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_RXINTERVAL2_TXPOLL_S \
0
#define USB_RXINTERVAL2_NAKLMT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXMAXP3 register.
//
//*****************************************************************************
#define USB_TXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_TXMAXP3_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRL3 register.
//
//*****************************************************************************
#define USB_TXCSRL3_NAKTO 0x00000080 // NAK Timeout
#define USB_TXCSRL3_CLRDT 0x00000040 // Clear Data Toggle
#define USB_TXCSRL3_STALLED 0x00000020 // Endpoint Stalled
#define USB_TXCSRL3_SETUP 0x00000010 // Setup Packet
#define USB_TXCSRL3_STALL 0x00000010 // Send STALL
#define USB_TXCSRL3_FLUSH 0x00000008 // Flush FIFO
#define USB_TXCSRL3_ERROR 0x00000004 // Error
#define USB_TXCSRL3_UNDRN 0x00000004 // Underrun
#define USB_TXCSRL3_FIFONE 0x00000002 // FIFO Not Empty
#define USB_TXCSRL3_TXRDY 0x00000001 // Transmit Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRH3 register.
//
//*****************************************************************************
#define USB_TXCSRH3_AUTOSET 0x00000080 // Auto Set
#define USB_TXCSRH3_ISO 0x00000040 // Isochronous Transfers
#define USB_TXCSRH3_MODE 0x00000020 // Mode
#define USB_TXCSRH3_DMAEN 0x00000010 // DMA Request Enable
#define USB_TXCSRH3_FDT 0x00000008 // Force Data Toggle
#define USB_TXCSRH3_DMAMOD 0x00000004 // DMA Request Mode
#define USB_TXCSRH3_DTWE 0x00000002 // Data Toggle Write Enable
#define USB_TXCSRH3_DT 0x00000001 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXMAXP3 register.
//
//*****************************************************************************
#define USB_RXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_RXMAXP3_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRL3 register.
//
//*****************************************************************************
#define USB_RXCSRL3_CLRDT 0x00000080 // Clear Data Toggle
#define USB_RXCSRL3_STALLED 0x00000040 // Endpoint Stalled
#define USB_RXCSRL3_STALL 0x00000020 // Send STALL
#define USB_RXCSRL3_REQPKT 0x00000020 // Request Packet
#define USB_RXCSRL3_FLUSH 0x00000010 // Flush FIFO
#define USB_RXCSRL3_DATAERR 0x00000008 // Data Error
#define USB_RXCSRL3_NAKTO 0x00000008 // NAK Timeout
#define USB_RXCSRL3_ERROR 0x00000004 // Error
#define USB_RXCSRL3_OVER 0x00000004 // Overrun
#define USB_RXCSRL3_FULL 0x00000002 // FIFO Full
#define USB_RXCSRL3_RXRDY 0x00000001 // Receive Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRH3 register.
//
//*****************************************************************************
#define USB_RXCSRH3_AUTOCL 0x00000080 // Auto Clear
#define USB_RXCSRH3_AUTORQ 0x00000040 // Auto Request
#define USB_RXCSRH3_ISO 0x00000040 // Isochronous Transfers
#define USB_RXCSRH3_DMAEN 0x00000020 // DMA Request Enable
#define USB_RXCSRH3_DISNYET 0x00000010 // Disable NYET
#define USB_RXCSRH3_PIDERR 0x00000010 // PID Error
#define USB_RXCSRH3_DMAMOD 0x00000008 // DMA Request Mode
#define USB_RXCSRH3_DTWE 0x00000004 // Data Toggle Write Enable
#define USB_RXCSRH3_DT 0x00000002 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCOUNT3 register.
//
//*****************************************************************************
#define USB_RXCOUNT3_COUNT_M 0x00001FFF // Receive Packet Count
#define USB_RXCOUNT3_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXTYPE3 register.
//
//*****************************************************************************
#define USB_TXTYPE3_SPEED_M 0x000000C0 // Operating Speed
#define USB_TXTYPE3_SPEED_DFLT 0x00000000 // Default
#define USB_TXTYPE3_SPEED_FULL 0x00000080 // Full
#define USB_TXTYPE3_SPEED_LOW 0x000000C0 // Low
#define USB_TXTYPE3_PROTO_M 0x00000030 // Protocol
#define USB_TXTYPE3_PROTO_CTRL 0x00000000 // Control
#define USB_TXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
#define USB_TXTYPE3_PROTO_BULK 0x00000020 // Bulk
#define USB_TXTYPE3_PROTO_INT 0x00000030 // Interrupt
#define USB_TXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
#define USB_TXTYPE3_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXINTERVAL3
// register.
//
//*****************************************************************************
#define USB_TXINTERVAL3_TXPOLL_M \
0x000000FF // TX Polling
#define USB_TXINTERVAL3_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_TXINTERVAL3_TXPOLL_S \
0
#define USB_TXINTERVAL3_NAKLMT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXTYPE3 register.
//
//*****************************************************************************
#define USB_RXTYPE3_SPEED_M 0x000000C0 // Operating Speed
#define USB_RXTYPE3_SPEED_DFLT 0x00000000 // Default
#define USB_RXTYPE3_SPEED_FULL 0x00000080 // Full
#define USB_RXTYPE3_SPEED_LOW 0x000000C0 // Low
#define USB_RXTYPE3_PROTO_M 0x00000030 // Protocol
#define USB_RXTYPE3_PROTO_CTRL 0x00000000 // Control
#define USB_RXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
#define USB_RXTYPE3_PROTO_BULK 0x00000020 // Bulk
#define USB_RXTYPE3_PROTO_INT 0x00000030 // Interrupt
#define USB_RXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
#define USB_RXTYPE3_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXINTERVAL3
// register.
//
//*****************************************************************************
#define USB_RXINTERVAL3_TXPOLL_M \
0x000000FF // RX Polling
#define USB_RXINTERVAL3_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_RXINTERVAL3_TXPOLL_S \
0
#define USB_RXINTERVAL3_NAKLMT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXMAXP4 register.
//
//*****************************************************************************
#define USB_TXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_TXMAXP4_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRL4 register.
//
//*****************************************************************************
#define USB_TXCSRL4_NAKTO 0x00000080 // NAK Timeout
#define USB_TXCSRL4_CLRDT 0x00000040 // Clear Data Toggle
#define USB_TXCSRL4_STALLED 0x00000020 // Endpoint Stalled
#define USB_TXCSRL4_SETUP 0x00000010 // Setup Packet
#define USB_TXCSRL4_STALL 0x00000010 // Send STALL
#define USB_TXCSRL4_FLUSH 0x00000008 // Flush FIFO
#define USB_TXCSRL4_ERROR 0x00000004 // Error
#define USB_TXCSRL4_UNDRN 0x00000004 // Underrun
#define USB_TXCSRL4_FIFONE 0x00000002 // FIFO Not Empty
#define USB_TXCSRL4_TXRDY 0x00000001 // Transmit Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRH4 register.
//
//*****************************************************************************
#define USB_TXCSRH4_AUTOSET 0x00000080 // Auto Set
#define USB_TXCSRH4_ISO 0x00000040 // Isochronous Transfers
#define USB_TXCSRH4_MODE 0x00000020 // Mode
#define USB_TXCSRH4_DMAEN 0x00000010 // DMA Request Enable
#define USB_TXCSRH4_FDT 0x00000008 // Force Data Toggle
#define USB_TXCSRH4_DMAMOD 0x00000004 // DMA Request Mode
#define USB_TXCSRH4_DTWE 0x00000002 // Data Toggle Write Enable
#define USB_TXCSRH4_DT 0x00000001 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXMAXP4 register.
//
//*****************************************************************************
#define USB_RXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_RXMAXP4_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRL4 register.
//
//*****************************************************************************
#define USB_RXCSRL4_CLRDT 0x00000080 // Clear Data Toggle
#define USB_RXCSRL4_STALLED 0x00000040 // Endpoint Stalled
#define USB_RXCSRL4_STALL 0x00000020 // Send STALL
#define USB_RXCSRL4_REQPKT 0x00000020 // Request Packet
#define USB_RXCSRL4_FLUSH 0x00000010 // Flush FIFO
#define USB_RXCSRL4_NAKTO 0x00000008 // NAK Timeout
#define USB_RXCSRL4_DATAERR 0x00000008 // Data Error
#define USB_RXCSRL4_OVER 0x00000004 // Overrun
#define USB_RXCSRL4_ERROR 0x00000004 // Error
#define USB_RXCSRL4_FULL 0x00000002 // FIFO Full
#define USB_RXCSRL4_RXRDY 0x00000001 // Receive Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRH4 register.
//
//*****************************************************************************
#define USB_RXCSRH4_AUTOCL 0x00000080 // Auto Clear
#define USB_RXCSRH4_AUTORQ 0x00000040 // Auto Request
#define USB_RXCSRH4_ISO 0x00000040 // Isochronous Transfers
#define USB_RXCSRH4_DMAEN 0x00000020 // DMA Request Enable
#define USB_RXCSRH4_DISNYET 0x00000010 // Disable NYET
#define USB_RXCSRH4_PIDERR 0x00000010 // PID Error
#define USB_RXCSRH4_DMAMOD 0x00000008 // DMA Request Mode
#define USB_RXCSRH4_DTWE 0x00000004 // Data Toggle Write Enable
#define USB_RXCSRH4_DT 0x00000002 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCOUNT4 register.
//
//*****************************************************************************
#define USB_RXCOUNT4_COUNT_M 0x00001FFF // Receive Packet Count
#define USB_RXCOUNT4_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXTYPE4 register.
//
//*****************************************************************************
#define USB_TXTYPE4_SPEED_M 0x000000C0 // Operating Speed
#define USB_TXTYPE4_SPEED_DFLT 0x00000000 // Default
#define USB_TXTYPE4_SPEED_FULL 0x00000080 // Full
#define USB_TXTYPE4_SPEED_LOW 0x000000C0 // Low
#define USB_TXTYPE4_PROTO_M 0x00000030 // Protocol
#define USB_TXTYPE4_PROTO_CTRL 0x00000000 // Control
#define USB_TXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
#define USB_TXTYPE4_PROTO_BULK 0x00000020 // Bulk
#define USB_TXTYPE4_PROTO_INT 0x00000030 // Interrupt
#define USB_TXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
#define USB_TXTYPE4_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXINTERVAL4
// register.
//
//*****************************************************************************
#define USB_TXINTERVAL4_TXPOLL_M \
0x000000FF // TX Polling
#define USB_TXINTERVAL4_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_TXINTERVAL4_NAKLMT_S \
0
#define USB_TXINTERVAL4_TXPOLL_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXTYPE4 register.
//
//*****************************************************************************
#define USB_RXTYPE4_SPEED_M 0x000000C0 // Operating Speed
#define USB_RXTYPE4_SPEED_DFLT 0x00000000 // Default
#define USB_RXTYPE4_SPEED_FULL 0x00000080 // Full
#define USB_RXTYPE4_SPEED_LOW 0x000000C0 // Low
#define USB_RXTYPE4_PROTO_M 0x00000030 // Protocol
#define USB_RXTYPE4_PROTO_CTRL 0x00000000 // Control
#define USB_RXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
#define USB_RXTYPE4_PROTO_BULK 0x00000020 // Bulk
#define USB_RXTYPE4_PROTO_INT 0x00000030 // Interrupt
#define USB_RXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
#define USB_RXTYPE4_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXINTERVAL4
// register.
//
//*****************************************************************************
#define USB_RXINTERVAL4_TXPOLL_M \
0x000000FF // RX Polling
#define USB_RXINTERVAL4_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_RXINTERVAL4_NAKLMT_S \
0
#define USB_RXINTERVAL4_TXPOLL_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXMAXP5 register.
//
//*****************************************************************************
#define USB_TXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_TXMAXP5_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRL5 register.
//
//*****************************************************************************
#define USB_TXCSRL5_NAKTO 0x00000080 // NAK Timeout
#define USB_TXCSRL5_CLRDT 0x00000040 // Clear Data Toggle
#define USB_TXCSRL5_STALLED 0x00000020 // Endpoint Stalled
#define USB_TXCSRL5_SETUP 0x00000010 // Setup Packet
#define USB_TXCSRL5_STALL 0x00000010 // Send STALL
#define USB_TXCSRL5_FLUSH 0x00000008 // Flush FIFO
#define USB_TXCSRL5_ERROR 0x00000004 // Error
#define USB_TXCSRL5_UNDRN 0x00000004 // Underrun
#define USB_TXCSRL5_FIFONE 0x00000002 // FIFO Not Empty
#define USB_TXCSRL5_TXRDY 0x00000001 // Transmit Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRH5 register.
//
//*****************************************************************************
#define USB_TXCSRH5_AUTOSET 0x00000080 // Auto Set
#define USB_TXCSRH5_ISO 0x00000040 // Isochronous Transfers
#define USB_TXCSRH5_MODE 0x00000020 // Mode
#define USB_TXCSRH5_DMAEN 0x00000010 // DMA Request Enable
#define USB_TXCSRH5_FDT 0x00000008 // Force Data Toggle
#define USB_TXCSRH5_DMAMOD 0x00000004 // DMA Request Mode
#define USB_TXCSRH5_DTWE 0x00000002 // Data Toggle Write Enable
#define USB_TXCSRH5_DT 0x00000001 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXMAXP5 register.
//
//*****************************************************************************
#define USB_RXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_RXMAXP5_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRL5 register.
//
//*****************************************************************************
#define USB_RXCSRL5_CLRDT 0x00000080 // Clear Data Toggle
#define USB_RXCSRL5_STALLED 0x00000040 // Endpoint Stalled
#define USB_RXCSRL5_STALL 0x00000020 // Send STALL
#define USB_RXCSRL5_REQPKT 0x00000020 // Request Packet
#define USB_RXCSRL5_FLUSH 0x00000010 // Flush FIFO
#define USB_RXCSRL5_NAKTO 0x00000008 // NAK Timeout
#define USB_RXCSRL5_DATAERR 0x00000008 // Data Error
#define USB_RXCSRL5_ERROR 0x00000004 // Error
#define USB_RXCSRL5_OVER 0x00000004 // Overrun
#define USB_RXCSRL5_FULL 0x00000002 // FIFO Full
#define USB_RXCSRL5_RXRDY 0x00000001 // Receive Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRH5 register.
//
//*****************************************************************************
#define USB_RXCSRH5_AUTOCL 0x00000080 // Auto Clear
#define USB_RXCSRH5_AUTORQ 0x00000040 // Auto Request
#define USB_RXCSRH5_ISO 0x00000040 // Isochronous Transfers
#define USB_RXCSRH5_DMAEN 0x00000020 // DMA Request Enable
#define USB_RXCSRH5_DISNYET 0x00000010 // Disable NYET
#define USB_RXCSRH5_PIDERR 0x00000010 // PID Error
#define USB_RXCSRH5_DMAMOD 0x00000008 // DMA Request Mode
#define USB_RXCSRH5_DTWE 0x00000004 // Data Toggle Write Enable
#define USB_RXCSRH5_DT 0x00000002 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCOUNT5 register.
//
//*****************************************************************************
#define USB_RXCOUNT5_COUNT_M 0x00001FFF // Receive Packet Count
#define USB_RXCOUNT5_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXTYPE5 register.
//
//*****************************************************************************
#define USB_TXTYPE5_SPEED_M 0x000000C0 // Operating Speed
#define USB_TXTYPE5_SPEED_DFLT 0x00000000 // Default
#define USB_TXTYPE5_SPEED_FULL 0x00000080 // Full
#define USB_TXTYPE5_SPEED_LOW 0x000000C0 // Low
#define USB_TXTYPE5_PROTO_M 0x00000030 // Protocol
#define USB_TXTYPE5_PROTO_CTRL 0x00000000 // Control
#define USB_TXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
#define USB_TXTYPE5_PROTO_BULK 0x00000020 // Bulk
#define USB_TXTYPE5_PROTO_INT 0x00000030 // Interrupt
#define USB_TXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
#define USB_TXTYPE5_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXINTERVAL5
// register.
//
//*****************************************************************************
#define USB_TXINTERVAL5_TXPOLL_M \
0x000000FF // TX Polling
#define USB_TXINTERVAL5_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_TXINTERVAL5_NAKLMT_S \
0
#define USB_TXINTERVAL5_TXPOLL_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXTYPE5 register.
//
//*****************************************************************************
#define USB_RXTYPE5_SPEED_M 0x000000C0 // Operating Speed
#define USB_RXTYPE5_SPEED_DFLT 0x00000000 // Default
#define USB_RXTYPE5_SPEED_FULL 0x00000080 // Full
#define USB_RXTYPE5_SPEED_LOW 0x000000C0 // Low
#define USB_RXTYPE5_PROTO_M 0x00000030 // Protocol
#define USB_RXTYPE5_PROTO_CTRL 0x00000000 // Control
#define USB_RXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
#define USB_RXTYPE5_PROTO_BULK 0x00000020 // Bulk
#define USB_RXTYPE5_PROTO_INT 0x00000030 // Interrupt
#define USB_RXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
#define USB_RXTYPE5_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXINTERVAL5
// register.
//
//*****************************************************************************
#define USB_RXINTERVAL5_TXPOLL_M \
0x000000FF // RX Polling
#define USB_RXINTERVAL5_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_RXINTERVAL5_TXPOLL_S \
0
#define USB_RXINTERVAL5_NAKLMT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXMAXP6 register.
//
//*****************************************************************************
#define USB_TXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_TXMAXP6_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRL6 register.
//
//*****************************************************************************
#define USB_TXCSRL6_NAKTO 0x00000080 // NAK Timeout
#define USB_TXCSRL6_CLRDT 0x00000040 // Clear Data Toggle
#define USB_TXCSRL6_STALLED 0x00000020 // Endpoint Stalled
#define USB_TXCSRL6_STALL 0x00000010 // Send STALL
#define USB_TXCSRL6_SETUP 0x00000010 // Setup Packet
#define USB_TXCSRL6_FLUSH 0x00000008 // Flush FIFO
#define USB_TXCSRL6_ERROR 0x00000004 // Error
#define USB_TXCSRL6_UNDRN 0x00000004 // Underrun
#define USB_TXCSRL6_FIFONE 0x00000002 // FIFO Not Empty
#define USB_TXCSRL6_TXRDY 0x00000001 // Transmit Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRH6 register.
//
//*****************************************************************************
#define USB_TXCSRH6_AUTOSET 0x00000080 // Auto Set
#define USB_TXCSRH6_ISO 0x00000040 // Isochronous Transfers
#define USB_TXCSRH6_MODE 0x00000020 // Mode
#define USB_TXCSRH6_DMAEN 0x00000010 // DMA Request Enable
#define USB_TXCSRH6_FDT 0x00000008 // Force Data Toggle
#define USB_TXCSRH6_DMAMOD 0x00000004 // DMA Request Mode
#define USB_TXCSRH6_DTWE 0x00000002 // Data Toggle Write Enable
#define USB_TXCSRH6_DT 0x00000001 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXMAXP6 register.
//
//*****************************************************************************
#define USB_RXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_RXMAXP6_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRL6 register.
//
//*****************************************************************************
#define USB_RXCSRL6_CLRDT 0x00000080 // Clear Data Toggle
#define USB_RXCSRL6_STALLED 0x00000040 // Endpoint Stalled
#define USB_RXCSRL6_REQPKT 0x00000020 // Request Packet
#define USB_RXCSRL6_STALL 0x00000020 // Send STALL
#define USB_RXCSRL6_FLUSH 0x00000010 // Flush FIFO
#define USB_RXCSRL6_NAKTO 0x00000008 // NAK Timeout
#define USB_RXCSRL6_DATAERR 0x00000008 // Data Error
#define USB_RXCSRL6_ERROR 0x00000004 // Error
#define USB_RXCSRL6_OVER 0x00000004 // Overrun
#define USB_RXCSRL6_FULL 0x00000002 // FIFO Full
#define USB_RXCSRL6_RXRDY 0x00000001 // Receive Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRH6 register.
//
//*****************************************************************************
#define USB_RXCSRH6_AUTOCL 0x00000080 // Auto Clear
#define USB_RXCSRH6_AUTORQ 0x00000040 // Auto Request
#define USB_RXCSRH6_ISO 0x00000040 // Isochronous Transfers
#define USB_RXCSRH6_DMAEN 0x00000020 // DMA Request Enable
#define USB_RXCSRH6_DISNYET 0x00000010 // Disable NYET
#define USB_RXCSRH6_PIDERR 0x00000010 // PID Error
#define USB_RXCSRH6_DMAMOD 0x00000008 // DMA Request Mode
#define USB_RXCSRH6_DTWE 0x00000004 // Data Toggle Write Enable
#define USB_RXCSRH6_DT 0x00000002 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCOUNT6 register.
//
//*****************************************************************************
#define USB_RXCOUNT6_COUNT_M 0x00001FFF // Receive Packet Count
#define USB_RXCOUNT6_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXTYPE6 register.
//
//*****************************************************************************
#define USB_TXTYPE6_SPEED_M 0x000000C0 // Operating Speed
#define USB_TXTYPE6_SPEED_DFLT 0x00000000 // Default
#define USB_TXTYPE6_SPEED_FULL 0x00000080 // Full
#define USB_TXTYPE6_SPEED_LOW 0x000000C0 // Low
#define USB_TXTYPE6_PROTO_M 0x00000030 // Protocol
#define USB_TXTYPE6_PROTO_CTRL 0x00000000 // Control
#define USB_TXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
#define USB_TXTYPE6_PROTO_BULK 0x00000020 // Bulk
#define USB_TXTYPE6_PROTO_INT 0x00000030 // Interrupt
#define USB_TXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
#define USB_TXTYPE6_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXINTERVAL6
// register.
//
//*****************************************************************************
#define USB_TXINTERVAL6_TXPOLL_M \
0x000000FF // TX Polling
#define USB_TXINTERVAL6_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_TXINTERVAL6_TXPOLL_S \
0
#define USB_TXINTERVAL6_NAKLMT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXTYPE6 register.
//
//*****************************************************************************
#define USB_RXTYPE6_SPEED_M 0x000000C0 // Operating Speed
#define USB_RXTYPE6_SPEED_DFLT 0x00000000 // Default
#define USB_RXTYPE6_SPEED_FULL 0x00000080 // Full
#define USB_RXTYPE6_SPEED_LOW 0x000000C0 // Low
#define USB_RXTYPE6_PROTO_M 0x00000030 // Protocol
#define USB_RXTYPE6_PROTO_CTRL 0x00000000 // Control
#define USB_RXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
#define USB_RXTYPE6_PROTO_BULK 0x00000020 // Bulk
#define USB_RXTYPE6_PROTO_INT 0x00000030 // Interrupt
#define USB_RXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
#define USB_RXTYPE6_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXINTERVAL6
// register.
//
//*****************************************************************************
#define USB_RXINTERVAL6_TXPOLL_M \
0x000000FF // RX Polling
#define USB_RXINTERVAL6_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_RXINTERVAL6_NAKLMT_S \
0
#define USB_RXINTERVAL6_TXPOLL_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXMAXP7 register.
//
//*****************************************************************************
#define USB_TXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_TXMAXP7_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRL7 register.
//
//*****************************************************************************
#define USB_TXCSRL7_NAKTO 0x00000080 // NAK Timeout
#define USB_TXCSRL7_CLRDT 0x00000040 // Clear Data Toggle
#define USB_TXCSRL7_STALLED 0x00000020 // Endpoint Stalled
#define USB_TXCSRL7_STALL 0x00000010 // Send STALL
#define USB_TXCSRL7_SETUP 0x00000010 // Setup Packet
#define USB_TXCSRL7_FLUSH 0x00000008 // Flush FIFO
#define USB_TXCSRL7_ERROR 0x00000004 // Error
#define USB_TXCSRL7_UNDRN 0x00000004 // Underrun
#define USB_TXCSRL7_FIFONE 0x00000002 // FIFO Not Empty
#define USB_TXCSRL7_TXRDY 0x00000001 // Transmit Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRH7 register.
//
//*****************************************************************************
#define USB_TXCSRH7_AUTOSET 0x00000080 // Auto Set
#define USB_TXCSRH7_ISO 0x00000040 // Isochronous Transfers
#define USB_TXCSRH7_MODE 0x00000020 // Mode
#define USB_TXCSRH7_DMAEN 0x00000010 // DMA Request Enable
#define USB_TXCSRH7_FDT 0x00000008 // Force Data Toggle
#define USB_TXCSRH7_DMAMOD 0x00000004 // DMA Request Mode
#define USB_TXCSRH7_DTWE 0x00000002 // Data Toggle Write Enable
#define USB_TXCSRH7_DT 0x00000001 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXMAXP7 register.
//
//*****************************************************************************
#define USB_RXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_RXMAXP7_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRL7 register.
//
//*****************************************************************************
#define USB_RXCSRL7_CLRDT 0x00000080 // Clear Data Toggle
#define USB_RXCSRL7_STALLED 0x00000040 // Endpoint Stalled
#define USB_RXCSRL7_REQPKT 0x00000020 // Request Packet
#define USB_RXCSRL7_STALL 0x00000020 // Send STALL
#define USB_RXCSRL7_FLUSH 0x00000010 // Flush FIFO
#define USB_RXCSRL7_DATAERR 0x00000008 // Data Error
#define USB_RXCSRL7_NAKTO 0x00000008 // NAK Timeout
#define USB_RXCSRL7_ERROR 0x00000004 // Error
#define USB_RXCSRL7_OVER 0x00000004 // Overrun
#define USB_RXCSRL7_FULL 0x00000002 // FIFO Full
#define USB_RXCSRL7_RXRDY 0x00000001 // Receive Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRH7 register.
//
//*****************************************************************************
#define USB_RXCSRH7_AUTOCL 0x00000080 // Auto Clear
#define USB_RXCSRH7_ISO 0x00000040 // Isochronous Transfers
#define USB_RXCSRH7_AUTORQ 0x00000040 // Auto Request
#define USB_RXCSRH7_DMAEN 0x00000020 // DMA Request Enable
#define USB_RXCSRH7_PIDERR 0x00000010 // PID Error
#define USB_RXCSRH7_DISNYET 0x00000010 // Disable NYET
#define USB_RXCSRH7_DMAMOD 0x00000008 // DMA Request Mode
#define USB_RXCSRH7_DTWE 0x00000004 // Data Toggle Write Enable
#define USB_RXCSRH7_DT 0x00000002 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCOUNT7 register.
//
//*****************************************************************************
#define USB_RXCOUNT7_COUNT_M 0x00001FFF // Receive Packet Count
#define USB_RXCOUNT7_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXTYPE7 register.
//
//*****************************************************************************
#define USB_TXTYPE7_SPEED_M 0x000000C0 // Operating Speed
#define USB_TXTYPE7_SPEED_DFLT 0x00000000 // Default
#define USB_TXTYPE7_SPEED_FULL 0x00000080 // Full
#define USB_TXTYPE7_SPEED_LOW 0x000000C0 // Low
#define USB_TXTYPE7_PROTO_M 0x00000030 // Protocol
#define USB_TXTYPE7_PROTO_CTRL 0x00000000 // Control
#define USB_TXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
#define USB_TXTYPE7_PROTO_BULK 0x00000020 // Bulk
#define USB_TXTYPE7_PROTO_INT 0x00000030 // Interrupt
#define USB_TXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
#define USB_TXTYPE7_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXINTERVAL7
// register.
//
//*****************************************************************************
#define USB_TXINTERVAL7_TXPOLL_M \
0x000000FF // TX Polling
#define USB_TXINTERVAL7_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_TXINTERVAL7_NAKLMT_S \
0
#define USB_TXINTERVAL7_TXPOLL_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXTYPE7 register.
//
//*****************************************************************************
#define USB_RXTYPE7_SPEED_M 0x000000C0 // Operating Speed
#define USB_RXTYPE7_SPEED_DFLT 0x00000000 // Default
#define USB_RXTYPE7_SPEED_FULL 0x00000080 // Full
#define USB_RXTYPE7_SPEED_LOW 0x000000C0 // Low
#define USB_RXTYPE7_PROTO_M 0x00000030 // Protocol
#define USB_RXTYPE7_PROTO_CTRL 0x00000000 // Control
#define USB_RXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
#define USB_RXTYPE7_PROTO_BULK 0x00000020 // Bulk
#define USB_RXTYPE7_PROTO_INT 0x00000030 // Interrupt
#define USB_RXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
#define USB_RXTYPE7_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXINTERVAL7
// register.
//
//*****************************************************************************
#define USB_RXINTERVAL7_TXPOLL_M \
0x000000FF // RX Polling
#define USB_RXINTERVAL7_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_RXINTERVAL7_NAKLMT_S \
0
#define USB_RXINTERVAL7_TXPOLL_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXMAXP8 register.
//
//*****************************************************************************
#define USB_TXMAXP8_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_TXMAXP8_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRL8 register.
//
//*****************************************************************************
#define USB_TXCSRL8_NAKTO 0x00000080 // NAK Timeout
#define USB_TXCSRL8_CLRDT 0x00000040 // Clear Data Toggle
#define USB_TXCSRL8_STALLED 0x00000020 // Endpoint Stalled
#define USB_TXCSRL8_STALL 0x00000010 // Send STALL
#define USB_TXCSRL8_SETUP 0x00000010 // Setup Packet
#define USB_TXCSRL8_FLUSH 0x00000008 // Flush FIFO
#define USB_TXCSRL8_ERROR 0x00000004 // Error
#define USB_TXCSRL8_UNDRN 0x00000004 // Underrun
#define USB_TXCSRL8_FIFONE 0x00000002 // FIFO Not Empty
#define USB_TXCSRL8_TXRDY 0x00000001 // Transmit Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRH8 register.
//
//*****************************************************************************
#define USB_TXCSRH8_AUTOSET 0x00000080 // Auto Set
#define USB_TXCSRH8_ISO 0x00000040 // Isochronous Transfers
#define USB_TXCSRH8_MODE 0x00000020 // Mode
#define USB_TXCSRH8_DMAEN 0x00000010 // DMA Request Enable
#define USB_TXCSRH8_FDT 0x00000008 // Force Data Toggle
#define USB_TXCSRH8_DMAMOD 0x00000004 // DMA Request Mode
#define USB_TXCSRH8_DTWE 0x00000002 // Data Toggle Write Enable
#define USB_TXCSRH8_DT 0x00000001 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXMAXP8 register.
//
//*****************************************************************************
#define USB_RXMAXP8_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_RXMAXP8_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRL8 register.
//
//*****************************************************************************
#define USB_RXCSRL8_CLRDT 0x00000080 // Clear Data Toggle
#define USB_RXCSRL8_STALLED 0x00000040 // Endpoint Stalled
#define USB_RXCSRL8_STALL 0x00000020 // Send STALL
#define USB_RXCSRL8_REQPKT 0x00000020 // Request Packet
#define USB_RXCSRL8_FLUSH 0x00000010 // Flush FIFO
#define USB_RXCSRL8_NAKTO 0x00000008 // NAK Timeout
#define USB_RXCSRL8_DATAERR 0x00000008 // Data Error
#define USB_RXCSRL8_OVER 0x00000004 // Overrun
#define USB_RXCSRL8_ERROR 0x00000004 // Error
#define USB_RXCSRL8_FULL 0x00000002 // FIFO Full
#define USB_RXCSRL8_RXRDY 0x00000001 // Receive Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRH8 register.
//
//*****************************************************************************
#define USB_RXCSRH8_AUTOCL 0x00000080 // Auto Clear
#define USB_RXCSRH8_AUTORQ 0x00000040 // Auto Request
#define USB_RXCSRH8_ISO 0x00000040 // Isochronous Transfers
#define USB_RXCSRH8_DMAEN 0x00000020 // DMA Request Enable
#define USB_RXCSRH8_DISNYET 0x00000010 // Disable NYET
#define USB_RXCSRH8_PIDERR 0x00000010 // PID Error
#define USB_RXCSRH8_DMAMOD 0x00000008 // DMA Request Mode
#define USB_RXCSRH8_DTWE 0x00000004 // Data Toggle Write Enable
#define USB_RXCSRH8_DT 0x00000002 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCOUNT8 register.
//
//*****************************************************************************
#define USB_RXCOUNT8_COUNT_M 0x00001FFF // Receive Packet Count
#define USB_RXCOUNT8_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXTYPE8 register.
//
//*****************************************************************************
#define USB_TXTYPE8_SPEED_M 0x000000C0 // Operating Speed
#define USB_TXTYPE8_SPEED_DFLT 0x00000000 // Default
#define USB_TXTYPE8_SPEED_FULL 0x00000080 // Full
#define USB_TXTYPE8_SPEED_LOW 0x000000C0 // Low
#define USB_TXTYPE8_PROTO_M 0x00000030 // Protocol
#define USB_TXTYPE8_PROTO_CTRL 0x00000000 // Control
#define USB_TXTYPE8_PROTO_ISOC 0x00000010 // Isochronous
#define USB_TXTYPE8_PROTO_BULK 0x00000020 // Bulk
#define USB_TXTYPE8_PROTO_INT 0x00000030 // Interrupt
#define USB_TXTYPE8_TEP_M 0x0000000F // Target Endpoint Number
#define USB_TXTYPE8_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXINTERVAL8
// register.
//
//*****************************************************************************
#define USB_TXINTERVAL8_TXPOLL_M \
0x000000FF // TX Polling
#define USB_TXINTERVAL8_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_TXINTERVAL8_NAKLMT_S \
0
#define USB_TXINTERVAL8_TXPOLL_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXTYPE8 register.
//
//*****************************************************************************
#define USB_RXTYPE8_SPEED_M 0x000000C0 // Operating Speed
#define USB_RXTYPE8_SPEED_DFLT 0x00000000 // Default
#define USB_RXTYPE8_SPEED_FULL 0x00000080 // Full
#define USB_RXTYPE8_SPEED_LOW 0x000000C0 // Low
#define USB_RXTYPE8_PROTO_M 0x00000030 // Protocol
#define USB_RXTYPE8_PROTO_CTRL 0x00000000 // Control
#define USB_RXTYPE8_PROTO_ISOC 0x00000010 // Isochronous
#define USB_RXTYPE8_PROTO_BULK 0x00000020 // Bulk
#define USB_RXTYPE8_PROTO_INT 0x00000030 // Interrupt
#define USB_RXTYPE8_TEP_M 0x0000000F // Target Endpoint Number
#define USB_RXTYPE8_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXINTERVAL8
// register.
//
//*****************************************************************************
#define USB_RXINTERVAL8_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_RXINTERVAL8_TXPOLL_M \
0x000000FF // RX Polling
#define USB_RXINTERVAL8_NAKLMT_S \
0
#define USB_RXINTERVAL8_TXPOLL_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXMAXP9 register.
//
//*****************************************************************************
#define USB_TXMAXP9_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_TXMAXP9_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRL9 register.
//
//*****************************************************************************
#define USB_TXCSRL9_NAKTO 0x00000080 // NAK Timeout
#define USB_TXCSRL9_CLRDT 0x00000040 // Clear Data Toggle
#define USB_TXCSRL9_STALLED 0x00000020 // Endpoint Stalled
#define USB_TXCSRL9_SETUP 0x00000010 // Setup Packet
#define USB_TXCSRL9_STALL 0x00000010 // Send STALL
#define USB_TXCSRL9_FLUSH 0x00000008 // Flush FIFO
#define USB_TXCSRL9_ERROR 0x00000004 // Error
#define USB_TXCSRL9_UNDRN 0x00000004 // Underrun
#define USB_TXCSRL9_FIFONE 0x00000002 // FIFO Not Empty
#define USB_TXCSRL9_TXRDY 0x00000001 // Transmit Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRH9 register.
//
//*****************************************************************************
#define USB_TXCSRH9_AUTOSET 0x00000080 // Auto Set
#define USB_TXCSRH9_ISO 0x00000040 // Isochronous Transfers
#define USB_TXCSRH9_MODE 0x00000020 // Mode
#define USB_TXCSRH9_DMAEN 0x00000010 // DMA Request Enable
#define USB_TXCSRH9_FDT 0x00000008 // Force Data Toggle
#define USB_TXCSRH9_DMAMOD 0x00000004 // DMA Request Mode
#define USB_TXCSRH9_DTWE 0x00000002 // Data Toggle Write Enable
#define USB_TXCSRH9_DT 0x00000001 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXMAXP9 register.
//
//*****************************************************************************
#define USB_RXMAXP9_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_RXMAXP9_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRL9 register.
//
//*****************************************************************************
#define USB_RXCSRL9_CLRDT 0x00000080 // Clear Data Toggle
#define USB_RXCSRL9_STALLED 0x00000040 // Endpoint Stalled
#define USB_RXCSRL9_STALL 0x00000020 // Send STALL
#define USB_RXCSRL9_REQPKT 0x00000020 // Request Packet
#define USB_RXCSRL9_FLUSH 0x00000010 // Flush FIFO
#define USB_RXCSRL9_DATAERR 0x00000008 // Data Error
#define USB_RXCSRL9_NAKTO 0x00000008 // NAK Timeout
#define USB_RXCSRL9_ERROR 0x00000004 // Error
#define USB_RXCSRL9_OVER 0x00000004 // Overrun
#define USB_RXCSRL9_FULL 0x00000002 // FIFO Full
#define USB_RXCSRL9_RXRDY 0x00000001 // Receive Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRH9 register.
//
//*****************************************************************************
#define USB_RXCSRH9_AUTOCL 0x00000080 // Auto Clear
#define USB_RXCSRH9_ISO 0x00000040 // Isochronous Transfers
#define USB_RXCSRH9_AUTORQ 0x00000040 // Auto Request
#define USB_RXCSRH9_DMAEN 0x00000020 // DMA Request Enable
#define USB_RXCSRH9_PIDERR 0x00000010 // PID Error
#define USB_RXCSRH9_DISNYET 0x00000010 // Disable NYET
#define USB_RXCSRH9_DMAMOD 0x00000008 // DMA Request Mode
#define USB_RXCSRH9_DTWE 0x00000004 // Data Toggle Write Enable
#define USB_RXCSRH9_DT 0x00000002 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCOUNT9 register.
//
//*****************************************************************************
#define USB_RXCOUNT9_COUNT_M 0x00001FFF // Receive Packet Count
#define USB_RXCOUNT9_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXTYPE9 register.
//
//*****************************************************************************
#define USB_TXTYPE9_SPEED_M 0x000000C0 // Operating Speed
#define USB_TXTYPE9_SPEED_DFLT 0x00000000 // Default
#define USB_TXTYPE9_SPEED_FULL 0x00000080 // Full
#define USB_TXTYPE9_SPEED_LOW 0x000000C0 // Low
#define USB_TXTYPE9_PROTO_M 0x00000030 // Protocol
#define USB_TXTYPE9_PROTO_CTRL 0x00000000 // Control
#define USB_TXTYPE9_PROTO_ISOC 0x00000010 // Isochronous
#define USB_TXTYPE9_PROTO_BULK 0x00000020 // Bulk
#define USB_TXTYPE9_PROTO_INT 0x00000030 // Interrupt
#define USB_TXTYPE9_TEP_M 0x0000000F // Target Endpoint Number
#define USB_TXTYPE9_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXINTERVAL9
// register.
//
//*****************************************************************************
#define USB_TXINTERVAL9_TXPOLL_M \
0x000000FF // TX Polling
#define USB_TXINTERVAL9_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_TXINTERVAL9_TXPOLL_S \
0
#define USB_TXINTERVAL9_NAKLMT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXTYPE9 register.
//
//*****************************************************************************
#define USB_RXTYPE9_SPEED_M 0x000000C0 // Operating Speed
#define USB_RXTYPE9_SPEED_DFLT 0x00000000 // Default
#define USB_RXTYPE9_SPEED_FULL 0x00000080 // Full
#define USB_RXTYPE9_SPEED_LOW 0x000000C0 // Low
#define USB_RXTYPE9_PROTO_M 0x00000030 // Protocol
#define USB_RXTYPE9_PROTO_CTRL 0x00000000 // Control
#define USB_RXTYPE9_PROTO_ISOC 0x00000010 // Isochronous
#define USB_RXTYPE9_PROTO_BULK 0x00000020 // Bulk
#define USB_RXTYPE9_PROTO_INT 0x00000030 // Interrupt
#define USB_RXTYPE9_TEP_M 0x0000000F // Target Endpoint Number
#define USB_RXTYPE9_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXINTERVAL9
// register.
//
//*****************************************************************************
#define USB_RXINTERVAL9_TXPOLL_M \
0x000000FF // RX Polling
#define USB_RXINTERVAL9_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_RXINTERVAL9_NAKLMT_S \
0
#define USB_RXINTERVAL9_TXPOLL_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXMAXP10 register.
//
//*****************************************************************************
#define USB_TXMAXP10_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_TXMAXP10_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRL10 register.
//
//*****************************************************************************
#define USB_TXCSRL10_NAKTO 0x00000080 // NAK Timeout
#define USB_TXCSRL10_CLRDT 0x00000040 // Clear Data Toggle
#define USB_TXCSRL10_STALLED 0x00000020 // Endpoint Stalled
#define USB_TXCSRL10_SETUP 0x00000010 // Setup Packet
#define USB_TXCSRL10_STALL 0x00000010 // Send STALL
#define USB_TXCSRL10_FLUSH 0x00000008 // Flush FIFO
#define USB_TXCSRL10_UNDRN 0x00000004 // Underrun
#define USB_TXCSRL10_ERROR 0x00000004 // Error
#define USB_TXCSRL10_FIFONE 0x00000002 // FIFO Not Empty
#define USB_TXCSRL10_TXRDY 0x00000001 // Transmit Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRH10 register.
//
//*****************************************************************************
#define USB_TXCSRH10_AUTOSET 0x00000080 // Auto Set
#define USB_TXCSRH10_ISO 0x00000040 // Isochronous Transfers
#define USB_TXCSRH10_MODE 0x00000020 // Mode
#define USB_TXCSRH10_DMAEN 0x00000010 // DMA Request Enable
#define USB_TXCSRH10_FDT 0x00000008 // Force Data Toggle
#define USB_TXCSRH10_DMAMOD 0x00000004 // DMA Request Mode
#define USB_TXCSRH10_DTWE 0x00000002 // Data Toggle Write Enable
#define USB_TXCSRH10_DT 0x00000001 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXMAXP10 register.
//
//*****************************************************************************
#define USB_RXMAXP10_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_RXMAXP10_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRL10 register.
//
//*****************************************************************************
#define USB_RXCSRL10_CLRDT 0x00000080 // Clear Data Toggle
#define USB_RXCSRL10_STALLED 0x00000040 // Endpoint Stalled
#define USB_RXCSRL10_STALL 0x00000020 // Send STALL
#define USB_RXCSRL10_REQPKT 0x00000020 // Request Packet
#define USB_RXCSRL10_FLUSH 0x00000010 // Flush FIFO
#define USB_RXCSRL10_NAKTO 0x00000008 // NAK Timeout
#define USB_RXCSRL10_DATAERR 0x00000008 // Data Error
#define USB_RXCSRL10_OVER 0x00000004 // Overrun
#define USB_RXCSRL10_ERROR 0x00000004 // Error
#define USB_RXCSRL10_FULL 0x00000002 // FIFO Full
#define USB_RXCSRL10_RXRDY 0x00000001 // Receive Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRH10 register.
//
//*****************************************************************************
#define USB_RXCSRH10_AUTOCL 0x00000080 // Auto Clear
#define USB_RXCSRH10_AUTORQ 0x00000040 // Auto Request
#define USB_RXCSRH10_ISO 0x00000040 // Isochronous Transfers
#define USB_RXCSRH10_DMAEN 0x00000020 // DMA Request Enable
#define USB_RXCSRH10_PIDERR 0x00000010 // PID Error
#define USB_RXCSRH10_DISNYET 0x00000010 // Disable NYET
#define USB_RXCSRH10_DMAMOD 0x00000008 // DMA Request Mode
#define USB_RXCSRH10_DTWE 0x00000004 // Data Toggle Write Enable
#define USB_RXCSRH10_DT 0x00000002 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCOUNT10
// register.
//
//*****************************************************************************
#define USB_RXCOUNT10_COUNT_M 0x00001FFF // Receive Packet Count
#define USB_RXCOUNT10_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXTYPE10 register.
//
//*****************************************************************************
#define USB_TXTYPE10_SPEED_M 0x000000C0 // Operating Speed
#define USB_TXTYPE10_SPEED_DFLT 0x00000000 // Default
#define USB_TXTYPE10_SPEED_FULL 0x00000080 // Full
#define USB_TXTYPE10_SPEED_LOW 0x000000C0 // Low
#define USB_TXTYPE10_PROTO_M 0x00000030 // Protocol
#define USB_TXTYPE10_PROTO_CTRL 0x00000000 // Control
#define USB_TXTYPE10_PROTO_ISOC 0x00000010 // Isochronous
#define USB_TXTYPE10_PROTO_BULK 0x00000020 // Bulk
#define USB_TXTYPE10_PROTO_INT 0x00000030 // Interrupt
#define USB_TXTYPE10_TEP_M 0x0000000F // Target Endpoint Number
#define USB_TXTYPE10_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXINTERVAL10
// register.
//
//*****************************************************************************
#define USB_TXINTERVAL10_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_TXINTERVAL10_TXPOLL_M \
0x000000FF // TX Polling
#define USB_TXINTERVAL10_TXPOLL_S \
0
#define USB_TXINTERVAL10_NAKLMT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXTYPE10 register.
//
//*****************************************************************************
#define USB_RXTYPE10_SPEED_M 0x000000C0 // Operating Speed
#define USB_RXTYPE10_SPEED_DFLT 0x00000000 // Default
#define USB_RXTYPE10_SPEED_FULL 0x00000080 // Full
#define USB_RXTYPE10_SPEED_LOW 0x000000C0 // Low
#define USB_RXTYPE10_PROTO_M 0x00000030 // Protocol
#define USB_RXTYPE10_PROTO_CTRL 0x00000000 // Control
#define USB_RXTYPE10_PROTO_ISOC 0x00000010 // Isochronous
#define USB_RXTYPE10_PROTO_BULK 0x00000020 // Bulk
#define USB_RXTYPE10_PROTO_INT 0x00000030 // Interrupt
#define USB_RXTYPE10_TEP_M 0x0000000F // Target Endpoint Number
#define USB_RXTYPE10_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXINTERVAL10
// register.
//
//*****************************************************************************
#define USB_RXINTERVAL10_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_RXINTERVAL10_TXPOLL_M \
0x000000FF // RX Polling
#define USB_RXINTERVAL10_TXPOLL_S \
0
#define USB_RXINTERVAL10_NAKLMT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXMAXP11 register.
//
//*****************************************************************************
#define USB_TXMAXP11_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_TXMAXP11_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRL11 register.
//
//*****************************************************************************
#define USB_TXCSRL11_NAKTO 0x00000080 // NAK Timeout
#define USB_TXCSRL11_CLRDT 0x00000040 // Clear Data Toggle
#define USB_TXCSRL11_STALLED 0x00000020 // Endpoint Stalled
#define USB_TXCSRL11_STALL 0x00000010 // Send STALL
#define USB_TXCSRL11_SETUP 0x00000010 // Setup Packet
#define USB_TXCSRL11_FLUSH 0x00000008 // Flush FIFO
#define USB_TXCSRL11_ERROR 0x00000004 // Error
#define USB_TXCSRL11_UNDRN 0x00000004 // Underrun
#define USB_TXCSRL11_FIFONE 0x00000002 // FIFO Not Empty
#define USB_TXCSRL11_TXRDY 0x00000001 // Transmit Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRH11 register.
//
//*****************************************************************************
#define USB_TXCSRH11_AUTOSET 0x00000080 // Auto Set
#define USB_TXCSRH11_ISO 0x00000040 // Isochronous Transfers
#define USB_TXCSRH11_MODE 0x00000020 // Mode
#define USB_TXCSRH11_DMAEN 0x00000010 // DMA Request Enable
#define USB_TXCSRH11_FDT 0x00000008 // Force Data Toggle
#define USB_TXCSRH11_DMAMOD 0x00000004 // DMA Request Mode
#define USB_TXCSRH11_DTWE 0x00000002 // Data Toggle Write Enable
#define USB_TXCSRH11_DT 0x00000001 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXMAXP11 register.
//
//*****************************************************************************
#define USB_RXMAXP11_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_RXMAXP11_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRL11 register.
//
//*****************************************************************************
#define USB_RXCSRL11_CLRDT 0x00000080 // Clear Data Toggle
#define USB_RXCSRL11_STALLED 0x00000040 // Endpoint Stalled
#define USB_RXCSRL11_STALL 0x00000020 // Send STALL
#define USB_RXCSRL11_REQPKT 0x00000020 // Request Packet
#define USB_RXCSRL11_FLUSH 0x00000010 // Flush FIFO
#define USB_RXCSRL11_DATAERR 0x00000008 // Data Error
#define USB_RXCSRL11_NAKTO 0x00000008 // NAK Timeout
#define USB_RXCSRL11_OVER 0x00000004 // Overrun
#define USB_RXCSRL11_ERROR 0x00000004 // Error
#define USB_RXCSRL11_FULL 0x00000002 // FIFO Full
#define USB_RXCSRL11_RXRDY 0x00000001 // Receive Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRH11 register.
//
//*****************************************************************************
#define USB_RXCSRH11_AUTOCL 0x00000080 // Auto Clear
#define USB_RXCSRH11_ISO 0x00000040 // Isochronous Transfers
#define USB_RXCSRH11_AUTORQ 0x00000040 // Auto Request
#define USB_RXCSRH11_DMAEN 0x00000020 // DMA Request Enable
#define USB_RXCSRH11_DISNYET 0x00000010 // Disable NYET
#define USB_RXCSRH11_PIDERR 0x00000010 // PID Error
#define USB_RXCSRH11_DMAMOD 0x00000008 // DMA Request Mode
#define USB_RXCSRH11_DTWE 0x00000004 // Data Toggle Write Enable
#define USB_RXCSRH11_DT 0x00000002 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCOUNT11
// register.
//
//*****************************************************************************
#define USB_RXCOUNT11_COUNT_M 0x00001FFF // Receive Packet Count
#define USB_RXCOUNT11_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXTYPE11 register.
//
//*****************************************************************************
#define USB_TXTYPE11_SPEED_M 0x000000C0 // Operating Speed
#define USB_TXTYPE11_SPEED_DFLT 0x00000000 // Default
#define USB_TXTYPE11_SPEED_FULL 0x00000080 // Full
#define USB_TXTYPE11_SPEED_LOW 0x000000C0 // Low
#define USB_TXTYPE11_PROTO_M 0x00000030 // Protocol
#define USB_TXTYPE11_PROTO_CTRL 0x00000000 // Control
#define USB_TXTYPE11_PROTO_ISOC 0x00000010 // Isochronous
#define USB_TXTYPE11_PROTO_BULK 0x00000020 // Bulk
#define USB_TXTYPE11_PROTO_INT 0x00000030 // Interrupt
#define USB_TXTYPE11_TEP_M 0x0000000F // Target Endpoint Number
#define USB_TXTYPE11_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXINTERVAL11
// register.
//
//*****************************************************************************
#define USB_TXINTERVAL11_TXPOLL_M \
0x000000FF // TX Polling
#define USB_TXINTERVAL11_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_TXINTERVAL11_NAKLMT_S \
0
#define USB_TXINTERVAL11_TXPOLL_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXTYPE11 register.
//
//*****************************************************************************
#define USB_RXTYPE11_SPEED_M 0x000000C0 // Operating Speed
#define USB_RXTYPE11_SPEED_DFLT 0x00000000 // Default
#define USB_RXTYPE11_SPEED_FULL 0x00000080 // Full
#define USB_RXTYPE11_SPEED_LOW 0x000000C0 // Low
#define USB_RXTYPE11_PROTO_M 0x00000030 // Protocol
#define USB_RXTYPE11_PROTO_CTRL 0x00000000 // Control
#define USB_RXTYPE11_PROTO_ISOC 0x00000010 // Isochronous
#define USB_RXTYPE11_PROTO_BULK 0x00000020 // Bulk
#define USB_RXTYPE11_PROTO_INT 0x00000030 // Interrupt
#define USB_RXTYPE11_TEP_M 0x0000000F // Target Endpoint Number
#define USB_RXTYPE11_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXINTERVAL11
// register.
//
//*****************************************************************************
#define USB_RXINTERVAL11_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_RXINTERVAL11_TXPOLL_M \
0x000000FF // RX Polling
#define USB_RXINTERVAL11_TXPOLL_S \
0
#define USB_RXINTERVAL11_NAKLMT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXMAXP12 register.
//
//*****************************************************************************
#define USB_TXMAXP12_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_TXMAXP12_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRL12 register.
//
//*****************************************************************************
#define USB_TXCSRL12_NAKTO 0x00000080 // NAK Timeout
#define USB_TXCSRL12_CLRDT 0x00000040 // Clear Data Toggle
#define USB_TXCSRL12_STALLED 0x00000020 // Endpoint Stalled
#define USB_TXCSRL12_SETUP 0x00000010 // Setup Packet
#define USB_TXCSRL12_STALL 0x00000010 // Send STALL
#define USB_TXCSRL12_FLUSH 0x00000008 // Flush FIFO
#define USB_TXCSRL12_UNDRN 0x00000004 // Underrun
#define USB_TXCSRL12_ERROR 0x00000004 // Error
#define USB_TXCSRL12_FIFONE 0x00000002 // FIFO Not Empty
#define USB_TXCSRL12_TXRDY 0x00000001 // Transmit Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRH12 register.
//
//*****************************************************************************
#define USB_TXCSRH12_AUTOSET 0x00000080 // Auto Set
#define USB_TXCSRH12_ISO 0x00000040 // Isochronous Transfers
#define USB_TXCSRH12_MODE 0x00000020 // Mode
#define USB_TXCSRH12_DMAEN 0x00000010 // DMA Request Enable
#define USB_TXCSRH12_FDT 0x00000008 // Force Data Toggle
#define USB_TXCSRH12_DMAMOD 0x00000004 // DMA Request Mode
#define USB_TXCSRH12_DTWE 0x00000002 // Data Toggle Write Enable
#define USB_TXCSRH12_DT 0x00000001 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXMAXP12 register.
//
//*****************************************************************************
#define USB_RXMAXP12_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_RXMAXP12_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRL12 register.
//
//*****************************************************************************
#define USB_RXCSRL12_CLRDT 0x00000080 // Clear Data Toggle
#define USB_RXCSRL12_STALLED 0x00000040 // Endpoint Stalled
#define USB_RXCSRL12_STALL 0x00000020 // Send STALL
#define USB_RXCSRL12_REQPKT 0x00000020 // Request Packet
#define USB_RXCSRL12_FLUSH 0x00000010 // Flush FIFO
#define USB_RXCSRL12_NAKTO 0x00000008 // NAK Timeout
#define USB_RXCSRL12_DATAERR 0x00000008 // Data Error
#define USB_RXCSRL12_ERROR 0x00000004 // Error
#define USB_RXCSRL12_OVER 0x00000004 // Overrun
#define USB_RXCSRL12_FULL 0x00000002 // FIFO Full
#define USB_RXCSRL12_RXRDY 0x00000001 // Receive Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRH12 register.
//
//*****************************************************************************
#define USB_RXCSRH12_AUTOCL 0x00000080 // Auto Clear
#define USB_RXCSRH12_ISO 0x00000040 // Isochronous Transfers
#define USB_RXCSRH12_AUTORQ 0x00000040 // Auto Request
#define USB_RXCSRH12_DMAEN 0x00000020 // DMA Request Enable
#define USB_RXCSRH12_PIDERR 0x00000010 // PID Error
#define USB_RXCSRH12_DISNYET 0x00000010 // Disable NYET
#define USB_RXCSRH12_DMAMOD 0x00000008 // DMA Request Mode
#define USB_RXCSRH12_DTWE 0x00000004 // Data Toggle Write Enable
#define USB_RXCSRH12_DT 0x00000002 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCOUNT12
// register.
//
//*****************************************************************************
#define USB_RXCOUNT12_COUNT_M 0x00001FFF // Receive Packet Count
#define USB_RXCOUNT12_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXTYPE12 register.
//
//*****************************************************************************
#define USB_TXTYPE12_SPEED_M 0x000000C0 // Operating Speed
#define USB_TXTYPE12_SPEED_DFLT 0x00000000 // Default
#define USB_TXTYPE12_SPEED_FULL 0x00000080 // Full
#define USB_TXTYPE12_SPEED_LOW 0x000000C0 // Low
#define USB_TXTYPE12_PROTO_M 0x00000030 // Protocol
#define USB_TXTYPE12_PROTO_CTRL 0x00000000 // Control
#define USB_TXTYPE12_PROTO_ISOC 0x00000010 // Isochronous
#define USB_TXTYPE12_PROTO_BULK 0x00000020 // Bulk
#define USB_TXTYPE12_PROTO_INT 0x00000030 // Interrupt
#define USB_TXTYPE12_TEP_M 0x0000000F // Target Endpoint Number
#define USB_TXTYPE12_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXINTERVAL12
// register.
//
//*****************************************************************************
#define USB_TXINTERVAL12_TXPOLL_M \
0x000000FF // TX Polling
#define USB_TXINTERVAL12_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_TXINTERVAL12_TXPOLL_S \
0
#define USB_TXINTERVAL12_NAKLMT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXTYPE12 register.
//
//*****************************************************************************
#define USB_RXTYPE12_SPEED_M 0x000000C0 // Operating Speed
#define USB_RXTYPE12_SPEED_DFLT 0x00000000 // Default
#define USB_RXTYPE12_SPEED_FULL 0x00000080 // Full
#define USB_RXTYPE12_SPEED_LOW 0x000000C0 // Low
#define USB_RXTYPE12_PROTO_M 0x00000030 // Protocol
#define USB_RXTYPE12_PROTO_CTRL 0x00000000 // Control
#define USB_RXTYPE12_PROTO_ISOC 0x00000010 // Isochronous
#define USB_RXTYPE12_PROTO_BULK 0x00000020 // Bulk
#define USB_RXTYPE12_PROTO_INT 0x00000030 // Interrupt
#define USB_RXTYPE12_TEP_M 0x0000000F // Target Endpoint Number
#define USB_RXTYPE12_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXINTERVAL12
// register.
//
//*****************************************************************************
#define USB_RXINTERVAL12_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_RXINTERVAL12_TXPOLL_M \
0x000000FF // RX Polling
#define USB_RXINTERVAL12_NAKLMT_S \
0
#define USB_RXINTERVAL12_TXPOLL_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXMAXP13 register.
//
//*****************************************************************************
#define USB_TXMAXP13_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_TXMAXP13_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRL13 register.
//
//*****************************************************************************
#define USB_TXCSRL13_NAKTO 0x00000080 // NAK Timeout
#define USB_TXCSRL13_CLRDT 0x00000040 // Clear Data Toggle
#define USB_TXCSRL13_STALLED 0x00000020 // Endpoint Stalled
#define USB_TXCSRL13_SETUP 0x00000010 // Setup Packet
#define USB_TXCSRL13_STALL 0x00000010 // Send STALL
#define USB_TXCSRL13_FLUSH 0x00000008 // Flush FIFO
#define USB_TXCSRL13_UNDRN 0x00000004 // Underrun
#define USB_TXCSRL13_ERROR 0x00000004 // Error
#define USB_TXCSRL13_FIFONE 0x00000002 // FIFO Not Empty
#define USB_TXCSRL13_TXRDY 0x00000001 // Transmit Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRH13 register.
//
//*****************************************************************************
#define USB_TXCSRH13_AUTOSET 0x00000080 // Auto Set
#define USB_TXCSRH13_ISO 0x00000040 // Isochronous Transfers
#define USB_TXCSRH13_MODE 0x00000020 // Mode
#define USB_TXCSRH13_DMAEN 0x00000010 // DMA Request Enable
#define USB_TXCSRH13_FDT 0x00000008 // Force Data Toggle
#define USB_TXCSRH13_DMAMOD 0x00000004 // DMA Request Mode
#define USB_TXCSRH13_DTWE 0x00000002 // Data Toggle Write Enable
#define USB_TXCSRH13_DT 0x00000001 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXMAXP13 register.
//
//*****************************************************************************
#define USB_RXMAXP13_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_RXMAXP13_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRL13 register.
//
//*****************************************************************************
#define USB_RXCSRL13_CLRDT 0x00000080 // Clear Data Toggle
#define USB_RXCSRL13_STALLED 0x00000040 // Endpoint Stalled
#define USB_RXCSRL13_REQPKT 0x00000020 // Request Packet
#define USB_RXCSRL13_STALL 0x00000020 // Send STALL
#define USB_RXCSRL13_FLUSH 0x00000010 // Flush FIFO
#define USB_RXCSRL13_NAKTO 0x00000008 // NAK Timeout
#define USB_RXCSRL13_DATAERR 0x00000008 // Data Error
#define USB_RXCSRL13_OVER 0x00000004 // Overrun
#define USB_RXCSRL13_ERROR 0x00000004 // Error
#define USB_RXCSRL13_FULL 0x00000002 // FIFO Full
#define USB_RXCSRL13_RXRDY 0x00000001 // Receive Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRH13 register.
//
//*****************************************************************************
#define USB_RXCSRH13_AUTOCL 0x00000080 // Auto Clear
#define USB_RXCSRH13_ISO 0x00000040 // Isochronous Transfers
#define USB_RXCSRH13_AUTORQ 0x00000040 // Auto Request
#define USB_RXCSRH13_DMAEN 0x00000020 // DMA Request Enable
#define USB_RXCSRH13_DISNYET 0x00000010 // Disable NYET
#define USB_RXCSRH13_PIDERR 0x00000010 // PID Error
#define USB_RXCSRH13_DMAMOD 0x00000008 // DMA Request Mode
#define USB_RXCSRH13_DTWE 0x00000004 // Data Toggle Write Enable
#define USB_RXCSRH13_DT 0x00000002 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCOUNT13
// register.
//
//*****************************************************************************
#define USB_RXCOUNT13_COUNT_M 0x00001FFF // Receive Packet Count
#define USB_RXCOUNT13_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXTYPE13 register.
//
//*****************************************************************************
#define USB_TXTYPE13_SPEED_M 0x000000C0 // Operating Speed
#define USB_TXTYPE13_SPEED_DFLT 0x00000000 // Default
#define USB_TXTYPE13_SPEED_FULL 0x00000080 // Full
#define USB_TXTYPE13_SPEED_LOW 0x000000C0 // Low
#define USB_TXTYPE13_PROTO_M 0x00000030 // Protocol
#define USB_TXTYPE13_PROTO_CTRL 0x00000000 // Control
#define USB_TXTYPE13_PROTO_ISOC 0x00000010 // Isochronous
#define USB_TXTYPE13_PROTO_BULK 0x00000020 // Bulk
#define USB_TXTYPE13_PROTO_INT 0x00000030 // Interrupt
#define USB_TXTYPE13_TEP_M 0x0000000F // Target Endpoint Number
#define USB_TXTYPE13_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXINTERVAL13
// register.
//
//*****************************************************************************
#define USB_TXINTERVAL13_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_TXINTERVAL13_TXPOLL_M \
0x000000FF // TX Polling
#define USB_TXINTERVAL13_TXPOLL_S \
0
#define USB_TXINTERVAL13_NAKLMT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXTYPE13 register.
//
//*****************************************************************************
#define USB_RXTYPE13_SPEED_M 0x000000C0 // Operating Speed
#define USB_RXTYPE13_SPEED_DFLT 0x00000000 // Default
#define USB_RXTYPE13_SPEED_FULL 0x00000080 // Full
#define USB_RXTYPE13_SPEED_LOW 0x000000C0 // Low
#define USB_RXTYPE13_PROTO_M 0x00000030 // Protocol
#define USB_RXTYPE13_PROTO_CTRL 0x00000000 // Control
#define USB_RXTYPE13_PROTO_ISOC 0x00000010 // Isochronous
#define USB_RXTYPE13_PROTO_BULK 0x00000020 // Bulk
#define USB_RXTYPE13_PROTO_INT 0x00000030 // Interrupt
#define USB_RXTYPE13_TEP_M 0x0000000F // Target Endpoint Number
#define USB_RXTYPE13_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXINTERVAL13
// register.
//
//*****************************************************************************
#define USB_RXINTERVAL13_TXPOLL_M \
0x000000FF // RX Polling
#define USB_RXINTERVAL13_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_RXINTERVAL13_TXPOLL_S \
0
#define USB_RXINTERVAL13_NAKLMT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXMAXP14 register.
//
//*****************************************************************************
#define USB_TXMAXP14_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_TXMAXP14_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRL14 register.
//
//*****************************************************************************
#define USB_TXCSRL14_NAKTO 0x00000080 // NAK Timeout
#define USB_TXCSRL14_CLRDT 0x00000040 // Clear Data Toggle
#define USB_TXCSRL14_STALLED 0x00000020 // Endpoint Stalled
#define USB_TXCSRL14_STALL 0x00000010 // Send STALL
#define USB_TXCSRL14_SETUP 0x00000010 // Setup Packet
#define USB_TXCSRL14_FLUSH 0x00000008 // Flush FIFO
#define USB_TXCSRL14_ERROR 0x00000004 // Error
#define USB_TXCSRL14_UNDRN 0x00000004 // Underrun
#define USB_TXCSRL14_FIFONE 0x00000002 // FIFO Not Empty
#define USB_TXCSRL14_TXRDY 0x00000001 // Transmit Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRH14 register.
//
//*****************************************************************************
#define USB_TXCSRH14_AUTOSET 0x00000080 // Auto Set
#define USB_TXCSRH14_ISO 0x00000040 // Isochronous Transfers
#define USB_TXCSRH14_MODE 0x00000020 // Mode
#define USB_TXCSRH14_DMAEN 0x00000010 // DMA Request Enable
#define USB_TXCSRH14_FDT 0x00000008 // Force Data Toggle
#define USB_TXCSRH14_DMAMOD 0x00000004 // DMA Request Mode
#define USB_TXCSRH14_DTWE 0x00000002 // Data Toggle Write Enable
#define USB_TXCSRH14_DT 0x00000001 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXMAXP14 register.
//
//*****************************************************************************
#define USB_RXMAXP14_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_RXMAXP14_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRL14 register.
//
//*****************************************************************************
#define USB_RXCSRL14_CLRDT 0x00000080 // Clear Data Toggle
#define USB_RXCSRL14_STALLED 0x00000040 // Endpoint Stalled
#define USB_RXCSRL14_REQPKT 0x00000020 // Request Packet
#define USB_RXCSRL14_STALL 0x00000020 // Send STALL
#define USB_RXCSRL14_FLUSH 0x00000010 // Flush FIFO
#define USB_RXCSRL14_DATAERR 0x00000008 // Data Error
#define USB_RXCSRL14_NAKTO 0x00000008 // NAK Timeout
#define USB_RXCSRL14_OVER 0x00000004 // Overrun
#define USB_RXCSRL14_ERROR 0x00000004 // Error
#define USB_RXCSRL14_FULL 0x00000002 // FIFO Full
#define USB_RXCSRL14_RXRDY 0x00000001 // Receive Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRH14 register.
//
//*****************************************************************************
#define USB_RXCSRH14_AUTOCL 0x00000080 // Auto Clear
#define USB_RXCSRH14_AUTORQ 0x00000040 // Auto Request
#define USB_RXCSRH14_ISO 0x00000040 // Isochronous Transfers
#define USB_RXCSRH14_DMAEN 0x00000020 // DMA Request Enable
#define USB_RXCSRH14_PIDERR 0x00000010 // PID Error
#define USB_RXCSRH14_DISNYET 0x00000010 // Disable NYET
#define USB_RXCSRH14_DMAMOD 0x00000008 // DMA Request Mode
#define USB_RXCSRH14_DTWE 0x00000004 // Data Toggle Write Enable
#define USB_RXCSRH14_DT 0x00000002 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCOUNT14
// register.
//
//*****************************************************************************
#define USB_RXCOUNT14_COUNT_M 0x00001FFF // Receive Packet Count
#define USB_RXCOUNT14_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXTYPE14 register.
//
//*****************************************************************************
#define USB_TXTYPE14_SPEED_M 0x000000C0 // Operating Speed
#define USB_TXTYPE14_SPEED_DFLT 0x00000000 // Default
#define USB_TXTYPE14_SPEED_FULL 0x00000080 // Full
#define USB_TXTYPE14_SPEED_LOW 0x000000C0 // Low
#define USB_TXTYPE14_PROTO_M 0x00000030 // Protocol
#define USB_TXTYPE14_PROTO_CTRL 0x00000000 // Control
#define USB_TXTYPE14_PROTO_ISOC 0x00000010 // Isochronous
#define USB_TXTYPE14_PROTO_BULK 0x00000020 // Bulk
#define USB_TXTYPE14_PROTO_INT 0x00000030 // Interrupt
#define USB_TXTYPE14_TEP_M 0x0000000F // Target Endpoint Number
#define USB_TXTYPE14_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXINTERVAL14
// register.
//
//*****************************************************************************
#define USB_TXINTERVAL14_TXPOLL_M \
0x000000FF // TX Polling
#define USB_TXINTERVAL14_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_TXINTERVAL14_TXPOLL_S \
0
#define USB_TXINTERVAL14_NAKLMT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXTYPE14 register.
//
//*****************************************************************************
#define USB_RXTYPE14_SPEED_M 0x000000C0 // Operating Speed
#define USB_RXTYPE14_SPEED_DFLT 0x00000000 // Default
#define USB_RXTYPE14_SPEED_FULL 0x00000080 // Full
#define USB_RXTYPE14_SPEED_LOW 0x000000C0 // Low
#define USB_RXTYPE14_PROTO_M 0x00000030 // Protocol
#define USB_RXTYPE14_PROTO_CTRL 0x00000000 // Control
#define USB_RXTYPE14_PROTO_ISOC 0x00000010 // Isochronous
#define USB_RXTYPE14_PROTO_BULK 0x00000020 // Bulk
#define USB_RXTYPE14_PROTO_INT 0x00000030 // Interrupt
#define USB_RXTYPE14_TEP_M 0x0000000F // Target Endpoint Number
#define USB_RXTYPE14_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXINTERVAL14
// register.
//
//*****************************************************************************
#define USB_RXINTERVAL14_TXPOLL_M \
0x000000FF // RX Polling
#define USB_RXINTERVAL14_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_RXINTERVAL14_TXPOLL_S \
0
#define USB_RXINTERVAL14_NAKLMT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXMAXP15 register.
//
//*****************************************************************************
#define USB_TXMAXP15_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_TXMAXP15_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRL15 register.
//
//*****************************************************************************
#define USB_TXCSRL15_NAKTO 0x00000080 // NAK Timeout
#define USB_TXCSRL15_CLRDT 0x00000040 // Clear Data Toggle
#define USB_TXCSRL15_STALLED 0x00000020 // Endpoint Stalled
#define USB_TXCSRL15_SETUP 0x00000010 // Setup Packet
#define USB_TXCSRL15_STALL 0x00000010 // Send STALL
#define USB_TXCSRL15_FLUSH 0x00000008 // Flush FIFO
#define USB_TXCSRL15_UNDRN 0x00000004 // Underrun
#define USB_TXCSRL15_ERROR 0x00000004 // Error
#define USB_TXCSRL15_FIFONE 0x00000002 // FIFO Not Empty
#define USB_TXCSRL15_TXRDY 0x00000001 // Transmit Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRH15 register.
//
//*****************************************************************************
#define USB_TXCSRH15_AUTOSET 0x00000080 // Auto Set
#define USB_TXCSRH15_ISO 0x00000040 // Isochronous Transfers
#define USB_TXCSRH15_MODE 0x00000020 // Mode
#define USB_TXCSRH15_DMAEN 0x00000010 // DMA Request Enable
#define USB_TXCSRH15_FDT 0x00000008 // Force Data Toggle
#define USB_TXCSRH15_DMAMOD 0x00000004 // DMA Request Mode
#define USB_TXCSRH15_DTWE 0x00000002 // Data Toggle Write Enable
#define USB_TXCSRH15_DT 0x00000001 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXMAXP15 register.
//
//*****************************************************************************
#define USB_RXMAXP15_MAXLOAD_M 0x000007FF // Maximum Payload
#define USB_RXMAXP15_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRL15 register.
//
//*****************************************************************************
#define USB_RXCSRL15_CLRDT 0x00000080 // Clear Data Toggle
#define USB_RXCSRL15_STALLED 0x00000040 // Endpoint Stalled
#define USB_RXCSRL15_STALL 0x00000020 // Send STALL
#define USB_RXCSRL15_REQPKT 0x00000020 // Request Packet
#define USB_RXCSRL15_FLUSH 0x00000010 // Flush FIFO
#define USB_RXCSRL15_DATAERR 0x00000008 // Data Error
#define USB_RXCSRL15_NAKTO 0x00000008 // NAK Timeout
#define USB_RXCSRL15_ERROR 0x00000004 // Error
#define USB_RXCSRL15_OVER 0x00000004 // Overrun
#define USB_RXCSRL15_FULL 0x00000002 // FIFO Full
#define USB_RXCSRL15_RXRDY 0x00000001 // Receive Packet Ready
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRH15 register.
//
//*****************************************************************************
#define USB_RXCSRH15_AUTOCL 0x00000080 // Auto Clear
#define USB_RXCSRH15_AUTORQ 0x00000040 // Auto Request
#define USB_RXCSRH15_ISO 0x00000040 // Isochronous Transfers
#define USB_RXCSRH15_DMAEN 0x00000020 // DMA Request Enable
#define USB_RXCSRH15_PIDERR 0x00000010 // PID Error
#define USB_RXCSRH15_DISNYET 0x00000010 // Disable NYET
#define USB_RXCSRH15_DMAMOD 0x00000008 // DMA Request Mode
#define USB_RXCSRH15_DTWE 0x00000004 // Data Toggle Write Enable
#define USB_RXCSRH15_DT 0x00000002 // Data Toggle
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCOUNT15
// register.
//
//*****************************************************************************
#define USB_RXCOUNT15_COUNT_M 0x00001FFF // Receive Packet Count
#define USB_RXCOUNT15_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXTYPE15 register.
//
//*****************************************************************************
#define USB_TXTYPE15_SPEED_M 0x000000C0 // Operating Speed
#define USB_TXTYPE15_SPEED_DFLT 0x00000000 // Default
#define USB_TXTYPE15_SPEED_FULL 0x00000080 // Full
#define USB_TXTYPE15_SPEED_LOW 0x000000C0 // Low
#define USB_TXTYPE15_PROTO_M 0x00000030 // Protocol
#define USB_TXTYPE15_PROTO_CTRL 0x00000000 // Control
#define USB_TXTYPE15_PROTO_ISOC 0x00000010 // Isochronous
#define USB_TXTYPE15_PROTO_BULK 0x00000020 // Bulk
#define USB_TXTYPE15_PROTO_INT 0x00000030 // Interrupt
#define USB_TXTYPE15_TEP_M 0x0000000F // Target Endpoint Number
#define USB_TXTYPE15_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXINTERVAL15
// register.
//
//*****************************************************************************
#define USB_TXINTERVAL15_TXPOLL_M \
0x000000FF // TX Polling
#define USB_TXINTERVAL15_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_TXINTERVAL15_NAKLMT_S \
0
#define USB_TXINTERVAL15_TXPOLL_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXTYPE15 register.
//
//*****************************************************************************
#define USB_RXTYPE15_SPEED_M 0x000000C0 // Operating Speed
#define USB_RXTYPE15_SPEED_DFLT 0x00000000 // Default
#define USB_RXTYPE15_SPEED_FULL 0x00000080 // Full
#define USB_RXTYPE15_SPEED_LOW 0x000000C0 // Low
#define USB_RXTYPE15_PROTO_M 0x00000030 // Protocol
#define USB_RXTYPE15_PROTO_CTRL 0x00000000 // Control
#define USB_RXTYPE15_PROTO_ISOC 0x00000010 // Isochronous
#define USB_RXTYPE15_PROTO_BULK 0x00000020 // Bulk
#define USB_RXTYPE15_PROTO_INT 0x00000030 // Interrupt
#define USB_RXTYPE15_TEP_M 0x0000000F // Target Endpoint Number
#define USB_RXTYPE15_TEP_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXINTERVAL15
// register.
//
//*****************************************************************************
#define USB_RXINTERVAL15_TXPOLL_M \
0x000000FF // RX Polling
#define USB_RXINTERVAL15_NAKLMT_M \
0x000000FF // NAK Limit
#define USB_RXINTERVAL15_TXPOLL_S \
0
#define USB_RXINTERVAL15_NAKLMT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT1
// register.
//
//*****************************************************************************
#define USB_RQPKTCOUNT1_M 0x0000FFFF // Block Transfer Packet Count
#define USB_RQPKTCOUNT1_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT2
// register.
//
//*****************************************************************************
#define USB_RQPKTCOUNT2_M 0x0000FFFF // Block Transfer Packet Count
#define USB_RQPKTCOUNT2_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT3
// register.
//
//*****************************************************************************
#define USB_RQPKTCOUNT3_M 0x0000FFFF // Block Transfer Packet Count
#define USB_RQPKTCOUNT3_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT4
// register.
//
//*****************************************************************************
#define USB_RQPKTCOUNT4_COUNT_M 0x0000FFFF // Block Transfer Packet Count
#define USB_RQPKTCOUNT4_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT5
// register.
//
//*****************************************************************************
#define USB_RQPKTCOUNT5_COUNT_M 0x0000FFFF // Block Transfer Packet Count
#define USB_RQPKTCOUNT5_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT6
// register.
//
//*****************************************************************************
#define USB_RQPKTCOUNT6_COUNT_M 0x0000FFFF // Block Transfer Packet Count
#define USB_RQPKTCOUNT6_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT7
// register.
//
//*****************************************************************************
#define USB_RQPKTCOUNT7_COUNT_M 0x0000FFFF // Block Transfer Packet Count
#define USB_RQPKTCOUNT7_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT8
// register.
//
//*****************************************************************************
#define USB_RQPKTCOUNT8_COUNT_M 0x0000FFFF // Block Transfer Packet Count
#define USB_RQPKTCOUNT8_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT9
// register.
//
//*****************************************************************************
#define USB_RQPKTCOUNT9_COUNT_M 0x0000FFFF // Block Transfer Packet Count
#define USB_RQPKTCOUNT9_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT10
// register.
//
//*****************************************************************************
#define USB_RQPKTCOUNT10_COUNT_M \
0x0000FFFF // Block Transfer Packet Count
#define USB_RQPKTCOUNT10_COUNT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT11
// register.
//
//*****************************************************************************
#define USB_RQPKTCOUNT11_COUNT_M \
0x0000FFFF // Block Transfer Packet Count
#define USB_RQPKTCOUNT11_COUNT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT12
// register.
//
//*****************************************************************************
#define USB_RQPKTCOUNT12_COUNT_M \
0x0000FFFF // Block Transfer Packet Count
#define USB_RQPKTCOUNT12_COUNT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT13
// register.
//
//*****************************************************************************
#define USB_RQPKTCOUNT13_COUNT_M \
0x0000FFFF // Block Transfer Packet Count
#define USB_RQPKTCOUNT13_COUNT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT14
// register.
//
//*****************************************************************************
#define USB_RQPKTCOUNT14_COUNT_M \
0x0000FFFF // Block Transfer Packet Count
#define USB_RQPKTCOUNT14_COUNT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT15
// register.
//
//*****************************************************************************
#define USB_RQPKTCOUNT15_COUNT_M \
0x0000FFFF // Block Transfer Packet Count
#define USB_RQPKTCOUNT15_COUNT_S \
0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXDPKTBUFDIS
// register.
//
//*****************************************************************************
#define USB_RXDPKTBUFDIS_EP15 0x00008000 // EP15 RX Double-Packet Buffer
// Disable
#define USB_RXDPKTBUFDIS_EP14 0x00004000 // EP14 RX Double-Packet Buffer
// Disable
#define USB_RXDPKTBUFDIS_EP13 0x00002000 // EP13 RX Double-Packet Buffer
// Disable
#define USB_RXDPKTBUFDIS_EP12 0x00001000 // EP12 RX Double-Packet Buffer
// Disable
#define USB_RXDPKTBUFDIS_EP11 0x00000800 // EP11 RX Double-Packet Buffer
// Disable
#define USB_RXDPKTBUFDIS_EP10 0x00000400 // EP10 RX Double-Packet Buffer
// Disable
#define USB_RXDPKTBUFDIS_EP9 0x00000200 // EP9 RX Double-Packet Buffer
// Disable
#define USB_RXDPKTBUFDIS_EP8 0x00000100 // EP8 RX Double-Packet Buffer
// Disable
#define USB_RXDPKTBUFDIS_EP7 0x00000080 // EP7 RX Double-Packet Buffer
// Disable
#define USB_RXDPKTBUFDIS_EP6 0x00000040 // EP6 RX Double-Packet Buffer
// Disable
#define USB_RXDPKTBUFDIS_EP5 0x00000020 // EP5 RX Double-Packet Buffer
// Disable
#define USB_RXDPKTBUFDIS_EP4 0x00000010 // EP4 RX Double-Packet Buffer
// Disable
#define USB_RXDPKTBUFDIS_EP3 0x00000008 // EP3 RX Double-Packet Buffer
// Disable
#define USB_RXDPKTBUFDIS_EP2 0x00000004 // EP2 RX Double-Packet Buffer
// Disable
#define USB_RXDPKTBUFDIS_EP1 0x00000002 // EP1 RX Double-Packet Buffer
// Disable
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXDPKTBUFDIS
// register.
//
//*****************************************************************************
#define USB_TXDPKTBUFDIS_EP15 0x00008000 // EP15 TX Double-Packet Buffer
// Disable
#define USB_TXDPKTBUFDIS_EP14 0x00004000 // EP14 TX Double-Packet Buffer
// Disable
#define USB_TXDPKTBUFDIS_EP13 0x00002000 // EP13 TX Double-Packet Buffer
// Disable
#define USB_TXDPKTBUFDIS_EP12 0x00001000 // EP12 TX Double-Packet Buffer
// Disable
#define USB_TXDPKTBUFDIS_EP11 0x00000800 // EP11 TX Double-Packet Buffer
// Disable
#define USB_TXDPKTBUFDIS_EP10 0x00000400 // EP10 TX Double-Packet Buffer
// Disable
#define USB_TXDPKTBUFDIS_EP9 0x00000200 // EP9 TX Double-Packet Buffer
// Disable
#define USB_TXDPKTBUFDIS_EP8 0x00000100 // EP8 TX Double-Packet Buffer
// Disable
#define USB_TXDPKTBUFDIS_EP7 0x00000080 // EP7 TX Double-Packet Buffer
// Disable
#define USB_TXDPKTBUFDIS_EP6 0x00000040 // EP6 TX Double-Packet Buffer
// Disable
#define USB_TXDPKTBUFDIS_EP5 0x00000020 // EP5 TX Double-Packet Buffer
// Disable
#define USB_TXDPKTBUFDIS_EP4 0x00000010 // EP4 TX Double-Packet Buffer
// Disable
#define USB_TXDPKTBUFDIS_EP3 0x00000008 // EP3 TX Double-Packet Buffer
// Disable
#define USB_TXDPKTBUFDIS_EP2 0x00000004 // EP2 TX Double-Packet Buffer
// Disable
#define USB_TXDPKTBUFDIS_EP1 0x00000002 // EP1 TX Double-Packet Buffer
// Disable
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_EPC register.
//
//*****************************************************************************
#define USB_EPC_PFLTACT_M 0x00000300 // Power Fault Action
#define USB_EPC_PFLTACT_UNCHG 0x00000000 // Unchanged
#define USB_EPC_PFLTACT_TRIS 0x00000100 // Tristate
#define USB_EPC_PFLTACT_LOW 0x00000200 // Low
#define USB_EPC_PFLTACT_HIGH 0x00000300 // High
#define USB_EPC_PFLTAEN 0x00000040 // Power Fault Action Enable
#define USB_EPC_PFLTSEN_HIGH 0x00000020 // Power Fault Sense
#define USB_EPC_PFLTEN 0x00000010 // Power Fault Input Enable
#define USB_EPC_EPENDE 0x00000004 // EPEN Drive Enable
#define USB_EPC_EPEN_M 0x00000003 // External Power Supply Enable
// Configuration
#define USB_EPC_EPEN_LOW 0x00000000 // Power Enable Active Low
#define USB_EPC_EPEN_HIGH 0x00000001 // Power Enable Active High
#define USB_EPC_EPEN_VBLOW 0x00000002 // Power Enable High if VBUS Low
#define USB_EPC_EPEN_VBHIGH 0x00000003 // Power Enable High if VBUS High
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_EPCRIS register.
//
//*****************************************************************************
#define USB_EPCRIS_PF 0x00000001 // USB Power Fault Interrupt Status
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_EPCIM register.
//
//*****************************************************************************
#define USB_EPCIM_PF 0x00000001 // USB Power Fault Interrupt Mask
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_EPCISC register.
//
//*****************************************************************************
#define USB_EPCISC_PF 0x00000001 // USB Power Fault Interrupt Status
// and Clear
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_DRRIS register.
//
//*****************************************************************************
#define USB_DRRIS_RESUME 0x00000001 // RESUME Interrupt Status
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_DRIM register.
//
//*****************************************************************************
#define USB_DRIM_RESUME 0x00000001 // RESUME Interrupt Mask
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_DRISC register.
//
//*****************************************************************************
#define USB_DRISC_RESUME 0x00000001 // RESUME Interrupt Status and
// Clear
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_GPCS register.
//
//*****************************************************************************
#define USB_GPCS_DEVMODOTG 0x00000002 // Enable Device Mode
#define USB_GPCS_DEVMOD 0x00000001 // Device Mode
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_VDC register.
//
//*****************************************************************************
#define USB_VDC_VBDEN 0x00000001 // VBUS Droop Enable
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_VDCRIS register.
//
//*****************************************************************************
#define USB_VDCRIS_VD 0x00000001 // VBUS Droop Raw Interrupt Status
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_VDCIM register.
//
//*****************************************************************************
#define USB_VDCIM_VD 0x00000001 // VBUS Droop Interrupt Mask
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_VDCISC register.
//
//*****************************************************************************
#define USB_VDCISC_VD 0x00000001 // VBUS Droop Interrupt Status and
// Clear
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_IDVRIS register.
//
//*****************************************************************************
#define USB_IDVRIS_ID 0x00000001 // ID Valid Detect Raw Interrupt
// Status
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_IDVIM register.
//
//*****************************************************************************
#define USB_IDVIM_ID 0x00000001 // ID Valid Detect Interrupt Mask
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_IDVISC register.
//
//*****************************************************************************
#define USB_IDVISC_ID 0x00000001 // ID Valid Detect Interrupt Status
// and Clear
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_DMASEL register.
//
//*****************************************************************************
#define USB_DMASEL_DMACTX_M 0x00F00000 // DMA C TX Select
#define USB_DMASEL_DMACRX_M 0x000F0000 // DMA C RX Select
#define USB_DMASEL_DMABTX_M 0x0000F000 // DMA B TX Select
#define USB_DMASEL_DMABRX_M 0x00000F00 // DMA B RX Select
#define USB_DMASEL_DMAATX_M 0x000000F0 // DMA A TX Select
#define USB_DMASEL_DMAARX_M 0x0000000F // DMA A RX Select
#define USB_DMASEL_DMACTX_S 20
#define USB_DMASEL_DMACRX_S 16
#define USB_DMASEL_DMABTX_S 12
#define USB_DMASEL_DMABRX_S 8
#define USB_DMASEL_DMAATX_S 4
#define USB_DMASEL_DMAARX_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_PP register.
//
//*****************************************************************************
#define USB_PP_ECNT_M 0x0000FF00 // Endpoint Count
#define USB_PP_USB_M 0x000000C0 // USB Capability
#define USB_PP_USB_DEVICE 0x00000040 // DEVICE
#define USB_PP_USB_HOSTDEVICE 0x00000080 // HOST
#define USB_PP_USB_OTG 0x000000C0 // OTG
#define USB_PP_PHY 0x00000010 // PHY Present
#define USB_PP_TYPE_M 0x0000000F // Controller Type
#define USB_PP_TYPE_0 0x00000000 // The first-generation USB
// controller
#define USB_PP_ECNT_S 8
//*****************************************************************************
//
// The following definitions are deprecated.
//
//*****************************************************************************
#ifndef DEPRECATED
//*****************************************************************************
//
// The following are deprecated defines for the bit fields in the
// USB_O_TXFIFOADD register.
//
//*****************************************************************************
#define USB_TXFIFOADD_ADDR_2048 0x00000009 // 2048
#define USB_TXFIFOADD_ADDR_1024 0x00000008 // 1024
#define USB_TXFIFOADD_ADDR_512 0x00000007 // 512
#define USB_TXFIFOADD_ADDR_256 0x00000006 // 256
#define USB_TXFIFOADD_ADDR_128 0x00000005 // 128
#define USB_TXFIFOADD_ADDR_64 0x00000004 // 64
#define USB_TXFIFOADD_ADDR_32 0x00000003 // 32
#define USB_TXFIFOADD_ADDR_16 0x00000002 // 16
#define USB_TXFIFOADD_ADDR_8 0x00000001 // 8
#define USB_TXFIFOADD_ADDR_0 0x00000000 // 0
//*****************************************************************************
//
// The following are deprecated defines for the bit fields in the
// USB_O_RXFIFOADD register.
//
//*****************************************************************************
#define USB_RXFIFOADD_ADDR_2048 0x00000009 // 2048
#define USB_RXFIFOADD_ADDR_1024 0x00000008 // 1024
#define USB_RXFIFOADD_ADDR_512 0x00000007 // 512
#define USB_RXFIFOADD_ADDR_256 0x00000006 // 256
#define USB_RXFIFOADD_ADDR_128 0x00000005 // 128
#define USB_RXFIFOADD_ADDR_64 0x00000004 // 64
#define USB_RXFIFOADD_ADDR_32 0x00000003 // 32
#define USB_RXFIFOADD_ADDR_16 0x00000002 // 16
#define USB_RXFIFOADD_ADDR_8 0x00000001 // 8
#define USB_RXFIFOADD_ADDR_0 0x00000000 // 0
#endif
#endif // __HW_USB_H__
|