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
#[doc = "USB"]
#[repr(C)]
pub struct RegisterBlock {
    #[doc = "Identification register"]
    pub ID: crate::RORegister<u32>,
    #[doc = "Hardware General"]
    pub HWGENERAL: crate::RORegister<u32>,
    #[doc = "Host Hardware Parameters"]
    pub HWHOST: crate::RORegister<u32>,
    #[doc = "Device Hardware Parameters"]
    pub HWDEVICE: crate::RORegister<u32>,
    #[doc = "TX Buffer Hardware Parameters"]
    pub HWTXBUF: crate::RORegister<u32>,
    #[doc = "RX Buffer Hardware Parameters"]
    pub HWRXBUF: crate::RORegister<u32>,
    _reserved0: [u8; 0x68],
    #[doc = "General Purpose Timer #0 Load"]
    pub GPTIMER0LD: crate::RWRegister<u32>,
    #[doc = "General Purpose Timer #0 Controller"]
    pub GPTIMER0CTRL: crate::RWRegister<u32>,
    #[doc = "General Purpose Timer #1 Load"]
    pub GPTIMER1LD: crate::RWRegister<u32>,
    #[doc = "General Purpose Timer #1 Controller"]
    pub GPTIMER1CTRL: crate::RWRegister<u32>,
    #[doc = "System Bus Config"]
    pub SBUSCFG: crate::RWRegister<u32>,
    _reserved1: [u8; 0x6c],
    #[doc = "Capability Registers Length"]
    pub CAPLENGTH: crate::RORegister<u8>,
    _reserved2: [u8; 0x01],
    #[doc = "Host Controller Interface Version"]
    pub HCIVERSION: crate::RORegister<u16>,
    #[doc = "Host Controller Structural Parameters"]
    pub HCSPARAMS: crate::RORegister<u32>,
    #[doc = "Host Controller Capability Parameters"]
    pub HCCPARAMS: crate::RORegister<u32>,
    _reserved3: [u8; 0x14],
    #[doc = "Device Controller Interface Version"]
    pub DCIVERSION: crate::RORegister<u16>,
    _reserved4: [u8; 0x02],
    #[doc = "Device Controller Capability Parameters"]
    pub DCCPARAMS: crate::RORegister<u32>,
    _reserved5: [u8; 0x18],
    #[doc = "USB Command Register"]
    pub USBCMD: crate::RWRegister<u32>,
    #[doc = "USB Status Register"]
    pub USBSTS: crate::RWRegister<u32>,
    #[doc = "Interrupt Enable Register"]
    pub USBINTR: crate::RWRegister<u32>,
    #[doc = "USB Frame Index"]
    pub FRINDEX: crate::RWRegister<u32>,
    _reserved6: [u8; 0x04],
    #[doc = "Device Address"]
    pub DEVICEADDR: crate::RWRegister<u32>,
    #[doc = "Next Asynch. Address"]
    pub ASYNCLISTADDR: crate::RWRegister<u32>,
    _reserved7: [u8; 0x04],
    #[doc = "Programmable Burst Size"]
    pub BURSTSIZE: crate::RWRegister<u32>,
    #[doc = "TX FIFO Fill Tuning"]
    pub TXFILLTUNING: crate::RWRegister<u32>,
    _reserved8: [u8; 0x10],
    #[doc = "Endpoint NAK"]
    pub ENDPTNAK: crate::RWRegister<u32>,
    #[doc = "Endpoint NAK Enable"]
    pub ENDPTNAKEN: crate::RWRegister<u32>,
    #[doc = "Configure Flag Register"]
    pub CONFIGFLAG: crate::RORegister<u32>,
    #[doc = "Port Status & Control"]
    pub PORTSC1: crate::RWRegister<u32>,
    _reserved9: [u8; 0x1c],
    #[doc = "On-The-Go Status & control"]
    pub OTGSC: crate::RWRegister<u32>,
    #[doc = "USB Device Mode"]
    pub USBMODE: crate::RWRegister<u32>,
    #[doc = "Endpoint Setup Status"]
    pub ENDPTSETUPSTAT: crate::RWRegister<u32>,
    #[doc = "Endpoint Prime"]
    pub ENDPTPRIME: crate::RWRegister<u32>,
    #[doc = "Endpoint Flush"]
    pub ENDPTFLUSH: crate::RWRegister<u32>,
    #[doc = "Endpoint Status"]
    pub ENDPTSTAT: crate::RWRegister<u32>,
    #[doc = "Endpoint Complete"]
    pub ENDPTCOMPLETE: crate::RWRegister<u32>,
    #[doc = "Endpoint Control0"]
    pub ENDPTCTRL0: crate::RWRegister<u32>,
    #[doc = "Endpoint Control"]
    pub ENDPTCTRL: [crate::RWRegister<u32>; 7usize],
}
#[doc = "Identification register"]
pub mod ID {
    #[doc = "Configuration number"]
    pub mod ID {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x3f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Complement version of ID"]
    pub mod NID {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x3f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Revision number of the controller core."]
    pub mod REVISION {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Hardware General"]
pub mod HWGENERAL {
    #[doc = "Data width of the transciever connected to the controller core. PHYW bit reset value is"]
    pub mod PHYW {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "8 bit wide data bus Software non-programmable"]
            pub const PHYW_0: u32 = 0;
            #[doc = "16 bit wide data bus Software non-programmable"]
            pub const PHYW_1: u32 = 0x01;
            #[doc = "Reset to 8 bit wide data bus Software programmable"]
            pub const PHYW_2: u32 = 0x02;
            #[doc = "Reset to 16 bit wide data bus Software programmable"]
            pub const PHYW_3: u32 = 0x03;
        }
    }
    #[doc = "Transciever type"]
    pub mod PHYM {
        pub const offset: u32 = 6;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "UTMI/UMTI+"]
            pub const PHYM_0: u32 = 0;
            #[doc = "ULPI DDR"]
            pub const PHYM_1: u32 = 0x01;
            #[doc = "ULPI"]
            pub const PHYM_2: u32 = 0x02;
            #[doc = "Serial Only"]
            pub const PHYM_3: u32 = 0x03;
            #[doc = "Software programmable - reset to UTMI/UTMI+"]
            pub const PHYM_4: u32 = 0x04;
            #[doc = "Software programmable - reset to ULPI DDR"]
            pub const PHYM_5: u32 = 0x05;
            #[doc = "Software programmable - reset to ULPI"]
            pub const PHYM_6: u32 = 0x06;
            #[doc = "Software programmable - reset to Serial"]
            pub const PHYM_7: u32 = 0x07;
        }
    }
    #[doc = "Serial interface mode capability"]
    pub mod SM {
        pub const offset: u32 = 9;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No Serial Engine, always use parallel signalling."]
            pub const SM_0: u32 = 0;
            #[doc = "Serial Engine present, always use serial signalling for FS/LS."]
            pub const SM_1: u32 = 0x01;
            #[doc = "Software programmable - Reset to use parallel signalling for FS/LS"]
            pub const SM_2: u32 = 0x02;
            #[doc = "Software programmable - Reset to use serial signalling for FS/LS"]
            pub const SM_3: u32 = 0x03;
        }
    }
}
#[doc = "Host Hardware Parameters"]
pub mod HWHOST {
    #[doc = "Host Capable. Indicating whether host operation mode is supported or not."]
    pub mod HC {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Not supported"]
            pub const HC_0: u32 = 0;
            #[doc = "Supported"]
            pub const HC_1: u32 = 0x01;
        }
    }
    #[doc = "The Nmber of downstream ports supported by the host controller is (NPORT+1)"]
    pub mod NPORT {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Device Hardware Parameters"]
pub mod HWDEVICE {
    #[doc = "Device Capable. Indicating whether device operation mode is supported or not."]
    pub mod DC {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Not supported"]
            pub const DC_0: u32 = 0;
            #[doc = "Supported"]
            pub const DC_1: u32 = 0x01;
        }
    }
    #[doc = "Device Endpoint Number"]
    pub mod DEVEP {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x1f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "TX Buffer Hardware Parameters"]
pub mod HWTXBUF {
    #[doc = "Default burst size for memory to TX buffer transfer"]
    pub mod TXBURST {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "TX FIFO Buffer size is: (2^TXCHANADD) * 4 Bytes"]
    pub mod TXCHANADD {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "RX Buffer Hardware Parameters"]
pub mod HWRXBUF {
    #[doc = "Default burst size for memory to RX buffer transfer"]
    pub mod RXBURST {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Buffer total size for all receive endpoints is (2^RXADD)"]
    pub mod RXADD {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "General Purpose Timer #0 Load"]
pub mod GPTIMER0LD {
    #[doc = "General Purpose Timer Load Value These bit fields are loaded to GPTCNT bits when GPTRST bit is set '1b'"]
    pub mod GPTLD {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x00ff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "General Purpose Timer #0 Controller"]
pub mod GPTIMER0CTRL {
    #[doc = "General Purpose Timer Counter. This field is the count value of the countdown timer."]
    pub mod GPTCNT {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x00ff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "General Purpose Timer Mode In one shot mode, the timer will count down to zero, generate an interrupt, and stop until the counter is reset by software; In repeat mode, the timer will count down to zero, generate an interrupt and automatically reload the counter value from GPTLD bits to start again"]
    pub mod GPTMODE {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "One Shot Mode"]
            pub const GPTMODE_0: u32 = 0;
            #[doc = "Repeat Mode"]
            pub const GPTMODE_1: u32 = 0x01;
        }
    }
    #[doc = "General Purpose Timer Reset"]
    pub mod GPTRST {
        pub const offset: u32 = 30;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No action"]
            pub const GPTRST_0: u32 = 0;
            #[doc = "Load counter value from GPTLD bits in n_GPTIMER0LD"]
            pub const GPTRST_1: u32 = 0x01;
        }
    }
    #[doc = "General Purpose Timer Run GPTCNT bits are not effected when setting or clearing this bit."]
    pub mod GPTRUN {
        pub const offset: u32 = 31;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Stop counting"]
            pub const GPTRUN_0: u32 = 0;
            #[doc = "Run"]
            pub const GPTRUN_1: u32 = 0x01;
        }
    }
}
#[doc = "General Purpose Timer #1 Load"]
pub mod GPTIMER1LD {
    #[doc = "General Purpose Timer Load Value These bit fields are loaded to GPTCNT bits when GPTRST bit is set '1b'"]
    pub mod GPTLD {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x00ff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "General Purpose Timer #1 Controller"]
pub mod GPTIMER1CTRL {
    #[doc = "General Purpose Timer Counter. This field is the count value of the countdown timer."]
    pub mod GPTCNT {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x00ff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "General Purpose Timer Mode In one shot mode, the timer will count down to zero, generate an interrupt, and stop until the counter is reset by software"]
    pub mod GPTMODE {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "One Shot Mode"]
            pub const GPTMODE_0: u32 = 0;
            #[doc = "Repeat Mode"]
            pub const GPTMODE_1: u32 = 0x01;
        }
    }
    #[doc = "General Purpose Timer Reset"]
    pub mod GPTRST {
        pub const offset: u32 = 30;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No action"]
            pub const GPTRST_0: u32 = 0;
            #[doc = "Load counter value from GPTLD bits in USB_n_GPTIMER0LD"]
            pub const GPTRST_1: u32 = 0x01;
        }
    }
    #[doc = "General Purpose Timer Run GPTCNT bits are not effected when setting or clearing this bit."]
    pub mod GPTRUN {
        pub const offset: u32 = 31;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Stop counting"]
            pub const GPTRUN_0: u32 = 0;
            #[doc = "Run"]
            pub const GPTRUN_1: u32 = 0x01;
        }
    }
}
#[doc = "System Bus Config"]
pub mod SBUSCFG {
    #[doc = "AHB master interface Burst configuration These bits control AHB master transfer type sequence (or priority)"]
    pub mod AHBBRST {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Incremental burst of unspecified length only"]
            pub const AHBBRST_0: u32 = 0;
            #[doc = "INCR4 burst, then single transfer"]
            pub const AHBBRST_1: u32 = 0x01;
            #[doc = "INCR8 burst, INCR4 burst, then single transfer"]
            pub const AHBBRST_2: u32 = 0x02;
            #[doc = "INCR16 burst, INCR8 burst, INCR4 burst, then single transfer"]
            pub const AHBBRST_3: u32 = 0x03;
            #[doc = "INCR4 burst, then incremental burst of unspecified length"]
            pub const AHBBRST_5: u32 = 0x05;
            #[doc = "INCR8 burst, INCR4 burst, then incremental burst of unspecified length"]
            pub const AHBBRST_6: u32 = 0x06;
            #[doc = "INCR16 burst, INCR8 burst, INCR4 burst, then incremental burst of unspecified length"]
            pub const AHBBRST_7: u32 = 0x07;
        }
    }
}
#[doc = "Capability Registers Length"]
pub mod CAPLENGTH {
    #[doc = "These bits are used as an offset to add to register base to find the beginning of the Operational Register"]
    pub mod CAPLENGTH {
        pub const offset: u8 = 0;
        pub const mask: u8 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Host Controller Interface Version"]
pub mod HCIVERSION {
    #[doc = "Host Controller Interface Version Number Default value is '10h', which means EHCI rev1.0."]
    pub mod HCIVERSION {
        pub const offset: u16 = 0;
        pub const mask: u16 = 0xffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Host Controller Structural Parameters"]
pub mod HCSPARAMS {
    #[doc = "Number of downstream ports"]
    pub mod N_PORTS {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Port Power Control This field indicates whether the host controller implementation includes port power control"]
    pub mod PPC {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Number of Ports per Companion Controller This field indicates the number of ports supported per internal Companion Controller"]
    pub mod N_PCC {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Number of Companion Controller (N_CC)"]
    pub mod N_CC {
        pub const offset: u32 = 12;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "There is no internal Companion Controller and port-ownership hand-off is not supported."]
            pub const N_CC_0: u32 = 0;
            #[doc = "There are internal companion controller(s) and port-ownership hand-offs is supported."]
            pub const N_CC_1: u32 = 0x01;
        }
    }
    #[doc = "Port Indicators (P INDICATOR) This bit indicates whether the ports support port indicator control"]
    pub mod PI {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Number of Ports per Transaction Translator (N_PTT)"]
    pub mod N_PTT {
        pub const offset: u32 = 20;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Number of Transaction Translators (N_TT)"]
    pub mod N_TT {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Host Controller Capability Parameters"]
pub mod HCCPARAMS {
    #[doc = "64-bit Addressing Capability This bit is set '0b' in all controller core, no 64-bit addressing capability is supported"]
    pub mod ADC {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Programmable Frame List Flag If this bit is set to zero, then the system software must use a frame list length of 1024 elements with this host controller"]
    pub mod PFL {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Asynchronous Schedule Park Capability If this bit is set to a one, then the host controller supports the park feature for high-speed queue heads in the Asynchronous Schedule"]
    pub mod ASP {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Isochronous Scheduling Threshold"]
    pub mod IST {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "EHCI Extended Capabilities Pointer"]
    pub mod EECP {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Device Controller Interface Version"]
pub mod DCIVERSION {
    #[doc = "Device Controller Interface Version Number Default value is '01h', which means rev0.1."]
    pub mod DCIVERSION {
        pub const offset: u16 = 0;
        pub const mask: u16 = 0xffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Device Controller Capability Parameters"]
pub mod DCCPARAMS {
    #[doc = "Device Endpoint Number This field indicates the number of endpoints built into the device controller"]
    pub mod DEN {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x1f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Device Capable When this bit is 1, this controller is capable of operating as a USB 2.0 device."]
    pub mod DC {
        pub const offset: u32 = 7;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Host Capable When this bit is 1, this controller is capable of operating as an EHCI compatible USB 2"]
    pub mod HC {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "USB Command Register"]
pub mod USBCMD {
    #[doc = "Run/Stop (RS) - Read/Write"]
    pub mod RS {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Controller Reset (RESET) - Read/Write"]
    pub mod RST {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "See description at bit 15"]
    pub mod FS_1 {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Periodic Schedule Enable- Read/Write"]
    pub mod PSE {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Do not process the Periodic Schedule"]
            pub const PSE_0: u32 = 0;
            #[doc = "Use the PERIODICLISTBASE register to access the Periodic Schedule."]
            pub const PSE_1: u32 = 0x01;
        }
    }
    #[doc = "Asynchronous Schedule Enable - Read/Write"]
    pub mod ASE {
        pub const offset: u32 = 5;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Do not process the Asynchronous Schedule."]
            pub const ASE_0: u32 = 0;
            #[doc = "Use the ASYNCLISTADDR register to access the Asynchronous Schedule."]
            pub const ASE_1: u32 = 0x01;
        }
    }
    #[doc = "Interrupt on Async Advance Doorbell - Read/Write"]
    pub mod IAA {
        pub const offset: u32 = 6;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Asynchronous Schedule Park Mode Count - Read/Write"]
    pub mod ASP {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Asynchronous Schedule Park Mode Enable - Read/Write"]
    pub mod ASPE {
        pub const offset: u32 = 11;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Setup TripWire - Read/Write"]
    pub mod SUTW {
        pub const offset: u32 = 13;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Add dTD TripWire - Read/Write"]
    pub mod ATDTW {
        pub const offset: u32 = 14;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Frame List Size - (Read/Write or Read Only)"]
    pub mod FS_2 {
        pub const offset: u32 = 15;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Interrupt Threshold Control -Read/Write"]
    pub mod ITC {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Immediate (no threshold)"]
            pub const ITC_0: u32 = 0;
            #[doc = "1 micro-frame"]
            pub const ITC_1: u32 = 0x01;
            #[doc = "2 micro-frames"]
            pub const ITC_2: u32 = 0x02;
            #[doc = "4 micro-frames"]
            pub const ITC_4: u32 = 0x04;
            #[doc = "8 micro-frames"]
            pub const ITC_8: u32 = 0x08;
            #[doc = "16 micro-frames"]
            pub const ITC_16: u32 = 0x10;
            #[doc = "32 micro-frames"]
            pub const ITC_32: u32 = 0x20;
            #[doc = "64 micro-frames"]
            pub const ITC_64: u32 = 0x40;
        }
    }
}
#[doc = "USB Status Register"]
pub mod USBSTS {
    #[doc = "USB Interrupt (USBINT) - R/WC"]
    pub mod UI {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "USB Error Interrupt (USBERRINT) - R/WC"]
    pub mod UEI {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Port Change Detect - R/WC"]
    pub mod PCI {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Frame List Rollover - R/WC"]
    pub mod FRI {
        pub const offset: u32 = 3;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "System Error- R/WC"]
    pub mod SEI {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Interrupt on Async Advance - R/WC"]
    pub mod AAI {
        pub const offset: u32 = 5;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "USB Reset Received - R/WC"]
    pub mod URI {
        pub const offset: u32 = 6;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "SOF Received - R/WC"]
    pub mod SRI {
        pub const offset: u32 = 7;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "DCSuspend - R/WC"]
    pub mod SLI {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "ULPI Interrupt - R/WC"]
    pub mod ULPII {
        pub const offset: u32 = 10;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "HCHaIted - Read Only"]
    pub mod HCH {
        pub const offset: u32 = 12;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Reclamation - Read Only"]
    pub mod RCL {
        pub const offset: u32 = 13;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Periodic Schedule Status - Read Only"]
    pub mod PS {
        pub const offset: u32 = 14;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Asynchronous Schedule Status - Read Only"]
    pub mod AS {
        pub const offset: u32 = 15;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "NAK Interrupt Bit--RO"]
    pub mod NAKI {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "General Purpose Timer Interrupt 0(GPTINT0)--R/WC"]
    pub mod TI0 {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "General Purpose Timer Interrupt 1(GPTINT1)--R/WC"]
    pub mod TI1 {
        pub const offset: u32 = 25;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Interrupt Enable Register"]
pub mod USBINTR {
    #[doc = "USB Interrupt Enable When this bit is one and the UI bit in n_USBSTS register is a one the controller will issue an interrupt"]
    pub mod UE {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "USB Error Interrupt Enable When this bit is one and the UEI bit in n_USBSTS register is a one the controller will issue an interrupt"]
    pub mod UEE {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Port Change Detect Interrupt Enable When this bit is one and the PCI bit in n_USBSTS register is a one the controller will issue an interrupt"]
    pub mod PCE {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Frame List Rollover Interrupt Enable When this bit is one and the FRI bit in n_USBSTS register is a one the controller will issue an interrupt"]
    pub mod FRE {
        pub const offset: u32 = 3;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "System Error Interrupt Enable When this bit is one and the SEI bit in n_USBSTS register is a one the controller will issue an interrupt"]
    pub mod SEE {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Async Advance Interrupt Enable When this bit is one and the AAI bit in n_USBSTS register is a one the controller will issue an interrupt"]
    pub mod AAE {
        pub const offset: u32 = 5;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "USB Reset Interrupt Enable When this bit is one and the URI bit in n_USBSTS register is a one the controller will issue an interrupt"]
    pub mod URE {
        pub const offset: u32 = 6;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "SOF Received Interrupt Enable When this bit is one and the SRI bit in n_USBSTS register is a one the controller will issue an interrupt"]
    pub mod SRE {
        pub const offset: u32 = 7;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Sleep Interrupt Enable When this bit is one and the SLI bit in n_n_USBSTS register is a one the controller will issue an interrupt"]
    pub mod SLE {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "ULPI Interrupt Enable When this bit is one and the UPLII bit in n_USBSTS register is a one the controller will issue an interrupt"]
    pub mod ULPIE {
        pub const offset: u32 = 10;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "NAK Interrupt Enable When this bit is one and the NAKI bit in n_USBSTS register is a one the controller will issue an interrupt"]
    pub mod NAKE {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "USB Host Asynchronous Interrupt Enable When this bit is one, and the UAI bit in the n_USBSTS register is one, host controller will issue an interrupt at the next interrupt threshold"]
    pub mod UAIE {
        pub const offset: u32 = 18;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "USB Host Periodic Interrupt Enable When this bit is one, and the UPI bit in the n_USBSTS register is one, host controller will issue an interrupt at the next interrupt threshold"]
    pub mod UPIE {
        pub const offset: u32 = 19;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "General Purpose Timer #0 Interrupt Enable When this bit is one and the TI0 bit in n_USBSTS register is a one the controller will issue an interrupt"]
    pub mod TIE0 {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "General Purpose Timer #1 Interrupt Enable When this bit is one and the TI1 bit in n_USBSTS register is a one the controller will issue an interrupt"]
    pub mod TIE1 {
        pub const offset: u32 = 25;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "USB Frame Index"]
pub mod FRINDEX {
    #[doc = "Frame Index"]
    pub mod FRINDEX {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x3fff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "(1024) 12"]
            pub const FRINDEX_0: u32 = 0;
            #[doc = "(512) 11"]
            pub const FRINDEX_1: u32 = 0x01;
            #[doc = "(256) 10"]
            pub const FRINDEX_2: u32 = 0x02;
            #[doc = "(128) 9"]
            pub const FRINDEX_3: u32 = 0x03;
            #[doc = "(64) 8"]
            pub const FRINDEX_4: u32 = 0x04;
            #[doc = "(32) 7"]
            pub const FRINDEX_5: u32 = 0x05;
            #[doc = "(16) 6"]
            pub const FRINDEX_6: u32 = 0x06;
            #[doc = "(8) 5"]
            pub const FRINDEX_7: u32 = 0x07;
        }
    }
}
#[doc = "Device Address"]
pub mod DEVICEADDR {
    #[doc = "Device Address Advance"]
    pub mod USBADRA {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Device Address. These bits correspond to the USB device address"]
    pub mod USBADR {
        pub const offset: u32 = 25;
        pub const mask: u32 = 0x7f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Next Asynch. Address"]
pub mod ASYNCLISTADDR {
    #[doc = "Link Pointer Low (LPL)"]
    pub mod ASYBASE {
        pub const offset: u32 = 5;
        pub const mask: u32 = 0x07ff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Programmable Burst Size"]
pub mod BURSTSIZE {
    #[doc = "Programmable RX Burst Size"]
    pub mod RXPBURST {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Programmable TX Burst Size"]
    pub mod TXPBURST {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x01ff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "TX FIFO Fill Tuning"]
pub mod TXFILLTUNING {
    #[doc = "Scheduler Overhead"]
    pub mod TXSCHOH {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Scheduler Health Counter"]
    pub mod TXSCHHEALTH {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x1f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "FIFO Burst Threshold"]
    pub mod TXFIFOTHRES {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x3f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Endpoint NAK"]
pub mod ENDPTNAK {
    #[doc = "RX Endpoint NAK - R/WC"]
    pub mod EPRN {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "TX Endpoint NAK - R/WC"]
    pub mod EPTN {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Endpoint NAK Enable"]
pub mod ENDPTNAKEN {
    #[doc = "RX Endpoint NAK Enable - R/W"]
    pub mod EPRNE {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "TX Endpoint NAK Enable - R/W"]
    pub mod EPTNE {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Configure Flag Register"]
pub mod CONFIGFLAG {
    #[doc = "Configure Flag Host software sets this bit as the last action in its process of configuring the Host Controller"]
    pub mod CF {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Port routing control logic default-routes each port to an implementation dependent classic host controller."]
            pub const CF_0: u32 = 0;
            #[doc = "Port routing control logic default-routes all ports to this host controller."]
            pub const CF_1: u32 = 0x01;
        }
    }
}
#[doc = "Port Status & Control"]
pub mod PORTSC1 {
    #[doc = "Current Connect Status-Read Only"]
    pub mod CCS {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Connect Status Change-R/WC"]
    pub mod CSC {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Port Enabled/Disabled-Read/Write"]
    pub mod PE {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Port Enable/Disable Change-R/WC"]
    pub mod PEC {
        pub const offset: u32 = 3;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Over-current Active-Read Only"]
    pub mod OCA {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "This port does not have an over-current condition."]
            pub const OCA_0: u32 = 0;
            #[doc = "This port currently has an over-current condition"]
            pub const OCA_1: u32 = 0x01;
        }
    }
    #[doc = "Over-current Change-R/WC"]
    pub mod OCC {
        pub const offset: u32 = 5;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Force Port Resume -Read/Write"]
    pub mod FPR {
        pub const offset: u32 = 6;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Suspend - Read/Write or Read Only"]
    pub mod SUSP {
        pub const offset: u32 = 7;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Port Reset - Read/Write or Read Only"]
    pub mod PR {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "High-Speed Port - Read Only"]
    pub mod HSP {
        pub const offset: u32 = 9;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Line Status-Read Only"]
    pub mod LS {
        pub const offset: u32 = 10;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "SE0"]
            pub const LS_0: u32 = 0;
            #[doc = "K-state"]
            pub const LS_1: u32 = 0x01;
            #[doc = "J-state"]
            pub const LS_2: u32 = 0x02;
            #[doc = "Undefined"]
            pub const LS_3: u32 = 0x03;
        }
    }
    #[doc = "Port Power (PP)-Read/Write or Read Only"]
    pub mod PP {
        pub const offset: u32 = 12;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Port Owner-Read/Write"]
    pub mod PO {
        pub const offset: u32 = 13;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Port Indicator Control - Read/Write"]
    pub mod PIC {
        pub const offset: u32 = 14;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Port indicators are off"]
            pub const PIC_0: u32 = 0;
            #[doc = "Amber"]
            pub const PIC_1: u32 = 0x01;
            #[doc = "Green"]
            pub const PIC_2: u32 = 0x02;
            #[doc = "Undefined"]
            pub const PIC_3: u32 = 0x03;
        }
    }
    #[doc = "Port Test Control - Read/Write"]
    pub mod PTC {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "TEST_MODE_DISABLE"]
            pub const PTC_0: u32 = 0;
            #[doc = "J_STATE"]
            pub const PTC_1: u32 = 0x01;
            #[doc = "K_STATE"]
            pub const PTC_2: u32 = 0x02;
            #[doc = "SE0 (host) / NAK (device)"]
            pub const PTC_3: u32 = 0x03;
            #[doc = "Packet"]
            pub const PTC_4: u32 = 0x04;
            #[doc = "FORCE_ENABLE_HS"]
            pub const PTC_5: u32 = 0x05;
            #[doc = "FORCE_ENABLE_FS"]
            pub const PTC_6: u32 = 0x06;
            #[doc = "FORCE_ENABLE_LS"]
            pub const PTC_7: u32 = 0x07;
        }
    }
    #[doc = "Wake on Connect Enable (WKCNNT_E) - Read/Write"]
    pub mod WKCN {
        pub const offset: u32 = 20;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Wake on Disconnect Enable (WKDSCNNT_E) - Read/Write"]
    pub mod WKDC {
        pub const offset: u32 = 21;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Wake on Over-current Enable (WKOC_E) - Read/Write"]
    pub mod WKOC {
        pub const offset: u32 = 22;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "PHY Low Power Suspend - Clock Disable (PLPSCD) - Read/Write"]
    pub mod PHCD {
        pub const offset: u32 = 23;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Enable PHY clock"]
            pub const PHCD_0: u32 = 0;
            #[doc = "Disable PHY clock"]
            pub const PHCD_1: u32 = 0x01;
        }
    }
    #[doc = "Port Force Full Speed Connect - Read/Write"]
    pub mod PFSC {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Normal operation"]
            pub const PFSC_0: u32 = 0;
            #[doc = "Forced to full speed"]
            pub const PFSC_1: u32 = 0x01;
        }
    }
    #[doc = "See description at bits 31-30"]
    pub mod PTS_2 {
        pub const offset: u32 = 25;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Port Speed - Read Only. This register field indicates the speed at which the port is operating."]
    pub mod PSPD {
        pub const offset: u32 = 26;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Full Speed"]
            pub const PSPD_0: u32 = 0;
            #[doc = "Low Speed"]
            pub const PSPD_1: u32 = 0x01;
            #[doc = "High Speed"]
            pub const PSPD_2: u32 = 0x02;
            #[doc = "Undefined"]
            pub const PSPD_3: u32 = 0x03;
        }
    }
    #[doc = "Parallel Transceiver Width This bit has no effect if serial interface engine is used"]
    pub mod PTW {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Select the 8-bit UTMI interface \\[60MHz\\]"]
            pub const PTW_0: u32 = 0;
            #[doc = "Select the 16-bit UTMI interface \\[30MHz\\]"]
            pub const PTW_1: u32 = 0x01;
        }
    }
    #[doc = "Serial Transceiver Select 1 Serial Interface Engine is selected 0 Parallel Interface signals is selected Serial Interface Engine can be used in combination with UTMI+/ULPI physical interface to provide FS/LS signaling instead of the parallel interface signals"]
    pub mod STS {
        pub const offset: u32 = 29;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "All USB port interface modes are listed in this field description, but not all are supported"]
    pub mod PTS_1 {
        pub const offset: u32 = 30;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "On-The-Go Status & control"]
pub mod OTGSC {
    #[doc = "VBUS_Discharge - Read/Write. Setting this bit causes VBus to discharge through a resistor."]
    pub mod VD {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "VBUS Charge - Read/Write"]
    pub mod VC {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "OTG Termination - Read/Write"]
    pub mod OT {
        pub const offset: u32 = 3;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Data Pulsing - Read/Write"]
    pub mod DP {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "ID Pullup - Read/Write This bit provide control over the ID pull-up resistor; 0 = off, 1 = on \\[default\\]"]
    pub mod IDPU {
        pub const offset: u32 = 5;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "USB ID - Read Only. 0 = A device, 1 = B device"]
    pub mod ID {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "A VBus Valid - Read Only. Indicates VBus is above the A VBus valid threshold."]
    pub mod AVV {
        pub const offset: u32 = 9;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "A Session Valid - Read Only. Indicates VBus is above the A session valid threshold."]
    pub mod ASV {
        pub const offset: u32 = 10;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "B Session Valid - Read Only. Indicates VBus is above the B session valid threshold."]
    pub mod BSV {
        pub const offset: u32 = 11;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "B Session End - Read Only. Indicates VBus is below the B session end threshold."]
    pub mod BSE {
        pub const offset: u32 = 12;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "1 millisecond timer toggle - Read Only. This bit toggles once per millisecond."]
    pub mod TOG_1MS {
        pub const offset: u32 = 13;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Data Bus Pulsing Status - Read Only"]
    pub mod DPS {
        pub const offset: u32 = 14;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "USB ID Interrupt Status - Read/Write"]
    pub mod IDIS {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "A VBus Valid Interrupt Status - Read/Write to Clear"]
    pub mod AVVIS {
        pub const offset: u32 = 17;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "A Session Valid Interrupt Status - Read/Write to Clear"]
    pub mod ASVIS {
        pub const offset: u32 = 18;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "B Session Valid Interrupt Status - Read/Write to Clear"]
    pub mod BSVIS {
        pub const offset: u32 = 19;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "B Session End Interrupt Status - Read/Write to Clear"]
    pub mod BSEIS {
        pub const offset: u32 = 20;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "1 millisecond timer Interrupt Status - Read/Write to Clear"]
    pub mod STATUS_1MS {
        pub const offset: u32 = 21;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Data Pulse Interrupt Status - Read/Write to Clear"]
    pub mod DPIS {
        pub const offset: u32 = 22;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "USB ID Interrupt Enable - Read/Write. Setting this bit enables the USB ID interrupt."]
    pub mod IDIE {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "A VBus Valid Interrupt Enable - Read/Write. Setting this bit enables the A VBus valid interrupt."]
    pub mod AVVIE {
        pub const offset: u32 = 25;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "A Session Valid Interrupt Enable - Read/Write"]
    pub mod ASVIE {
        pub const offset: u32 = 26;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "B Session Valid Interrupt Enable - Read/Write"]
    pub mod BSVIE {
        pub const offset: u32 = 27;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "B Session End Interrupt Enable - Read/Write. Setting this bit enables the B session end interrupt."]
    pub mod BSEIE {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "1 millisecond timer Interrupt Enable - Read/Write"]
    pub mod EN_1MS {
        pub const offset: u32 = 29;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Data Pulse Interrupt Enable"]
    pub mod DPIE {
        pub const offset: u32 = 30;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "USB Device Mode"]
pub mod USBMODE {
    #[doc = "Controller Mode - R/WO"]
    pub mod CM {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Idle \\[Default for combination host/device\\]"]
            pub const CM_0: u32 = 0;
            #[doc = "Device Controller \\[Default for device only controller\\]"]
            pub const CM_2: u32 = 0x02;
            #[doc = "Host Controller \\[Default for host only controller\\]"]
            pub const CM_3: u32 = 0x03;
        }
    }
    #[doc = "Endian Select - Read/Write"]
    pub mod ES {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Little Endian \\[Default\\]"]
            pub const ES_0: u32 = 0;
            #[doc = "Big Endian"]
            pub const ES_1: u32 = 0x01;
        }
    }
    #[doc = "Setup Lockout Mode"]
    pub mod SLOM {
        pub const offset: u32 = 3;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Setup Lockouts On (default);"]
            pub const SLOM_0: u32 = 0;
            #[doc = "Setup Lockouts Off (DCD requires use of Setup Data Buffer Tripwire in USBCMDUSB Command Register ."]
            pub const SLOM_1: u32 = 0x01;
        }
    }
    #[doc = "Stream Disable Mode"]
    pub mod SDIS {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Endpoint Setup Status"]
pub mod ENDPTSETUPSTAT {
    #[doc = "Setup Endpoint Status"]
    pub mod ENDPTSETUPSTAT {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Endpoint Prime"]
pub mod ENDPTPRIME {
    #[doc = "Prime Endpoint Receive Buffer - R/WS"]
    pub mod PERB {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Prime Endpoint Transmit Buffer - R/WS"]
    pub mod PETB {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Endpoint Flush"]
pub mod ENDPTFLUSH {
    #[doc = "Flush Endpoint Receive Buffer - R/WS"]
    pub mod FERB {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Flush Endpoint Transmit Buffer - R/WS"]
    pub mod FETB {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Endpoint Status"]
pub mod ENDPTSTAT {
    #[doc = "Endpoint Receive Buffer Ready -- Read Only"]
    pub mod ERBR {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Endpoint Transmit Buffer Ready -- Read Only"]
    pub mod ETBR {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Endpoint Complete"]
pub mod ENDPTCOMPLETE {
    #[doc = "Endpoint Receive Complete Event - RW/C"]
    pub mod ERCE {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Endpoint Transmit Complete Event - R/WC"]
    pub mod ETCE {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Endpoint Control0"]
pub mod ENDPTCTRL0 {
    #[doc = "RX Endpoint Stall - Read/Write 0 End Point OK"]
    pub mod RXS {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "RX Endpoint Type - Read/Write 00 Control Endpoint0 is fixed as a Control End Point."]
    pub mod RXT {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "RX Endpoint Enable 1 Enabled Endpoint0 is always enabled."]
    pub mod RXE {
        pub const offset: u32 = 7;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "TX Endpoint Stall - Read/Write 0 End Point OK \\[Default\\] 1 End Point Stalled Software can write a one to this bit to force the endpoint to return a STALL handshake to the Host"]
    pub mod TXS {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "TX Endpoint Type - Read/Write 00 - Control Endpoint0 is fixed as a Control End Point."]
    pub mod TXT {
        pub const offset: u32 = 18;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "TX Endpoint Enable 1 Enabled Endpoint0 is always enabled."]
    pub mod TXE {
        pub const offset: u32 = 23;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Endpoint Control"]
pub mod ENDPTCTRL {
    #[doc = "RX Endpoint Stall - Read/Write 0 End Point OK"]
    pub mod RXS {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "RX Endpoint Data Sink - Read/Write 0 Dual Port Memory Buffer/DMA Engine \\[Default\\] Should always be written as zero"]
    pub mod RXD {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "RX Endpoint Type - Read/Write 00 Control 01 Isochronous 10 Bulk 11 Interrupt"]
    pub mod RXT {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "RX Data Toggle Inhibit 0 Disabled \\[Default\\] 1 Enabled This bit is only used for test and should always be written as zero"]
    pub mod RXI {
        pub const offset: u32 = 5;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "RX Data Toggle Reset (WS) Write 1 - Reset PID Sequence Whenever a configuration event is received for this Endpoint, software must write a one to this bit in order to synchronize the data PID's between the host and device"]
    pub mod RXR {
        pub const offset: u32 = 6;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "RX Endpoint Enable 0 Disabled \\[Default\\] 1 Enabled An Endpoint should be enabled only after it has been configured"]
    pub mod RXE {
        pub const offset: u32 = 7;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "TX Endpoint Stall - Read/Write 0 End Point OK 1 End Point Stalled This bit will be cleared automatically upon receipt of a SETUP request if this Endpoint is configured as a Control Endpoint and this bit will continue to be cleared by hardware until the associated ENDPTSETUPSTAT bit is cleared"]
    pub mod TXS {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "TX Endpoint Data Source - Read/Write 0 Dual Port Memory Buffer/DMA Engine \\[DEFAULT\\] Should always be written as 0"]
    pub mod TXD {
        pub const offset: u32 = 17;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "TX Endpoint Type - Read/Write 00 Control 01 Isochronous 10 Bulk 11 Interrupt"]
    pub mod TXT {
        pub const offset: u32 = 18;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "TX Data Toggle Inhibit 0 PID Sequencing Enabled"]
    pub mod TXI {
        pub const offset: u32 = 21;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "TX Data Toggle Reset (WS) Write 1 - Reset PID Sequence Whenever a configuration event is received for this Endpoint, software must write a one to this bit in order to synchronize the data PID's between the Host and device"]
    pub mod TXR {
        pub const offset: u32 = 22;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "TX Endpoint Enable 0 Disabled \\[Default\\] 1 Enabled An Endpoint should be enabled only after it has been configured"]
    pub mod TXE {
        pub const offset: u32 = 23;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}