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
#[doc = "PWM"]
#[repr(C)]
pub struct RegisterBlock {
    #[doc = "Cluster SM%s, containing SM?CNT, SM?INIT, SM?CTRL2, SM?CTRL, SM?VAL0, SM?FRACVAL1, SM?VAL1, SM?FRACVAL2, SM?VAL2, SM?FRACVAL3, SM?VAL3, SM?FRACVAL4, SM?VAL4, SM?FRACVAL5, SM?VAL5, SM?FRCTRL, SM?OCTRL, SM?STS, SM?INTEN, SM?DMAEN, SM?TCTRL, SM?DISMAP0, SM?DISMAP1, SM?DTCNT0, SM?DTCNT1, SM?CAPTCTRLA, SM?CAPTCOMPA, SM?CAPTCTRLB, SM?CAPTCOMPB, SM?CAPTCTRLX, SM?CAPTCOMPX, SM?CVAL0, SM?CVAL0CYC, SM?CVAL1, SM?CVAL1CYC, SM?CVAL2, SM?CVAL2CYC, SM?CVAL3, SM?CVAL3CYC, SM?CVAL4, SM?CVAL4CYC, SM?CVAL5, SM?CVAL5CYC"]
    pub SM: [sm::RegisterBlock; 4usize],
    #[doc = "Output Enable Register"]
    pub OUTEN: crate::RWRegister<u16>,
    #[doc = "Mask Register"]
    pub MASK: crate::RWRegister<u16>,
    #[doc = "Software Controlled Output Register"]
    pub SWCOUT: crate::RWRegister<u16>,
    #[doc = "PWM Source Select Register"]
    pub DTSRCSEL: crate::RWRegister<u16>,
    #[doc = "Master Control Register"]
    pub MCTRL: crate::RWRegister<u16>,
    #[doc = "Master Control 2 Register"]
    pub MCTRL2: crate::RWRegister<u16>,
    #[doc = "Fault Control Register"]
    pub FCTRL0: crate::RWRegister<u16>,
    #[doc = "Fault Status Register"]
    pub FSTS0: crate::RWRegister<u16>,
    #[doc = "Fault Filter Register"]
    pub FFILT0: crate::RWRegister<u16>,
    #[doc = "Fault Test Register"]
    pub FTST0: crate::RWRegister<u16>,
    #[doc = "Fault Control 2 Register"]
    pub FCTRL20: crate::RWRegister<u16>,
}
#[doc = "Output Enable Register"]
pub mod OUTEN {
    #[doc = "PWM_X Output Enables"]
    pub mod PWMX_EN {
        pub const offset: u16 = 0;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "PWM_X output disabled."]
            pub const PWMX_EN_0: u16 = 0;
            #[doc = "PWM_X output enabled."]
            pub const PWMX_EN_1: u16 = 0x01;
        }
    }
    #[doc = "PWM_B Output Enables"]
    pub mod PWMB_EN {
        pub const offset: u16 = 4;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "PWM_B output disabled."]
            pub const PWMB_EN_0: u16 = 0;
            #[doc = "PWM_B output enabled."]
            pub const PWMB_EN_1: u16 = 0x01;
        }
    }
    #[doc = "PWM_A Output Enables"]
    pub mod PWMA_EN {
        pub const offset: u16 = 8;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "PWM_A output disabled."]
            pub const PWMA_EN_0: u16 = 0;
            #[doc = "PWM_A output enabled."]
            pub const PWMA_EN_1: u16 = 0x01;
        }
    }
}
#[doc = "Mask Register"]
pub mod MASK {
    #[doc = "PWM_X Masks"]
    pub mod MASKX {
        pub const offset: u16 = 0;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "PWM_X output normal."]
            pub const MASKX_0: u16 = 0;
            #[doc = "PWM_X output masked."]
            pub const MASKX_1: u16 = 0x01;
        }
    }
    #[doc = "PWM_B Masks"]
    pub mod MASKB {
        pub const offset: u16 = 4;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "PWM_B output normal."]
            pub const MASKB_0: u16 = 0;
            #[doc = "PWM_B output masked."]
            pub const MASKB_1: u16 = 0x01;
        }
    }
    #[doc = "PWM_A Masks"]
    pub mod MASKA {
        pub const offset: u16 = 8;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "PWM_A output normal."]
            pub const MASKA_0: u16 = 0;
            #[doc = "PWM_A output masked."]
            pub const MASKA_1: u16 = 0x01;
        }
    }
    #[doc = "Update Mask Bits Immediately"]
    pub mod UPDATE_MASK {
        pub const offset: u16 = 12;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Normal operation. MASK* bits within the corresponding submodule are not updated until a FORCE_OUT event occurs within the submodule."]
            pub const UPDATE_MASK_0: u16 = 0;
            #[doc = "Immediate operation. MASK* bits within the corresponding submodule are updated on the following clock edge after setting this bit."]
            pub const UPDATE_MASK_1: u16 = 0x01;
        }
    }
}
#[doc = "Software Controlled Output Register"]
pub mod SWCOUT {
    #[doc = "Submodule 0 Software Controlled Output 45"]
    pub mod SM0OUT45 {
        pub const offset: u16 = 0;
        pub const mask: u16 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "A logic 0 is supplied to the deadtime generator of submodule 0 instead of PWM45."]
            pub const SM0OUT45_0: u16 = 0;
            #[doc = "A logic 1 is supplied to the deadtime generator of submodule 0 instead of PWM45."]
            pub const SM0OUT45_1: u16 = 0x01;
        }
    }
    #[doc = "Submodule 0 Software Controlled Output 23"]
    pub mod SM0OUT23 {
        pub const offset: u16 = 1;
        pub const mask: u16 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "A logic 0 is supplied to the deadtime generator of submodule 0 instead of PWM23."]
            pub const SM0OUT23_0: u16 = 0;
            #[doc = "A logic 1 is supplied to the deadtime generator of submodule 0 instead of PWM23."]
            pub const SM0OUT23_1: u16 = 0x01;
        }
    }
    #[doc = "Submodule 1 Software Controlled Output 45"]
    pub mod SM1OUT45 {
        pub const offset: u16 = 2;
        pub const mask: u16 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "A logic 0 is supplied to the deadtime generator of submodule 1 instead of PWM45."]
            pub const SM1OUT45_0: u16 = 0;
            #[doc = "A logic 1 is supplied to the deadtime generator of submodule 1 instead of PWM45."]
            pub const SM1OUT45_1: u16 = 0x01;
        }
    }
    #[doc = "Submodule 1 Software Controlled Output 23"]
    pub mod SM1OUT23 {
        pub const offset: u16 = 3;
        pub const mask: u16 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "A logic 0 is supplied to the deadtime generator of submodule 1 instead of PWM23."]
            pub const SM1OUT23_0: u16 = 0;
            #[doc = "A logic 1 is supplied to the deadtime generator of submodule 1 instead of PWM23."]
            pub const SM1OUT23_1: u16 = 0x01;
        }
    }
    #[doc = "Submodule 2 Software Controlled Output 45"]
    pub mod SM2OUT45 {
        pub const offset: u16 = 4;
        pub const mask: u16 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "A logic 0 is supplied to the deadtime generator of submodule 2 instead of PWM45."]
            pub const SM2OUT45_0: u16 = 0;
            #[doc = "A logic 1 is supplied to the deadtime generator of submodule 2 instead of PWM45."]
            pub const SM2OUT45_1: u16 = 0x01;
        }
    }
    #[doc = "Submodule 2 Software Controlled Output 23"]
    pub mod SM2OUT23 {
        pub const offset: u16 = 5;
        pub const mask: u16 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "A logic 0 is supplied to the deadtime generator of submodule 2 instead of PWM23."]
            pub const SM2OUT23_0: u16 = 0;
            #[doc = "A logic 1 is supplied to the deadtime generator of submodule 2 instead of PWM23."]
            pub const SM2OUT23_1: u16 = 0x01;
        }
    }
    #[doc = "Submodule 3 Software Controlled Output 45"]
    pub mod SM3OUT45 {
        pub const offset: u16 = 6;
        pub const mask: u16 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "A logic 0 is supplied to the deadtime generator of submodule 3 instead of PWM45."]
            pub const SM3OUT45_0: u16 = 0;
            #[doc = "A logic 1 is supplied to the deadtime generator of submodule 3 instead of PWM45."]
            pub const SM3OUT45_1: u16 = 0x01;
        }
    }
    #[doc = "Submodule 3 Software Controlled Output 23"]
    pub mod SM3OUT23 {
        pub const offset: u16 = 7;
        pub const mask: u16 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "A logic 0 is supplied to the deadtime generator of submodule 3 instead of PWM23."]
            pub const SM3OUT23_0: u16 = 0;
            #[doc = "A logic 1 is supplied to the deadtime generator of submodule 3 instead of PWM23."]
            pub const SM3OUT23_1: u16 = 0x01;
        }
    }
}
#[doc = "PWM Source Select Register"]
pub mod DTSRCSEL {
    #[doc = "Submodule 0 PWM45 Control Select"]
    pub mod SM0SEL45 {
        pub const offset: u16 = 0;
        pub const mask: u16 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Generated SM0PWM45 signal is used by the deadtime logic."]
            pub const SM0SEL45_0: u16 = 0;
            #[doc = "Inverted generated SM0PWM45 signal is used by the deadtime logic."]
            pub const SM0SEL45_1: u16 = 0x01;
            #[doc = "SWCOUT\\[SM0OUT45\\] is used by the deadtime logic."]
            pub const SM0SEL45_2: u16 = 0x02;
            #[doc = "PWM0_EXTB signal is used by the deadtime logic."]
            pub const SM0SEL45_3: u16 = 0x03;
        }
    }
    #[doc = "Submodule 0 PWM23 Control Select"]
    pub mod SM0SEL23 {
        pub const offset: u16 = 2;
        pub const mask: u16 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Generated SM0PWM23 signal is used by the deadtime logic."]
            pub const SM0SEL23_0: u16 = 0;
            #[doc = "Inverted generated SM0PWM23 signal is used by the deadtime logic."]
            pub const SM0SEL23_1: u16 = 0x01;
            #[doc = "SWCOUT\\[SM0OUT23\\] is used by the deadtime logic."]
            pub const SM0SEL23_2: u16 = 0x02;
            #[doc = "PWM0_EXTA signal is used by the deadtime logic."]
            pub const SM0SEL23_3: u16 = 0x03;
        }
    }
    #[doc = "Submodule 1 PWM45 Control Select"]
    pub mod SM1SEL45 {
        pub const offset: u16 = 4;
        pub const mask: u16 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Generated SM1PWM45 signal is used by the deadtime logic."]
            pub const SM1SEL45_0: u16 = 0;
            #[doc = "Inverted generated SM1PWM45 signal is used by the deadtime logic."]
            pub const SM1SEL45_1: u16 = 0x01;
            #[doc = "SWCOUT\\[SM1OUT45\\] is used by the deadtime logic."]
            pub const SM1SEL45_2: u16 = 0x02;
            #[doc = "PWM1_EXTB signal is used by the deadtime logic."]
            pub const SM1SEL45_3: u16 = 0x03;
        }
    }
    #[doc = "Submodule 1 PWM23 Control Select"]
    pub mod SM1SEL23 {
        pub const offset: u16 = 6;
        pub const mask: u16 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Generated SM1PWM23 signal is used by the deadtime logic."]
            pub const SM1SEL23_0: u16 = 0;
            #[doc = "Inverted generated SM1PWM23 signal is used by the deadtime logic."]
            pub const SM1SEL23_1: u16 = 0x01;
            #[doc = "SWCOUT\\[SM1OUT23\\] is used by the deadtime logic."]
            pub const SM1SEL23_2: u16 = 0x02;
            #[doc = "PWM1_EXTA signal is used by the deadtime logic."]
            pub const SM1SEL23_3: u16 = 0x03;
        }
    }
    #[doc = "Submodule 2 PWM45 Control Select"]
    pub mod SM2SEL45 {
        pub const offset: u16 = 8;
        pub const mask: u16 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Generated SM2PWM45 signal is used by the deadtime logic."]
            pub const SM2SEL45_0: u16 = 0;
            #[doc = "Inverted generated SM2PWM45 signal is used by the deadtime logic."]
            pub const SM2SEL45_1: u16 = 0x01;
            #[doc = "SWCOUT\\[SM2OUT45\\] is used by the deadtime logic."]
            pub const SM2SEL45_2: u16 = 0x02;
            #[doc = "PWM2_EXTB signal is used by the deadtime logic."]
            pub const SM2SEL45_3: u16 = 0x03;
        }
    }
    #[doc = "Submodule 2 PWM23 Control Select"]
    pub mod SM2SEL23 {
        pub const offset: u16 = 10;
        pub const mask: u16 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Generated SM2PWM23 signal is used by the deadtime logic."]
            pub const SM2SEL23_0: u16 = 0;
            #[doc = "Inverted generated SM2PWM23 signal is used by the deadtime logic."]
            pub const SM2SEL23_1: u16 = 0x01;
            #[doc = "SWCOUT\\[SM2OUT23\\] is used by the deadtime logic."]
            pub const SM2SEL23_2: u16 = 0x02;
            #[doc = "PWM2_EXTA signal is used by the deadtime logic."]
            pub const SM2SEL23_3: u16 = 0x03;
        }
    }
    #[doc = "Submodule 3 PWM45 Control Select"]
    pub mod SM3SEL45 {
        pub const offset: u16 = 12;
        pub const mask: u16 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Generated SM3PWM45 signal is used by the deadtime logic."]
            pub const SM3SEL45_0: u16 = 0;
            #[doc = "Inverted generated SM3PWM45 signal is used by the deadtime logic."]
            pub const SM3SEL45_1: u16 = 0x01;
            #[doc = "SWCOUT\\[SM3OUT45\\] is used by the deadtime logic."]
            pub const SM3SEL45_2: u16 = 0x02;
            #[doc = "PWM3_EXTB signal is used by the deadtime logic."]
            pub const SM3SEL45_3: u16 = 0x03;
        }
    }
    #[doc = "Submodule 3 PWM23 Control Select"]
    pub mod SM3SEL23 {
        pub const offset: u16 = 14;
        pub const mask: u16 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Generated SM3PWM23 signal is used by the deadtime logic."]
            pub const SM3SEL23_0: u16 = 0;
            #[doc = "Inverted generated SM3PWM23 signal is used by the deadtime logic."]
            pub const SM3SEL23_1: u16 = 0x01;
            #[doc = "SWCOUT\\[SM3OUT23\\] is used by the deadtime logic."]
            pub const SM3SEL23_2: u16 = 0x02;
            #[doc = "PWM3_EXTA signal is used by the deadtime logic."]
            pub const SM3SEL23_3: u16 = 0x03;
        }
    }
}
#[doc = "Master Control Register"]
pub mod MCTRL {
    #[doc = "Load Okay"]
    pub mod LDOK {
        pub const offset: u16 = 0;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Do not load new values."]
            pub const LDOK_0: u16 = 0;
            #[doc = "Load prescaler, modulus, and PWM values of the corresponding submodule."]
            pub const LDOK_1: u16 = 0x01;
        }
    }
    #[doc = "Clear Load Okay"]
    pub mod CLDOK {
        pub const offset: u16 = 4;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Run"]
    pub mod RUN {
        pub const offset: u16 = 8;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "PWM generator is disabled in the corresponding submodule."]
            pub const RUN_0: u16 = 0;
            #[doc = "PWM generator is enabled in the corresponding submodule."]
            pub const RUN_1: u16 = 0x01;
        }
    }
    #[doc = "Current Polarity"]
    pub mod IPOL {
        pub const offset: u16 = 12;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "PWM23 is used to generate complementary PWM pair in the corresponding submodule."]
            pub const IPOL_0: u16 = 0;
            #[doc = "PWM45 is used to generate complementary PWM pair in the corresponding submodule."]
            pub const IPOL_1: u16 = 0x01;
        }
    }
}
#[doc = "Master Control 2 Register"]
pub mod MCTRL2 {
    #[doc = "Monitor PLL State"]
    pub mod MONPLL {
        pub const offset: u16 = 0;
        pub const mask: u16 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Not locked. Do not monitor PLL operation. Resetting of the fractional delay block in case of PLL losing lock will be controlled by software."]
            pub const MONPLL_0: u16 = 0;
            #[doc = "Not locked. Monitor PLL operation to automatically disable the fractional delay block when the PLL encounters problems."]
            pub const MONPLL_1: u16 = 0x01;
            #[doc = "Locked. Do not monitor PLL operation. Resetting of the fractional delay block in case of PLL losing lock will be controlled by software. These bits are write protected until the next reset."]
            pub const MONPLL_2: u16 = 0x02;
            #[doc = "Locked. Monitor PLL operation to automatically disable the fractional delay block when the PLL encounters problems. These bits are write protected until the next reset."]
            pub const MONPLL_3: u16 = 0x03;
        }
    }
}
#[doc = "Fault Control Register"]
pub mod FCTRL0 {
    #[doc = "Fault Interrupt Enables"]
    pub mod FIE {
        pub const offset: u16 = 0;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "FAULTx CPU interrupt requests disabled."]
            pub const FIE_0: u16 = 0;
            #[doc = "FAULTx CPU interrupt requests enabled."]
            pub const FIE_1: u16 = 0x01;
        }
    }
    #[doc = "Fault Safety Mode"]
    pub mod FSAFE {
        pub const offset: u16 = 4;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Normal mode. PWM outputs disabled by this fault are not enabled until FSTS\\[FFLAGx\\] is clear at the start of a half cycle or full cycle depending on the states of FSTS\\[FHALF\\] and FSTS\\[FFULL\\] without regard to the state of FSTS\\[FFPINx\\]. If neither FHALF nor FFULL is setm then the fault condition cannot be cleared. The PWM outputs disabled by this fault input will not be re-enabled until the actual FAULTx input signal de-asserts since the fault input will combinationally disable the PWM outputs (as programmed in DISMAPn)."]
            pub const FSAFE_0: u16 = 0;
            #[doc = "Safe mode. PWM outputs disabled by this fault are not enabled until FSTS\\[FFLAGx\\] is clear and FSTS\\[FFPINx\\] is clear at the start of a half cycle or full cycle depending on the states of FSTS\\[FHALF\\] and FSTS\\[FFULL\\]. If neither FHLAF nor FFULL is set, then the fault condition cannot be cleared."]
            pub const FSAFE_1: u16 = 0x01;
        }
    }
    #[doc = "Automatic Fault Clearing"]
    pub mod FAUTO {
        pub const offset: u16 = 8;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Manual fault clearing. PWM outputs disabled by this fault are not enabled until FSTS\\[FFLAGx\\] is clear at the start of a half cycle or full cycle depending the states of FSTS\\[FHALF\\] and FSTS\\[FFULL\\]. If neither FFULL nor FHALF is set, then the fault condition cannot be cleared. This is further controlled by FCTRL\\[FSAFE\\]."]
            pub const FAUTO_0: u16 = 0;
            #[doc = "Automatic fault clearing. PWM outputs disabled by this fault are enabled when FSTS\\[FFPINx\\] is clear at the start of a half cycle or full cycle depending on the states of FSTS\\[FHALF\\] and FSTS\\[FFULL\\] without regard to the state of FSTS\\[FFLAGx\\]. If neither FFULL nor FHALF is set, then the fault condition cannot be cleared."]
            pub const FAUTO_1: u16 = 0x01;
        }
    }
    #[doc = "Fault Level"]
    pub mod FLVL {
        pub const offset: u16 = 12;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "A logic 0 on the fault input indicates a fault condition."]
            pub const FLVL_0: u16 = 0;
            #[doc = "A logic 1 on the fault input indicates a fault condition."]
            pub const FLVL_1: u16 = 0x01;
        }
    }
}
#[doc = "Fault Status Register"]
pub mod FSTS0 {
    #[doc = "Fault Flags"]
    pub mod FFLAG {
        pub const offset: u16 = 0;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No fault on the FAULTx pin."]
            pub const FFLAG_0: u16 = 0;
            #[doc = "Fault on the FAULTx pin."]
            pub const FFLAG_1: u16 = 0x01;
        }
    }
    #[doc = "Full Cycle"]
    pub mod FFULL {
        pub const offset: u16 = 4;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "PWM outputs are not re-enabled at the start of a full cycle"]
            pub const FFULL_0: u16 = 0;
            #[doc = "PWM outputs are re-enabled at the start of a full cycle"]
            pub const FFULL_1: u16 = 0x01;
        }
    }
    #[doc = "Filtered Fault Pins"]
    pub mod FFPIN {
        pub const offset: u16 = 8;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Half Cycle Fault Recovery"]
    pub mod FHALF {
        pub const offset: u16 = 12;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "PWM outputs are not re-enabled at the start of a half cycle."]
            pub const FHALF_0: u16 = 0;
            #[doc = "PWM outputs are re-enabled at the start of a half cycle (as defined by VAL0)."]
            pub const FHALF_1: u16 = 0x01;
        }
    }
}
#[doc = "Fault Filter Register"]
pub mod FFILT0 {
    #[doc = "Fault Filter Period"]
    pub mod FILT_PER {
        pub const offset: u16 = 0;
        pub const mask: u16 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Fault Filter Count"]
    pub mod FILT_CNT {
        pub const offset: u16 = 8;
        pub const mask: u16 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Fault Glitch Stretch Enable"]
    pub mod GSTR {
        pub const offset: u16 = 15;
        pub const mask: u16 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Fault input glitch stretching is disabled."]
            pub const GSTR_0: u16 = 0;
            #[doc = "Input fault signals will be stretched to at least 2 IPBus clock cycles."]
            pub const GSTR_1: u16 = 0x01;
        }
    }
}
#[doc = "Fault Test Register"]
pub mod FTST0 {
    #[doc = "Fault Test"]
    pub mod FTEST {
        pub const offset: u16 = 0;
        pub const mask: u16 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No fault"]
            pub const FTEST_0: u16 = 0;
            #[doc = "Cause a simulated fault"]
            pub const FTEST_1: u16 = 0x01;
        }
    }
}
#[doc = "Fault Control 2 Register"]
pub mod FCTRL20 {
    #[doc = "No Combinational Path From Fault Input To PWM Output"]
    pub mod NOCOMB {
        pub const offset: u16 = 0;
        pub const mask: u16 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "There is a combinational link from the fault inputs to the PWM outputs. The fault inputs are combined with the filtered and latched fault signals to disable the PWM outputs."]
            pub const NOCOMB_0: u16 = 0;
            #[doc = "The direct combinational path from the fault inputs to the PWM outputs is disabled and the filtered and latched fault signals are used to disable the PWM outputs."]
            pub const NOCOMB_1: u16 = 0x01;
        }
    }
}
pub mod sm {
    #[doc = "Cluster SM%s, containing SM?CNT, SM?INIT, SM?CTRL2, SM?CTRL, SM?VAL0, SM?FRACVAL1, SM?VAL1, SM?FRACVAL2, SM?VAL2, SM?FRACVAL3, SM?VAL3, SM?FRACVAL4, SM?VAL4, SM?FRACVAL5, SM?VAL5, SM?FRCTRL, SM?OCTRL, SM?STS, SM?INTEN, SM?DMAEN, SM?TCTRL, SM?DISMAP0, SM?DISMAP1, SM?DTCNT0, SM?DTCNT1, SM?CAPTCTRLA, SM?CAPTCOMPA, SM?CAPTCTRLB, SM?CAPTCOMPB, SM?CAPTCTRLX, SM?CAPTCOMPX, SM?CVAL0, SM?CVAL0CYC, SM?CVAL1, SM?CVAL1CYC, SM?CVAL2, SM?CVAL2CYC, SM?CVAL3, SM?CVAL3CYC, SM?CVAL4, SM?CVAL4CYC, SM?CVAL5, SM?CVAL5CYC"]
    #[repr(C)]
    pub struct RegisterBlock {
        #[doc = "Counter Register"]
        pub SMCNT: crate::RORegister<u16>,
        #[doc = "Initial Count Register"]
        pub SMINIT: crate::RWRegister<u16>,
        #[doc = "Control 2 Register"]
        pub SMCTRL2: crate::RWRegister<u16>,
        #[doc = "Control Register"]
        pub SMCTRL: crate::RWRegister<u16>,
        _reserved0: [u8; 0x02],
        #[doc = "Value Register 0"]
        pub SMVAL0: crate::RWRegister<u16>,
        #[doc = "Fractional Value Register 1"]
        pub SMFRACVAL1: crate::RWRegister<u16>,
        #[doc = "Value Register 1"]
        pub SMVAL1: crate::RWRegister<u16>,
        #[doc = "Fractional Value Register 2"]
        pub SMFRACVAL2: crate::RWRegister<u16>,
        #[doc = "Value Register 2"]
        pub SMVAL2: crate::RWRegister<u16>,
        #[doc = "Fractional Value Register 3"]
        pub SMFRACVAL3: crate::RWRegister<u16>,
        #[doc = "Value Register 3"]
        pub SMVAL3: crate::RWRegister<u16>,
        #[doc = "Fractional Value Register 4"]
        pub SMFRACVAL4: crate::RWRegister<u16>,
        #[doc = "Value Register 4"]
        pub SMVAL4: crate::RWRegister<u16>,
        #[doc = "Fractional Value Register 5"]
        pub SMFRACVAL5: crate::RWRegister<u16>,
        #[doc = "Value Register 5"]
        pub SMVAL5: crate::RWRegister<u16>,
        #[doc = "Fractional Control Register"]
        pub SMFRCTRL: crate::RWRegister<u16>,
        #[doc = "Output Control Register"]
        pub SMOCTRL: crate::RWRegister<u16>,
        #[doc = "Status Register"]
        pub SMSTS: crate::RWRegister<u16>,
        #[doc = "Interrupt Enable Register"]
        pub SMINTEN: crate::RWRegister<u16>,
        #[doc = "DMA Enable Register"]
        pub SMDMAEN: crate::RWRegister<u16>,
        #[doc = "Output Trigger Control Register"]
        pub SMTCTRL: crate::RWRegister<u16>,
        #[doc = "Fault Disable Mapping Register 0"]
        pub SMDISMAP0: crate::RWRegister<u16>,
        #[doc = "Fault Disable Mapping Register 1"]
        pub SMDISMAP1: crate::RWRegister<u16>,
        #[doc = "Deadtime Count Register 0"]
        pub SMDTCNT0: crate::RWRegister<u16>,
        #[doc = "Deadtime Count Register 1"]
        pub SMDTCNT1: crate::RWRegister<u16>,
        #[doc = "Capture Control A Register"]
        pub SMCAPTCTRLA: crate::RWRegister<u16>,
        #[doc = "Capture Compare A Register"]
        pub SMCAPTCOMPA: crate::RWRegister<u16>,
        #[doc = "Capture Control B Register"]
        pub SMCAPTCTRLB: crate::RWRegister<u16>,
        #[doc = "Capture Compare B Register"]
        pub SMCAPTCOMPB: crate::RWRegister<u16>,
        #[doc = "Capture Control X Register"]
        pub SMCAPTCTRLX: crate::RWRegister<u16>,
        #[doc = "Capture Compare X Register"]
        pub SMCAPTCOMPX: crate::RWRegister<u16>,
        #[doc = "Capture Value 0 Register"]
        pub SMCVAL0: crate::RORegister<u16>,
        #[doc = "Capture Value 0 Cycle Register"]
        pub SMCVAL0CYC: crate::RORegister<u16>,
        #[doc = "Capture Value 1 Register"]
        pub SMCVAL1: crate::RORegister<u16>,
        #[doc = "Capture Value 1 Cycle Register"]
        pub SMCVAL1CYC: crate::RORegister<u16>,
        #[doc = "Capture Value 2 Register"]
        pub SMCVAL2: crate::RORegister<u16>,
        #[doc = "Capture Value 2 Cycle Register"]
        pub SMCVAL2CYC: crate::RORegister<u16>,
        #[doc = "Capture Value 3 Register"]
        pub SMCVAL3: crate::RORegister<u16>,
        #[doc = "Capture Value 3 Cycle Register"]
        pub SMCVAL3CYC: crate::RORegister<u16>,
        #[doc = "Capture Value 4 Register"]
        pub SMCVAL4: crate::RORegister<u16>,
        #[doc = "Capture Value 4 Cycle Register"]
        pub SMCVAL4CYC: crate::RORegister<u16>,
        #[doc = "Capture Value 5 Register"]
        pub SMCVAL5: crate::RORegister<u16>,
        #[doc = "Capture Value 5 Cycle Register"]
        pub SMCVAL5CYC: crate::RORegister<u16>,
        _reserved1: [u8; 0x08],
    }
    #[doc = "Counter Register"]
    pub mod SMCNT {
        #[doc = "Counter Register Bits"]
        pub mod CNT {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Initial Count Register"]
    pub mod SMINIT {
        #[doc = "Initial Count Register Bits"]
        pub mod INIT {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Control 2 Register"]
    pub mod SMCTRL2 {
        #[doc = "Clock Source Select"]
        pub mod CLK_SEL {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x03 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "The IPBus clock is used as the clock for the local prescaler and counter."]
                pub const CLK_SEL_0: u16 = 0;
                #[doc = "EXT_CLK is used as the clock for the local prescaler and counter."]
                pub const CLK_SEL_1: u16 = 0x01;
                #[doc = "Submodule 0's clock (AUX_CLK) is used as the source clock for the local prescaler and counter. This setting should not be used in submodule 0 as it will force the clock to logic 0."]
                pub const CLK_SEL_2: u16 = 0x02;
            }
        }
        #[doc = "Reload Source Select"]
        pub mod RELOAD_SEL {
            pub const offset: u16 = 2;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "The local RELOAD signal is used to reload registers."]
                pub const RELOAD_SEL_0: u16 = 0;
                #[doc = "The master RELOAD signal (from submodule 0) is used to reload registers. This setting should not be used in submodule 0 as it will force the RELOAD signal to logic 0."]
                pub const RELOAD_SEL_1: u16 = 0x01;
            }
        }
        #[doc = "This read/write bit determines the source of the FORCE OUTPUT signal for this submodule."]
        pub mod FORCE_SEL {
            pub const offset: u16 = 3;
            pub const mask: u16 = 0x07 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "The local force signal, CTRL2\\[FORCE\\], from this submodule is used to force updates."]
                pub const FORCE_SEL_0: u16 = 0;
                #[doc = "The master force signal from submodule 0 is used to force updates. This setting should not be used in submodule 0 as it will hold the FORCE OUTPUT signal to logic 0."]
                pub const FORCE_SEL_1: u16 = 0x01;
                #[doc = "The local reload signal from this submodule is used to force updates without regard to the state of LDOK."]
                pub const FORCE_SEL_2: u16 = 0x02;
                #[doc = "The master reload signal from submodule0 is used to force updates if LDOK is set. This setting should not be used in submodule0 as it will hold the FORCE OUTPUT signal to logic 0."]
                pub const FORCE_SEL_3: u16 = 0x03;
                #[doc = "The local sync signal from this submodule is used to force updates."]
                pub const FORCE_SEL_4: u16 = 0x04;
                #[doc = "The master sync signal from submodule0 is used to force updates. This setting should not be used in submodule0 as it will hold the FORCE OUTPUT signal to logic 0."]
                pub const FORCE_SEL_5: u16 = 0x05;
                #[doc = "The external force signal, EXT_FORCE, from outside the PWM module causes updates."]
                pub const FORCE_SEL_6: u16 = 0x06;
                #[doc = "The external sync signal, EXT_SYNC, from outside the PWM module causes updates."]
                pub const FORCE_SEL_7: u16 = 0x07;
            }
        }
        #[doc = "Force Initialization"]
        pub mod FORCE {
            pub const offset: u16 = 6;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "FRCEN"]
        pub mod FRCEN {
            pub const offset: u16 = 7;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Initialization from a FORCE_OUT is disabled."]
                pub const FRCEN_0: u16 = 0;
                #[doc = "Initialization from a FORCE_OUT is enabled."]
                pub const FRCEN_1: u16 = 0x01;
            }
        }
        #[doc = "Initialization Control Select"]
        pub mod INIT_SEL {
            pub const offset: u16 = 8;
            pub const mask: u16 = 0x03 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Local sync (PWM_X) causes initialization."]
                pub const INIT_SEL_0: u16 = 0;
                #[doc = "Master reload from submodule 0 causes initialization. This setting should not be used in submodule 0 as it will force the INIT signal to logic 0. The submodule counter will only reinitialize when a master reload occurs."]
                pub const INIT_SEL_1: u16 = 0x01;
                #[doc = "Master sync from submodule 0 causes initialization. This setting should not be used in submodule 0 as it will force the INIT signal to logic 0."]
                pub const INIT_SEL_2: u16 = 0x02;
                #[doc = "EXT_SYNC causes initialization."]
                pub const INIT_SEL_3: u16 = 0x03;
            }
        }
        #[doc = "PWM_X Initial Value"]
        pub mod PWMX_INIT {
            pub const offset: u16 = 10;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "PWM45 Initial Value"]
        pub mod PWM45_INIT {
            pub const offset: u16 = 11;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "PWM23 Initial Value"]
        pub mod PWM23_INIT {
            pub const offset: u16 = 12;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Independent or Complementary Pair Operation"]
        pub mod INDEP {
            pub const offset: u16 = 13;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "PWM_A and PWM_B form a complementary PWM pair."]
                pub const INDEP_0: u16 = 0;
                #[doc = "PWM_A and PWM_B outputs are independent PWMs."]
                pub const INDEP_1: u16 = 0x01;
            }
        }
        #[doc = "WAIT Enable"]
        pub mod WAITEN {
            pub const offset: u16 = 14;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Debug Enable"]
        pub mod DBGEN {
            pub const offset: u16 = 15;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Control Register"]
    pub mod SMCTRL {
        #[doc = "Double Switching Enable"]
        pub mod DBLEN {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Double switching disabled."]
                pub const DBLEN_0: u16 = 0;
                #[doc = "Double switching enabled."]
                pub const DBLEN_1: u16 = 0x01;
            }
        }
        #[doc = "PWMX Double Switching Enable"]
        pub mod DBLX {
            pub const offset: u16 = 1;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "PWMX double pulse disabled."]
                pub const DBLX_0: u16 = 0;
                #[doc = "PWMX double pulse enabled."]
                pub const DBLX_1: u16 = 0x01;
            }
        }
        #[doc = "Load Mode Select"]
        pub mod LDMOD {
            pub const offset: u16 = 2;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Buffered registers of this submodule are loaded and take effect at the next PWM reload if MCTRL\\[LDOK\\] is set."]
                pub const LDMOD_0: u16 = 0;
                #[doc = "Buffered registers of this submodule are loaded and take effect immediately upon MCTRL\\[LDOK\\] being set. In this case it is not necessary to set CTRL\\[FULL\\] or CTRL\\[HALF\\]."]
                pub const LDMOD_1: u16 = 0x01;
            }
        }
        #[doc = "Split the DBLPWM signal to PWMA and PWMB"]
        pub mod SPLIT {
            pub const offset: u16 = 3;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "DBLPWM is not split. PWMA and PWMB each have double pulses."]
                pub const SPLIT_0: u16 = 0;
                #[doc = "DBLPWM is split to PWMA and PWMB."]
                pub const SPLIT_1: u16 = 0x01;
            }
        }
        #[doc = "Prescaler"]
        pub mod PRSC {
            pub const offset: u16 = 4;
            pub const mask: u16 = 0x07 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "PWM clock frequency = fclk"]
                pub const PRSC_0: u16 = 0;
                #[doc = "PWM clock frequency = fclk/2"]
                pub const PRSC_1: u16 = 0x01;
                #[doc = "PWM clock frequency = fclk/4"]
                pub const PRSC_2: u16 = 0x02;
                #[doc = "PWM clock frequency = fclk/8"]
                pub const PRSC_3: u16 = 0x03;
                #[doc = "PWM clock frequency = fclk/16"]
                pub const PRSC_4: u16 = 0x04;
                #[doc = "PWM clock frequency = fclk/32"]
                pub const PRSC_5: u16 = 0x05;
                #[doc = "PWM clock frequency = fclk/64"]
                pub const PRSC_6: u16 = 0x06;
                #[doc = "PWM clock frequency = fclk/128"]
                pub const PRSC_7: u16 = 0x07;
            }
        }
        #[doc = "Compare Mode"]
        pub mod COMPMODE {
            pub const offset: u16 = 7;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "The VAL* registers and the PWM counter are compared using an \"equal to\" method. This means that PWM edges are only produced when the counter is equal to one of the VAL* register values. This implies that a PWMA output that is high at the end of a period will maintain this state until a match with VAL3 clears the output in the following period."]
                pub const COMPMODE_0: u16 = 0;
                #[doc = "The VAL* registers and the PWM counter are compared using an \"equal to or greater than\" method. This means that PWM edges are produced when the counter is equal to or greater than one of the VAL* register values. This implies that a PWMA output that is high at the end of a period could go low at the start of the next period if the starting counter value is greater than (but not necessarily equal to) the new VAL3 value."]
                pub const COMPMODE_1: u16 = 0x01;
            }
        }
        #[doc = "Deadtime"]
        pub mod DT {
            pub const offset: u16 = 8;
            pub const mask: u16 = 0x03 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Full Cycle Reload"]
        pub mod FULL {
            pub const offset: u16 = 10;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Full-cycle reloads disabled."]
                pub const FULL_0: u16 = 0;
                #[doc = "Full-cycle reloads enabled."]
                pub const FULL_1: u16 = 0x01;
            }
        }
        #[doc = "Half Cycle Reload"]
        pub mod HALF {
            pub const offset: u16 = 11;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Half-cycle reloads disabled."]
                pub const HALF_0: u16 = 0;
                #[doc = "Half-cycle reloads enabled."]
                pub const HALF_1: u16 = 0x01;
            }
        }
        #[doc = "Load Frequency"]
        pub mod LDFQ {
            pub const offset: u16 = 12;
            pub const mask: u16 = 0x0f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Every PWM opportunity"]
                pub const LDFQ_0: u16 = 0;
                #[doc = "Every 2 PWM opportunities"]
                pub const LDFQ_1: u16 = 0x01;
                #[doc = "Every 3 PWM opportunities"]
                pub const LDFQ_2: u16 = 0x02;
                #[doc = "Every 4 PWM opportunities"]
                pub const LDFQ_3: u16 = 0x03;
                #[doc = "Every 5 PWM opportunities"]
                pub const LDFQ_4: u16 = 0x04;
                #[doc = "Every 6 PWM opportunities"]
                pub const LDFQ_5: u16 = 0x05;
                #[doc = "Every 7 PWM opportunities"]
                pub const LDFQ_6: u16 = 0x06;
                #[doc = "Every 8 PWM opportunities"]
                pub const LDFQ_7: u16 = 0x07;
                #[doc = "Every 9 PWM opportunities"]
                pub const LDFQ_8: u16 = 0x08;
                #[doc = "Every 10 PWM opportunities"]
                pub const LDFQ_9: u16 = 0x09;
                #[doc = "Every 11 PWM opportunities"]
                pub const LDFQ_10: u16 = 0x0a;
                #[doc = "Every 12 PWM opportunities"]
                pub const LDFQ_11: u16 = 0x0b;
                #[doc = "Every 13 PWM opportunities"]
                pub const LDFQ_12: u16 = 0x0c;
                #[doc = "Every 14 PWM opportunities"]
                pub const LDFQ_13: u16 = 0x0d;
                #[doc = "Every 15 PWM opportunities"]
                pub const LDFQ_14: u16 = 0x0e;
                #[doc = "Every 16 PWM opportunities"]
                pub const LDFQ_15: u16 = 0x0f;
            }
        }
    }
    #[doc = "Value Register 0"]
    pub mod SMVAL0 {
        #[doc = "Value Register 0"]
        pub mod VAL0 {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Fractional Value Register 1"]
    pub mod SMFRACVAL1 {
        #[doc = "Fractional Value 1 Register"]
        pub mod FRACVAL1 {
            pub const offset: u16 = 11;
            pub const mask: u16 = 0x1f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Value Register 1"]
    pub mod SMVAL1 {
        #[doc = "Value Register 1"]
        pub mod VAL1 {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Fractional Value Register 2"]
    pub mod SMFRACVAL2 {
        #[doc = "Fractional Value 2"]
        pub mod FRACVAL2 {
            pub const offset: u16 = 11;
            pub const mask: u16 = 0x1f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Value Register 2"]
    pub mod SMVAL2 {
        #[doc = "Value Register 2"]
        pub mod VAL2 {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Fractional Value Register 3"]
    pub mod SMFRACVAL3 {
        #[doc = "Fractional Value 3"]
        pub mod FRACVAL3 {
            pub const offset: u16 = 11;
            pub const mask: u16 = 0x1f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Value Register 3"]
    pub mod SMVAL3 {
        #[doc = "Value Register 3"]
        pub mod VAL3 {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Fractional Value Register 4"]
    pub mod SMFRACVAL4 {
        #[doc = "Fractional Value 4"]
        pub mod FRACVAL4 {
            pub const offset: u16 = 11;
            pub const mask: u16 = 0x1f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Value Register 4"]
    pub mod SMVAL4 {
        #[doc = "Value Register 4"]
        pub mod VAL4 {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Fractional Value Register 5"]
    pub mod SMFRACVAL5 {
        #[doc = "Fractional Value 5"]
        pub mod FRACVAL5 {
            pub const offset: u16 = 11;
            pub const mask: u16 = 0x1f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Value Register 5"]
    pub mod SMVAL5 {
        #[doc = "Value Register 5"]
        pub mod VAL5 {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Fractional Control Register"]
    pub mod SMFRCTRL {
        #[doc = "Fractional Cycle PWM Period Enable"]
        pub mod FRAC1_EN {
            pub const offset: u16 = 1;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Disable fractional cycle length for the PWM period."]
                pub const FRAC1_EN_0: u16 = 0;
                #[doc = "Enable fractional cycle length for the PWM period."]
                pub const FRAC1_EN_1: u16 = 0x01;
            }
        }
        #[doc = "Fractional Cycle Placement Enable for PWM_A"]
        pub mod FRAC23_EN {
            pub const offset: u16 = 2;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Disable fractional cycle placement for PWM_A."]
                pub const FRAC23_EN_0: u16 = 0;
                #[doc = "Enable fractional cycle placement for PWM_A."]
                pub const FRAC23_EN_1: u16 = 0x01;
            }
        }
        #[doc = "Fractional Cycle Placement Enable for PWM_B"]
        pub mod FRAC45_EN {
            pub const offset: u16 = 4;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Disable fractional cycle placement for PWM_B."]
                pub const FRAC45_EN_0: u16 = 0;
                #[doc = "Enable fractional cycle placement for PWM_B."]
                pub const FRAC45_EN_1: u16 = 0x01;
            }
        }
        #[doc = "Fractional Delay Circuit Power Up"]
        pub mod FRAC_PU {
            pub const offset: u16 = 8;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Turn off fractional delay logic."]
                pub const FRAC_PU_0: u16 = 0;
                #[doc = "Power up fractional delay logic."]
                pub const FRAC_PU_1: u16 = 0x01;
            }
        }
        #[doc = "Test Status Bit"]
        pub mod TEST {
            pub const offset: u16 = 15;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Output Control Register"]
    pub mod SMOCTRL {
        #[doc = "PWM_X Fault State"]
        pub mod PWMXFS {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x03 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Output is forced to logic 0 state prior to consideration of output polarity control."]
                pub const PWMXFS_0: u16 = 0;
                #[doc = "Output is forced to logic 1 state prior to consideration of output polarity control."]
                pub const PWMXFS_1: u16 = 0x01;
                #[doc = "Output is tristated."]
                pub const PWMXFS_2: u16 = 0x02;
                #[doc = "Output is tristated."]
                pub const PWMXFS_3: u16 = 0x03;
            }
        }
        #[doc = "PWM_B Fault State"]
        pub mod PWMBFS {
            pub const offset: u16 = 2;
            pub const mask: u16 = 0x03 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Output is forced to logic 0 state prior to consideration of output polarity control."]
                pub const PWMBFS_0: u16 = 0;
                #[doc = "Output is forced to logic 1 state prior to consideration of output polarity control."]
                pub const PWMBFS_1: u16 = 0x01;
                #[doc = "Output is tristated."]
                pub const PWMBFS_2: u16 = 0x02;
                #[doc = "Output is tristated."]
                pub const PWMBFS_3: u16 = 0x03;
            }
        }
        #[doc = "PWM_A Fault State"]
        pub mod PWMAFS {
            pub const offset: u16 = 4;
            pub const mask: u16 = 0x03 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Output is forced to logic 0 state prior to consideration of output polarity control."]
                pub const PWMAFS_0: u16 = 0;
                #[doc = "Output is forced to logic 1 state prior to consideration of output polarity control."]
                pub const PWMAFS_1: u16 = 0x01;
                #[doc = "Output is tristated."]
                pub const PWMAFS_2: u16 = 0x02;
                #[doc = "Output is tristated."]
                pub const PWMAFS_3: u16 = 0x03;
            }
        }
        #[doc = "PWM_X Output Polarity"]
        pub mod POLX {
            pub const offset: u16 = 8;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "PWM_X output not inverted. A high level on the PWM_X pin represents the \"on\" or \"active\" state."]
                pub const POLX_0: u16 = 0;
                #[doc = "PWM_X output inverted. A low level on the PWM_X pin represents the \"on\" or \"active\" state."]
                pub const POLX_1: u16 = 0x01;
            }
        }
        #[doc = "PWM_B Output Polarity"]
        pub mod POLB {
            pub const offset: u16 = 9;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "PWM_B output not inverted. A high level on the PWM_B pin represents the \"on\" or \"active\" state."]
                pub const POLB_0: u16 = 0;
                #[doc = "PWM_B output inverted. A low level on the PWM_B pin represents the \"on\" or \"active\" state."]
                pub const POLB_1: u16 = 0x01;
            }
        }
        #[doc = "PWM_A Output Polarity"]
        pub mod POLA {
            pub const offset: u16 = 10;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "PWM_A output not inverted. A high level on the PWM_A pin represents the \"on\" or \"active\" state."]
                pub const POLA_0: u16 = 0;
                #[doc = "PWM_A output inverted. A low level on the PWM_A pin represents the \"on\" or \"active\" state."]
                pub const POLA_1: u16 = 0x01;
            }
        }
        #[doc = "PWM_X Input"]
        pub mod PWMX_IN {
            pub const offset: u16 = 13;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "PWM_B Input"]
        pub mod PWMB_IN {
            pub const offset: u16 = 14;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "PWM_A Input"]
        pub mod PWMA_IN {
            pub const offset: u16 = 15;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Status Register"]
    pub mod SMSTS {
        #[doc = "Compare Flags"]
        pub mod CMPF {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x3f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "No compare event has occurred for a particular VALx value."]
                pub const CMPF_0: u16 = 0;
                #[doc = "A compare event has occurred for a particular VALx value."]
                pub const CMPF_1: u16 = 0x01;
            }
        }
        #[doc = "Capture Flag X0"]
        pub mod CFX0 {
            pub const offset: u16 = 6;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Capture Flag X1"]
        pub mod CFX1 {
            pub const offset: u16 = 7;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Capture Flag B0"]
        pub mod CFB0 {
            pub const offset: u16 = 8;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Capture Flag B1"]
        pub mod CFB1 {
            pub const offset: u16 = 9;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Capture Flag A0"]
        pub mod CFA0 {
            pub const offset: u16 = 10;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Capture Flag A1"]
        pub mod CFA1 {
            pub const offset: u16 = 11;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Reload Flag"]
        pub mod RF {
            pub const offset: u16 = 12;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "No new reload cycle since last STS\\[RF\\] clearing"]
                pub const RF_0: u16 = 0;
                #[doc = "New reload cycle since last STS\\[RF\\] clearing"]
                pub const RF_1: u16 = 0x01;
            }
        }
        #[doc = "Reload Error Flag"]
        pub mod REF {
            pub const offset: u16 = 13;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "No reload error occurred."]
                pub const REF_0: u16 = 0;
                #[doc = "Reload signal occurred with non-coherent data and MCTRL\\[LDOK\\] = 0."]
                pub const REF_1: u16 = 0x01;
            }
        }
        #[doc = "Registers Updated Flag"]
        pub mod RUF {
            pub const offset: u16 = 14;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "No register update has occurred since last reload."]
                pub const RUF_0: u16 = 0;
                #[doc = "At least one of the double buffered registers has been updated since the last reload."]
                pub const RUF_1: u16 = 0x01;
            }
        }
    }
    #[doc = "Interrupt Enable Register"]
    pub mod SMINTEN {
        #[doc = "Compare Interrupt Enables"]
        pub mod CMPIE {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x3f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "The corresponding STS\\[CMPF\\] bit will not cause an interrupt request."]
                pub const CMPIE_0: u16 = 0;
                #[doc = "The corresponding STS\\[CMPF\\] bit will cause an interrupt request."]
                pub const CMPIE_1: u16 = 0x01;
            }
        }
        #[doc = "Capture X 0 Interrupt Enable"]
        pub mod CX0IE {
            pub const offset: u16 = 6;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Interrupt request disabled for STS\\[CFX0\\]."]
                pub const CX0IE_0: u16 = 0;
                #[doc = "Interrupt request enabled for STS\\[CFX0\\]."]
                pub const CX0IE_1: u16 = 0x01;
            }
        }
        #[doc = "Capture X 1 Interrupt Enable"]
        pub mod CX1IE {
            pub const offset: u16 = 7;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Interrupt request disabled for STS\\[CFX1\\]."]
                pub const CX1IE_0: u16 = 0;
                #[doc = "Interrupt request enabled for STS\\[CFX1\\]."]
                pub const CX1IE_1: u16 = 0x01;
            }
        }
        #[doc = "Capture B 0 Interrupt Enable"]
        pub mod CB0IE {
            pub const offset: u16 = 8;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Interrupt request disabled for STS\\[CFB0\\]."]
                pub const CB0IE_0: u16 = 0;
                #[doc = "Interrupt request enabled for STS\\[CFB0\\]."]
                pub const CB0IE_1: u16 = 0x01;
            }
        }
        #[doc = "Capture B 1 Interrupt Enable"]
        pub mod CB1IE {
            pub const offset: u16 = 9;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Interrupt request disabled for STS\\[CFB1\\]."]
                pub const CB1IE_0: u16 = 0;
                #[doc = "Interrupt request enabled for STS\\[CFB1\\]."]
                pub const CB1IE_1: u16 = 0x01;
            }
        }
        #[doc = "Capture A 0 Interrupt Enable"]
        pub mod CA0IE {
            pub const offset: u16 = 10;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Interrupt request disabled for STS\\[CFA0\\]."]
                pub const CA0IE_0: u16 = 0;
                #[doc = "Interrupt request enabled for STS\\[CFA0\\]."]
                pub const CA0IE_1: u16 = 0x01;
            }
        }
        #[doc = "Capture A 1 Interrupt Enable"]
        pub mod CA1IE {
            pub const offset: u16 = 11;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Interrupt request disabled for STS\\[CFA1\\]."]
                pub const CA1IE_0: u16 = 0;
                #[doc = "Interrupt request enabled for STS\\[CFA1\\]."]
                pub const CA1IE_1: u16 = 0x01;
            }
        }
        #[doc = "Reload Interrupt Enable"]
        pub mod RIE {
            pub const offset: u16 = 12;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "STS\\[RF\\] CPU interrupt requests disabled"]
                pub const RIE_0: u16 = 0;
                #[doc = "STS\\[RF\\] CPU interrupt requests enabled"]
                pub const RIE_1: u16 = 0x01;
            }
        }
        #[doc = "Reload Error Interrupt Enable"]
        pub mod REIE {
            pub const offset: u16 = 13;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "STS\\[REF\\] CPU interrupt requests disabled"]
                pub const REIE_0: u16 = 0;
                #[doc = "STS\\[REF\\] CPU interrupt requests enabled"]
                pub const REIE_1: u16 = 0x01;
            }
        }
    }
    #[doc = "DMA Enable Register"]
    pub mod SMDMAEN {
        #[doc = "Capture X0 FIFO DMA Enable"]
        pub mod CX0DE {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Capture X1 FIFO DMA Enable"]
        pub mod CX1DE {
            pub const offset: u16 = 1;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Capture B0 FIFO DMA Enable"]
        pub mod CB0DE {
            pub const offset: u16 = 2;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Capture B1 FIFO DMA Enable"]
        pub mod CB1DE {
            pub const offset: u16 = 3;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Capture A0 FIFO DMA Enable"]
        pub mod CA0DE {
            pub const offset: u16 = 4;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Capture A1 FIFO DMA Enable"]
        pub mod CA1DE {
            pub const offset: u16 = 5;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Capture DMA Enable Source Select"]
        pub mod CAPTDE {
            pub const offset: u16 = 6;
            pub const mask: u16 = 0x03 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Read DMA requests disabled."]
                pub const CAPTDE_0: u16 = 0;
                #[doc = "Exceeding a FIFO watermark sets the DMA read request. This requires at least one of DMAEN\\[CA1DE\\], DMAEN\\[CA0DE\\], DMAEN\\[CB1DE\\], DMAEN\\[CB0DE\\], DMAEN\\[CX1DE\\], or DMAEN\\[CX0DE\\] to also be set in order to determine to which watermark(s) the DMA request is sensitive."]
                pub const CAPTDE_1: u16 = 0x01;
                #[doc = "A local sync (VAL1 matches counter) sets the read DMA request."]
                pub const CAPTDE_2: u16 = 0x02;
                #[doc = "A local reload (STS\\[RF\\] being set) sets the read DMA request."]
                pub const CAPTDE_3: u16 = 0x03;
            }
        }
        #[doc = "FIFO Watermark AND Control"]
        pub mod FAND {
            pub const offset: u16 = 8;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Selected FIFO watermarks are OR'ed together."]
                pub const FAND_0: u16 = 0;
                #[doc = "Selected FIFO watermarks are AND'ed together."]
                pub const FAND_1: u16 = 0x01;
            }
        }
        #[doc = "Value Registers DMA Enable"]
        pub mod VALDE {
            pub const offset: u16 = 9;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "DMA write requests disabled"]
                pub const VALDE_0: u16 = 0;
                #[doc = "DMA write requests for the VALx and FRACVALx registers enabled"]
                pub const VALDE_1: u16 = 0x01;
            }
        }
    }
    #[doc = "Output Trigger Control Register"]
    pub mod SMTCTRL {
        #[doc = "Output Trigger Enables"]
        pub mod OUT_TRIG_EN {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x3f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "PWM_OUT_TRIGx will not set when the counter value matches the VALx value."]
                pub const OUT_TRIG_EN_0: u16 = 0;
                #[doc = "PWM_OUT_TRIGx will set when the counter value matches the VALx value."]
                pub const OUT_TRIG_EN_1: u16 = 0x01;
            }
        }
        #[doc = "Trigger frequency"]
        pub mod TRGFRQ {
            pub const offset: u16 = 12;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Trigger outputs are generated during every PWM period even if the PWM is not reloaded every period due to CTRL\\[LDFQ\\] being non-zero."]
                pub const TRGFRQ_0: u16 = 0;
                #[doc = "Trigger outputs are generated only during the final PWM period prior to a reload opportunity when the PWM is not reloaded every period due to CTRL\\[LDFQ\\] being non-zero."]
                pub const TRGFRQ_1: u16 = 0x01;
            }
        }
        #[doc = "Output Trigger 1 Source Select"]
        pub mod PWBOT1 {
            pub const offset: u16 = 14;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Route the PWM_OUT_TRIG1 signal to PWM_OUT_TRIG1 port."]
                pub const PWBOT1_0: u16 = 0;
                #[doc = "Route the PWMB output to the PWM_OUT_TRIG1 port."]
                pub const PWBOT1_1: u16 = 0x01;
            }
        }
        #[doc = "Output Trigger 0 Source Select"]
        pub mod PWAOT0 {
            pub const offset: u16 = 15;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Route the PWM_OUT_TRIG0 signal to PWM_OUT_TRIG0 port."]
                pub const PWAOT0_0: u16 = 0;
                #[doc = "Route the PWMA output to the PWM_OUT_TRIG0 port."]
                pub const PWAOT0_1: u16 = 0x01;
            }
        }
    }
    #[doc = "Fault Disable Mapping Register 0"]
    pub mod SMDISMAP0 {
        #[doc = "PWM_A Fault Disable Mask 0"]
        pub mod DIS0A {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x0f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "PWM_B Fault Disable Mask 0"]
        pub mod DIS0B {
            pub const offset: u16 = 4;
            pub const mask: u16 = 0x0f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "PWM_X Fault Disable Mask 0"]
        pub mod DIS0X {
            pub const offset: u16 = 8;
            pub const mask: u16 = 0x0f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Fault Disable Mapping Register 1"]
    pub mod SMDISMAP1 {
        #[doc = "PWM_A Fault Disable Mask 1"]
        pub mod DIS1A {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x0f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "PWM_B Fault Disable Mask 1"]
        pub mod DIS1B {
            pub const offset: u16 = 4;
            pub const mask: u16 = 0x0f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "PWM_X Fault Disable Mask 1"]
        pub mod DIS1X {
            pub const offset: u16 = 8;
            pub const mask: u16 = 0x0f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Deadtime Count Register 0"]
    pub mod SMDTCNT0 {
        #[doc = "DTCNT0"]
        pub mod DTCNT0 {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Deadtime Count Register 1"]
    pub mod SMDTCNT1 {
        #[doc = "DTCNT1"]
        pub mod DTCNT1 {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Control A Register"]
    pub mod SMCAPTCTRLA {
        #[doc = "Arm A"]
        pub mod ARMA {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Input capture operation is disabled."]
                pub const ARMA_0: u16 = 0;
                #[doc = "Input capture operation as specified by CAPTCTRLA\\[EDGAx\\] is enabled."]
                pub const ARMA_1: u16 = 0x01;
            }
        }
        #[doc = "One Shot Mode A"]
        pub mod ONESHOTA {
            pub const offset: u16 = 1;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Free running mode is selected. If both capture circuits are enabled, then capture circuit 0 is armed first after CAPTCTRLA\\[ARMA\\] is set. Once a capture occurs, capture circuit 0 is disarmed and capture circuit 1 is armed. After capture circuit 1 performs a capture, it is disarmed and capture circuit 0 is re-armed. The process continues indefinitely.If only one of the capture circuits is enabled, then captures continue indefinitely on the enabled capture circuit."]
                pub const ONESHOTA_0: u16 = 0;
                #[doc = "One shot mode is selected. If both capture circuits are enabled, then capture circuit 0 is armed first after CAPTCTRLA\\[ARMA\\] is set. Once a capture occurs, capture circuit 0 is disarmed and capture circuit 1 is armed. After capture circuit 1 performs a capture, it is disarmed and CAPTCTRLA\\[ARMA\\] is cleared. No further captures will be performed until CAPTCTRLA\\[ARMA\\] is set again.If only one of the capture circuits is enabled, then a single capture will occur on the enabled capture circuit and CAPTCTRLA\\[ARMA\\] is then cleared."]
                pub const ONESHOTA_1: u16 = 0x01;
            }
        }
        #[doc = "Edge A 0"]
        pub mod EDGA0 {
            pub const offset: u16 = 2;
            pub const mask: u16 = 0x03 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Disabled"]
                pub const EDGA0_0: u16 = 0;
                #[doc = "Capture falling edges"]
                pub const EDGA0_1: u16 = 0x01;
                #[doc = "Capture rising edges"]
                pub const EDGA0_2: u16 = 0x02;
                #[doc = "Capture any edge"]
                pub const EDGA0_3: u16 = 0x03;
            }
        }
        #[doc = "Edge A 1"]
        pub mod EDGA1 {
            pub const offset: u16 = 4;
            pub const mask: u16 = 0x03 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Disabled"]
                pub const EDGA1_0: u16 = 0;
                #[doc = "Capture falling edges"]
                pub const EDGA1_1: u16 = 0x01;
                #[doc = "Capture rising edges"]
                pub const EDGA1_2: u16 = 0x02;
                #[doc = "Capture any edge"]
                pub const EDGA1_3: u16 = 0x03;
            }
        }
        #[doc = "Input Select A"]
        pub mod INP_SELA {
            pub const offset: u16 = 6;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Raw PWM_A input signal selected as source."]
                pub const INP_SELA_0: u16 = 0;
                #[doc = "Output of edge counter/compare selected as source. Note that when this bitfield is set to 1, the internal edge counter is enabled and the rising and/or falling edges specified by the CAPTCTRLA\\[EDGA0\\] and CAPTCTRLA\\[EDGA1\\] fields are ignored. The software must still place a value other than 00 in either or both of the CAPTCTLRA\\[EDGA0\\] and/or CAPTCTRLA\\[EDGA1\\] fields in order to enable one or both of the capture registers."]
                pub const INP_SELA_1: u16 = 0x01;
            }
        }
        #[doc = "Edge Counter A Enable"]
        pub mod EDGCNTA_EN {
            pub const offset: u16 = 7;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Edge counter disabled and held in reset"]
                pub const EDGCNTA_EN_0: u16 = 0;
                #[doc = "Edge counter enabled"]
                pub const EDGCNTA_EN_1: u16 = 0x01;
            }
        }
        #[doc = "Capture A FIFOs Water Mark"]
        pub mod CFAWM {
            pub const offset: u16 = 8;
            pub const mask: u16 = 0x03 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Capture A0 FIFO Word Count"]
        pub mod CA0CNT {
            pub const offset: u16 = 10;
            pub const mask: u16 = 0x07 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Capture A1 FIFO Word Count"]
        pub mod CA1CNT {
            pub const offset: u16 = 13;
            pub const mask: u16 = 0x07 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Compare A Register"]
    pub mod SMCAPTCOMPA {
        #[doc = "Edge Compare A"]
        pub mod EDGCMPA {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Edge Counter A"]
        pub mod EDGCNTA {
            pub const offset: u16 = 8;
            pub const mask: u16 = 0xff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Control B Register"]
    pub mod SMCAPTCTRLB {
        #[doc = "Arm B"]
        pub mod ARMB {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Input capture operation is disabled."]
                pub const ARMB_0: u16 = 0;
                #[doc = "Input capture operation as specified by CAPTCTRLB\\[EDGBx\\] is enabled."]
                pub const ARMB_1: u16 = 0x01;
            }
        }
        #[doc = "One Shot Mode B"]
        pub mod ONESHOTB {
            pub const offset: u16 = 1;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Free running mode is selected. If both capture circuits are enabled, then capture circuit 0 is armed first after CAPTCTRLB\\[ARMB\\] is set. Once a capture occurs, capture circuit 0 is disarmed and capture circuit 1 is armed. After capture circuit 1 performs a capture, it is disarmed and capture circuit 0 is re-armed. The process continues indefinitely.If only one of the capture circuits is enabled, then captures continue indefinitely on the enabled capture circuit."]
                pub const ONESHOTB_0: u16 = 0;
                #[doc = "One shot mode is selected. If both capture circuits are enabled, then capture circuit 0 is armed first after CAPTCTRLB\\[ARMB\\] is set. Once a capture occurs, capture circuit 0 is disarmed and capture circuit 1 is armed. After capture circuit 1 performs a capture, it is disarmed and CAPTCTRLB\\[ARMB\\] is cleared. No further captures will be performed until CAPTCTRLB\\[ARMB\\] is set again.If only one of the capture circuits is enabled, then a single capture will occur on the enabled capture circuit and CAPTCTRLB\\[ARMB\\] is then cleared."]
                pub const ONESHOTB_1: u16 = 0x01;
            }
        }
        #[doc = "Edge B 0"]
        pub mod EDGB0 {
            pub const offset: u16 = 2;
            pub const mask: u16 = 0x03 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Disabled"]
                pub const EDGB0_0: u16 = 0;
                #[doc = "Capture falling edges"]
                pub const EDGB0_1: u16 = 0x01;
                #[doc = "Capture rising edges"]
                pub const EDGB0_2: u16 = 0x02;
                #[doc = "Capture any edge"]
                pub const EDGB0_3: u16 = 0x03;
            }
        }
        #[doc = "Edge B 1"]
        pub mod EDGB1 {
            pub const offset: u16 = 4;
            pub const mask: u16 = 0x03 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Disabled"]
                pub const EDGB1_0: u16 = 0;
                #[doc = "Capture falling edges"]
                pub const EDGB1_1: u16 = 0x01;
                #[doc = "Capture rising edges"]
                pub const EDGB1_2: u16 = 0x02;
                #[doc = "Capture any edge"]
                pub const EDGB1_3: u16 = 0x03;
            }
        }
        #[doc = "Input Select B"]
        pub mod INP_SELB {
            pub const offset: u16 = 6;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Raw PWM_B input signal selected as source."]
                pub const INP_SELB_0: u16 = 0;
                #[doc = "Output of edge counter/compare selected as source. Note that when this bitfield is set to 1, the internal edge counter is enabled and the rising and/or falling edges specified by the CAPTCTRLB\\[EDGB0\\] and CAPTCTRLB\\[EDGB1\\] fields are ignored. The software must still place a value other than 00 in either or both of the CAPTCTLRB\\[EDGB0\\] and/or CAPTCTRLB\\[EDGB1\\] fields in order to enable one or both of the capture registers."]
                pub const INP_SELB_1: u16 = 0x01;
            }
        }
        #[doc = "Edge Counter B Enable"]
        pub mod EDGCNTB_EN {
            pub const offset: u16 = 7;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Edge counter disabled and held in reset"]
                pub const EDGCNTB_EN_0: u16 = 0;
                #[doc = "Edge counter enabled"]
                pub const EDGCNTB_EN_1: u16 = 0x01;
            }
        }
        #[doc = "Capture B FIFOs Water Mark"]
        pub mod CFBWM {
            pub const offset: u16 = 8;
            pub const mask: u16 = 0x03 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Capture B0 FIFO Word Count"]
        pub mod CB0CNT {
            pub const offset: u16 = 10;
            pub const mask: u16 = 0x07 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Capture B1 FIFO Word Count"]
        pub mod CB1CNT {
            pub const offset: u16 = 13;
            pub const mask: u16 = 0x07 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Compare B Register"]
    pub mod SMCAPTCOMPB {
        #[doc = "Edge Compare B"]
        pub mod EDGCMPB {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Edge Counter B"]
        pub mod EDGCNTB {
            pub const offset: u16 = 8;
            pub const mask: u16 = 0xff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Control X Register"]
    pub mod SMCAPTCTRLX {
        #[doc = "Arm X"]
        pub mod ARMX {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Input capture operation is disabled."]
                pub const ARMX_0: u16 = 0;
                #[doc = "Input capture operation as specified by CAPTCTRLX\\[EDGXx\\] is enabled."]
                pub const ARMX_1: u16 = 0x01;
            }
        }
        #[doc = "One Shot Mode Aux"]
        pub mod ONESHOTX {
            pub const offset: u16 = 1;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Free running mode is selected. If both capture circuits are enabled, then capture circuit 0 is armed first after the ARMX bit is set. Once a capture occurs, capture circuit 0 is disarmed and capture circuit 1 is armed. After capture circuit 1 performs a capture, it is disarmed and capture circuit 0 is re-armed. The process continues indefinitely.If only one of the capture circuits is enabled, then captures continue indefinitely on the enabled capture circuit."]
                pub const ONESHOTX_0: u16 = 0;
                #[doc = "One shot mode is selected. If both capture circuits are enabled, then capture circuit 0 is armed first after the ARMX bit is set. Once a capture occurs, capture circuit 0 is disarmed and capture circuit 1 is armed. After capture circuit 1 performs a capture, it is disarmed and the ARMX bit is cleared. No further captures will be performed until the ARMX bit is set again.If only one of the capture circuits is enabled, then a single capture will occur on the enabled capture circuit and the ARMX bit is then cleared."]
                pub const ONESHOTX_1: u16 = 0x01;
            }
        }
        #[doc = "Edge X 0"]
        pub mod EDGX0 {
            pub const offset: u16 = 2;
            pub const mask: u16 = 0x03 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Disabled"]
                pub const EDGX0_0: u16 = 0;
                #[doc = "Capture falling edges"]
                pub const EDGX0_1: u16 = 0x01;
                #[doc = "Capture rising edges"]
                pub const EDGX0_2: u16 = 0x02;
                #[doc = "Capture any edge"]
                pub const EDGX0_3: u16 = 0x03;
            }
        }
        #[doc = "Edge X 1"]
        pub mod EDGX1 {
            pub const offset: u16 = 4;
            pub const mask: u16 = 0x03 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Disabled"]
                pub const EDGX1_0: u16 = 0;
                #[doc = "Capture falling edges"]
                pub const EDGX1_1: u16 = 0x01;
                #[doc = "Capture rising edges"]
                pub const EDGX1_2: u16 = 0x02;
                #[doc = "Capture any edge"]
                pub const EDGX1_3: u16 = 0x03;
            }
        }
        #[doc = "Input Select X"]
        pub mod INP_SELX {
            pub const offset: u16 = 6;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Raw PWM_X input signal selected as source."]
                pub const INP_SELX_0: u16 = 0;
                #[doc = "Output of edge counter/compare selected as source. Note that when this bitfield is set to 1, the internal edge counter is enabled and the rising and/or falling edges specified by the CAPTCTRLX\\[EDGX0\\] and CAPTCTRLX\\[EDGX1\\] fields are ignored. The software must still place a value other than 00 in either or both of the CAPTCTLRX\\[EDGX0\\] and/or CAPTCTRLX\\[EDGX1\\] fields in order to enable one or both of the capture registers."]
                pub const INP_SELX_1: u16 = 0x01;
            }
        }
        #[doc = "Edge Counter X Enable"]
        pub mod EDGCNTX_EN {
            pub const offset: u16 = 7;
            pub const mask: u16 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Edge counter disabled and held in reset"]
                pub const EDGCNTX_EN_0: u16 = 0;
                #[doc = "Edge counter enabled"]
                pub const EDGCNTX_EN_1: u16 = 0x01;
            }
        }
        #[doc = "Capture X FIFOs Water Mark"]
        pub mod CFXWM {
            pub const offset: u16 = 8;
            pub const mask: u16 = 0x03 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Capture X0 FIFO Word Count"]
        pub mod CX0CNT {
            pub const offset: u16 = 10;
            pub const mask: u16 = 0x07 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Capture X1 FIFO Word Count"]
        pub mod CX1CNT {
            pub const offset: u16 = 13;
            pub const mask: u16 = 0x07 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Compare X Register"]
    pub mod SMCAPTCOMPX {
        #[doc = "Edge Compare X"]
        pub mod EDGCMPX {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Edge Counter X"]
        pub mod EDGCNTX {
            pub const offset: u16 = 8;
            pub const mask: u16 = 0xff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Value 0 Register"]
    pub mod SMCVAL0 {
        #[doc = "CAPTVAL0"]
        pub mod CAPTVAL0 {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Value 0 Cycle Register"]
    pub mod SMCVAL0CYC {
        #[doc = "CVAL0CYC"]
        pub mod CVAL0CYC {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x0f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Value 1 Register"]
    pub mod SMCVAL1 {
        #[doc = "CAPTVAL1"]
        pub mod CAPTVAL1 {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Value 1 Cycle Register"]
    pub mod SMCVAL1CYC {
        #[doc = "CVAL1CYC"]
        pub mod CVAL1CYC {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x0f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Value 2 Register"]
    pub mod SMCVAL2 {
        #[doc = "CAPTVAL2"]
        pub mod CAPTVAL2 {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Value 2 Cycle Register"]
    pub mod SMCVAL2CYC {
        #[doc = "CVAL2CYC"]
        pub mod CVAL2CYC {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x0f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Value 3 Register"]
    pub mod SMCVAL3 {
        #[doc = "CAPTVAL3"]
        pub mod CAPTVAL3 {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Value 3 Cycle Register"]
    pub mod SMCVAL3CYC {
        #[doc = "CVAL3CYC"]
        pub mod CVAL3CYC {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x0f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Value 4 Register"]
    pub mod SMCVAL4 {
        #[doc = "CAPTVAL4"]
        pub mod CAPTVAL4 {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Value 4 Cycle Register"]
    pub mod SMCVAL4CYC {
        #[doc = "CVAL4CYC"]
        pub mod CVAL4CYC {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x0f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Value 5 Register"]
    pub mod SMCVAL5 {
        #[doc = "CAPTVAL5"]
        pub mod CAPTVAL5 {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0xffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Capture Value 5 Cycle Register"]
    pub mod SMCVAL5CYC {
        #[doc = "CVAL5CYC"]
        pub mod CVAL5CYC {
            pub const offset: u16 = 0;
            pub const mask: u16 = 0x0f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
}